/* Hero — golden reference module.
   v5: .hero-cta layout moved to css/main.css (it is shared with cta-band + page-header; module.css only loads with the hero).
   Self-contained (hybrid CSS model): all .hero* rules live here and read the
   global theme tokens defined in css/main.css :root (--navy, --yellow, --grad-hero, etc.).
   Shared primitives (.btn, .container, .eyebrow) stay in main.css. */

.hero {
  position: relative;
  /* R1-D02.1: the stacked-declaration "fallback" that used to sit above this line never ran and the
     comment claiming it did was wrong. An invalid substitution UNSETS the property; it does not fall
     back through the cascade. --grad-hero is now always a valid value (see the @supports blocks in
     main.css), and the var() fallback argument below covers the one case it actually covers: contexts
     where the theme stylesheet is absent, such as section-picker thumbnails. */
  background: var(--grad-hero, linear-gradient(135deg,#06182E 0%,#0B2545 50%,#243262 100%));
  color: #fff;
  overflow: hidden;
}
.hero--image { background-size: cover; background-position: center; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 96px 24px 72px;
}
.hero--video .hero-inner,
.hero--image .hero-inner { grid-template-columns: 1fr; }

.hero-text { min-width: 0; }
.hero--center .hero-inner { grid-template-columns: 1fr; justify-items: center; }
.hero--center .hero-text { text-align: center; max-width: 760px; }
.hero--center .hero-cta,
.hero--center .hero-trust-row { justify-content: center; }

.hero h1 { color: #fff; max-width: 18ch; margin: 0; }
.hero-accent { color: var(--accent-on-dark, #FFB703); display: block; font-weight: 300; } /* v5: derived token — a dark brand accent is lifted to >= 4.5:1 on the hero */
.hero-sub { font-size: 19px; max-width: 62ch; opacity: 0.92; margin: 24px 0 32px; }

.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.hero .btn-ghost:hover { color: var(--ink-dark); background: #fff; border-color: #fff; }

.hero-trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  color: #fff; text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
}
a.hero-pill:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.30); }
.hero-pill .pill-accent { display: inline-flex; color: var(--accent-on-dark, #FFB703); }

.hero-graphic { display: flex; justify-content: center; }
.hero-graphic svg { width: 100%; max-width: 380px; height: auto; }

.hero-banner {
  position: relative; z-index: 2;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0; font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
}

/* RTL */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero-sub { margin-left: auto; }

/* Responsive */
@media (max-width: 767px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 48px; }
  .hero-graphic { display: none; }
  .hero-video { display: none; }
  .hero-pill { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
