/* hero-slider.css — the home page's animated hero slider (HeroSlider.tsx).
   Kept out of global.css per Round 9 scope: this is new, self-contained
   styling for one component, not a shared/legacy rule-set.

   Structure recap (see HeroSlider.tsx):
     .v31-hero-slider        fills the existing .v24-hero section (absolute
                             inset:0), replacing the old static
                             .v24-hero-image + .v24-hero-shade pair.
       .v31-hero-slides      holds one .v31-hero-slide per slide (crossfade).
       .v24-hero-shade       unchanged existing dark gradient overlay.
       .container .v24-hero-container   unchanged existing content column;
         .v24-hero-content.v31-hero-copy   the per-slide kicker/h1/p/actions,
                                            keyed by slide id so it remounts
                                            (and re-plays its entrance
                                            animation) on every slide change.
       .v31-hero-dots        pagination dots (hidden when there is only one
                             slide, i.e. the pre-migration fallback state).
*/

.v31-hero-slider {
  position: absolute;
  inset: 0;
}

.v31-hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.v31-hero-slide {
  position: absolute;
  inset: 0;
  background-position: center 56%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease;
  will-change: opacity, transform;
}

.v31-hero-slide.active {
  opacity: 1;
  animation: v31-kenburns 9s ease-in-out infinite alternate;
}

@keyframes v31-kenburns {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1.14);
  }
}

/* Per-slide entrance animation for the headline/subhead/CTA column. */
.v31-hero-copy {
  animation: v31-copy-in 0.65s ease both;
}

@keyframes v31-copy-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.v31-hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.v31-hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.25s ease;
}

.v31-hero-dot.active {
  width: 28px;
  background: var(--v24-gold-light, #e4c687);
  border-color: var(--v24-gold-light, #e4c687);
}

.v31-hero-dot:hover {
  border-color: var(--v24-gold-light, #e4c687);
}

@media (max-width: 767px) {
  .v31-hero-dots {
    bottom: 16px;
  }
}

/* prefers-reduced-motion: disable the continuous Ken-Burns zoom and the
   entrance animation; slides still change (autoplay is stopped entirely in
   JS) but do so as a hard cross-fade with no motion. */
@media (prefers-reduced-motion: reduce) {
  .v31-hero-slide {
    transition: opacity 0.01s linear;
  }
  .v31-hero-slide.active {
    animation: none;
    transform: scale(1.025);
  }
  .v31-hero-copy {
    animation: none;
  }
}
