.hero-slider {
  position: relative;
  height: clamp(480px, 72vh, 660px);
  overflow: hidden;
  /* background: var(--hp-brand-dark, #0f2438); */
  background: #0d2824;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slider .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(13, 40, 36, 0.85) 0%,
    rgba(13, 40, 36, 0.6) 45%,
    rgba(13, 40, 36, 0.3) 100%
  );
}

.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
}

.hero-slider .slide.active .slide-bg {
  animation: hp-hero-kenburns 7s ease forwards;
}

@keyframes hp-hero-kenburns {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.15);
  }
}

.hero-slider .slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.hero-slider .kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.hero-slider .slide-content h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-slider .slide-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.hero-slider .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}

.hero-slider .btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.hero-slider .btn-outline:hover {
  background: var(--hp-accent, #d4a860);
  color: #fff;
  border-color: var(--hp-accent, #d4a860);
  transform: translateY(-2px);
}

.hero-slider .slide.active .slide-content > * {
  animation: hp-hero-fadeUp 0.7s ease both;
}

.hero-slider .slide.active .slide-content > *:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-slider .slide.active .slide-content > *:nth-child(3) {
  animation-delay: 0.2s;
}

.hero-slider .slide.active .slide-content > *:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes hp-hero-fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- slider controls ---------- */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-slider .dot {
  position: relative;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.hero-slider .dot-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: var(--hp-accent, #d4a860);
}

.hero-slider .dot.done .dot-fill {
  width: 100%;
}

.hero-slider .dot.active .dot-fill {
  width: 0%;
  animation: hp-hero-dotFill linear forwards;
  animation-duration: var(--slide-interval, 5s);
}

.hero-slider.is-paused .dot.active .dot-fill {
  animation-play-state: paused;
}

@keyframes hp-hero-dotFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .dot.active .dot-fill {
    animation: none;
    width: 100%;
  }
  .hero-slider .slide.active .slide-bg {
    animation: none;
    transform: scale(1.05);
  }
}

.hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.hero-slider .slider-arrow:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hero-slider .slider-arrow.prev {
  left: 20px;
}

.hero-slider .slider-arrow.next {
  right: 20px;
}

@media (max-width: 640px) {
  .hero-slider .slider-arrow {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero-slider .slide-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-slider .slide-content h1 {
    font-size: 1.4rem;
  }

  .hero-slider .slide-content p {
    font-size: 1rem;
  }
}
