/* ==========================================================================
   HAVEN MALL - Testimonials ("Loved by Many") — cream auto-scroll carousel
   ========================================================================== */

.testimonials-section {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 165, 2, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(31, 40, 42, 0.04), transparent 50%),
    #f5f0e6;
  color: #1f282a;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(31, 40, 42, 0.06);
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.testimonials-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(31, 40, 42, 0.06);
  color: #1f282a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.testimonials-badge i {
  color: #c27800;
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #1f282a;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.testimonials-subtitle {
  font-size: 1rem;
  color: #5c6570;
  margin: 0;
  line-height: 1.5;
}

/* Infinite horizontal marquee */
.testimonials-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.testimonials-track {
  --scroll-duration: 60s;
  display: flex;
  gap: 0;
  width: max-content;
  padding: 0.35rem 0 0.75rem;
  animation: testimonials-scroll var(--scroll-duration) linear infinite;
  will-change: transform;
}

.testimonials-set {
  display: flex;
  gap: 1.25rem;
  padding-inline: 0.625rem;
}

@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 min(340px, 82vw);
  width: min(340px, 82vw);
  background: #fffdf8;
  border: 1px solid rgba(31, 40, 42, 0.08);
  border-radius: 18px;
  padding: 1.55rem 1.45rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 28px rgba(31, 40, 42, 0.05);
}

.testimonial-stars {
  color: #c27800;
  font-size: 0.82rem;
  display: flex;
  gap: 3px;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2d3640;
  margin: 0;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f282a;
  margin: 0 0 2px;
}

.author-info p {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 0 2.75rem;
  }

  .testimonials-header {
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }

  .testimonial-card {
    flex-basis: min(300px, 86vw);
    width: min(300px, 86vw);
    padding: 1.35rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    padding-inline: 1rem;
  }

  .testimonials-set {
    flex-wrap: wrap;
    justify-content: center;
  }

  .testimonials-set[aria-hidden="true"] {
    display: none;
  }

  .testimonials-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
