/**
 * Client Feedback review cards (homepage #testimonials).
 */

#testimonials > .wrap > h2 {
  margin-bottom: 1rem;
}

#testimonials .client-feedback-grid.card-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
}

.section--client-feedback#testimonials > .wrap > h2 {
  text-align: center;
  width: 100%;
}

@media (min-width: 640px) {
  #testimonials .client-feedback-grid.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  #testimonials .client-feedback-grid.card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#testimonials .card--client-feedback {
  background: #ffffff;
  border: 2px solid #c8d4e4;
  border-radius: var(--radius);
  box-shadow:
    0 2px 4px rgba(38, 51, 88, 0.06),
    0 12px 28px rgba(38, 51, 88, 0.1);
  min-height: 10rem;
}

#testimonials .card--client-feedback .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.2rem;
  min-height: 100%;
}

#testimonials .client-feedback-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#testimonials .client-feedback-card__stars {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  flex-shrink: 0;
}

#testimonials .client-feedback-card__stars svg {
  display: block;
  width: 16px;
  height: 15px;
}

#testimonials .client-feedback-card__when {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5c6b82;
  text-align: right;
  line-height: 1.25;
}

#testimonials .client-feedback-card__quote {
  margin: 0;
  padding: 0 0 0.35rem;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  font-style: normal;
  flex: 1;
}

#testimonials .client-feedback-card__quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #263358;
}

#testimonials .client-feedback-card__footer {
  margin: 0;
}

#testimonials .client-feedback-card__name {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a2744;
}

#testimonials .client-feedback-card__source {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

#testimonials .client-feedback-card__source strong {
  font-weight: 600;
  color: #4285f4;
}

/* Space between review cards and “Leave a review” */
#testimonials .client-feedback-grid.card-grid {
  margin-bottom: 0;
}

#testimonials .testimonials-below-wave {
  position: relative;
  padding: 0;
  margin: 0;
}

#testimonials .testimonials-below-wave .testimonials-review-cta,
#testimonials > .wrap > .testimonials-review-cta {
  position: relative;
  z-index: 2;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  text-align: center;
}

#testimonials .testimonials-below-wave .testimonials-review-cta .btn,
#testimonials > .wrap > .testimonials-review-cta .btn {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-inline: auto;
}

.section--client-feedback#testimonials {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
