/* ==========================================================================
   BTCMP STRATA — main.css
   Layout, seções, componentes e estados de interação
   ========================================================================== */

/* ==========================================================================
   1. PROGRESSO DE SCROLL
   ========================================================================== */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: var(--z-progress);
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ice-400), var(--ice-200), var(--gold));
  box-shadow: 0 0 14px rgba(145, 169, 184, 0.6);
  transform-origin: left center;
  transition: width 0.1s linear;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding: clamp(1rem, 2.5vw, 1.75rem) 0;
  transition: background-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out),
              padding 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(145, 169, 184, 0.12);
  padding: clamp(0.65rem, 1.6vw, 1rem) 0;
}
.site-header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.brand:hover {
  opacity: 0.82;
}
.brand:active {
  transform: scale(0.97);
}
.brand__logo {
  width: clamp(124px, 14vw, 158px);
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   3. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(7rem, 14vh, 11rem) clamp(4rem, 9vh, 7rem);
  padding-inline: 7vw;
  overflow: hidden;
  isolation: isolate;
}

/* --- Vídeo de fundo --- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  will-change: transform;
}

/* --- Vinheta para legibilidade do texto --- */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(1, 8, 14, 0) 35%, rgba(1, 8, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(1, 8, 14, 0.55) 0%, rgba(1, 8, 14, 0.15) 28%, rgba(1, 8, 14, 0.35) 60%, rgba(1, 8, 14, 0.9) 100%);
  pointer-events: none;
}

/* --- Véu sólido: dissolve o vídeo no scroll (controlado por GSAP) --- */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

/* --- Gradiente estático que funde o vídeo na cor da seção 2 --- */
.hero__fade {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 38%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 8, 14, 0) 0%, rgba(1, 8, 14, 0.65) 55%, var(--bg) 100%);
  pointer-events: none;
}

/* --- Conteúdo --- */
.hero__inner {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.5rem);
  width: 100%;
}

/* Título dividido (esquerda / direita) com o iceberg ao centro */
.hero__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  font-size: clamp(2.7rem, 8.2vw, 6.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero__col {
  display: flex;
  flex-direction: column;
}
.hero__col--right {
  text-align: right;
}
.hero__line {
  display: block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  will-change: transform, filter, opacity;
}

/* Bloco central (badges, sub, cta) */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.4rem, 3vh, 2.1rem);
  max-width: 720px;
  margin-inline: auto;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero__sub {
  max-width: 56ch;
  color: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.5vw, 1.22rem);
  line-height: 1.55;
}
.hero__sub strong {
  color: var(--text-strong);
}

/* Indicador de rolagem */
.hero__scroll-hint {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  color: var(--text-muted);
}
.hero__scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(145, 169, 184, 0.45);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ice-200);
  animation: scroll-dot 1.8s var(--ease-in-out) infinite;
}
.hero__scroll-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);   opacity: 0; }
  35%  { opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   4. BADGES (pílulas)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(215, 226, 234, 0.18);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge--accent {
  color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(230, 199, 126, 0.16), rgba(230, 199, 126, 0.06));
  border-color: rgba(230, 199, 126, 0.4);
}

/* ==========================================================================
   5. BOTÕES (todos os estados)
   ========================================================================== */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.04);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--text-strong);
  background: var(--btn-bg);
  border: 1px solid rgba(215, 226, 234, 0.28);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out),
              box-shadow 0.45s var(--ease-out),
              transform 0.25s var(--ease-out);
  will-change: transform;
}

/* brilho que varre o botão (camada animada) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--ice-50), var(--ice-200));
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  transition: transform 0.45s var(--ease-out);
}
.btn__icon svg {
  width: 100%;
  height: 100%;
}
.btn__label {
  position: relative;
}

/* Hover: preenche, inverte o texto, ganha brilho e eleva */
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: #04121c;
  border-color: transparent;
  box-shadow: var(--glow-ice), 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  transform: translateY(-3px);
}
.btn--ghost:hover::before,
.btn--ghost:focus-visible::before {
  transform: translateY(0);
}
.btn--ghost:hover .btn__icon {
  transform: scale(1.12) rotate(-6deg);
}

/* Estado pressionado */
.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: var(--glow-ice), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Botão sólido (seção 2) */
.btn--solid {
  color: #04121c;
  background: linear-gradient(180deg, var(--ice-50), var(--ice-200));
  border-color: transparent;
  box-shadow: 0 14px 40px -16px rgba(145, 169, 184, 0.55);
}
.btn--solid::before {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.btn--solid:hover,
.btn--solid:focus-visible {
  color: #1a1305;
  box-shadow: var(--glow-gold), 0 16px 40px -14px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}
.btn--solid:hover::before,
.btn--solid:focus-visible::before {
  transform: translateY(0);
}
.btn--solid:hover .btn__icon--right {
  transform: translateX(5px);
}
.btn__icon--right {
  transition: transform 0.45s var(--ease-out);
}

/* Estado desabilitado (utilitário) */
.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   6. SEÇÃO 2 — OFERTA
   ========================================================================== */
.offer {
  position: relative;
  background: var(--bg);
  min-height: 122vh;
  display: flex;
  align-items: center;
  padding-block: var(--section-pad);
  overflow: hidden;
  isolation: isolate;
}

/* Brilhos ambiente sutis */
.offer__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 50% at 18% 30%, rgba(70, 102, 122, 0.22), transparent 70%),
    radial-gradient(45% 45% at 85% 78%, rgba(230, 199, 126, 0.08), transparent 70%);
}

.offer__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

/* --- Coluna esquerda: espaço reservado p/ o card viajante (sticky) --- */
.offer__visual {
  position: relative;
  min-height: clamp(320px, 52vh, 540px);
}

/* --- Conteúdo de texto --- */
.offer__content {
  max-width: 560px;
}
.offer__title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.02;
  background: linear-gradient(170deg, #eaf3f9 0%, #aebecb 55%, #6a8492 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer__title-ellipsis {
  color: var(--ice-400);
  -webkit-text-fill-color: var(--ice-400);
}
.offer__title-sub {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.6rem);
  font-weight: 700;
  color: var(--text-strong);
}
.offer__lead {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1.05rem;
}

/* --- Checklist --- */
.checklist {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  will-change: transform, filter, opacity;
}
.checklist__item strong {
  color: var(--text-strong);
}
.checklist__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--ice-100);
  background: linear-gradient(180deg, rgba(95, 123, 140, 0.55), rgba(70, 102, 122, 0.35));
  border: 1px solid rgba(145, 169, 184, 0.4);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.checklist__icon svg {
  width: 15px;
  height: 15px;
}

.offer__cta {
  margin-top: clamp(2rem, 5vw, 2.8rem);
}

/* ==========================================================================
   6b. JORNADA DO CARD (sticky) — atravessa as seções 2 e 3
   ========================================================================== */
.reveal-journey {
  position: relative;
  /* recorta a saída do card pela direita sem criar scroll container
     (clip não quebra o position: sticky interno) */
  overflow-x: clip;
}

/* Container sticky de altura 0: fixa o card no centro vertical da viewport
   enquanto rola pelas seções 2 e 3, sem ocupar espaço no fluxo. */
.travel-card {
  position: sticky;
  top: 50%;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.travel-card__stage {
  position: relative;
}
.travel-card__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 64vw);
  transform: translateY(-50%); /* centra no ponto sticky; o GSAP anima a img */
}
.travel-card__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
  transform-origin: center center;
  will-change: transform, opacity, filter;
}
.travel-card__glow {
  position: absolute;
  inset: 8% 12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(230, 199, 126, 0.3), rgba(70, 102, 122, 0.14) 60%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
}

/* ==========================================================================
   6c. SEÇÃO 3 — DESCARTE (mesma cor de fundo da seção 2)
   ========================================================================== */
.discard {
  position: relative;
  background: var(--bg);
  min-height: 125vh;
  display: flex;
  align-items: center;
  padding-block: var(--section-pad);
}
.discard__inner {
  position: relative;
  z-index: 1;
}
.discard__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--text-strong);
  white-space: nowrap; /* só o <br> quebra → exatamente 2 linhas */
  will-change: transform, filter, opacity;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid rgba(145, 169, 184, 0.1);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.site-footer__logo {
  width: clamp(180px, 22vw, 240px);
  height: auto;
  opacity: 0.9;
}
.site-footer__tagline {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 38ch;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.site-footer__dot {
  opacity: 0.5;
}

/* ==========================================================================
   8. ESTADOS DE ANIMAÇÃO (anti-FOUC)
   Os elementos abaixo são revelados via GSAP. Quando o JS estiver ativo,
   começam ocultos; sem JS ou com reduced-motion, permanecem visíveis.
   ========================================================================== */
.js .reveal,
.js .hero__line,
.js .checklist__item,
.js .hero__badges,
.js .hero__sub,
.js .hero__cta,
.js .hero__scroll-hint,
.js .brand,
.js .offer__card {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .hero__line,
  .js .checklist__item,
  .js .hero__badges,
  .js .hero__sub,
  .js .hero__cta,
  .js .hero__scroll-hint,
  .js .brand,
  .js .travel-card__img {
    opacity: 1;
  }
}
