/* ==================================================================
   Testimonials block — homepage redesign
   Light paper (follows the dark Why FBF block), two video
   testimonial slots up top, hairline quote ledger below —
   echoing the ruled-row language used through the page.
   ================================================================== */

.tmh {
  position: relative; background: var(--surface-page, #f6f3ec);
  padding: 100px 80px 104px; overflow: hidden;
  font-family: var(--font-sans); color: var(--ink-900, #0d0f0f);
}
.tmh-inner { max-width: 1280px; margin: 0 auto; position: relative; }

.tmh-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-800, #23282a); font-weight: 500;
}
.tmh-stars { color: var(--fbf-orange, #ffa63e); letter-spacing: 2px; line-height: 1; }

.tmh-headrow {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 60px;
}
.tmh-title {
  margin: 18px 0 0; font-size: 46px; font-weight: 900; line-height: 1.06;
  letter-spacing: -0.025em; color: var(--ink-900, #0d0f0f); text-wrap: balance;
}
.tmh-title .tmh-accent {
  background: var(--gradient-signature, linear-gradient(90deg, #ff43a4, #ffa63e));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tmh-sub {
  margin: 18px 0 0; font-size: 16.5px; line-height: 1.65; font-weight: 500;
  color: var(--text-secondary, #4c5252); max-width: none; white-space: nowrap;
}

/* Google lockup — credibility anchor -------------------------------- */
.tmh-glockup {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 13px;
  padding: 14px 22px 16px 18px;
  background: #fff; border: 1px solid var(--border-default, #e2ddd0);
  border-radius: 16px;
  box-shadow: var(--shadow-md, 0 6px 24px rgba(0,0,0,0.10));
  text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 480ms var(--ease-out, ease), transform 480ms var(--ease-out, ease);
}
.tmh.is-inview .tmh-glockup { opacity: 1; transform: none; }
.tmh-glockup svg { width: 34px; height: 34px; display: block; }
.tmh-glockup-top { display: inline-flex; align-items: center; gap: 8px; }
.tmh-glockup-top b { font-size: 15px; font-weight: 900; color: #0d0f0f; }
.tmh-glockup .tmh-stars { color: #fbbc05; font-size: 13px; }
.tmh-glockup-sub { font-size: 12.5px; font-weight: 700; color: #0d0f0f; margin-top: 1px; }

/* Video testimonials ------------------------------------------------ */
.tmh-videos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px;
}
.tmh-video {
  margin: 0;
  opacity: 0; transform: translateY(26px);
  transition: opacity 520ms var(--ease-out, ease), transform 520ms var(--ease-out, ease);
}
.tmh.is-inview .tmh-video { opacity: 1; transform: none; }
.tmh.is-inview .tmh-video:nth-child(2) { transition-delay: 110ms; }
.tmh-video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg, 14px);
  background: var(--surface-ink, #0d0f0f);
  border: 1px solid var(--border-subtle, #eae5d9);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.05));
  transition: box-shadow 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease);
}
.tmh-video:hover .tmh-video-frame {
  box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,0,0,0.14));
  transform: translateY(-4px);
}
.tmh-video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: contrast(0.88) saturate(0.92) brightness(1.03);
}
.tmh-video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(13, 15, 15, 0.14);
}
.tmh-video-frame:has(.tmh-video-embed)::after { display: none; }
.tmh-video-embed {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; display: block;
}
.tmh-play {
  position: absolute; left: 50%; top: 50%;
  z-index: 1;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--fbf-green, #28dc9a); color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), var(--glow-accent, 0 6px 20px rgba(40,220,154,0.35)), 0 0 26px rgba(40,220,154,0.5);
  transition: transform 160ms var(--ease-out, ease), background 160ms var(--ease-out, ease);
}
.tmh-play svg, .tmh-play [data-lucide] { width: 22px; height: 22px; margin-left: 2px; fill: currentColor; }
.tmh-video:hover .tmh-play { transform: scale(1.08); }
.tmh-play:active { transform: scale(0.99); }
.tmh-video-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-top: 14px; padding: 0 2px;
}
.tmh-video-name { font-size: 14.5px; font-weight: 800; color: var(--ink-900, #0d0f0f); }
.tmh-video-stat {
  margin-top: 4px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-active, #12855f);
}
.tmh-video-tag {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #8a908f);
}

/* Quote scroller — horizontal rail, add as many reviews as needed --- */
.tmh-scroller {
  margin-top: 60px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms var(--ease-out, ease) 160ms, transform 520ms var(--ease-out, ease) 160ms;
}
.tmh.is-inview .tmh-scroller { opacity: 1; transform: none; }

.tmh-scroller-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 20px;
}
.tmh-scroller-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-secondary, #5b6058);
}
.tmh-scroller-nav { display: flex; gap: 10px; }
.tmh-arrow {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink-900, #0d0f0f);
  border: 1px solid var(--border-strong, #d4cebd);
  transition: background 140ms var(--ease-out, ease), color 140ms var(--ease-out, ease),
              border-color 140ms var(--ease-out, ease), transform 120ms var(--ease-out, ease);
}
.tmh-arrow svg, .tmh-arrow [data-lucide] { width: 18px; height: 18px; }
.tmh-arrow:hover:not(:disabled) {
  background: var(--ink-900, #0d0f0f); color: #fff; border-color: var(--ink-900, #0d0f0f);
}
.tmh-arrow:active:not(:disabled) { transform: scale(0.94); }
.tmh-arrow:disabled { opacity: 0.32; cursor: default; }

/* Rail bleeds to the right edge of the viewport */
.tmh-rail {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-right: -80px; padding: 4px 80px 34px 4px;
  scrollbar-width: none;
}
.tmh-rail::-webkit-scrollbar { display: none; }

.tmh-qcard {
  flex: 0 0 420px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-subtle, #eae5d9);
  border-radius: var(--radius-lg, 14px);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.05));
  transition: box-shadow 200ms var(--ease-out, ease), border-color 200ms var(--ease-out, ease);
}
.tmh-qcard:hover {
  box-shadow: var(--shadow-md, 0 6px 24px rgba(0,0,0,0.10));
  border-color: var(--border-default, #e2ddd0);
}
.tmh-qcard-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.tmh-qcard-stat {
  font-weight: 900; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap;
  background: var(--gradient-cool, linear-gradient(90deg, #00b9d7, #28dc9a));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tmh-qcard-stat i {
  font-style: normal; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted, #8a908f);
  -webkit-text-fill-color: var(--text-muted, #8a908f);
  margin-left: 4px;
}
.tmh-quote {
  margin: 16px 0 0; font-size: 15.5px; line-height: 1.62; font-weight: 500;
  color: var(--text-primary, #2c302c); flex: 1; text-wrap: pretty;
}
.tmh-row-person {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border-subtle, #eae5d9);
}
.tmh-row-person > span:not(.tmh-stars) { flex: 1; min-width: 0; }
.tmh-person-name { display: block; font-size: 14px; font-weight: 800; color: var(--ink-900, #0d0f0f); }
.tmh-person-co { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted, #8a908f); margin-top: 0; }
.tmh-person-photo {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-subtle, #eae5d9);
}
.tmh-person-logo {
  flex-shrink: 0; max-height: 40px; max-width: 140px; width: auto; object-fit: contain;
}
.tmh-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  color: var(--ink-900, #0d0f0f); text-decoration: none;
  border: 1px solid var(--border-subtle, #eae5d9);
  transition: background 140ms var(--ease-out, ease), color 140ms var(--ease-out, ease),
              border-color 140ms var(--ease-out, ease);
}
.tmh-link svg, .tmh-link [data-lucide] { width: 15px; height: 15px; }
.tmh-link:hover { background: var(--ink-900, #0d0f0f); color: #fff; border-color: var(--ink-900, #0d0f0f); }

@media (prefers-reduced-motion: reduce) {
  .tmh-video, .tmh-scroller, .tmh-glockup { opacity: 1; transform: none; transition: none; }
}
