/* Homepage hero — full-width image slider */

.hero-slider-section {
  margin-top: 0;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 55vh, 520px);
  background: #f4f0f2;
  touch-action: pan-y;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 56px;
  text-align: center;
  z-index: 2;
}

.hero-slide__panel {
  max-width: 760px;
  width: 100%;
}

.hero-slide__title {
  margin: 0;
  color: #fff;
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-slide__title b {
  font-weight: 700;
}

.hero-slide__text {
  margin: 14px auto 0;
  max-width: 640px;
  color: #fff;
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-slide__btn {
  margin-top: 22px;
}

.hero-slide__btn .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 2px solid #e54282;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-slide__btn .btn:hover {
  background: #e54282;
  color: #fff;
  transform: translateY(-1px);
}

.hero-slide.is-active .hero-slide__panel > * {
  animation: heroSlideUp 0.75s ease both;
}

.hero-slide.is-active .hero-slide__text {
  animation-delay: 0.12s;
}

.hero-slide.is-active .hero-slide__btn {
  animation-delay: 0.24s;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #e54282;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-slider__arrow:hover {
  background: #e54282;
  color: #fff;
}

.hero-slider__arrow--prev {
  left: 14px;
}

.hero-slider__arrow--next {
  right: 14px;
}

.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-slider__dot.is-active {
  width: 28px;
  background: #e54282;
}

@media (max-width: 767px) {
  .hero-slider {
    height: clamp(300px, 48vh, 400px);
    min-height: 300px;
  }

  .hero-slide__content {
    padding: 16px 12px 48px;
  }

  .hero-slide__title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .hero-slide__text {
    font-size: 0.8rem;
    margin-top: 10px;
    padding: 0 6px;
  }

  .hero-slide__btn {
    margin-top: 16px;
  }

  .hero-slide__btn .btn {
    font-size: 13px;
    padding: 10px 22px;
  }

  .hero-slider__arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .hero-slider__arrow--prev {
    left: 8px;
  }

  .hero-slider__arrow--next {
    right: 8px;
  }

  .hero-slider__dots {
    bottom: 10px;
  }
}

@media (max-width: 575px) {
  .hero-slider {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active .hero-slide__panel > * {
    transition: none;
    animation: none;
  }
}
