/* ==========================================================================
   HERO v2 — proposta (Manual de Marca Infinity)
   Preto + textura ouro + amarelo mostarda · destaque condensado fino (Ailerons → Antonio) · texto Montserrat
   Uma mensagem só (sem carrossel), vídeo da marca ao fundo, linha vertical do manual, CTA com hierarquia clara.
   ========================================================================== */

:root {
  --inf-preto: #050505;
  --inf-mostarda: #FBB017;          /* CMYK 0/33/100/0 do manual */
  --inf-ouro: linear-gradient(100deg, #B8741F 0%, #E2A23B 16%, #FFF3AE 36%, #F2B84C 54%, #C9862B 70%, #F7D57A 86%, #B8741F 100%);
  --inf-display: 'Ailerons', 'Antonio', 'Oswald', 'Arial Narrow', sans-serif;
  --inf-texto: 'Montserrat', system-ui, sans-serif;
  --hero-gutter: clamp(20px, 5vw, 72px);
}

/* Cabeçalho transparente sobre o hero; fica preto ao rolar (classe .scrolled do common.js) */
body.home-v2 .header:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
body.home-v2 .header.scrolled {
  background: rgba(5, 5, 5, 0.92) !important;
}

.hero-v2 {
  position: relative;
  margin-top: -80px; /* passa por baixo do cabeçalho fixo (o body tem padding-top: 80px) */
  padding: 0;        /* o estilo geral de <section> do site acrescenta espaçamento */
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--inf-preto) url('../img/hero-poster.jpg') center / cover no-repeat;
  font-family: var(--inf-texto);
}

/* ---------- fundo ---------- */
.hero-v2__media { position: absolute; inset: 0; z-index: -2; }
.hero-v2__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroV2Zoom 16s cubic-bezier(.2, .6, .2, 1) forwards;
}
.hero-v2__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .78) 0%, rgba(5, 5, 5, 0) 24%),
    linear-gradient(90deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .78) 40%, rgba(5, 5, 5, .35) 75%, rgba(5, 5, 5, .15) 100%),
    linear-gradient(0deg, var(--inf-preto) 0%, rgba(5, 5, 5, 0) 30%);
}

/* ---------- grade ---------- */
.hero-v2__inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px var(--hero-gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(36px, 7vh, 96px);
}

/* ---------- conteúdo ---------- */
.hero-v2__content {
  position: relative;
  max-width: 1120px; /* título em 2 linhas no desktop; o subtítulo tem largura própria */
  padding-left: clamp(20px, 2.4vw, 36px);
}
/* linha vertical do manual (capa) */
.hero-v2__content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15));
  transform-origin: top;
}

.hero-v2__eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--inf-mostarda);
}

/* localização: na faixa de baixo, separada do nome da empresa */
.hero-v2__place {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-v2__place i { font-size: 14px; letter-spacing: 0; color: var(--inf-mostarda); }

.hero-v2__title {
  margin: 0;
  font-family: var(--inf-display);
  font-weight: 200;
  font-size: clamp(46px, min(6.6vw, 10.5vh), 112px); /* cabe também em notebook de 720 px de altura */
  line-height: .98;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.hero-v2 .hero-v2__title .hero-gold-text {
  display: inline-block;
  font-weight: 400;
  letter-spacing: .06em;
  background: var(--inf-ouro);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-v2__subtitle {
  max-width: 46ch;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, .8);
}

.hero-v2__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 40px;
}
.hero-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 34px;
  background: var(--inf-mostarda);
  color: #0A0A0A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background-color .25s ease, color .25s ease;
}
.hero-v2__cta i { font-size: 18px; transition: transform .25s ease; }
.hero-v2__cta:hover { background: #fff; color: #0A0A0A; }
.hero-v2__cta:hover i { transform: translateX(4px); }

.hero-v2__link {
  padding: 6px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  transition: border-color .25s ease, color .25s ease;
}
.hero-v2__link:hover { color: var(--inf-mostarda); border-color: var(--inf-mostarda); }

.hero-v2 a:focus-visible,
.hero-v2 button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- rodapé do hero ---------- */
.hero-v2__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-v2__scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-v2__scroll-line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
}
.hero-v2__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--inf-mostarda);
  animation: heroV2Scroll 2.2s ease-in-out infinite;
}
.hero-v2__scroll:hover { color: #fff; }

.hero-v2__aside { display: flex; align-items: flex-end; gap: 16px; }

.hero-v2__launch {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 300px;
  max-width: 380px;
  padding: 16px 52px 16px 20px;
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
}
.hero-v2__launch[hidden] { display: none; }
.hero-v2__launch:hover { border-color: var(--inf-mostarda); background: rgba(10, 10, 10, .7); }
.hero-v2__launch-tag { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--inf-mostarda); }
.hero-v2__launch-name { font-family: var(--inf-display); font-weight: 300; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.hero-v2__launch-place { font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero-v2__launch-reg { font-size: 10px; color: rgba(255, 255, 255, .5); line-height: 1.4; }
.hero-v2__launch-reg:empty { display: none; }
.hero-v2__launch > i { position: absolute; top: 16px; right: 18px; font-size: 18px; color: var(--inf-mostarda); transition: transform .25s ease; }
.hero-v2__launch:hover > i { transform: translate(2px, -2px); }

.hero-v2__pause {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 0; /* cantos retos, como o CTA e os quadros do manual */
  background: rgba(5, 5, 5, .35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .25s ease;
}
.hero-v2__pause[hidden] { display: none; }
.hero-v2__pause:hover { border-color: var(--inf-mostarda); }

/* ---------- entrada (depois do preloader) ---------- */
.hero-v2__content > *,
.hero-v2__footer { opacity: 0; transform: translateY(18px); }
.hero-v2__content::before { transform: scaleY(0); }
.hero-v2.is-ready .hero-v2__content > *,
.hero-v2.is-ready .hero-v2__footer { animation: heroV2In .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-v2.is-ready .hero-v2__content::before { animation: heroV2Line 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-v2.is-ready .hero-v2__eyebrow { animation-delay: .1s; }
.hero-v2.is-ready .hero-v2__title { animation-delay: .22s; }
.hero-v2.is-ready .hero-v2__subtitle { animation-delay: .4s; }
.hero-v2.is-ready .hero-v2__actions { animation-delay: .55s; }
.hero-v2.is-ready .hero-v2__footer { animation-delay: .8s; }
.hero-v2.is-ready .hero-v2__title .hero-gold-text { animation: heroV2Gold 2.6s .5s ease-out forwards; }
/* sem JS: tudo visível */
.no-js .hero-v2__content > *, .no-js .hero-v2__footer { opacity: 1; transform: none; }

@keyframes heroV2In { to { opacity: 1; transform: none; } }
@keyframes heroV2Line { to { transform: scaleY(1); } }
@keyframes heroV2Gold { to { background-position: 0 0; } }
@keyframes heroV2Zoom { to { transform: scale(1); } }
@keyframes heroV2Scroll { 0% { top: -40%; } 100% { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hero-v2__video, .hero-v2__scroll-line::after { animation: none; transform: none; }
  .hero-v2__content > *, .hero-v2__footer, .hero-v2__content::before,
  .hero-v2.is-ready .hero-v2__content > *, .hero-v2.is-ready .hero-v2__footer,
  .hero-v2.is-ready .hero-v2__content::before, .hero-v2.is-ready .hero-v2__title .hero-gold-text {
    animation: none; opacity: 1; transform: none;
  }
}

/* espaço para o botão flutuante do WhatsApp (canto inferior direito) */
@media (min-width: 992px) {
  .hero-v2__footer { padding-right: 84px; }
}

/* ---------- notebook baixo (ex.: 1280×720, 1366×768) ---------- */
@media (min-width: 992px) and (max-height: 800px) {
  .hero-v2__inner { padding-top: 100px; padding-bottom: 28px; gap: 28px; }
  .hero-v2__eyebrow { margin-bottom: 14px; }
  .hero-v2__subtitle { margin-top: 18px; }
  .hero-v2__actions { margin-top: 26px; }
  .hero-v2__cta { min-height: 52px; }
  .hero-v2__footer { padding-top: 18px; }
  .hero-v2__launch { padding: 12px 48px 12px 16px; }
  .hero-v2__launch-name { font-size: 20px; }
}

/* ---------- tablet ---------- */
@media (max-width: 991.98px) {
  .hero-v2__shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, .8) 0%, rgba(5, 5, 5, 0) 26%),
      linear-gradient(0deg, var(--inf-preto) 0%, rgba(5, 5, 5, .82) 42%, rgba(5, 5, 5, .25) 75%, rgba(5, 5, 5, .1) 100%);
  }
  .hero-v2__launch { min-width: 0; }
}

/* ---------- celular ---------- */
@media (max-width: 767.98px) {
  .hero-v2__inner {
    padding: 120px 20px calc(92px + env(safe-area-inset-bottom, 0px)); /* acima da barra fixa Ligar/Agendar/WhatsApp */
    gap: 28px;
  }
  .hero-v2__content { padding-left: 18px; }
  .hero-v2__eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 18px; white-space: nowrap; }
  .hero-v2__place { font-size: 10.5px; letter-spacing: .26em; padding-left: 18px; }
  .hero-v2__title { font-size: clamp(40px, 12.4vw, 58px); letter-spacing: .02em; }
  .hero-v2__subtitle { margin-top: 20px; font-size: 15.5px; }
  .hero-v2__actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 30px; }
  .hero-v2__cta { width: 100%; padding: 0 22px; font-size: 12px; letter-spacing: .14em; }
  .hero-v2__link { align-self: center; }
  .hero-v2__footer, .hero-v2.is-ready .hero-v2__footer { border-top: 0; padding-top: 0; opacity: 1; transform: none; animation: none; }
  .hero-v2__scroll, .hero-v2__launch { display: none; }
  .hero-v2__aside { position: absolute; top: 96px; right: 20px; }
  .hero-v2__pause { width: 38px; height: 38px; font-size: 16px; }
}
