/* ============================================================
   hero.css — Fullscreen hero section + video overlay
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-navy);
}

/* ── Video / poster background ─────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

/* CSS gradient fallback when no video */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0A1628 0%,
    #0A2342 40%,
    #0D2E52 70%,
    #091424 100%
  );
  z-index: 0;
}

/* Cinematic overlays */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* top vignette */
    linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, transparent 30%),
    /* bottom vignette — stronger, for text readability */
    linear-gradient(0deg, rgba(10, 22, 40, 0.85) 0%, transparent 50%),
    /* radial centre mask */
    radial-gradient(ellipse 80% 60% at 50% 60%, transparent 30%, rgba(10, 22, 40, 0.45) 100%);
}

/* Fine noise texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* ── Content ───────────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding-inline: var(--container-pad);
  padding-block: var(--space-32) var(--space-24);
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: var(--space-6);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(44, 165, 141, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(44, 165, 141, 0.08);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: var(--fw-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--color-white);
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.hero__title .accent {
  color: var(--color-teal);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  font-weight: var(--fw-regular);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.70);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* ── CTA group ──────────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── Stats strip (optional trust signals) ───────────────────── */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-16);
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  color: var(--color-teal-light);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-1);
  letter-spacing: 0.02em;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* ── Scroll indicator ───────────────────────────────────────── */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.40);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.hero__scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.70);
}

.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 11px;
  position: relative;
}

.hero__scroll-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scroll-bounce 2s var(--ease-in-out) infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}


/* ── Compact hero (inner pages, with background image) ────────── */
.hero--compact {
  min-height: 100dvh;
  background-color: var(--color-navy);
}

.hero--compact .hero__scroll-indicator {
  display: none;
}

.hero--compact .hero__noise {
  opacity: 0.035;
}

.hero--compact .hero__content {
  position: relative;
  z-index: 3;
}

.hero--compact-short {
  min-height: 50vh;
}
