.section.testimonials {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 7vw, 120px) 44px;
  background: #fffdfa;
}

.testimonials__container {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.testimonials__head {
  max-width: 820px;
  margin: 0 auto clamp(42px, 5vw, 64px);
  text-align: center;
}

.testimonials__head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #c56535;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.testimonials__head .eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.testimonials__head h2 {
  max-width: 760px;
  margin: 0 auto;
  color: #172239;
  font-family: var(--ff-serif);
  font-size: clamp(2.15rem, 3.1vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.testimonials__head p {
  max-width: 660px;
  margin: 18px auto 0;
  color: #6f756d;
  font-size: 1rem;
  line-height: 1.65;
}

.testimonials__rail {
  display: grid;
  grid-auto-columns: minmax(420px, 520px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 26px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.testimonial-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3vw, 42px);
  scroll-snap-align: start;
}

.testimonial-card blockquote {
  margin: 0;
  color: #172239;
  font-family: var(--ff-serif);
  font-size: clamp(1.65rem, 2.2vw, 2.45rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.testimonial-card__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 42px;
}

.testimonial-card__footer img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 253, 250, 0.6);
}

.testimonial-card__footer strong {
  display: block;
  color: #172239;
  font-size: 0.96rem;
  font-weight: 900;
}

.testimonial-card__footer span {
  display: block;
  margin-top: 3px;
  color: rgba(23, 34, 57, 0.76);
  font-size: 0.88rem;
  line-height: 1.35;
}

.testimonial-card--teal {
  background: #20c7b5;
}

.testimonial-card--terracotta {
  background: #e58a60;
}

.testimonial-card--sage {
  background: #dfe8d6;
}

.testimonial-card--navy {
  background: #172239;
}

.testimonial-card--navy blockquote,
.testimonial-card--navy strong,
.testimonial-card--navy span {
  color: #fffdfa;
}

.testimonial-card--cream {
  background: #f8f3eb;
}

.testimonials__hint {
  margin: 12px 0 0;
  color: #6f756d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .section.testimonials {
    padding: 64px 20px;
  }

  .testimonials__rail {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .testimonial-card {
    min-height: 300px;
  }
}

/* Messy Middle refinement: widen centred testimonial intro only */

.testimonials__head {

  max-width: min(88vw, 1320px);

  margin-inline: auto;

  text-align: center;

}

.testimonials__head h2 {

  max-width: min(84vw, 1180px);

  margin-inline: auto;

}

.testimonials__head p {

  max-width: min(76vw, 1040px);

  margin-inline: auto;

}

