/* ============================================================
   HeroSlider – slider.css
   Supports multiple independent instances via .hs-slider.
   ============================================================ */

/* ---------- Container ---------- */
.hs-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  height: 88vh;
  min-height: 420px;
  max-height: 960px;
  user-select: none;
}

/* ---------- Slides wrapper ---------- */
.hs-slides {
  position: absolute;
  inset: 0;
}

/* ---------- Individual slide ---------- */
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.9s ease;
}

.hs-slide.hs-active {
  opacity: 1;
  z-index: 2;
}

/* Outgoing slide stays on top while fading out */
.hs-slide.hs-leaving {
  opacity: 0;
  z-index: 3;
  transition: opacity 0.9s ease;
}

/* ---------- Background layer (Ken Burns) ---------- */
.hs-slide-bg {
  position: absolute;
  /* Slightly oversize so the zoom never reveals edges */
  inset: -6%;
  background-size: cover;
  background-position: center center;
  will-change: transform;
  animation: none;
}

/* Ken Burns zoom – always running, loops continuously */
.hs-slide.hs-active .hs-slide-bg {
  animation: hs-ken-burns 7s ease-in-out infinite alternate;
}

@keyframes hs-ken-burns {
  from { transform: scale(1);    }
  to   { transform: scale(1.50); }
}

/* ---------- Gradient overlay ---------- */
.hs-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      transparent        100%);
}

/* ---------- Text content ---------- */
.hs-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hs-slide-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease 0.35s, transform 0.75s ease 0.35s;
}

.hs-slide-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  margin-top: 0.8rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease 0.60s, transform 0.75s ease 0.60s;
}

/* Animate text in when slide is active */
.hs-slide.hs-active .hs-slide-title,
.hs-slide.hs-active .hs-slide-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Arrow buttons ---------- */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.40);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  line-height: 1;
}

.hs-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.hs-arrow-prev { left: 1.5rem; }
.hs-arrow-next { right: 1.5rem; }

/* ---------- Dot navigation ---------- */
.hs-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.hs-dot.hs-dot-active {
  background: #fff;
  transform: scale(1.4);
}

.hs-dot:hover:not(.hs-dot-active) {
  background: rgba(255, 255, 255, 0.75);
}

/* ---------- Progress bar (auto-advance indicator) ---------- */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 10;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hs-slider {
    height: 60vh;
    min-height: 320px;
  }

  .hs-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .hs-arrow-prev { left: 0.75rem; }
  .hs-arrow-next { right: 0.75rem; }
}
