/* === HERO SLIDER — Frontend === */

.slowcadiz-hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 168px);
  overflow: hidden;
  background: #1f2a37;
}

.slowcadiz-hero-slider__viewport {
  width: 100%;
  height: 100%;
  position: relative;
}

.slowcadiz-hero-slider__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slowcadiz-hero-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slowcadiz-hero-slider__overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.35); */
  z-index: 1;
}

.slowcadiz-hero-slider__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  color: #fff;
}

/* === Dots === */

.slowcadiz-hero-slider__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.slowcadiz-hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.slowcadiz-hero-slider__dot:hover {
  border-color: #fff;
}

.slowcadiz-hero-slider__dot.is-active {
  background: #fff;
  border-color: #fff;
}

.slowcadiz-hero-slider__content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 1200px);
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  color: #fff;
}

.slowcadiz-hero-slider__content h1, .slowcadiz-hero-slider__content h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 5.5rem);
    line-height: 1.2;
}

.slowcadiz-hero-slider__content p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.slowcadiz-hero-slider__flex {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* === Nav arrows === */

.slowcadiz-hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.85;
}

.slowcadiz-hero-slider__nav--prev {
  left: 1rem;
}

.slowcadiz-hero-slider__nav--next {
  right: 1rem;
}

/* === Responsive === */

@media (max-width: 768px) {
  .slowcadiz-hero-slider {
    height: 100vh;
    max-height: 100dvh;
  }

  .slowcadiz-hero-slider__content {
    width: min(100% - 1.25rem, 1200px);
    padding: 1.5rem 0.75rem;
  }

  .slowcadiz-hero-slider__nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .slowcadiz-hero-slider__nav--prev {
    left: 0.5rem;
  }

  .slowcadiz-hero-slider__nav--next {
    right: 0.5rem;
  }

  .slowcadiz-hero-slider__dots {
    bottom: 1.25rem;
    gap: 0.5rem;
  }

  .slowcadiz-hero-slider__dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .slowcadiz-hero-slider__nav {
    display: none;
  }
}
