/* SESCAP-LDR · hero2.css — Variação B (immersive dark hero, split-color H1) */

/* ===== Hero 2 ===== */
.hero2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--ink-950);
}

.hero2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* ATENÇÃO: a mesma URL (com o ?v=) está no preload de Views/Home/Index.cshtml e em overrides.css.
     Trocou a versão aqui, troque lá — senão o banner volta a ser baixado duas vezes. O teste
     Preload_DoHero_UsaAMesmaUrlDoCss confere. */
  background: url("../assets/hero/hero-img.webp?v=20261019b") center / cover no-repeat;
  background-position: center 30%;
}

.hero2__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Vinheta sutil + escurecimento à esquerda só pra garantir contraste do texto.
     Grafite (--ink-950) em vez de petróleo: o overlay tingia a foto inteira de azul. */
  background:
    linear-gradient(90deg,
      rgba(11, 11, 13, .72) 0%,
      rgba(11, 11, 13, .42) 35%,
      rgba(11, 11, 13, .15) 60%,
      rgba(11, 11, 13, .25) 100%);
}

.hero2__inner {
  position: relative;
  z-index: 3;
  /* Top padding accommodates the fixed header (72px) + breathing room */
  padding-block: clamp(160px, 14vw, 240px) clamp(220px, 22vw, 360px);
}

.hero2__grid {
  display: grid;
  gap: 56px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero2__grid {
    grid-template-columns: 560px 1fr;
    gap: 77px;
    align-items: end;
  }
}

/* ---- Copy column ---- */
.hero2__copy { max-width: 560px; }

.hero2__copy .eyebrow {
  color: rgba(255, 255, 255, .72);
  margin-bottom: 20px;
}
.hero2__copy .eyebrow b { color: #fff; }

.hero2__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.8vw, 80px);
  line-height: 1;
  letter-spacing: -0.030em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero2__h1__yellow { color: var(--brand-yellow); }
.hero2__h1__white  { color: #fff; }

.hero2__sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(232, 230, 222, .92);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.hero2__actions .btn--primary {
  background: #fff;
  color: var(--ink-900);
}
.hero2__actions .btn--primary:hover {
  background: var(--ink-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hero2__actions .btn--primary .chev { color: var(--brand-yellow); }
.hero2__actions .btn--tertiary {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.hero2__actions .btn--tertiary:hover {
  color: #fff;
  text-decoration-color: var(--brand-yellow);
}

.hero2__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13px;
  color: rgba(229, 227, 220, .80);
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero2__trust li { display: inline-flex; }
.hero2__trust span { display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; }
.hero2__trust b { color: #fff; font-weight: 600; }
.hero2__trust svg { color: var(--brand-yellow); flex-shrink: 0; }

/* ---- Card column ---- */
.hero2__card-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.hero2__card-wrap .hero-card {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 492px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, .38),
    0 8px 16px rgba(0, 0, 0, .22),
    0 1px 2px rgba(254, 208, 36, .10);
}
@media (max-width: 899px) {
  .hero2__card-wrap { justify-content: flex-start; margin-top: 12px; }
}

/* ---- Decorative wave-vector (assets/wave-vector.svg, native 1920x457) ---- */
.hero2__waves {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
  user-select: none;
}

/* ---- Partner logo strip (Figma: 1130×114 floating over waves) ---- */
.hero2__partners {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(48px, 6vw, 96px);
  z-index: 4;
  pointer-events: auto;
}
.hero2__partners .container { padding-inline: 24px; }
.hero2__partners__strip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .22),
    0 4px 10px rgba(0, 0, 0, .10);
  padding: 22px 32px;
  min-height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}
.hero2__partners__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  flex-shrink: 0;
}
.hero2__partners__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero2__partners__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: hero2-ticker 28s linear infinite;
}
.hero2__partners__viewport:hover .hero2__partners__track { animation-play-state: paused; }
@keyframes hero2-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero2__partners__track .partner-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink-700);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: .82;
  transition: opacity var(--dur) var(--ease);
}
.hero2__partners__track .partner-mark:hover { opacity: 1; }
.hero2__partners__track .partner-mark__symbol {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-700);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero2__partners__label { display: none; }
  .hero2__partners__strip { padding: 18px 22px; min-height: 88px; }
  .hero2__partners__track { gap: 28px; }
}

/* Mobile tweaks */
@media (max-width: 899px) {
  .hero2__inner { padding-block: 80px 160px; }
  .hero2__h1 { font-size: clamp(40px, 9vw, 56px); }
  .hero2__waves { height: 200px; }
}
@media (max-width: 540px) {
  .hero2__sub { font-size: 16px; }
  .hero2__actions { gap: 14px; }
  .hero2__actions .btn--lg { width: 100%; justify-content: center; }
}

/* ---- Header: fixed + transparent over hero2, opaque on scroll ---- */
.has-hero2 .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.has-hero2 body { padding-top: 0; }
/* Hero starts at top of viewport, behind the fixed header */
.has-hero2 .hero2 { margin-top: 0; }
/* Desativa o flex-reorder do index.html (V1) — em V2 usamos ordem natural do DOM */
.has-hero2 #main {
  display: block;
}
.has-hero2 #main > * { order: 0 !important; }
/* Bump logo +20% only on hero2 page (31px → 37px) — força aspect ratio do viewBox */
.has-hero2 .site-header__logo svg {
  height: 37px;
  width: auto;
  min-width: 135px; /* 37 × (1181/324) ≈ 135 — preserva proporção e evita corte de "LDR" */
  flex-shrink: 0;
}
/* Initial state (over dark hero): white text/logo */
.has-hero2 .site-header__logo svg path[fill="#1E1E1E"] { fill: #fff; transition: fill var(--dur) var(--ease); }
.has-hero2 .nav__link,
.has-hero2 .nav__link svg {
  color: rgba(255, 255, 255, .92);
  transition: color var(--dur) var(--ease);
}
.has-hero2 .nav__link:hover { color: #fff; }
.has-hero2 .nav__group:hover > .nav__link { color: #fff; }
.has-hero2 .nav__burger {
  color: #fff;
  transition: color var(--dur) var(--ease);
}
.has-hero2 .nav__actions .btn--primary {
  background: #fff;
  color: var(--ink-900);
}
.has-hero2 .nav__actions .btn--primary:hover { background: var(--ink-100); }
.has-hero2 .nav__actions .btn--primary .chev { color: var(--brand-yellow); }
/* Área do Associado sobre a hero escura */
.has-hero2 .member-area__btn {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.has-hero2 .member-area__btn:hover {
  background: #fff;
  color: var(--ink-950);
  border-color: #fff;
}

/* Scrolled state (off the hero, light content behind): solid white, dark text */
.has-hero2 .site-header.is-scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(11, 11, 13, .06);
}
.has-hero2 .site-header.is-scrolled .site-header__logo svg path[fill="#1E1E1E"] { fill: #1E1E1E; }
.has-hero2 .site-header.is-scrolled .nav__link,
.has-hero2 .site-header.is-scrolled .nav__link svg {
  color: var(--ink-700);
}
.has-hero2 .site-header.is-scrolled .nav__link:hover { color: var(--ink-900); }
.has-hero2 .site-header.is-scrolled .nav__burger { color: var(--ink-900); }
.has-hero2 .site-header.is-scrolled .nav__actions .btn--primary {
  background: var(--ink-900);
  color: #fff;
}
.has-hero2 .site-header.is-scrolled .nav__actions .btn--primary:hover { background: var(--ink-800); }
.has-hero2 .site-header.is-scrolled .member-area__btn {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-800);
}
.has-hero2 .site-header.is-scrolled .member-area__btn:hover {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
