/* ========== FONTE (hospedada no próprio site, sem depender do Google Fonts) ========== */
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
}

/* ========== VARIÁVEIS ========== */
:root {
  --preto: #0A0A0A;
  --preto2: #141414;
  --cinza: #1E1E1E;
  --borda: #2A2A2A;
  --vermelho: #E30613;
  --branco: #FFFFFF;
  --texto: #E6E6E6;
  --texto2: #A8A8A8;
  --zap: #25D366;
  --fonte-titulo: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --fonte-texto: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ========== BASE ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y; /* bloqueia pinça e toque duplo de zoom no Android */
}
body {
  background: var(--preto);
  color: var(--texto);
  font-family: var(--fonte-texto);
  line-height: 1.5;
  padding-bottom: 90px; /* espaço para o botão flutuante não cobrir o rodapé */
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%; display: block;
  -webkit-user-drag: none; user-select: none;
  -webkit-touch-callout: none; /* sem menu "salvar imagem" ao segurar o dedo no iPhone */
}
a { color: inherit; }
ul { list-style: none; }
.container { width: min(100% - 32px, 1100px); margin-inline: auto; }
section { padding: 56px 0; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--branco);
  letter-spacing: .5px;
}
h2 { font-size: clamp(2.2rem, 7vw, 3.2rem); text-align: center; margin-bottom: 28px; }
h2 span { color: var(--vermelho); }

/* ========== BOTÕES ========== */
.botoes { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 28px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; padding: 12px 22px;
  border: 2px solid transparent; /* todos com borda: botão com contorno fica da mesma altura dos outros */
  border-radius: 10px;
  font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 800; line-height: 1.1;
  text-transform: uppercase; text-decoration: none; letter-spacing: .5px; text-align: center;
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .flutuante:focus-visible { outline: 3px solid var(--branco); outline-offset: 3px; }
.btn-zap { background: var(--zap); color: #062B14; }
.btn-tel { background: var(--vermelho); color: var(--branco); }
.btn-linha { background: transparent; color: var(--branco); border-color: var(--vermelho); }
.ico { width: 24px; height: 24px; flex: none; fill: currentColor; }
@media (min-width: 640px) {
  .botoes { flex-direction: row; justify-content: center; }
  .btn { width: auto; min-width: 280px; }
}

/* ========== 1. TOPO ========== */
/* Fundo em camadas: véu escuro para leitura, foto das picapes, brilho vermelho.
   A primeira declaração usa JPG (navegadores antigos); a segunda troca por AVIF, que é bem mais leve. */
.topo {
  position: relative;
  padding: 28px 0 44px;
  text-align: center;
  background-color: var(--preto);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .65) 55%, var(--preto) 100%),
    url("../img/fundo-hero.jpg"),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227, 6, 19, .35), transparent 70%);
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .65) 55%, var(--preto) 100%),
    image-set(url("../img/fundo-hero.avif") type("image/avif"), url("../img/fundo-hero.jpg") type("image/jpeg")),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227, 6, 19, .35), transparent 70%);
  border-bottom: 4px solid var(--vermelho);
}
/* Riscos diagonais de "velocidade" bem sutis, só CSS */
.topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-25deg, transparent 0 70px, rgba(227, 6, 19, .07) 70px 72px, transparent 72px 90px, rgba(255, 255, 255, .03) 90px 91px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
/* Foto vertical só para celular, com véu mais leve: as picapes ficam atrás do título */
@media (max-width: 767px) {
  .topo {
    background-image:
      linear-gradient(180deg, rgba(10, 10, 10, .15) 0%, rgba(10, 10, 10, .35) 60%, var(--preto) 100%),
      url("../img/fundo-hero-mobile.jpg"),
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227, 6, 19, .35), transparent 70%);
    background-image:
      linear-gradient(180deg, rgba(10, 10, 10, .15) 0%, rgba(10, 10, 10, .35) 60%, var(--preto) 100%),
      image-set(url("../img/fundo-hero-mobile.avif") type("image/avif"), url("../img/fundo-hero-mobile.jpg") type("image/jpeg")),
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227, 6, 19, .35), transparent 70%);
  }
}
/* Sem z-index aqui de propósito: ele criaria um contexto próprio e o blend do logo deixaria de enxergar o fundo */
.topo .container { position: relative; display: flex; flex-direction: column; align-items: center; }
/* O logo tem fundo preto puro: "screen" torna o preto transparente sobre a foto, sem precisar recortar */
.logo { width: 210px; height: auto; margin-bottom: 8px; mix-blend-mode: screen; }
.tag { font-family: var(--fonte-titulo); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--texto2); font-size: .95rem; }
.topo h1 { font-size: clamp(3.4rem, 16vw, 7.5rem); margin: 10px 0 14px; text-shadow: 0 3px 16px rgba(0, 0, 0, .9); }
.topo h1 span { color: var(--vermelho); display: block; }
.sub { font-size: 1.1rem; max-width: 520px; color: var(--branco); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.topo .botoes { margin-top: 24px; width: 100%; }
@media (min-width: 768px) { .logo { width: 280px; } }

/* ========== 2. FAIXA ========== */
.faixa { background: var(--vermelho); padding: 16px 0; }
.faixa .container { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.faixa-titulo { font-family: var(--fonte-titulo); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 1rem; color: rgba(255, 255, 255, .85); }
/* 2 por linha no celular (nada fica sozinho embaixo), 4 em linha a partir do tablet */
.faixa ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 4px 36px; }
.faixa li { font-family: var(--fonte-titulo); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; color: var(--branco); white-space: nowrap; }
@media (min-width: 640px) {
  .faixa .container { flex-direction: row; justify-content: center; gap: 24px; }
  .faixa ul { grid-template-columns: repeat(4, auto); gap: 0 28px; }
}

/* ========== 3. SERVIÇOS ========== */
/* Uma coluna até 959px (cartões com largura confortável), três colunas a partir daí */
.cards { display: grid; gap: 16px; max-width: 620px; margin-inline: auto; }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.card {
  background: var(--preto2);
  border: 1px solid var(--borda);
  border-top: 4px solid var(--vermelho);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.card--sos { background: linear-gradient(180deg, #2A0508 0%, var(--preto2) 45%); }
.ico-grande { width: 46px; height: 46px; color: var(--vermelho); }
.card h3 { font-size: 2.1rem; }
.card > p { color: var(--texto); }
.card ul { color: var(--texto2); display: grid; gap: 4px; }
.card li { padding-left: 1.3em; text-indent: -1.3em; } /* texto que quebra linha fica alinhado depois do ✓ */
.card li::before { content: "✓"; display: inline-block; width: 1.3em; text-indent: 0; color: var(--vermelho); font-weight: 700; }
/* Horário e botões sempre no pé do cartão: nas 3 colunas eles ficam na mesma altura */
.card .horario { font-weight: 700; color: var(--branco); margin-top: auto; padding-top: 4px; }
.card .btn { width: 100%; min-width: 0; font-size: 1.25rem; }
/* Nas 3 colunas, cada linha do cartão (ícone, título, texto, lista, horário, botões) fica na mesma altura
   nos três, mesmo o de Socorro tendo um botão a mais. Navegador antigo continua com o layout acima. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 960px) {
    .cards { grid-template-rows: repeat(7, auto); gap: 0 16px; }
    .card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
    .card .horario { margin-top: 0; align-self: end; }
  }
}

/* ========== 4. POR QUE A WS ========== */
.porque { background: var(--preto2); }
.motivos { display: grid; gap: 12px; }
@media (min-width: 768px) { .motivos { grid-template-columns: repeat(2, 1fr); } }
.motivo {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--preto); border: 1px solid var(--borda); border-radius: 10px; padding: 18px;
  color: var(--texto2);
}
/* Largura fixa no número: todos os textos começam na mesma coluna */
.motivo .num { flex: none; width: 2.6rem; font-family: var(--fonte-titulo); font-size: 2.4rem; font-weight: 800; color: var(--vermelho); line-height: 1; }
.motivo strong { display: block; font-family: var(--fonte-titulo); font-size: 1.5rem; text-transform: uppercase; color: var(--branco); line-height: 1.1; margin-bottom: 4px; }

/* ========== 5. GALERIA ========== */
.galeria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.foto {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cinza);
  border: 1px solid var(--borda);
  border-radius: 8px;
  overflow: hidden;
}
.foto picture { display: block; height: 100%; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  border-bottom: 3px solid var(--vermelho);
  font-family: var(--fonte-titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  font-size: 1.05rem; line-height: 1.1; color: var(--branco);
}

/* ========== 6. HORÁRIOS + MAPA ========== */
.horarios-grid { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 640px) { .horarios-grid { grid-template-columns: repeat(3, 1fr); } }
.hora { background: var(--preto2); border: 1px solid var(--borda); border-radius: 10px; padding: 18px; text-align: center; }
.hora--sos { border-color: var(--vermelho); }
.hora h3 { font-size: 1.6rem; margin-bottom: 6px; }
.hora p { font-family: var(--fonte-titulo); font-size: 1.8rem; font-weight: 800; color: var(--branco); line-height: 1; }
.hora small { color: var(--texto2); }
.endereco { text-align: center; font-weight: 700; color: var(--branco); line-height: 1.6; margin-bottom: 14px; }
.mapa { display: block; width: 100%; height: 320px; border: 0; border-radius: 12px; background: var(--cinza); filter: grayscale(.3) contrast(1.05); }

/* ========== 7. RODAPÉ ========== */
.rodape { background: #000; border-top: 4px solid var(--vermelho); padding: 40px 0 28px; text-align: center; }
.rodape-nome { font-family: var(--fonte-titulo); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.15; color: var(--branco); }
.rodape-nome span { color: var(--vermelho); }
.rodape address { font-style: normal; color: var(--texto2); margin: 12px 0 16px; line-height: 1.7; }
.rodape .fone { display: inline-block; font-family: var(--fonte-titulo); font-size: 2.4rem; font-weight: 800; line-height: 1.2; color: var(--branco); text-decoration: none; }
.rodape .insta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; color: var(--texto); text-decoration: none; font-weight: 600;
  overflow-wrap: anywhere;
}
.rodape .insta:hover { color: var(--branco); }
.rodape .insta .ico { color: var(--vermelho); }
.rodape .botoes { margin-top: 20px; }
.rodape small { display: block; margin-top: 28px; color: #666; }

/* ========== BOTÃO FLUTUANTE ========== */
.flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--zap); color: var(--branco);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
}
/* Pulso feito com transform e opacity: roda na placa de vídeo, sem travar a rolagem no celular */
.flutuante::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 50%; background: var(--zap);
  animation: pulso 2s ease-out infinite;
  will-change: transform, opacity;
}
.flutuante .ico { width: 36px; height: 36px; }
@keyframes pulso {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .flutuante::after { animation: none; } html { scroll-behavior: auto; } }
