/* Loaded only on the Testimonials page. */
.testimonials-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.testimonials-hero-copy {
  align-self: center;
  padding: 80px 7vw;
}

.testimonials-hero h1 {
  margin-top: 18px;
  font-size: clamp(44px, 4vw, 68px);
  line-height: 1;
}

.testimonials-hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 28px;
  color: #403b35;
  line-height: 1.7;
}

.testimonials-hero .button {
  margin-top: 32px;
}

.testimonials-hero-image {
  min-height: 520px;
}

.testimonials-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 var(--page-gutter);
  background: var(--soft);
}

.testimonials-proof > div {
  display: grid;
  place-content: center;
  min-height: 140px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.testimonials-proof > div:last-child {
  border: 0;
}

.testimonials-proof strong {
  font: 400 clamp(34px, 3.5vw, 52px)/1 Georgia, serif;
}

.testimonials-proof span {
  margin-top: 10px;
  color: #625d55;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.testimonials-list {
  padding: clamp(72px, 8vw, 120px) var(--page-gutter);
}

.testimonials-list-heading {
  display: grid;
  grid-template-areas:
    "eyebrow copy"
    "title copy";
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 6vw;
  align-items: end;
  margin-bottom: 52px;
}

.testimonials-list-heading .eyebrow {
  grid-area: eyebrow;
}

.testimonials-list-heading h2 {
  grid-area: title;
  margin-top: 16px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.05;
}

.testimonials-list-heading > p:last-child {
  grid-area: copy;
  max-width: 560px;
  margin: 0;
  color: #625d55;
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(28px, 3vw, 44px);
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:last-child {
  grid-column: 1 / -1;
  min-height: 310px;
}

.testimonial-card-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  color: #756a5f;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 10px;
  font-weight: 800;
  border-bottom: 1px solid #d6cfc4;
}

.testimonial-number {
  color: var(--accent);
}

.testimonial-card blockquote {
  flex: 1;
  margin: 34px 0 40px;
}

.testimonial-card blockquote::before,
.testimonial-card blockquote::after {
  content: none;
}

.testimonial-card blockquote > p {
  margin: 0;
  font: 400 clamp(24px, 2vw, 32px)/1.38 Georgia, serif;
}

.testimonial-attribution {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid #d6cfc4;
}

.testimonial-attribution > div {
  display: grid;
  gap: 5px;
}

.testimonial-attribution cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.testimonial-attribution > div span {
  color: #6a645c;
  font-size: 12px;
}

@media (hover: hover) {
  .testimonial-card:hover {
    border-color: #bcb2a5;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(35, 29, 23, 0.08);
  }
}

.testimonials-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 72px var(--page-gutter);
  background: var(--soft);
}

.testimonials-cta h2 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 58px);
}

@media (max-width: 1050px) {
  .testimonials-hero {
    grid-template-columns: 1fr;
  }

  .testimonials-list-heading {
    grid-template-areas: none;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .testimonials-list-heading .eyebrow,
  .testimonials-list-heading h2,
  .testimonials-list-heading > p:last-child {
    grid-area: auto;
  }
}

@media (max-width: 700px) {
  .testimonials-hero-copy,
  .testimonials-list,
  .testimonials-cta {
    padding: 50px 20px;
  }

  .testimonials-hero-image {
    min-height: 280px;
  }

  .testimonials-proof,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-proof > div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .testimonial-card,
  .testimonial-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .testimonial-card-top,
  .testimonial-attribution {
    align-items: start;
  }

  .testimonial-attribution {
    flex-direction: column;
  }

  .testimonials-cta {
    align-items: stretch;
    flex-direction: column;
  }
}
