/* Hero background slideshow — Amperion Group (AGES) */

.hero-slides,
.hero-slides-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 9s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Keeps headline + body copy readable over the artwork */
.hero-slides-overlay {
  background:
    linear-gradient(90deg, rgba(18,33,29,0.93) 0%, rgba(18,33,29,0.86) 38%, rgba(18,33,29,0.52) 68%, rgba(18,33,29,0.08) 100%),
    linear-gradient(180deg, rgba(18,33,29,0.3) 0%, rgba(18,33,29,0) 30%, rgba(18,33,29,0.45) 100%);
}
.hero.has-slides h1,
.hero.has-slides .lede { text-shadow: 0 2px 18px rgba(8,16,13,0.55); }
@media (max-width: 900px) {
  .hero-slides-overlay { background: rgba(18,33,29,0.82); }
}

/* Controls */
.hero-slides-ui {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--slate-300);
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-slides-label { transition: opacity 0.4s ease; }
.hero-slides-dots { display: flex; gap: 8px; }
.hero-slides-dots button {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.hero-slides-dots button:hover { background: rgba(255,255,255,0.55); }
.hero-slides-dots button.is-active { background: var(--green-400); width: 40px; }
.hero-slides-dots button:focus-visible { outline: 2px solid var(--lime-400); outline-offset: 3px; }

@media (max-width: 640px) {
  .hero-slides-ui { left: 24px; right: auto; bottom: 14px; }
  .hero-slides-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active { animation: none; }
}
