/* ============================================================
   testimonials.css
   Styles for the Testimonials carousel section.
   ============================================================ */

/* ---- Section shell ---- */
.testimonials-section {
  background-color: var(--color-background-1);
  padding-top: 130px;
  padding-bottom: 130px;
  overflow: hidden;
}

/* ---- Carousel container ---- */
.testimonials {
  position: relative;
  width: 100%;
}

/* ---- Slide track ---- */
.testimonials__track {
  position: relative;
  overflow: hidden;
}

/* ---- Individual slide ---- */
.testimonials__slide {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.testimonials__slide.is-active {
  display: flex;
}

/* ---- Avatar ---- */
.testimonials__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 24px;
}

.testimonials__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Star rating ---- */
.testimonials__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.testimonials__star {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ---- Review text ---- */
.testimonials__text {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-text-title);
  margin: 0 0 32px;
}

/* ---- Meta row: name + role ---- */
.testimonials__meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-body-family);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0;
}

.testimonials__name {
  font-weight: 600;
}

.testimonials__role {
  opacity: 0.6;
}

.testimonials__separator {
  margin: 0 6px;
  opacity: 0.4;
}

/* ---- Controls row: prev · dots · next ---- */
.testimonials__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

/* Prev / Next buttons */
.testimonials__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--duration-default),
              color var(--duration-default);
  flex-shrink: 0;
}

.testimonials__btn:hover {
  background-color: var(--color-text);
  color: var(--color-background-1);
}

.testimonials__btn svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

/* Dot indicators */
.testimonials__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-text);
  opacity: 0.2;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: opacity var(--duration-default),
              transform var(--duration-default);
}

.testimonials__dot.is-active {
  opacity: 1;
  transform: scale(1.25);
}

/* ---- Responsive ---- */
@media screen and (max-width: 749px) {
  .testimonials-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .testimonials__text {
    font-size: 22px;
  }

  .testimonials__controls {
    margin-top: 32px;
  }
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .testimonials-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
