/*
  Hero — full-bleed photo with a navy overlay (color/opacity measured from
  the pptx, see --color-overlay-navy / --overlay-hero-opacity in
  tokens.css) and a dark banner strip beneath it, matching the shared
  NAVIGATOR Group template seen in references/home/1, hero/.
*/

.hero__media {
  position: relative;
  /* +40px over the original clamp(360px, 56vw, 640px): the header got
     ~40px shorter (smaller logo + tighter padding) when its height was
     reduced, so the hero absorbs that back to keep the same total
     above-the-fold composition. */
  min-height: clamp(400px, 56vw, 680px);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* --color-overlay-navy (#23304d) at --overlay-hero-opacity (0.85),
     written literally since these tokens hold a hex + a bare number. */
  background: rgba(35, 48, 77, 0.85);
}

/*
  .hero__content also carries the shared .container class (same
  max-width/margin-auto/padding-inline as the utility bar, header, and
  banner strip) so its left edge lines up with theirs at every desktop/
  laptop/wide width — position:absolute + a .container's centering still
  works since inset:0 gives it explicit left/right to center within.
  Text-column width is capped on the headline/subline themselves instead
  of here, so this element doesn't fight .container's own max-width.
*/
.hero__content {
  position: absolute;
  inset: 0;
  z-index: var(--z-elevated);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-8);
}

.hero__headline {
  max-width: 640px;
  color: var(--color-white);
  font-weight: var(--fw-black);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}

.hero__subline {
  max-width: 640px;
  margin-top: var(--space-5);
  color: var(--color-white);
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  opacity: 0.92;
}

.hero__banner {
  background: var(--color-navy-900);
  color: var(--color-white);
}

.hero__banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.hero__banner-text {
  font-size: var(--fs-lead);
  font-weight: var(--fw-light);
}

.hero__banner-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: none;
  background: var(--color-red-600);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-red);
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring);
}

.hero__banner-cta:hover {
  background: var(--color-red-700);
}

.hero__banner-cta:active {
  transform: scale(0.97);
}

/* ---- Tablet / mobile (<= 768px) ---- */
@media (max-width: 768px) {
  .hero__content {
    padding-block: var(--space-7);
  }

  .hero__headline,
  .hero__subline {
    max-width: 100%;
  }

  .hero__banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .hero__banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Mobile (<= 480px) ---- */
@media (max-width: 480px) {
  .hero__media {
    min-height: 450px;
  }

  .hero__image {
    object-position: 65% center;
  }
}
