/* Testimonials page (/testimonials/). Linked only from the testimonials page.
   The compact banner and the closing CTA band live in style.css (shared with /gallery/).
   The cards reuse the site's existing .t-card component; only the differences the
   original's testimonials grid shows are set here. */

.treviews { background: #fff; padding: 74px 0 110px; }
.treviews__inner { width: 86%; max-width: 1325px; margin: 0 auto; }
.treviews__title {
  margin: 0 auto;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3em;
  color: #060221;
  text-align: center;
}
.treviews__rule { width: 52px; height: 1px; margin: 18px auto 34px; background: #ff0024; }

.treviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: stretch;
}
/* with five cards the last row holds two — centre them under the three above */
.treviews__grid .t-card:nth-child(4) { grid-column: 1 / span 1; justify-self: end; }
.treviews__grid .t-card:nth-child(5) { grid-column: 2 / span 2; justify-self: start; }
.treviews__grid .t-card:nth-child(4),
.treviews__grid .t-card:nth-child(5) { max-width: 422px; }

/* .t-card is a flex row item in its home-page context; here each one is a grid cell.
   Full height + the component's own flexed .t-card__desc lines the stars and names
   up across each row. */
.treviews__grid .t-card { flex: none; margin-right: 0; min-height: 0; height: 100%; }
.treviews__grid .t-card__desc { font-size: 15px; line-height: 1.9em; }
.treviews__grid .t-card__rating { color: #fac917; }
.treviews__grid .t-card__name {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #000;
}

/* ---------- Read more reviews ---------- */
.treviews__more { margin-top: 48px; text-align: center; }
.treviews__more h2 {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4em;
  color: #000;
}
.treviews__more img { width: 174px; height: auto; display: inline-block; }
.treviews__more a { display: inline-block; transition: transform .3s, opacity .3s; }
.treviews__more a:hover { transform: translateY(-3px); opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .treviews { padding: 60px 0 80px; }
  .treviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treviews__grid .t-card:nth-child(4) { grid-column: auto; justify-self: stretch; }
  .treviews__grid .t-card:nth-child(5) { grid-column: auto; justify-self: stretch; }
  .treviews__grid .t-card:nth-child(4),
  .treviews__grid .t-card:nth-child(5) { max-width: none; }
}
@media (max-width: 600px) {
  .treviews__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .treviews__more a { transition: none; }
  .treviews__more a:hover { transform: none; }
}
