/* ============================================================
   Testimonials page: CSV-driven (data/testimonials/testimonials.csv).
   Loaded only on testimonials.php via $pageStyles; uses the brand
   tokens, fonts, buttons and headings from site.css.
   Video cards link out to YouTube; nothing is embedded.
   ============================================================ */

.tm-page { background: var(--lavender); }

/* ---- Intro ---- */
.tm-intro { padding: 88px 0 24px; }
.tm-intro .tt { margin-top: 14px; }
.tm-lead { max-width: 600px; margin: 14px auto 0; text-align: center; }
/* Disclosure: some customers asked for their names to be changed (Dave, 2026-11-25). */
.tm-note { max-width: 600px; margin: 40px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---- Section blocks ---- */
.tm-block { padding: 48px 0 0; }
.tm-heading { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 32px; }
.tm-quote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.tm-who { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.tm-name { color: var(--green-deep); }
.tm-role { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }

/* ---- Video testimonials ---- */
.tm-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tm-video { margin: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; width: 100%; }
.tm-thumb { position: relative; display: block; background: var(--ink); }
/* One square thumbnail shape for every video card, whatever the video's orientation: the
   cards link out to YouTube, so the orientation column does not drive the layout. */
.tm-thumb { aspect-ratio: 1 / 1; }
.tm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(35,36,58,.72); display: flex; align-items: center; justify-content: center; transition: background .15s ease, transform .15s ease; }
.tm-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.tm-thumb:hover .tm-play, .tm-thumb:focus-visible .tm-play { background: var(--indigo); transform: scale(1.08); }
.tm-thumb:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.tm-video figcaption { padding: 20px 22px 24px; }
.tm-video .tm-quote { font-size: 15px; }
.tm-video .tm-who { margin: 14px 0 0; }

/* ---- Written testimonials ---- */
.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tm-card { margin: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.tm-stars { color: var(--gold); font-size: 22px; letter-spacing: 3px; line-height: 1; }
.tm-person { display: flex; align-items: center; gap: 14px; }
.tm-avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tm-avatar--initial { display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--slate); font-family: var(--font-head); font-weight: 700; font-size: 22px; }

/* ---- Call to action ---- */
.tm-cta { padding: 56px 0 96px; text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .tm-intro { padding-top: 56px; }
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-cta { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm-videos { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .tm-card { padding: 24px 22px; }
}
