.reviews-section {
  padding: 6rem 0;
  background-color: var(--color-slate-900, #0f172a);
  color: white;
  overflow: hidden;
}

.reviews-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reviews-header {
  text-align: center;
  margin-bottom: 4rem;
}

.reviews-headline {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-primary-light);
}

@media (min-width: 768px) {
  .reviews-headline {
    font-size: 3rem;
  }
}

.reviews-headline-accent {
  color: var(--brand-primary-light, #93c5fd);
}

.reviews-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.star-icon {
  display: inline-flex;
}

.star-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.star-icon--filled svg {
  color: var(--color-amber-400, #fbbf24);
  fill: var(--color-amber-400, #fbbf24);
}

.star-icon--empty svg {
  color: var(--color-slate-600, #475569);
  fill: none;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.review-card {
  background-color: var(--color-slate-800, #1e293b);
  padding: 2rem;
  border-radius: 1.5rem;
  position: relative;
  animation: scaleIn 0.6s ease-out both;
  animation-delay: var(--delay, 0s);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  background-color: #334155;
}

.review-text {
  font-size: 1.125rem;
  color: var(--color-slate-300, #cbd5e1);
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-slate-700, #334155);
  overflow: hidden;
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-info {
  flex: 1;
}

.review-author-name {
  font-weight: 700;
  margin: 0 0 0.125rem 0;
  color: white;
}

.review-author-location {
  color: var(--color-slate-500, #64748b);
  font-size: 0.875rem;
  margin: 0 0 0.25rem 0;
}

.review-rating {
  display: flex;
  gap: 0.125rem;
}

.review-rating .star-icon svg {
  width: 1rem;
  height: 1rem;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    scale: 0.95;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out both;
  animation-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .review-card,
  .animate-scale-in {
    animation: none;
  }
  .review-card:hover {
    transform: none;
  }
}
