/* ==========================================================================
   07. HERO & HERO SLIDER
   The slider is a full-bleed background layer; .hero-overlay is the scrim
   that keeps the heading readable over any photo.
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  padding-block: clamp(var(--sp-6), 8vw, var(--sp-8)) var(--sp-7);
  overflow: hidden;
  background: var(--navy-900); /* shows briefly while the slider photos load */
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 640px; }

.hero-content h1 { margin-bottom: var(--sp-3); color: var(--white); }

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: var(--sp-4);
}

/* --- Slider --------------------------------------------------------------- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--navy-900);
}

.hero-slider:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: -3px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(10, 25, 48, 0.92) 0%,
    rgba(10, 25, 48, 0.72) 40%,
    rgba(10, 25, 48, 0.42) 68%,
    rgba(10, 25, 48, 0.22) 100%
  );
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Slider controls ------------------------------------------------------ */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 25, 48, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hero-slider-arrow:hover { background: rgba(10, 25, 48, 0.8); }
.hero-slider-arrow:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.hero-slider-arrow.prev { left: var(--sp-2); }
.hero-slider-arrow.next { right: var(--sp-2); }

.hero-slider-dots {
  position: absolute;
  bottom: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(10, 25, 48, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hero-slider-dot:hover { background: rgba(255, 255, 255, 0.85); }
.hero-slider-dot:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.hero-slider-dot.is-active { background: var(--accent-500); transform: scale(1.25); }
