/* ==========================================================
   AVG Engenharia — Landing Page
   Tokens extraídos em design.md
   ========================================================== */
/* Fontes auto-hospedadas (SIL Open Font License) — subconjunto latino */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-700.woff2') format('woff2');
}

:root {
  --navy-900: #011D3F;      /* igual ao navy das imagens (emenda sem costura) */
  --navy-800: #0A2241;
  --navy-ink: #071226;
  --gold-cta: #F8C860;
  --gold-cta-alt: #E0A840;
  --gold-accent: #F0B844;
  --gold-badge: #E8B044;
  --gold-icon: #D4A440;
  --gold-bar-light: #ECCC7C;
  --heading: #0B1020;
  --text: #111111;
  --text-body: #333333;
  --on-dark: #FFFFFF;
  --on-dark-muted: #E6EAF0;
  --surface: #FFFFFF;
  --surface-muted: #F1F1F2;
  --card-bg: #F8F8F8;
  --border: #E6E6E6;
  --divider: #E0E0E0;
  --icon-circle: #E2E2E4;

  --font-display: 'Montserrat', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', 'Roboto', system-ui, sans-serif;

  --container: 1120px;
  --gutter: 40px;
  --radius-card: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
/* fundo da página: branco em cima, navy do rodapé embaixo — evita a fresta
   branca (meio pixel de arredondamento / rolagem elástica) abaixo do footer */
html {
  scroll-behavior: smooth;
  background: linear-gradient(180deg, var(--surface) 50%, #071A30 50%);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }

/* acessibilidade: link "pular para o conteúdo" — só aparece ao navegar pelo teclado */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--gold-accent); outline-offset: 2px; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Logo placeholder (aguardando arquivo) ---------- */
.logo { display: block; flex-shrink: 0; width: auto; max-width: none; }
.logo--header { height: 60px; }
.logo--footer { height: 76px; }

/* ---------- Barrinha dourada ---------- */
.bar {
  display: block;
  width: 44px;
  height: 4px;
  background: var(--gold-icon);
  margin-bottom: 14px;
}
.bar--light { background: var(--gold-bar-light); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  color: var(--navy-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold-accent); outline-offset: 3px; }
.btn__wa { width: 22px; height: 22px; flex-shrink: 0; }
.btn__chev { width: 16px; height: 16px; margin-left: 4px; flex-shrink: 0; }

.btn--sm {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  background: var(--gold-cta-alt);
  gap: 8px;
}
.btn--sm .btn__wa { width: 17px; height: 17px; }
.btn--sm:hover { background: #D69B33; }

.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 18px;
  font-weight: 700;
  background: var(--gold-cta);
  box-shadow: 0 6px 18px rgba(248, 200, 96, .22);
}
.btn--lg:hover { background: #F2BC48; box-shadow: 0 8px 22px rgba(248, 200, 96, .32); }

.btn--md { height: 48px; font-size: 16px; padding: 0 24px; background: #F4C458; }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.header__inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__brand { display: flex; align-items: center; gap: 0; margin-right: auto; }
.header__divider {
  width: 1px;
  height: 42px;
  background: #3B3F42;
  margin: 0 28px 0 24px;
}
.header__tagline {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
}
.nav a:hover { color: var(--gold-cta-alt); }
.header .btn--sm { margin-left: 4px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  justify-content: center; align-items: center;
  padding: 0;
  color: var(--navy-ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible { outline: 2px solid var(--gold-accent); outline-offset: 2px; border-radius: 8px; }
/* MenuToggle: o traço em "S" desliza pelo próprio caminho e vira um X ao girar -45° */
.menu-toggle {
  width: 30px; height: 30px;
  transition: transform .6s ease-out;
}
.menu-toggle__line {
  stroke-dasharray: 12 63;
  transition: stroke-dasharray .6s ease-out, stroke-dashoffset .6s ease-out;
}
.nav__foot { display: none; }      /* rodapé do menu: só no celular/tablet */
.cards-dots { display: none; }     /* indicador do carrossel: só no celular */
.wa-float { display: none; }       /* botão flutuante: só no celular/tablet */
@keyframes wa-pulse {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.45); }
  100% { opacity: 0;  transform: scale(1.45); }
}
.nav-toggle[aria-expanded="true"] .menu-toggle { transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .menu-toggle__line {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  background-color: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero__mark { display: none; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--on-dark);
  max-width: 480px;
}
.hero__title span { display: block; }
/* o subtítulo é o H1 (SEO); mantém o peso normal de texto */
h1.hero__sub { font-weight: 400; }
.hero__title .hero__accent { color: var(--gold-accent); }
.hero__sub {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--on-dark-muted);
  max-width: 430px;
}

.hero__features {
  display: flex;
  align-items: center;
  margin: 24px 0 26px;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  padding: 0 22px;
  position: relative;
}
.hero__features li:first-child { padding-left: 4px; }
.hero__features li + li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 36px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.35);
}
.hero__features svg { width: 36px; height: 36px; flex-shrink: 0; }

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--on-dark-muted);
}
.hero__note svg { width: 20px; height: 26px; color: #F4C458; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================
   SEÇÕES CLARAS (esqueleto: coluna-título + grid de 4)
   ========================================================== */
.section { padding: 48px 0; background: var(--surface); }
.section--muted { background: var(--surface-muted); padding: 36px 0 40px; }
.section--why { padding: 36px 0 22px; }
.section--follow { padding-top: 8px; }   /* 2º bloco de serviços colado ao 1º */

.section__grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
}
.section__head { padding-top: 16px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 33px;
  line-height: 1.05;
  color: var(--heading);
}
.section__title--sm { font-size: 25px; line-height: 1.15; white-space: nowrap; }
.section__text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-body);
  max-width: 215px;
}

/* ---------- Cards de serviço ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.card {
  position: relative;
  min-height: 218px;
  padding: 22px 16px 22px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #FAFAFA 0%, #F3F3F3 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.07); transform: translateY(-2px); }
.card--featured {
  background: var(--surface);
  border: 2px solid var(--gold-badge);
  padding: 21px 15px 21px 17px;
}
.badge {
  position: absolute;
  top: -12px;
  right: 10px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: var(--gold-badge);
  color: var(--navy-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.card__icon { width: 42px; height: 42px; color: var(--navy-ink); }
.card__title {
  margin-top: 14px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--heading);
}
.card__text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.38;
  color: var(--text-body);
}
/* cards são links para a página de cada serviço */
.cards { grid-template-columns: repeat(5, 1fr); }
a.card { display: flex; flex-direction: column; color: inherit; }
a.card:hover { border-color: var(--gold-badge); }
a.card:focus-visible { outline: 2px solid var(--gold-accent); outline-offset: 3px; }
.card__more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-icon);
}
.card__more svg { width: 13px; height: 13px; transition: translate .2s; }
a.card:hover .card__more svg { translate: 3px 0; }

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step { position: relative; }
.step__icon {
  width: 62px; height: 62px;
  margin: 0 0 12px 30px;
  border-radius: 50%;
  background: var(--icon-circle);
  display: grid;
  place-items: center;
  color: var(--navy-ink);
}
.step__icon svg { width: 30px; height: 30px; }
.step + .step::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 37px;
  width: 9px; height: 9px;
  border-top: 2px solid var(--navy-ink);
  border-right: 2px solid var(--navy-ink);
  transform: rotate(45deg);
}
.step__title { font-size: 15px; font-weight: 700; color: var(--heading); line-height: 1.25; }
.step__text { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--text-body); }

/* ---------- Por que escolher ---------- */
.section__grid--divided { grid-template-columns: 270px 1fr; gap: 0; }
.section__grid--divided .section__head { padding-right: 24px; }
.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-left: 34px;
  border-left: 1px solid var(--divider);
  min-height: 118px;
}
.perk__icon { width: 34px; height: 34px; color: var(--gold-icon); }
.perk__title { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--heading); }
.perk__text { margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--text-body); }

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta {
  --cut: 36px;                         /* desnível da borda diagonal (sobe à esquerda) */
  --band-h: 184px;
  position: relative;
  z-index: 1;
  color: var(--on-dark);
  /* corta só na horizontal: o capacete (girado na animação) não gera
     rolagem lateral, mas continua podendo subir acima da diagonal */
  overflow-x: clip;
}
/* Fundo recortado: navy + textura de planta + foto */
.cta__bg {
  position: absolute;
  inset: 0 0 -1px 0;   /* 1px a mais embaixo: cobre a emenda de meio pixel com o rodapé */
  overflow: hidden;
  background: #0C2541;
  clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cta__bg::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 62%;
  height: 72%;
  background: url("../img/blueprint.svg") no-repeat left bottom / 100% 100%;
  opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
/* Foto e capacete compartilham a mesma caixa (1672×941 em escala fixa),
   ancorada à direita; o capacete recortado sobe acima da diagonal */
.cta__photo,
.cta__art {
  position: absolute;
  right: 0;
  width: 774px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.cta__photo {
  bottom: -48px;
  height: 436px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
/* mesma caixa da foto, mas sem os 48px abaixo (não gera rolagem extra) */
.cta__art { z-index: 1; bottom: 0; height: 388px; }
.cta__helmet {
  position: absolute;
  left: 532px;
  top: 186px;
  width: 242px;
  height: auto;
  max-width: none;
}
.cta__inner {
  position: relative;
  z-index: 2;
  min-height: var(--band-h);
  display: flex;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cta__inner .logo--footer { margin-left: 5px; margin-top: -6px; }
.cta__divider {
  width: 1px;
  height: 100px;
  background: rgba(255,255,255,.35);
  margin: 0 36px 0 38px;
  flex-shrink: 0;
}
.cta__lead {
  font-size: 18.5px;
  line-height: 1.22;
  color: var(--on-dark);
  margin-bottom: 17px;
}
.cta .btn--md { height: 45px; padding: 0 15px; }

/* Desktop: como na referência, o conteúdo da faixa fica ancorado à esquerda
   da tela (não no container central) e a logo cresce com a largura.
   Em 1200px fica idêntico ao mockup: logo a 45px da borda, 76px de altura. */
@media (min-width: 1081px) {
  .cta__inner.container {
    max-width: none;
    padding-left: 3.75vw;
  }
  .cta__inner .logo--footer {
    height: clamp(76px, 6.3vw, 108px);
    margin-left: 0;
  }
  .cta__divider {
    height: clamp(100px, 8.3vw, 136px);
    margin: 0 clamp(36px, 3vw, 56px) 0 clamp(38px, 3.2vw, 60px);
  }
  /* texto e botão mantêm o tamanho do mockup (não crescem com a tela) */
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .header__tagline { display: none; }
  .header__divider { display: none; }
  .cards, .steps, .perks { grid-template-columns: repeat(2, 1fr); }
  .cards { gap: 22px 14px; }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 5º card ocupa a linha toda */
  .steps { gap: 28px 32px; }
  .step + .step::before { display: none; }
  .perks { gap: 28px; }
  /* etapas em 2×2: ícone ao lado do texto */
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
  .step__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .step__icon svg { width: 26px; height: 26px; }
  .step__title { align-self: end; padding-top: 6px; }
  /* faixa CTA: logo menor e foto/capacete afastados para o texto não encostar */
  .cta__inner .logo--footer { height: 60px; }
  .cta__photo, .cta__art { right: -60px; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: flex; }
  .header .btn--sm { display: none; }
  /* ---- menu: painel com links grandes numerados + WhatsApp ---- */
  .nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--surface);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 24px 40px rgba(3,28,54,.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.22,1,.36,1);
    counter-reset: navi;
  }
  .nav.is-open { max-height: 600px; }
  .nav > a {
    counter-increment: navi;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 2px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    border-bottom: 1px solid var(--border);
  }
  .nav > a:first-child { margin-top: 6px; }
  .nav > a::before {
    content: counter(navi, decimal-leading-zero);
    width: 22px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-icon);
  }
  .nav > a::after {
    content: '';
    margin-left: auto;
    width: 8px; height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .3;
  }
  .nav > a:hover, .nav > a:active { color: var(--gold-cta-alt); }
  .nav__foot { display: block; padding: 22px 0 24px; }
  .nav .nav__cta { width: 100%; height: 54px; font-size: 16px; font-weight: 700; color: var(--navy-ink); }
  .nav__note {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-body);
  }
  .nav__note svg { width: 13px; height: 17px; color: var(--gold-icon); }

  /* fundo escurecido atrás do menu (toque fecha) */
  .header::before {
    content: '';
    position: fixed;
    inset: 78px 0 0 0;
    background: rgba(3,28,54,.5);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .header.menu-open::before { opacity: 1; pointer-events: auto; }

  /* ---- botão flutuante de WhatsApp ---- */
  .wa-float {
    display: grid;
    place-items: center;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--gold-cta);
    color: var(--navy-ink);
    box-shadow: 0 10px 26px rgba(3,28,54,.30);
    opacity: 0;
    scale: .6;
    translate: 0 16px;
    pointer-events: none;
    transition: opacity .3s ease, scale .5s cubic-bezier(.34,1.45,.64,1), translate .5s cubic-bezier(.34,1.45,.64,1);
    -webkit-tap-highlight-color: transparent;
  }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float::after {           /* anel pulsante sutil */
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold-cta);
    opacity: 0;
  }
  .wa-float.is-visible { opacity: 1; scale: 1; translate: none; pointer-events: auto; }
  .wa-float.is-visible::after { animation: wa-pulse 2.6s ease-out 1s infinite; }
  body.menu-open .wa-float { opacity: 0; scale: .6; pointer-events: none; }

  .hero__media { background-position: 62% center; }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(1,29,63,.92) 0%, rgba(1,29,63,.82) 60%, rgba(1,29,63,.92) 100%);
  }
  .hero__inner { position: relative; min-height: auto; padding-top: 48px; padding-bottom: 52px; }
  .hero__title { font-size: 38px; }
  .hero__sub { font-size: 19px; }
  .hero__features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .hero__features li { padding: 0; }
  .hero__features li::before { display: none; }

  .section__grid, .section__grid--divided { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section__title--sm { white-space: normal; }
  .section__text { max-width: none; }
  .section__title br { display: none; }
  .perks { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--divider); }

  .cta { --cut: 20px; }
  .section--why { padding-bottom: 40px; }
  /* ---- faixa CTA: centralizada, foto (capacete + plantas) ancorada embaixo ---- */
  .cta__art { display: none; }
  .cta__bg::before { width: 100%; height: 45%; top: 0; bottom: auto; opacity: .10; }
  .cta__photo {
    width: clamp(600px, 108vw, 920px);
    height: auto;
    bottom: 0;
    right: -24px;
    -webkit-mask-image: none; mask-image: none;
  }
  .cta__bg::after {            /* navy sólido em cima, foto aparece embaixo */
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
      #0C2541 0%, #0C2541 46%,
      rgba(12,37,65,.75) 62%,
      rgba(12,37,65,0) 84%,
      rgba(7,26,48,.45) 100%);
  }
  .cta__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px var(--gutter) clamp(220px, 46vw, 330px);
  }
  .cta__inner .logo--footer { margin: 0; height: 66px; }
  .cta__divider {
    width: 44px; height: 3px;
    margin: 22px 0 20px;
    border-radius: 2px;
    background: var(--gold-icon);
  }
  .cta__content { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .cta__lead { font-size: 20px; line-height: 1.3; margin-bottom: 22px; }
  .cta .btn--md { width: 100%; max-width: 420px; height: 54px; padding: 0 14px; font-size: clamp(14px, 3.9vw, 16px); white-space: nowrap; }
}

@media (max-width: 560px) {
  .btn--lg { width: 100%; font-size: 15px; padding: 0 16px; height: 54px; white-space: normal; text-align: center; }
  .btn--lg .btn__chev { display: none; }
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 17px; }
  .hero__sub br, .hero__note br, .cta__lead br { display: none; }
  .cards, .steps, .perks { grid-template-columns: 1fr; }
  .section__title { font-size: 28px; }
  .cta__lead { font-size: 18px; }
}

/* ==========================================================
   HERO — CELULAR E TABLET (≤ 900px)
   Foto em destaque no topo, dissolvendo no navy; texto ancorado
   embaixo; serviços em cartões de vidro 2×2; nota como rodapé.
   ========================================================== */
@media (max-width: 900px) {
  /* ocupa a tela inteira abaixo do cabeçalho (78px); svh = sem a barra do navegador */
  .hero {
    min-height: calc(100vh - 78px);
    min-height: calc(100svh - 78px);
    display: flex;
  }
  /* foto ocupa o topo e se dissolve no navy (máscara na própria foto,
     então acompanha o zoom da animação sem deixar emenda) */
  .hero__media {
    inset: 0 0 auto 0;
    height: max(300px, calc(100% - 300px));
    background-position: 74% 38%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  }
  /* leve escurecimento sobre a foto para o título ganhar contraste */
  .hero::before {
    background: linear-gradient(180deg,
      rgba(3,28,54,.08) 0%,
      rgba(3,28,54,.28) 30%,
      rgba(3,28,54,.60) 55%,
      rgba(3,28,54,.60) 100%);
  }
  /* conteúdo ancorado embaixo; a foto preenche o que sobrar em cima */
  .hero__inner {
    flex: 1;
    justify-content: flex-end;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  /* logo ocupa e centraliza no espaço livre acima do conteúdo */
  .hero__mark {
    display: grid;
    place-items: center;
    flex: 1;
    align-self: stretch;
    min-height: 130px;
    padding-bottom: 20px;
  }
  .hero__mark img {
    width: min(62%, 230px);
    height: auto;
    opacity: .5;
  }

  .hero .bar { width: 36px; margin-bottom: 14px; }
  .hero__title {
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(3,28,54,.45);
  }
  .hero__sub {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
    max-width: 34ch;
  }

  /* serviços: cartões de vidro 2×2 */
  .hero__features {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 26px 0 22px;
  }
  .hero__features li {
    gap: 11px;
    padding: 12px;
    min-height: 66px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .005em;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
  }
  .hero__features li:first-child { padding-left: 12px; }
  .hero__features svg {
    width: 38px; height: 38px;
    padding: 8px;
    border-radius: 10px;
    color: var(--gold-accent);
    background: rgba(240,184,68,.13);
  }

  .hero .btn--lg {
    height: 56px;
    padding: 0 14px;
    font-size: clamp(14px, 3.9vw, 16px);
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(248,200,96,.28);
  }

  /* nota de atendimento como rodapé da hero */
  .hero__note {
    width: 100%;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
    font-size: 13px;
    line-height: 1.45;
  }
  .hero__note svg {
    width: 34px; height: 34px;
    margin: 0;
    padding: 8px;
    border-radius: 50%;
    background: rgba(244,196,88,.13);
  }
}

/* ==========================================================
   COMO FUNCIONA — CELULAR E TABLET (≤ 900px)
   Linha do tempo vertical: ícone à esquerda ligado por uma
   linha dourada, texto ocupando toda a largura à direita.
   ========================================================== */
@media (max-width: 900px) {
  .steps { gap: 0; margin-top: 4px; }
  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    align-items: start;
    padding-bottom: 26px;
  }
  .step:last-child { padding-bottom: 0; }
  /* linha que liga um passo ao próximo */
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--gold-icon), rgba(212,164,64,.18));
  }
  .step__icon {
    grid-row: span 2;
    width: 52px; height: 52px;
    margin: 0;
    background: var(--surface);
    border: 1px solid #E2E2E4;
    box-shadow: 0 6px 16px rgba(7,18,38,.07);
  }
  .step__icon svg { width: 24px; height: 24px; }
  .step__title {
    align-self: end;
    padding-top: 5px;
    font-size: 16px;
  }
  .step__text {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.45;
  }
}

/* ==========================================================
   POR QUE ESCOLHER — CELULAR E TABLET (≤ 900px)
   Cartões horizontais: ícone dourado em selo à esquerda,
   título + texto à direita, com acento dourado na borda.
   ========================================================== */
@media (max-width: 900px) {
  .section--why .section__grid--divided { gap: 22px; }
  .perks {
    gap: 12px;
    padding-top: 0;
    border-top: 0;
  }
  .perk {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 18px 18px 18px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FBFBFB, #F4F4F5);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  /* filete dourado à esquerda */
  .perk::before {
    content: '';
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold-icon);
  }
  .perk__icon {
    grid-row: span 2;
    width: 48px; height: 48px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(212,164,64,.12);
  }
  .perk__title {
    margin-top: 2px;
    font-size: 16px;
  }
  .perk__text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
  }
}

/* ==========================================================
   NOSSOS SERVIÇOS — CELULAR E TABLET (≤ 900px)
   Cartões com ícone em selo; no tablet grade 2×2,
   no celular carrossel deslizável com o próximo cartão à mostra.
   ========================================================== */
@media (max-width: 900px) {
  .cards { gap: 14px; }
  .card {
    min-height: 0;
    padding: 22px 20px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(7,18,38,.05);
  }
  .card--featured { padding: 21px 19px 23px; box-shadow: 0 10px 26px rgba(232,176,68,.18); }
  .card__icon {
    width: 50px; height: 50px;
    padding: 11px;
    border-radius: 12px;
    background: #ECEEF2;
  }
  .card--featured .card__icon { background: rgba(232,176,68,.16); }
  .card__title { margin-top: 18px; font-size: 18px; letter-spacing: -0.02em; }
  .card__text { margin-top: 8px; font-size: 14px; line-height: 1.5; }
  .badge { top: -12px; right: 16px; }
}
@media (max-width: 560px) {
  .cards {
    position: relative;        /* referência de posição dos cartões (JS do carrossel) */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 16px var(--gutter) 26px;    /* topo: selo "Mais contratado"; base: sombra */
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80%; scroll-snap-align: start; }
  .card:hover { transform: none; }
  /* indicador de posição do carrossel */
  .cards-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -6px;
  }
  .cards-dots span {
    width: 7px; height: 7px;
    border-radius: 9999px;
    background: #D5D8DE;
    transition: width .35s cubic-bezier(.22,1,.36,1), background-color .35s;
  }
  .cards-dots span.is-active { width: 22px; background: var(--gold-icon); }
}

/* ==========================================================
   AJUSTES DE TABLET (561px – 900px)
   Mesmo visual do celular, aproveitando a largura extra.
   ========================================================== */
@media (min-width: 561px) and (max-width: 900px) {
  .hero__title { font-size: 48px; }
  .hero__sub { font-size: 19px; max-width: 40ch; }
  .hero__features { grid-template-columns: repeat(4, 1fr); }
  .hero__features li { flex-direction: column; align-items: flex-start; min-height: 0; }
  .hero .btn--lg { width: auto; padding: 0 30px; font-size: 17px; }
  .hero__note { width: auto; }
  .hero__mark img { width: 260px; }

  .section__title { font-size: 34px; }
  .section__text { max-width: 52ch; }

  .steps { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
  .step { padding-bottom: 0; }
  .step:not(:last-child)::after { display: none; }

  .perks { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   RODAPÉ INSTITUCIONAL
   ========================================================== */
.site-footer {
  position: relative;
  background: #071A30;
  color: rgba(230,234,240,.72);
  font-size: 14px;
  padding-top: 56px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer__grid--5 { grid-template-columns: 1.3fr .8fr 1fr 1.25fr 1fr; gap: 32px; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-dark);
}
.site-footer__text {
  margin-top: 12px;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.55;
}
.site-footer__title {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-accent);
}
.site-footer__col li + li { margin-top: 11px; }
.site-footer a { color: rgba(230,234,240,.78); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__contact a,
.site-footer__contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer__contact svg { width: 18px; height: 18px; color: var(--gold-accent); flex-shrink: 0; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: rgba(230,234,240,.5);
}
.site-footer__top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.site-footer__top svg { width: 14px; height: 14px; rotate: -90deg; }

@media (max-width: 900px) {
  .site-footer { padding-top: 48px; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
  .site-footer__grid--5 { grid-template-columns: repeat(4, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__grid, .site-footer__grid--5 { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-footer__col:last-child { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
  .site-footer__bottom { flex-direction: column-reverse; text-align: center; gap: 12px; padding-bottom: 26px; }
}

/* ==========================================================
   ANIMAÇÕES DE ENTRADA
   Ativas só com html.anim (JS ligado e sem prefers-reduced-motion).
   Cada [data-a] define o próprio estado inicial; ao entrar no
   grupo .is-in tudo volta ao estado natural, com atraso
   --base (ordem do grupo) + --d (ordem do elemento).
   Usa translate/scale/rotate individuais para não brigar com
   os transform de hover já existentes.
   ========================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.45, .64, 1);
}
html.anim [data-a] {
  --delay: calc(var(--base, 0s) + var(--d, 0s));
  --dur: 1s;
  --ease: var(--ease-out);
  opacity: 0;
  transition:
    opacity calc(var(--dur) * .8) var(--ease-out) var(--delay),
    translate var(--dur) var(--ease) var(--delay),
    scale var(--dur) var(--ease) var(--delay),
    rotate var(--dur) var(--ease) var(--delay),
    filter var(--dur) var(--ease-out) var(--delay),
    clip-path var(--dur) var(--ease-out) var(--delay),
    background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
html.anim .is-in[data-a],
html.anim .is-in [data-a] {
  opacity: 1;
  translate: none;
  scale: none;
  rotate: none;
  filter: none;
}

/* ---- tipos ---- */
html.anim [data-a="header"]   { translate: 0 -100%; opacity: 1; --dur: .9s; }
html.anim [data-a="fade"]     { --dur: 1.1s; }
html.anim [data-a="up"]       { translate: 0 26px; filter: blur(6px); }
html.anim [data-a="up-sm"]    { translate: 0 18px; }
html.anim [data-a="down"]     { translate: 0 -12px; --dur: .8s; }
html.anim [data-a="left"]     { translate: -16px 0; filter: blur(4px); }
html.anim [data-a="zoom"]     { scale: .86; filter: blur(8px); --dur: 1.1s; }
html.anim [data-a="pop"]      { scale: .6; --ease: var(--ease-back); --dur: .8s; }
html.anim [data-a="pop-up"]   { translate: 0 22px; scale: .92; --ease: var(--ease-back); --dur: 1s; }
html.anim [data-a="grow-x"]   { scale: 0 1; transform-origin: left center; --dur: .9s; }
html.anim [data-a="grow-y"]   { scale: 1 0; transform-origin: center; --dur: .9s; }
html.anim [data-a="card"]     { translate: 0 38px; scale: .96; --dur: 1.1s; }
html.anim [data-a="icon"]     { scale: .55; rotate: -14deg; --ease: var(--ease-back); --dur: .9s; }
html.anim [data-a="spin"]     { scale: .4; rotate: -110deg; --dur: 1.1s; }
html.anim [data-a="zap"]      { scale: .3; rotate: 25deg; --ease: var(--ease-back); --dur: .7s; }
html.anim [data-a="kenburns"] { scale: 1.12; --dur: 2.4s; }
html.anim [data-a="photo"]    { scale: 1.08; --dur: 2s; }
html.anim [data-a="drop"]     { translate: 0 -56px; rotate: -7deg; --ease: var(--ease-back); --dur: 1.2s; }

/* títulos: revelação por máscara, linha a linha */
html.anim [data-a="mask"] {
  clip-path: inset(0 0 100% 0);
  translate: 0 .45em;
  --dur: 1.05s;
}
html.anim .is-in [data-a="mask"] { clip-path: inset(-15% -5% -25% -5%); }

/* o cabeçalho fica sempre opaco; só desliza */
html.anim .header[data-a] { opacity: 1; }

/* topo (LCP): foto e título visíveis desde o primeiro quadro.
   A foto mantém o zoom lento e o título só desliza levemente,
   sem opacidade nem máscara — o navegador já conta como pintados. */
html.anim .hero [data-a="kenburns"],
html.anim .svc-hero [data-a="kenburns"] { opacity: 1; }
html.anim .hero__title [data-a="mask"],
html.anim .svc-hero__title[data-a="mask"] { opacity: 1; clip-path: none; translate: 0 .18em; }
html.anim .is-in .hero__title [data-a="mask"],
html.anim .is-in .svc-hero__title[data-a="mask"] { translate: none; }

@media (prefers-reduced-motion: reduce) {
  .wa-float.is-visible::after { animation: none; }
  html.anim [data-a] { opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
}

/* ==========================================================
   LEGIBILIDADE NO CELULAR
   Textos corridos com 15–16px; rótulos curtos continuam menores.
   ========================================================== */
@media (max-width: 560px) {
  .card__text { font-size: 15px; }
  .step__text,
  .perk__text { font-size: 16px; line-height: 1.45; }
  .site-footer__text { font-size: 15px; }
  .site-footer__col li { font-size: 15px; }
}
@media (max-width: 560px) {
  .site-footer__sep { display: none; }
  .site-footer__legal { display: block; width: fit-content; margin: 4px auto 0; padding: 6px 0; }
}
