/* ==========================================================================
   Section: Quote Slider
   ========================================================================== */

.section-quote-slider {
  position: relative;
  background: var(--color-bg);
  /* padding: 120px 0; */
  padding-bottom: 5rem;
}

.quote-slider__heading {
  font-family: var(--font-heading);
  color: var(--color-black);
  font-family: Rethink Sans;
  font-weight: 800;
  font-size: 42px;
  line-height: 43px;
  letter-spacing: 0%;
  text-align: center;
  width: 100%;
  max-width: 65rem;
  margin: 1rem auto;
  padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   Slider frame
   -------------------------------------------------------------------------- */

.quote-slider {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.quote-slider__viewport {
  overflow: hidden;
}

.quote-slider__track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  transform: translate3d(0, 0, 0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.quote-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  text-align: center;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.quote-slider__slide.is-active {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */

.quote-slide__stars {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 24px;
  color: var(--color-muted-light);
}

.quote-slide__star {
  width: 20px;
  height: 20px;
  display: block;
}

.quote-slide__star.is-on {
  color: var(--color-cta);
}

/* --------------------------------------------------------------------------
   Quote text
   -------------------------------------------------------------------------- */

.quote-slide__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw + 14px, 32px);
  line-height: 1.35;
  color: var(--color-black);
  margin: 0 auto 40px;
  max-width: 760px;
  quotes: none;
}

.quote-slide__text::before,
.quote-slide__text::after {
  content: none;
}

/* --------------------------------------------------------------------------
   Author block
   -------------------------------------------------------------------------- */

.quote-slide__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.quote-slide__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--color-bg-alt);
}

.quote-slide__avatar--placeholder {
  background: var(--color-muted-light);
}

.quote-slide__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quote-slide__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.3;
  color: var(--color-black);
}

.quote-slide__role {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.3;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Dot pagination
   -------------------------------------------------------------------------- */

.quote-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 0;
}

.quote-slider__dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.quote-slider__dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted-light);
  transition:
    background-color var(--duration-fast) ease,
    transform var(--duration-base) ease;
}

.quote-slider__dot:hover .quote-slider__dot-inner,
.quote-slider__dot:focus-visible .quote-slider__dot-inner {
  background: var(--color-muted);
}

.quote-slider__dot.is-active .quote-slider__dot-inner {
  background: var(--color-cta);
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1023px) {
  .section-quote-slider {
    padding: 96px 0;
  }
  .quote-slider__heading {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 767px) {
  .section-quote-slider {
    padding: 56px 0 64px;
  }
  .quote-slider__heading {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 28px;
  }
  .quote-slide__stars {
    margin-bottom: 16px;
    gap: 4px;
  }
  .quote-slide__star {
    width: 18px;
    height: 18px;
  }
  .quote-slide__text {
    margin-bottom: 24px;
    line-height: 1.4;
  }
  .quote-slider__dots {
    margin-top: 24px;
    gap: 10px;
  }
  .quote-slide__author {
    gap: 10px;
  }
  .quote-slide__avatar {
    width: 48px;
    height: 48px;
  }
  .quote-slide__name,
  .quote-slide__role {
    font-size: 14px;
  }
}

@media screen and (max-width: 479px) {
  .section-quote-slider {
    padding: 40px 0 48px;
  }
  .quote-slider__heading {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 0.75rem;
  }
  .quote-slider__slide {
    padding: 0 8px;
  }
  .quote-slide__text {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .quote-slide__stars {
    margin-bottom: 14px;
  }
  .quote-slide__star {
    width: 16px;
    height: 16px;
  }
  .quote-slide__avatar {
    width: 44px;
    height: 44px;
  }
  .quote-slider__dots {
    margin-top: 20px;
  }
  .quote-slider__dot {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-slider__track,
  .quote-slider__slide,
  .quote-slider__dot-inner {
    transition: none;
  }
}
