/* ==========================================================================
   VOA — Hero com animação controlada pelo scroll
   Base = layout estático (sem JS ou prefers-reduced-motion).
   O script.js adiciona .is-scroll para ativar o modo "preso na tela".
   ========================================================================== */

:root {
  --voa-nav-h: 72px;        /* altura da barra de navegação fixa */
  --voa-scroll: 420vh;      /* distância de rolagem que toca os 240 frames */
  --voa-navy: 3, 16, 40;
}

/* ---------- Seção e palco ---------- */
.voa-hero,
.voa-stats {
  padding-top: 0;           /* o CSS mobile do site aplica padding em todo <section> */
  padding-bottom: 0;
}
.voa-hero {
  position: relative;
  background: #06203f;
  color: #fff;
}

.voa-stage {
  position: relative;
  min-height: calc(100vh - var(--voa-nav-h));
  min-height: calc(100svh - var(--voa-nav-h));
  overflow: hidden;
  isolation: isolate;
  /* poster: aparece antes do canvas e se o JS estiver desligado */
  background: #0a4a9a url("frames/frame-0001.webp") center / cover no-repeat;
}

/* Modo animado: seção alta + palco "sticky" que preenche a tela */
.voa-hero.is-scroll {
  height: calc(100vh - var(--voa-nav-h) + var(--voa-scroll));
  height: calc(100svh - var(--voa-nav-h) + var(--voa-scroll));
}
.voa-hero.is-scroll .voa-stage {
  position: sticky;
  top: var(--voa-nav-h);
  height: calc(100vh - var(--voa-nav-h));
  height: calc(100svh - var(--voa-nav-h));
  min-height: 0;
}

.voa-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -3;
}

/* Escurece o céu atrás do texto; some quando o avião chega ao sol */
.voa-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--voa-scrim, 1);
  background:
    linear-gradient(90deg, rgba(var(--voa-navy), .62) 0%, rgba(var(--voa-navy), .26) 46%, rgba(var(--voa-navy), 0) 74%),
    linear-gradient(0deg, rgba(var(--voa-navy), .72) 0%, rgba(var(--voa-navy), 0) 52%);
}

/* Véu claro no final, para o logo preto ler bem sobre o brilho */
.voa-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 250, 240, .38);
  opacity: var(--voa-veil, 0);
}

/* Barra de carregamento dos frames */
.voa-loader {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .16);
  transition: opacity .5s ease;
  pointer-events: none;
}
.voa-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acid, #1ac8ff);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform .2s linear;
}
.voa-loader.is-done { opacity: 0; }
.voa-hero:not(.is-scroll) .voa-loader { display: none; }

/* ---------- Passos de texto ---------- */
.voa-step {
  position: relative;
  min-height: inherit;
}
.voa-step {
  /* espaçamento vertical aqui: o site força padding no .container com !important */
  padding-top: clamp(32px, 8vh, 96px);
  padding-bottom: clamp(32px, 8vh, 80px);
}
.voa-step-in {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.voa-hero.is-scroll .voa-step {
  position: absolute;
  inset: 0;
  min-height: 0;
  will-change: opacity, transform;
}
.voa-hero.is-scroll .voa-step-in {
  height: 100%;
  min-height: 0;
}

/* Sem JS ou com movimento reduzido: só o primeiro passo aparece */
.voa-step--b,
.voa-step--c,
.voa-hint { display: none; }
.voa-hero.is-scroll .voa-step--b,
.voa-hero.is-scroll .voa-step--c,
.voa-hero.is-scroll .voa-hint { display: block; }

.voa-step--b .voa-step-in { justify-content: flex-start; }
.voa-step--c .voa-step-in {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.voa-step--c { color: #04162f; }

.voa-h1,
.voa-h2 {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 28px rgba(var(--voa-navy), .45);
}
.voa-h1 { font-size: clamp(32px, 4.8vw, 68px); max-width: 15em; }
.voa-h2 { font-size: clamp(28px, 3.7vw, 54px); max-width: 17em; }

.voa-h1 .strike { color: rgba(255, 255, 255, .62); }
.voa-h1 .strike::before { background: rgba(255, 255, 255, .62); }
.voa-h1 .accent {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--acid-2, #6bdcff);
}

.voa-lead {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 18px rgba(var(--voa-navy), .55);
}

.voa-step .h-eyebrow {
  color: #fff;
  margin-bottom: 18px;
}
.voa-step .h-eyebrow .bar { background: var(--acid-2, #6bdcff); }

.voa-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Logo final */
.voa-logo {
  display: block;
  width: clamp(250px, 46vw, 560px);
  height: auto;
}
.voa-step--c .voa-lead {
  color: #04162f;
  text-shadow: none;
  font-weight: 600;
  margin-top: 6px;
}
.voa-step--c .voa-cta { justify-content: center; }
.voa-step--c .btn-ghost {
  color: #04162f;
  border-color: #04162f;
}
.voa-step--c .btn-ghost:hover { background: rgba(4, 22, 47, .08); }

/* Dica de rolagem */
.voa-hint {
  position: absolute;
  right: 112px;            /* deixa livre o botão flutuante do WhatsApp */
  bottom: clamp(32px, 8vh, 80px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .9);
  pointer-events: none;
  will-change: opacity;
}
.voa-hint::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .voa-hint::after { animation: voa-hint 1.8s ease-in-out infinite; transform-origin: top; }
  @keyframes voa-hint {
    0%   { transform: scaleY(0); opacity: 0; }
    40%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
  }
}

/* ---------- Faixa de números logo abaixo ---------- */
.voa-stats { background: var(--bg, #0a0d0c); }

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  :root { --voa-scroll: 360vh; }
  .voa-hint { display: none !important; }
  .voa-h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .voa-h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .voa-step .btn { padding: 13px 18px; font-size: 14px; }
  .voa-cta { margin-top: 18px; }
  .voa-step--a { padding-bottom: 28px; }
  .voa-step--a .voa-cta { padding-right: 72px; }   /* não passa por baixo do botão do WhatsApp */
  .voa-step .h-eyebrow { margin-bottom: 14px; font-size: 11px; }
  .voa-step--c .voa-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .voa-step--c .btn { justify-content: center; }
}

/* Telas baixas (celular deitado) */
@media (max-height: 520px) {
  .voa-h1 { font-size: clamp(24px, 4vw, 40px); }
  .voa-lead, .voa-step .h-eyebrow { display: none; }
}
