/* ============================================================
   Full-width homepage video hero — sits above the existing .hero
   section. Kept in its own file so styles.css stays untouched/diffable.
   ============================================================ */

.hero-video-section {
  position: relative;
  width: 100%;
  min-height: min(88vh, 780px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--brand-deep, #12325E);
}

/* ---- Background layer (fallback base + optional video stack) ---- */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fallback-gradient,
.hero-fallback-image {
  position: absolute;
  inset: 0;
}
.hero-fallback-gradient {
  background: var(--grad-brand, linear-gradient(120deg, #12325E 0%, #1F4E8C 45%, #2E75B6 100%));
}
.hero-fallback-image {
  background-size: cover;
  background-position: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none; /* no controls, no accidental interaction */
}
.hero-bg-video.is-active { opacity: 1; }

/* Dark scrim for text legibility, plus the same soft fade into the
   section below that the rest of the site's page-heroes use. */
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(9, 25, 47, 0.62) 0%, rgba(9, 25, 47, 0.34) 48%, rgba(9, 25, 47, 0.15) 100%),
    linear-gradient(180deg, rgba(9, 25, 47, 0.1) 0%, rgba(9, 25, 47, 0) 55%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

/* ---- Foreground content ---- */
.hero-video-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-8) 0 var(--space-9);
}

.hero-video-overlay-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-video-copy .lead {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  font-size: clamp(16px, 1.7vw, 20px);
  max-width: 50ch;
}

.hero-video-card.hero-card {
  margin-top: 0;
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 960px) {
  .hero-video-overlay-grid {
    grid-template-columns: 1fr;
  }
  .hero-video-card.hero-card {
    margin-left: 0;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .hero-video-section {
    min-height: min(72vh, 620px);
  }
  .hero-video-overlay {
    padding: var(--space-7) 0 var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
}
