/* Client quote carousel, adapted from the reference's dark three-card layout. */
#testimonials {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 7.5vw, 112px) 0 94px;
  background: #452b4d;
  color: #fff;
}

#testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 7%, rgba(176, 3, 137, .18), transparent 55%),
    linear-gradient(180deg, #513158, #3e2949 82%);
  border-block: 1px solid #a76a9b55;
  pointer-events: none;
}

#testimonials .testimonial-heading {
  max-width: 770px;
  margin: 0 auto;
  text-align: center;
}

#testimonials .testimonial-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 34px;
  color: #f5d8ec;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

#testimonials .testimonial-eyebrow::before,
#testimonials .testimonial-eyebrow::after {
  content: "";
  width: 78px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b00389, #e9a3d5);
  box-shadow: 0 0 12px #b0038970;
}

#testimonials .testimonial-eyebrow::after { transform: rotate(180deg); }

#testimonials .testimonial-heading .hp-title {
  max-width: 680px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(42px, 4.7vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.055em;
}

#testimonials .testimonial-heading .hp-title em { color: #ed91d8; }

#testimonials .testimonial-intro {
  max-width: 590px;
  margin: 0 auto;
  color: #c7b9ca;
  font-size: 17px;
  line-height: 1.6;
}

#testimonials .testimonial-carousel {
  margin-top: 46px;
  --testimonial-gap: 22px;
  --testimonial-visible: 3;
}

#testimonials .testimonial-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

#testimonials .testimonial-viewport::-webkit-scrollbar { display: none; }
#testimonials .testimonial-carousel.is-enhanced .testimonial-viewport { overflow: hidden; touch-action: pan-y; scroll-snap-type: none; }

#testimonials .testimonial-track {
  display: flex;
  align-items: stretch;
  gap: var(--testimonial-gap);
  transition: transform 300ms ease;
  will-change: transform;
}

#testimonials .testimonial-carousel.is-enhanced .testimonial-track { gap: 0; }

#testimonials .testimonial-page {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  gap: var(--testimonial-gap);
  min-width: 0;
}

#testimonials .testimonial-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - (var(--testimonial-visible) - 1) * var(--testimonial-gap)) / var(--testimonial-visible));
  flex-direction: column;
  min-width: 0;
  min-height: 382px;
  margin: 0;
  padding: 30px 28px 27px;
  overflow: hidden;
  border: 1px solid #50405b;
  border-radius: 16px;
  background: linear-gradient(135deg, #231a2c, #1a1423 72%, #2a1b35);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .16);
  color: #f7f0f8;
  scroll-snap-align: start;
}

#testimonials .testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff09 1px, transparent 1px),
    linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: 33px 33px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}

#testimonials .testimonial-card > * { position: relative; }

#testimonials .testimonial-card-top {
  display: flex;
  align-items: center;
  min-height: 35px;
  color: #d77ac0;
}

#testimonials .testimonial-stars {
  color: #c56bb8;
  font-size: 23px;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 0 17px #b0038970;
  white-space: nowrap;
}

#testimonials .testimonial-quote-symbol {
  height: 37px;
  color: #ce79bc;
  font-family: Georgia, serif;
  font-size: 59px;
  line-height: .8;
  text-shadow: 0 0 15px #b0038940;
}

#testimonials .testimonial-card blockquote {
  flex: 1;
  margin: 24px 0 29px;
  color: #e8dfe9;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -.015em;
}

#testimonials .testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: #c5b7c7;
  font-size: 13px;
  line-height: 1.3;
}

#testimonials .testimonial-avatar {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #c88cb9;
  border-radius: 50%;
  background: linear-gradient(140deg, #a52983, #54345d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}

#testimonials .testimonial-card figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

#testimonials .testimonial-card figcaption span:last-child { display: block; }

#testimonials .testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 27px;
}

#testimonials .testimonial-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #88808f;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}

#testimonials .testimonial-dots button[aria-current="true"] {
  background: #fff;
  transform: scale(1.08);
}

#testimonials .testimonial-dots button:hover { background: #e19ad0; }
#testimonials .testimonial-dots button:focus-visible { outline: 3px solid #ed91d8; outline-offset: 4px; }

#testimonials .testimonial-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#testimonials.is-animating-in .testimonial-heading,
#testimonials.is-animating-in .testimonial-carousel {
  opacity: 0;
  transform: translateY(22px);
}

#testimonials .testimonial-heading,
#testimonials .testimonial-carousel {
  transition: opacity .55s ease, transform .55s ease;
}

#testimonials.is-visible .testimonial-heading,
#testimonials.is-visible .testimonial-carousel {
  opacity: 1;
  transform: translateY(0);
}

#testimonials.is-visible .testimonial-carousel { transition-delay: .12s; }

@media (max-width: 1050px) {
  #testimonials .testimonial-carousel { --testimonial-visible: 2; }
}

@media (max-width: 700px) {
  #testimonials { padding: 72px 0 70px; }
  #testimonials .testimonial-heading .hp-title { font-size: clamp(36px, 9vw, 45px); }
  #testimonials .testimonial-eyebrow { gap: 12px; margin-bottom: 27px; font-size: 13px; }
  #testimonials .testimonial-eyebrow::before,
  #testimonials .testimonial-eyebrow::after { width: 55px; }
  #testimonials .testimonial-intro { font-size: 16px; }
  #testimonials .testimonial-carousel { --testimonial-visible: 1; margin-top: 36px; }
  #testimonials .testimonial-card { min-height: 340px; padding: 27px 24px 25px; }
  #testimonials .testimonial-card blockquote { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #testimonials .testimonial-track,
  #testimonials .testimonial-heading,
  #testimonials .testimonial-carousel,
  #testimonials .testimonial-dots button { transition: none !important; }
  #testimonials.is-animating-in .testimonial-heading,
  #testimonials.is-animating-in .testimonial-carousel { opacity: 1; transform: none; }
}
