/* ============================================================
   BJ Desentupidora Hidrojateamento
   Layout fiel à referência (inpiration.png), adaptado à marca BJ
   ============================================================ */

/* Poppins auto-hospedada — subconjunto latino/português (Basic Latin +
   Latin-1 + pontuação essencial). Elimina a dependência de terceiros
   (fonts.googleapis.com / fonts.gstatic.com), que bloqueava a renderização. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/poppins-800.woff2") format("woff2");
}

/* Archivo Expanded (largura 125%) — face de display para os títulos.
   Instanciada estática + subconjunto latino/português, auto-hospedada. */
@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/archivo-exp-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/archivo-exp-900.woff2") format("woff2");
}

:root {
  --navy-900: #0a1c33;   /* base do rodapé / topbar */
  --navy-800: #0d2340;   /* header e rodapé */
  --navy-700: #122c55;   /* faixas escuras */
  --azul: #1b66c9;       /* botões e ícones */
  --azul-escuro: #1556ad;
  --azul-banda: #17549f; /* faixa de diferenciais */
  --celeste: #56aaff;    /* destaque no título do hero */
  --laranja: #ff8a1e;    /* cor secundária — CTAs de contato */
  --laranja-escuro: #ee7607;
  --laranja-ink: #c25e00; /* único laranja aprovado como TEXTO sobre claro (≥4,5:1) */
  --ouro-estrela: #fbbc04; /* dourado de nota — exceção pontual ao azul, SÓ nas estrelas de avaliação (a estrela de rating é reconhecida como dourada no mundo todo) */
  --cinza-fundo: #eef3f8;
  --texto: #14283f;
  --texto-suave: #5a6b80;
  --branco: #ffffff;
  --ink-nav: #d4e2f5;        /* texto/ícones claros sobre o navy */
  --ink-nav-suave: #bcd0e8;  /* variante mais suave (texto do hero) */

  /* anel de foco: celeste rende ~7:1 sobre o navy (onde vive a maioria dos
     controles: hero, header, rodapé, lightbox). Em superfície clara o celeste
     cairia p/ ~2,45:1 (reprova WCAG 1.4.11), então as seções claras trocam
     este token por --azul (~5,5:1 no branco) — mesma lógica do .foto-abrir. */
  --anel-foco: var(--celeste);

  --fonte: "Poppins", system-ui, sans-serif;
  --fonte-display: "Archivo Expanded", "Poppins", system-ui, sans-serif;
  --container: 1140px;
  --sombra-card: 0 10px 30px rgba(13, 35, 64, 0.10);
  --altura-topo: 132px; /* topbar + header (medido e ajustado via JS) */

  /* curvas de saída — desaceleração natural, sem bounce/elástico */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--fonte);
  color: var(--texto);
  background: var(--branco);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--anel-foco);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Link "pular para o conteúdo": oculto até receber foco pelo teclado */
.pular-conteudo {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 100; /* acima do header (50) e dos botões flutuantes (60) */
  padding: 0.7rem 1.15rem;
  background: var(--laranja);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(4, 12, 24, 0.28);
  transform: translateY(calc(-100% - 0.8rem));
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.pular-conteudo:focus {
  transform: translateY(0);
}

#conteudo:focus { outline: none; } /* alvo do skip link não deve mostrar anel ao receber foco programático */

h2 {
  font-family: var(--fonte-display);
  font-size: clamp(1.65rem, 1.28rem + 1.7vw, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.secao { padding-block: clamp(4rem, 8vw, 6.5rem); }

.secao-cabeca {
  text-align: center;
  margin-bottom: 3.25rem;
  max-width: 46rem;
  margin-inline: auto;
}

/* Lead sentence under a section heading — carries the section's
   context/value in readable prose instead of a tracked-uppercase kicker. */
.secao-lead {
  margin-top: 1.05rem;
  font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--texto-suave);
  max-width: 54ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.secao-diferenciais .secao-lead { color: rgba(255, 255, 255, 0.86); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--fonte);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}

.btn:active { transform: translateY(0) scale(0.97); }

.btn-laranja {
  background: var(--laranja);
  color: var(--navy-900);
  padding: 0.9rem 1.8rem;
  box-shadow: 0 8px 22px rgba(255, 138, 30, 0.4);
}

.btn-laranja:hover {
  background: var(--laranja-escuro);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 138, 30, 0.5);
}

.btn-contorno {
  background: transparent;
  color: #fff;
  padding: 0.9rem 1.8rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.btn-contorno:hover {
  box-shadow: inset 0 0 0 2px #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-grande { padding: 1rem 2.1rem; }

/* ---------- botão-jato: CTA de alta pressão ----------
   O gesto-assinatura da marca: um jato varre o botão no hover e o deixa
   "molhado/limpo", com uma névoa de respingos e um leve recuo no ícone.
   Hidrojateamento como prova, não como fantasia. Tudo em transform/opacity,
   contido pelo pill (overflow hidden), e desligado em prefers-reduced-motion. */
.btn-jato {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* empilhamento previsível: pseudos abaixo, conteúdo acima */
  /* leve brilho "molhado" permanente no topo do pill (calmo em repouso) */
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 48%);
}

/* o conteúdo (ícone + texto) fica acima dos pseudos do jato */
.btn-jato-conteudo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: inherit;
}

/* feixe de luz — o "jato" que cruza a superfície */
.btn-jato::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -30%;
  width: 40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 26%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(200, 232, 255, 0.45) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(1.5px);
  transform: translateX(-60%) skewX(-14deg);
  opacity: 0;
}

/* névoa de respingos que acompanha o feixe (contida pelo pill) */
.btn-jato::after {
  content: "";
  position: absolute;
  inset: -35% -8%;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 42%, transparent 55%),
    radial-gradient(circle, rgba(214, 238, 255, 0.9) 0 42%, transparent 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 42%, transparent 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 42%, transparent 55%),
    radial-gradient(circle, rgba(214, 238, 255, 0.8) 0 42%, transparent 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 42%, transparent 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 42%, transparent 55%);
  background-size: 4px 4px, 3px 3px, 5px 5px, 2.5px 2.5px, 3.5px 3.5px, 2px 2px, 4px 4px;
  background-position: 20% 38%, 30% 70%, 40% 24%, 52% 82%, 62% 50%, 74% 20%, 86% 64%;
  opacity: 0;
}

.btn-jato:hover {
  background-color: var(--laranja-escuro);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 52%);
  transform: translateY(-2px);
  /* sombra "carregada": calor laranja + leve subglow frio de respingo */
  box-shadow: 0 14px 30px rgba(255, 138, 30, 0.5), 0 3px 12px rgba(120, 190, 255, 0.28);
}

/* o jato dispara uma vez por hover — um gesto decidido, não um loop.
   O feixe cruza em velocidade constante (linear) p/ ler como varredura;
   se usasse ease-out-expo ele "piscaria" e sumiria fora da borda. */
.btn-jato:hover::before { animation: jato-feixe 0.62s linear; }
.btn-jato:hover::after  { animation: jato-respingos 0.66s var(--ease-out-quart); }
.btn-jato:hover .btn-jato-conteudo svg { animation: jato-recuo 0.6s var(--ease-out-quart); }

@keyframes jato-feixe {
  0%   { opacity: 0; transform: translateX(-60%) skewX(-14deg); }
  12%  { opacity: 1; }
  74%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(420%) skewX(-14deg); }
}

@keyframes jato-respingos {
  0%   { opacity: 0; transform: translateX(-30%) scale(0.9); }
  22%  { opacity: 0.9; }
  70%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateX(40%) scale(1.06); }
}

/* o ícone dá um leve recuo, como o bico do jato ao acionar, e reassenta */
@keyframes jato-recuo {
  0%   { transform: translateX(0) scale(1); }
  26%  { transform: translateX(-2px) scale(0.92); }
  62%  { transform: translateX(1px) scale(1.05); }
  100% { transform: none; }
}

/* ---------- topbar ---------- */

.topbar {
  background: var(--laranja);
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 500;
  padding-block: 0.5rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-contatos {
  display: flex;
  gap: 1.75rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-900);
}

.topbar-item svg { color: var(--navy-900); flex-shrink: 0; }

a.topbar-item:hover { color: rgba(10, 28, 51, 0.82); }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-800);
  padding-block: 0.8rem;
  box-shadow: 0 2px 14px rgba(4, 12, 24, 0.35);
  transition: box-shadow 0.32s var(--ease-out-quart), background 0.32s var(--ease-out-quart);
}

/* ao rolar, o header "assenta": fundo mais sólido + elevação maior.
   Só sombra/fundo (compositor), sem animar layout — nada reflui abaixo. */
.header.compacto {
  background: var(--navy-900);
  box-shadow: 0 8px 26px rgba(4, 12, 24, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.marca {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.marca-logo { height: 104px; width: auto; }

.nav {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  position: relative;
  color: var(--ink-nav);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

/* sublinhado que desliza da esquerda — preciso, sem enfeite */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--laranja);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out-quart);
}

.nav a:hover, .nav a.ativo { color: var(--laranja); }
.nav a:hover::after, .nav a.ativo::after { transform: scaleX(1); }

/* WhatsApp no header — só o ícone, em laranja, limpo (o botão "gritão"
   agora é o flutuante). Alvo de toque de 44px sem círculo pesado; no hover
   ganha um leve fundo laranja translúcido. */
.wpp-icone-header {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--laranja);
  transition: background 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart);
}

.wpp-icone-header:hover {
  background: rgba(255, 138, 30, 0.14);
  color: var(--laranja-escuro);
  transform: translateY(-2px);
}

.wpp-icone-header:active { transform: translateY(0) scale(0.94); }

.menu-botao {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -0.4rem; /* alinha o ícone à borda; o alvo de toque cresceu p/ 44px */
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.menu-botao:active { background: rgba(255, 255, 255, 0.12); }

.menu-botao span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  /* preenche a viewport toda menos topbar+header, em qualquer aparelho.
     dvh acompanha as barras do mobile; o piso evita esmagar o conteúdo
     em telas muito baixas (celular deitado). Fallbacks em cascata. */
  min-height: 640px;
  min-height: max(480px, calc(100vh - var(--altura-topo)));
  min-height: max(480px, calc(100dvh - var(--altura-topo)));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-foto {
  position: absolute;
  inset: 0;
  background: url("img/hero.jpg") center 42% / cover no-repeat var(--navy-900); /* fallback p/ navegadores sem image-set */
  background-image: image-set(url("img/hero.webp") type("image/webp"), url("img/hero.jpg") type("image/jpeg"));
}

/* Camada de shader (WebGL): luz de água em movimento, reagindo ao ponteiro.
   Fica ENTRE a foto e a vinheta — a vinheta por cima garante que o lado do
   texto continue escuro e legível. "screen" faz o shader clarear a foto como
   reflexo de luz na água molhada, nunca como um bloco de cor. pointer-events
   none: o gesto do mouse é ouvido na .hero, os botões seguem clicáveis. */
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-quart);
}
.hero-shader.pronto { opacity: 0.48; }

/* fade em todos os lados (vinheta) + reforço no lado ESQUERDO do texto —
   o técnico trabalha à direita da foto, então o texto vive à esquerda e o
   escurecimento acompanha, mantendo o profissional visível */
.hero-vinheta {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(125% 120% at 32% 50%, rgba(10, 28, 51, 0) 16%, rgba(10, 28, 51, 0.5) 58%, rgba(10, 28, 51, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 28, 51, 0.96) 0%, rgba(10, 28, 51, 0.82) 28%, rgba(10, 28, 51, 0.42) 60%, rgba(10, 28, 51, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 28, 51, 0.42), rgba(10, 28, 51, 0.4));
}

/* sem movimento: o shader fica estático (uma pintura de cáusticas), sem loop */
@media (prefers-reduced-motion: reduce) {
  .hero-shader { transition: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 5vh, 5rem);
  display: flex;
  justify-content: flex-start;
}

.hero-conteudo {
  max-width: 38rem; /* espaço p/ o título display (Archivo Expanded 900) quebrar limpo em 2 linhas */
  color: #fff;
}

.hero-antetitulo {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-nav);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--fonte-display);
  font-size: clamp(1.5rem, 0.6rem + 3.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

/* "Hidrojateamento": um lampejo de luz varre a palavra em loop lento —
   eco do jato do botão, mas discreto (um brilho a cada ~6,5s, o resto em
   repouso). A base segue laranja SÓLIDA e 100% legível; o lampejo é uma
   cópia mascarada por cima (mask = material premium, não é gradient-text). */
.hero h1 span {
  color: var(--laranja);
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #f0f7ff;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: -30% 0;
  mask-position: -30% 0;
  opacity: 0;
  animation: hidro-lampejo 9s linear 1.4s infinite;
}

/* varre L→R num lampejo lento (mesma direção do jato do botão),
   depois descansa fora da palavra pelo resto do ciclo */
@keyframes hidro-lampejo {
  0%        { -webkit-mask-position: -30% 0; mask-position: -30% 0; opacity: 0; }
  2%        { opacity: 1; }
  26%       { -webkit-mask-position: 130% 0; mask-position: 130% 0; opacity: 1; }
  29%, 100% { -webkit-mask-position: 130% 0; mask-position: 130% 0; opacity: 0; }
}

.hero-texto {
  color: var(--ink-nav-suave);
  font-size: 1rem;
  max-width: 26rem;
  margin-bottom: 1.9rem;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Selo de confiança do hero — tríade de sinais (rápido · garantido · equipamento próprio) */
.hg-triade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.6rem;
  color: var(--ink-nav);
  font: 500 0.78rem/1.25 var(--fonte);
}

.hg-triade .hg-item { display: inline-flex; align-items: center; gap: 0.5rem; }

.hg-triade .hg-item svg { width: 17px; height: 17px; flex: none; color: var(--celeste); }

.hg-triade .hg-sep {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(86, 170, 255, 0.65);
}

/* nota logística sob os CTAs — disponibilidade (WhatsApp a qualquer hora) e
   área de atendimento, perto da ação. Reaproveita o padrão item+ponto da
   tríade; some no topbar de "fechado" e responde a "atendem aqui? agora?". */
.hero-nota {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--ink-nav);
  font: 500 0.82rem/1.35 var(--fonte);
}

.hero-nota .hero-nota-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-nota .hero-nota-item svg { flex: none; color: var(--celeste); }

/* ---- entrada do hero (o momento-assinatura, uma vez só) ----
   Anima só transform/opacity e roda de imediato no load (não depende de JS),
   então o conteúdo LCP rendeiza no lugar mesmo sem script. */
.hero-foto {
  animation: hero-assenta 1.5s var(--ease-out-quart) both;
}

.hero-conteudo > * {
  animation: hero-entra 0.7s var(--ease-out-expo) both;
}
.hero-antetitulo { animation-delay: 0.12s; }
.hero h1        { animation-delay: 0.2s; }
.hero-texto     { animation-delay: 0.32s; }
.hero-acoes     { animation-delay: 0.44s; }
.hero-nota      { animation-delay: 0.52s; }
.hg-triade      { animation-delay: 0.6s; }

@keyframes hero-entra {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* a foto "assenta" de um leve zoom para o lugar — nunca menor que 1, sem gaps */
@keyframes hero-assenta {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* ---------- serviços ---------- */

.secao-servicos { background: var(--cinza-fundo); --anel-foco: var(--azul); }

.servicos-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.servico-card {
  background: var(--branco);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(13, 35, 64, 0.16);
}

.servico-foto {
  height: 175px;
  background-size: cover;
  background-position: center 38%;
  background-color: var(--navy-800);
}
/* desentupimento e hidrojateamento: enquadra a parte de baixo — as mãos,
   a mangueira e o jato no ralo (o serviço em ação), não o busto/rosto */
.servico-foto-1 { background-position: center 88%; }
.servico-foto-2 { background-position: center 90%; }

.servico-foto-1 {
  background-image: url("img/servico-desentupimento.jpg");
  background-image: image-set(url("img/servico-desentupimento.webp") type("image/webp"), url("img/servico-desentupimento.jpg") type("image/jpeg"));
}
.servico-foto-2 {
  background-image: url("img/servico-hidrojateamento.jpg");
  background-image: image-set(url("img/servico-hidrojateamento.webp") type("image/webp"), url("img/servico-hidrojateamento.jpg") type("image/jpeg"));
}
.servico-foto-3 {
  background-image: url("img/servico-inspecao.jpg");
  background-image: image-set(url("img/servico-inspecao.webp") type("image/webp"), url("img/servico-inspecao.jpg") type("image/jpeg"));
}

.servico-icone {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: grid;
  place-items: center;
  border: 4px solid var(--branco);
  margin: -29px 0 0 1.5rem;
  position: relative;
}

.servico-corpo { padding: 1rem 1.5rem 1.75rem; }

.servico-corpo h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.servico-corpo p {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-bottom: 1.1rem;
}

.chamar-wpp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--texto);
  font-size: 0.88rem;
  font-weight: 600;
}

.wpp-icone {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--laranja);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(255, 138, 30, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wpp-seta {
  color: var(--laranja);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chamar-wpp:hover { color: var(--laranja-escuro); }

.chamar-wpp:hover .wpp-icone {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(255, 138, 30, 0.42);
}

.chamar-wpp:hover .wpp-seta {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- diferenciais (faixa azul) ---------- */

.secao-diferenciais {
  background: var(--azul-banda);
  color: #fff;
}

.secao-diferenciais h2 { color: #fff; }

.diferenciais-grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.diferencial-icone {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
}

.diferencial h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.diferencial p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 15rem;
  margin-inline: auto;
}

/* ---------- como funciona ---------- */

.processo-grade {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
  counter-reset: passo;
}

.passo-topo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.passo-num {
  position: absolute;
  top: -10px;
  left: calc(50% - 58px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 1;
}

.passo-icone {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--azul);
  color: var(--azul);
  background: var(--branco);
  display: grid;
  place-items: center;
}

/* seta tracejada até o próximo passo — tracejado feito em background (não em
   border) para que os tracinhos possam "escoar" no sentido do fluxo */
.passo-seta {
  position: absolute;
  left: calc(50% + 48px);
  right: calc(-50% + 48px);
  top: 50%;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(27, 102, 201, 0.55) 0 58%, transparent 58%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
}

.passo-seta::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: rgba(27, 102, 201, 0.6);
}

.passo h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.passo p {
  font-size: 0.84rem;
  color: var(--texto-suave);
  max-width: 14rem;
  margin-inline: auto;
}

/* ---------- quem somos ---------- */

.secao-quem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cinza-fundo);
  --anel-foco: var(--azul);
}

.quem-foto {
  min-height: 480px;
  background: url("img/quem-somos.jpg") center / cover no-repeat var(--navy-800); /* fallback */
  background-image: image-set(url("img/quem-somos.webp") type("image/webp"), url("img/quem-somos.jpg") type("image/jpeg"));
}

.quem-conteudo {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  align-self: center;
  max-width: 38rem;
}

.quem-conteudo h2 { margin-bottom: 1.1rem; }

.quem-texto {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.quem-lista {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.quem-lista li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.quem-lista svg { color: var(--azul); flex-shrink: 0; }

/* ---------- rodapé / contato ---------- */

.rodape {
  background: var(--navy-800);
  color: var(--ink-nav);
}

.rodape-grade {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 3rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem;
}

.rodape-logo { height: 84px; width: auto; margin-bottom: 1.1rem; }

.rodape-sobre p {
  font-size: 0.9rem;
  max-width: 18rem;
  margin-bottom: 1.4rem;
}

.rodape-social { display: flex; gap: 0.7rem; }

.rodape-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.18s ease;
}

.rodape-social a:hover { background: var(--azul); }

.rodape-titulo {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.rodape-contato ul { display: grid; gap: 1rem; }

.rodape-contato li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.rodape-contato svg {
  color: var(--celeste);
  flex-shrink: 0;
  margin-top: 4px;
}

.rodape-contato a:hover { color: #fff; }

.rodape-cta { display: grid; gap: 0.9rem; align-content: start; }

.rodape-cta .rodape-titulo { margin-bottom: 0.2rem; }

.rodape-cta p {
  font-size: 0.9rem;
  max-width: 22rem;
}

.btn-form { width: 100%; padding-block: 0.95rem; }

.rodape-base {
  background: var(--navy-900);
  padding-block: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(195, 212, 234, 0.6);
}

.rodape-cnpj {
  display: inline-block;
  margin-left: 0.4rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(195, 212, 234, 0.22);
  /* mesma tonalidade da linha de copyright (~4,86:1 sobre o navy-900): clara
     AA p/ texto pequeno. A separação visual da "letra miúda" vem do divisor
     à esquerda, não de um cinza sublegível (0,45 reprovava, ~3,3:1). */
  color: rgba(195, 212, 234, 0.6);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .rodape-cnpj {
    display: block;
    margin-left: 0;
    margin-top: 0.35rem;
    padding-left: 0;
    border-left: none;
  }
  /* topbar empilha em coluna centrada: horário/disponibilidade numa linha,
     telefone noutra — em vez da quebra torta de 3 linhas no celular estreito */
  .topbar-inner { flex-direction: column; gap: 0.15rem; }
  .topbar-item { text-align: center; }
}

/* ---------- avaliações do Google (prova social) ----------
   Topo do rodapé, logo antes do CTA final (momento de decisão). Com só 2
   avaliações (ambas 5★), o mais convincente é MOSTRAR os depoimentos reais —
   nomes e palavras de quem foi atendido — com a nota 5,0 como selo no
   cabeçalho (a contagem fica à vista, sem inflar). Estrelas em celeste
   (instrumento), só o link em laranja (ação). Brilho celeste = material do
   hero/vídeos, sem inventar cor nova. */
.rodape-avaliacoes {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.rodape-avaliacoes::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 120% at 50% -12%, rgba(86, 170, 255, 0.15), transparent 62%);
}

.avaliacoes {
  position: relative;
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.1rem);
}

.avaliacoes-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  text-align: center;
}
.avaliacoes-lead {
  flex-basis: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-nav);
}
.avaliacoes-nota {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-nav);
}
.avaliacoes-nota strong {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.avaliacoes-estrelas { display: inline-flex; gap: 0.14rem; color: var(--ouro-estrela); }
.avaliacoes-estrelas svg { flex: none; }

.avaliacoes-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--laranja);
  transition: color 0.18s ease;
}
.avaliacoes-link svg { transition: transform 0.2s var(--ease-out-quart); }
.avaliacoes-link:hover { color: var(--laranja-escuro); }
.avaliacoes-link:hover svg { transform: translateX(3px); }

/* rotador de depoimentos: um por vez, em loop, crossfade suave.
   Padrão (sem JS) = todos empilhados e visíveis; só sob html.js vira carrossel;
   sob prefers-reduced-motion volta a empilhar (nada gira). */
.depoimentos {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.depoimentos-palco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.depoimento {
  margin: 0;
  max-width: 44ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.depoimento::before {
  content: "\201C";
  font-family: var(--fonte-display);
  font-size: 3rem;
  line-height: 0.35;
  color: var(--celeste);
  opacity: 0.5;
}
.depoimento > p {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-nav);
  text-wrap: pretty;
}
.depoimento > footer {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.depoimento > footer span { font-weight: 400; color: var(--ink-nav-suave); }

/* controles só existem no modo carrossel (html.js, com movimento) */
.depoimentos-controles { display: none; }

/* ---- modo carrossel (JS ativo) ---- */
html.js .depoimentos-palco { display: grid; place-items: center; }
html.js .depoimento {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
  pointer-events: none;
}
html.js .depoimento.ativo { opacity: 1; transform: none; pointer-events: auto; }

html.js .depoimentos-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.depoimentos-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-nav);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.depoimentos-toggle:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.depoimentos-toggle .ic-tocar { display: none; }
.depoimentos-toggle.pausado .ic-pausar { display: none; }
.depoimentos-toggle.pausado .ic-tocar { display: block; }

.depoimentos-dots { display: inline-flex; gap: 0.25rem; }
.depoimentos-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.depoimentos-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 226, 245, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.depoimentos-dot:hover::before { background: rgba(212, 226, 245, 0.55); }
.depoimentos-dot.ativo::before { background: var(--celeste); transform: scale(1.3); }

/* movimento reduzido: sem giro, todos empilhados, sem controles */
@media (prefers-reduced-motion: reduce) {
  html.js .depoimentos-palco { display: flex; }
  html.js .depoimento { grid-area: auto; opacity: 1 !important; transform: none !important; pointer-events: auto; }
  html.js .depoimentos-controles { display: none; }
}

/* ---------- botão flutuante de WhatsApp (mobile) ---------- */

.whatsapp-flutuante {
  display: grid;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--navy-900);
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* Pulso apenas no compositor (transform + opacity), sem repaint por frame */
.whatsapp-flutuante::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 2px solid var(--laranja);
  animation: whatsapp-pulso 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.whatsapp-flutuante:active { transform: scale(0.94); }

@keyframes whatsapp-pulso {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- alvos de toque ----------
   Em dispositivos de toque (dedo/caneta), garante área de toque ≥ 44px
   nos links que, no desktop com mouse, ficam compactos de propósito. */
@media (pointer: coarse) {
  a.topbar-item { min-height: 44px; }

  .chamar-wpp {
    min-height: 44px;
    padding-block: 0.35rem;
  }

  .rodape-contato a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .rodape-contato li { align-items: center; }
  .rodape-contato svg { margin-top: 0; }
}

/* ============================================================
   REVELAÇÃO AO ROLAR
   Cada tipo de conteúdo entra do seu jeito — não é o mesmo fade
   repetido em toda seção. Só transform/opacity/clip (compositor).
   Tudo condicionado a html.js: sem JS, a página nasce 100% visível.
   ============================================================ */

/* cabeçalho de seção — sobe discreto */
html.js .secao-cabeca {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}

/* cards de serviço — sobem e ganham escala, em cascata */
html.js .servico-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* diferenciais — o ícone circular "infla", depois o texto aparece */
html.js .diferencial {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js .diferencial .diferencial-icone {
  transform: scale(0.7);
  transition: transform 0.5s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 80ms + 90ms);
}
html.js .diferencial.visivel .diferencial-icone { transform: scale(1); }

/* processo — passos entram em sequência e a linha "corre" até o próximo,
   no sentido do fluxo (esquerda→direita), ecoando o jato/escoamento */
html.js .passo {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 120ms);
}
html.js .passo-seta {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 120ms + 260ms);
}
html.js .passo.visivel .passo-seta { transform: scaleX(1); }

/* ---- a linha tracejada "escoa" UMA vez, acompanhando o desenho do traço:
   a corrente passa (esquerda→direita) enquanto o cano se preenche e depois
   assenta — sem loop perpétuo repintando background-position a cada frame.
   Duas passadas terminam num limite de bloco (12px), sem emenda nem salto.
   Some sob prefers-reduced-motion (a duração é zerada no bloco de a11y). */
html.js .passo.visivel .passo-seta {
  animation: processo-corre 0.6s linear 2;
  animation-delay: calc(var(--i, 0) * 120ms + 260ms); /* casa com o draw-in */
}

@keyframes processo-corre {
  from { background-position-x: 0; }
  to   { background-position-x: 12px; }   /* um bloco = fim sem emenda */
}

/* cada passo "acende" UMA vez ao se revelar, em sequência (1→2→3→4→5): um
   pulso de luz que reforça a leitura do fluxo e depois descansa. Antes era um
   loop infinito animando box-shadow (propriedade de paint) — repintava a cada
   frame para sempre enquanto a seção estivesse na tela. Agora é um gesto único
   sincronizado com a cascata de revelação; depois, seção 100% estática.
   No mobile (setas ocultas) fica a sequência de brilhos descendo a coluna. */
html.js .passo.visivel .passo-icone {
  animation: processo-acende 1.1s var(--ease-out-quart) both;
  animation-delay: calc(var(--i, 0) * 220ms + 400ms);
}

@keyframes processo-acende {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(86, 170, 255, 0);
    border-color: var(--azul);
    transform: none;
  }
  38% {
    box-shadow: 0 0 0 7px rgba(86, 170, 255, 0.14), 0 0 18px rgba(86, 170, 255, 0.55);
    border-color: var(--celeste);
    transform: scale(1.06);
  }
}

/* quem somos — a foto revela por wipe, o conteúdo sobe, a lista escalona.
   O wipe é feito por uma SOBREPOSIÇÃO que recua, não recortando a foto:
   clip-path na própria foto zerava a área e o IntersectionObserver
   deixava de enxergá-la, travando a revelação (a foto nunca aparecia). */
html.js .quem-foto { position: relative; }
html.js .quem-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--navy-800);
  transform-origin: right center;
  transition: transform 0.8s var(--ease-out-quint);
}
html.js .quem-foto.visivel::before { transform: scaleX(0); }

html.js .quem-conteudo {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}

html.js .quem-lista li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.45s var(--ease-out-quart), transform 0.45s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}

/* estado revelado comum (sobrescreve os transforms de translate acima) */
html.js .secao-cabeca.visivel,
html.js .servico-card.visivel,
html.js .diferencial.visivel,
html.js .passo.visivel,
html.js .quem-conteudo.visivel,
html.js .quem-lista li.visivel {
  opacity: 1;
  transform: none;
}

/* o ícone do card acompanha o hover do card */
.servico-icone {
  transition: transform 0.25s var(--ease-out-quart);
}
.servico-card:hover .servico-icone { transform: scale(1.09); }

/* ---------- responsivo ---------- */

@media (max-width: 1020px) {
  .servicos-grade { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grade, .processo-grade { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .passo-seta { display: none; }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar-contatos a[href^="mailto"] { display: none; }
  .marca-logo { height: 74px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-800);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav.aberto { display: flex; }
  .nav a { padding-block: 0.85rem; }
  /* no mobile o header fica logo + hamburger; o WhatsApp vive no flutuante */
  .wpp-icone-header { display: none; }
  .menu-botao { display: flex; }
  /* Hero mais leve no mobile (é o elemento LCP). A foto-mobile já é
     recortada em retrato centrada no técnico; mantém o topo (rosto)
     no quadro quando o cover corta a vertical. */
  .hero-foto {
    background-image: image-set(url("img/hero-mobile.webp") type("image/webp"), url("img/hero.jpg") type("image/jpeg"));
    background-position: center 30%;
  }
  .hero-vinheta {
    background:
      radial-gradient(120% 90% at 50% 45%, rgba(10, 28, 51, 0.2) 10%, rgba(10, 28, 51, 0.7) 65%, rgba(10, 28, 51, 0.95) 100%),
      linear-gradient(180deg, rgba(10, 28, 51, 0.65), rgba(10, 28, 51, 0.92));
  }
  .hero-inner { justify-content: flex-start; }
  .secao-quem { grid-template-columns: 1fr; }
  .quem-foto { min-height: 300px; }
  /* no mobile o flutuante fica um pouco mais compacto e junto da borda */
  .whatsapp-flutuante {
    right: 1rem;
    bottom: 1rem;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 620px) {
  .topbar-inner { justify-content: center; }
  .servicos-grade, .diferenciais-grade, .processo-grade { grid-template-columns: 1fr; }
  .rodape-grade { grid-template-columns: 1fr; }
}

/* ---------- movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  /* estados de repouso da revelação não são transições — precisam ser
     forçados ao estado final, senão o conteúdo ficaria oculto */
  html.js .secao-cabeca,
  html.js .servico-card,
  html.js .diferencial,
  html.js .diferencial .diferencial-icone,
  html.js .passo,
  html.js .passo-seta,
  html.js .quem-conteudo,
  html.js .quem-lista li {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .quem-foto::before { transform: scaleX(0) !important; }

  /* botão-jato: sem varredura/respingos; fica só o hover calmo
     (cor + sombra + leve elevação, já instantâneos pelo clamp acima) */
  .btn-jato:hover::before,
  .btn-jato:hover::after,
  .btn-jato:hover .btn-jato-conteudo svg { animation: none !important; }
  .btn-jato::before, .btn-jato::after { opacity: 0 !important; }

  /* "Hidrojateamento": sem lampejo em loop; fica só o laranja sólido */
  .hero h1 span::after { animation: none !important; opacity: 0 !important; }
}

/* ============================================================
   GALERIA DE VÍDEOS — faixa "cinema" escura
   Os clipes são retrato (9:16, celular em pé). Respeitamos o formato:
   cada um vive numa moldura vertical, como uma tela de celular, sobre
   um fundo navy que faz o vídeo "acender". Prévia muda no hover; o
   player grande (com som) abre no lightbox <dialog>.
   ============================================================ */

.secao-videos {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}

/* brilho de água discreto no topo — eco do hero, amarra a seção à marca */
.secao-videos::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 50% -8%, rgba(86, 170, 255, 0.16), transparent 60%),
    radial-gradient(60% 50% at 92% 108%, rgba(255, 138, 30, 0.10), transparent 60%);
}

.secao-videos > .container { position: relative; z-index: 1; }

.secao-videos h2 { color: #fff; }
.secao-videos .secao-lead { color: rgba(255, 255, 255, 0.82); }

/* fileira que centraliza e quebra sozinha conforme entram novos vídeos */
/* ============================================================
   CARROSSEL — trilho horizontal compartilhado (vídeos e galeria).
   Cada faixa é UMA fileira que desliza pro lado: a altura fica fixa
   por mais itens que entrem. Swipe no touch; setas no desktop, que
   só aparecem quando há o que rolar (justify safe center centraliza
   quando cabe tudo, encosta no início quando transborda).
   ============================================================ */
.carrossel {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 0.9rem);
}
.carrossel > .video-grade,
.carrossel > .galeria-grade { flex: 1 1 auto; min-width: 0; }

.carrossel-seta {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--branco);
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(10, 28, 51, 0.22);
  cursor: pointer;
  transition: background 0.24s var(--ease-out-quart), color 0.24s var(--ease-out-quart),
    transform 0.24s var(--ease-out-quart), opacity 0.24s var(--ease-out-quart),
    box-shadow 0.24s var(--ease-out-quart);
}
.carrossel-seta:hover {
  background: var(--laranja);
  color: var(--navy-900);
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(255, 138, 30, 0.4);
}
.carrossel-seta:active { transform: scale(0.96); }
.carrossel-seta:focus-visible {
  outline: 3px solid var(--anel-foco);
  outline-offset: 3px;
}
/* nas pontas a seta some, mas segura o lugar — sem pulo de layout */
.carrossel-seta[disabled] {
  opacity: 0;
  pointer-events: none;
}
/* sem JS as setas não funcionam; o swipe/scroll do trilho basta */
html:not(.js) .carrossel-seta { display: none; }
/* touch e telas estreitas: o swipe manda, sem setas */
@media (hover: none), (max-width: 700px) {
  .carrossel-seta { display: none; }
}

.video-grade {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
  /* folga vertical p/ a sombra funda + a revelação; recuperada com margin */
  padding: 2.5rem 0.25rem;
  margin-block: -1.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.video-grade::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 auto;
  width: clamp(232px, 25vw, 286px);
  scroll-snap-align: start;
}

/* a moldura mantém o retrato 9:16 exato, sem tarja nem distorção */
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #060f1c;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
  transition: transform 0.32s var(--ease-out-quart), box-shadow 0.32s var(--ease-out-quart);
}

.video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* leve dessaturação em repouso; ganha vida ao tocar/reproduzir */
  transform: scale(1.02);
  transition: transform 0.5s var(--ease-out-quart), filter 0.4s ease;
  filter: saturate(0.92) brightness(0.9);
}

/* botão-play — o mesmo gesto laranja da marca, com subglow celeste frio */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--laranja);
  color: var(--navy-900);
  padding-left: 3px; /* acerta o centro óptico do triângulo */
  box-shadow: 0 10px 26px rgba(255, 138, 30, 0.42), 0 2px 10px rgba(120, 190, 255, 0.3);
  transition: transform 0.28s var(--ease-out-quart), background 0.2s ease, box-shadow 0.28s var(--ease-out-quart);
}

/* legenda sobre um véu que sobe da base — texto sempre legível sobre o vídeo */
.video-legenda {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.4rem 1.1rem 1.1rem;
  background: linear-gradient(to top, rgba(6, 15, 28, 0.92), rgba(6, 15, 28, 0.55) 34%, transparent 66%);
  pointer-events: none;
}

.video-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 0.35rem;
}

.video-titulo {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

/* alvo de clique/foco cobrindo o card inteiro (acessível por teclado) */
.video-abrir {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}

.video-abrir:focus-visible {
  outline: 3px solid var(--celeste);
  outline-offset: 3px;
}

/* hover (ponteiro fino): a moldura sobe e acende, a prévia ganha cor,
   o play recolhe de leve para dar palco ao movimento do clipe */
@media (hover: hover) and (pointer: fine) {
  .video-card:hover .video-frame,
  .video-frame:has(.video-abrir:focus-visible) {
    transform: translateY(-6px);
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(86, 170, 255, 0.4);
  }

  .video-card:hover .video-preview {
    transform: scale(1.06);
    filter: saturate(1) brightness(1);
  }

  .video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(0.82);
    background: var(--laranja-escuro);
    box-shadow: 0 6px 16px rgba(255, 138, 30, 0.34), 0 2px 12px rgba(120, 190, 255, 0.4);
  }
}

/* ---- lightbox (native <dialog>, top layer) ---- */

/* Chrome de lightbox compartilhado entre a galeria de vídeos (.video-modal)
   e a de imagens (.foto-modal): mesmo fundo, mesmos botões de vidro, mesma
   entrada. Só o miolo (player retrato × imagem) difere. */
.video-modal,
.foto-modal {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.video-modal::backdrop,
.foto-modal::backdrop {
  background: rgba(4, 10, 20, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* fecha animação de entrada suave (uma vez, ao abrir) */
.video-modal[open],
.foto-modal[open] { animation: modal-surge 0.34s var(--ease-out-quart); }
.video-modal[open]::backdrop,
.foto-modal[open]::backdrop { animation: modal-fade 0.34s ease; }

@keyframes modal-surge {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.video-modal-palco,
.foto-modal-palco {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1rem, 4vh, 2.5rem) 1rem;
  pointer-events: none; /* o palco vazio deixa o clique chegar ao fundo p/ fechar */
}

.video-modal-player {
  /* Largura calculada só em unidades de viewport (sem % de pai, que no
     flex se resolvia mal com aspect-ratio e estourava no mobile): pega a
     MENOR entre a largura que respeita 82vh de altura (82vh × 9/16 =
     46.125vh, teto 483.75px = 860×9/16) e a largura disponível na tela
     (100vw menos folga p/ as setas). A altura sai do aspect-ratio.
     Desktop: manda a altura (retrato alto). Mobile: manda a largura. */
  width: min(46.125vh, 483.75px, calc(100vw - 7rem));
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.video-modal-titulo,
.foto-modal-legenda {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  pointer-events: auto;
}

/* controles do modal: círculos de vidro escuro, viram laranja no hover */
.video-modal-fechar,
.video-modal-nav,
.foto-modal-fechar,
.foto-modal-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart);
}

.video-modal-fechar,
.foto-modal-fechar { top: clamp(0.85rem, 3vw, 1.6rem); right: clamp(0.85rem, 3vw, 1.6rem); width: 46px; height: 46px; }
.video-modal-nav,
.foto-modal-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.video-modal-prev,
.foto-modal-prev { left: clamp(0.6rem, 2.5vw, 1.6rem); }
.video-modal-next,
.foto-modal-next { right: clamp(0.6rem, 2.5vw, 1.6rem); }

.video-modal-fechar:hover,
.video-modal-nav:hover,
.foto-modal-fechar:hover,
.foto-modal-nav:hover {
  background: var(--laranja);
  color: var(--navy-900);
}
.video-modal-nav:hover,
.foto-modal-nav:hover { transform: translateY(-50%) scale(1.08); }
.video-modal-fechar:hover,
.foto-modal-fechar:hover { transform: scale(1.08); }
.video-modal-fechar:active,
.video-modal-nav:active,
.foto-modal-fechar:active,
.foto-modal-nav:active { transform: scale(0.94); }

.video-modal-fechar:focus-visible,
.video-modal-nav:focus-visible,
.foto-modal-fechar:focus-visible,
.foto-modal-nav:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; }

/* quando há só um item, as setas somem (JS adiciona .solo) */
.video-modal.solo .video-modal-nav,
.foto-modal.solo .foto-modal-nav { display: none; }

/* ---- revelação ao rolar (só sob html.js; sem JS nasce visível) ---- */
html.js .secao-videos .video-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 100ms);
}
html.js .secao-videos .video-card.visivel {
  opacity: 1;
  transform: none;
}

/* ---- responsivo ---- */
@media (max-width: 620px) {
  /* card fixo que espia o próximo — convite claro pro swipe */
  .video-card { width: clamp(190px, 56vw, 240px); }
  .video-grade { gap: 1rem; }
  .video-titulo { font-size: 0.9rem; }
  .video-play { width: 54px; height: 54px; }
  /* setas menores encostadas na borda, dentro da folga lateral do vídeo */
  .video-modal-nav,
  .foto-modal-nav { width: 42px; height: 42px; }
  .video-modal-prev,
  .foto-modal-prev { left: 0.4rem; }
  .video-modal-next,
  .foto-modal-next { right: 0.4rem; }
}

@media (max-width: 380px) {
  .video-card { width: 62vw; }
}

/* ---- movimento reduzido ---- */
@media (prefers-reduced-motion: reduce) {
  html.js .secao-videos .video-card { opacity: 1 !important; transform: none !important; }
  html.js .secao-galeria .foto-card { opacity: 1 !important; transform: none !important; }
  .video-modal[open], .video-modal[open]::backdrop,
  .foto-modal[open], .foto-modal[open]::backdrop { animation: none !important; }
}

/* ============================================================
   GALERIA DE IMAGENS — feed dos posts da BJ (dicas, novidades)
   Faixa clara e arejada logo após a faixa escura dos vídeos: os posts
   quadrados e coloridos respiram sobre o branco. Grade que cresce sozinha
   (flex central: 1 post fica centralizado como destaque, muitos preenchem
   a fileira). Clique abre o post inteiro no lightbox compartilhado.
   ============================================================ */

.secao-galeria { background: var(--branco); --anel-foco: var(--azul); }

/* realce da marca no título — cor sólida (sem gradient-text). Laranja
   mais fundo que o da marca porque o título fica sobre branco: garante
   contraste AA (≥3:1 p/ texto grande); o #ff8a1e puro reprovaria. */
.realce-laranja { color: var(--laranja-ink); }

.galeria-grade {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
  padding: 1.75rem 0.25rem;
  margin-block: -1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.galeria-grade::-webkit-scrollbar { display: none; }

.foto-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(258px, 30vw, 360px);
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cinza-fundo);
  box-shadow: var(--sombra-card);
  outline: 1px solid rgba(13, 35, 64, 0.06);
  outline-offset: -1px;
  transition: transform 0.32s var(--ease-out-quart), box-shadow 0.32s var(--ease-out-quart);
}

.foto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-quart);
}

/* véu + lupa que surgem no hover — o convite para ampliar */
.foto-lupa {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(10, 28, 51, 0) 40%, rgba(10, 28, 51, 0.42));
  opacity: 0;
  transition: opacity 0.32s var(--ease-out-quart);
}

.foto-lupa span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(255, 138, 30, 0.42);
  transform: scale(0.8);
  transition: transform 0.32s var(--ease-out-quart);
}

/* alvo de clique cobrindo o card inteiro (acessível por teclado) */
.foto-abrir {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}
.foto-abrir:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .foto-card:hover,
  .foto-card:has(.foto-abrir:focus-visible) {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(13, 35, 64, 0.22);
  }
  .foto-card:hover img { transform: scale(1.05); }
  .foto-card:hover .foto-lupa,
  .foto-card:has(.foto-abrir:focus-visible) .foto-lupa { opacity: 1; }
  .foto-card:hover .foto-lupa span,
  .foto-card:has(.foto-abrir:focus-visible) .foto-lupa span { transform: scale(1); }
}

/* link discreto para o Instagram — a galeria é uma amostra do feed */
.galeria-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul);
  box-shadow: inset 0 0 0 1.5px rgba(27, 102, 201, 0.35);
  transition: background 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart);
}
.carrossel + .galeria-instagram { display: flex; width: max-content; }
.galeria-instagram:hover {
  background: var(--azul);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--azul), 0 10px 24px rgba(27, 102, 201, 0.28);
  transform: translateY(-2px);
}
.galeria-instagram svg { flex-shrink: 0; }

/* imagem dentro do lightbox: preserva a proporção, cabe na tela toda */
.foto-modal-img {
  max-width: min(94vw, 900px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

/* revelação ao rolar (só sob html.js; sem JS nasce visível) */
html.js .secao-galeria .foto-card {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .secao-galeria .foto-card.visivel { opacity: 1; transform: none; }

@media (max-width: 620px) {
  /* post fixo que espia o próximo — convite claro pro swipe */
  .foto-card { width: clamp(230px, 72vw, 300px); }
  .galeria-grade { gap: 0.8rem; }
  .foto-lupa span { width: 48px; height: 48px; }
}

@media (max-width: 380px) {
  .foto-card { width: 80vw; }
}
