/*
 * Testimonial
 * Customer testimonial cards with avatar, quote, name, role
 * Layouts: grid (default), single centered, carousel-ready
 */

.testimonial {
  padding: var(--space-12) var(--space-6);
}

.testimonial-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

.testimonial-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.testimonial-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.15em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Single centered testimonial */
.testimonial-single {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-single .testimonial-quote {
  font-size: var(--text-lg);
}

.testimonial-single .testimonial-author {
  justify-content: center;
}

/* Star rating */
.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  color: var(--color-warning);
  font-size: var(--text-sm);
}

/* Responsive */
@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
