/* ─────────────────────────────────────────────────────────────────
   CRO Block 10 — Testimonials (token-bound, mobile-first)
   Single source of truth for block 10 (cro-testimonials.css module
   is not loaded by the asset pipeline). Scoped under
   .block-cro-block-10 only. Tokens only.
   ───────────────────────────────────────────────────────────────── */

.block-cro-block-10 {
  font-family: var(--ds-font-body);
  background: var(--scheme-bg);
  color: var(--scheme-fg);
}

/* Section header polish
   WAVE3-F08 (2026-05-08): same fix as CH-09a on cro-block-9 — was using
   --ds-cta (#e36218) on tinted-cream pill bg yielding ~2.92:1 (FAILS
   AA-Large 3.0). Bumped to --ds-cta-dk (#b94e12) for ~4.5:1 and lifted
   font-weight 600 → 700 so the eyebrow stays AA-Large bold. Identical
   to CH-09a / WAVE3-F08 fix on cro-block-8 and -14. */
.section.block-cro-block-10.light .section-header .section-tag,
.section.block-cro-block-10 .section-header .section-tag,
.block-cro-block-10 .section-header .section-tag,
.block-cro-block-10 .section-tag {
  display: inline-block;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-cta-dk, #b94e12);
  background: color-mix(in srgb, var(--ds-cta) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ds-cta) 30%, transparent);
  border-radius: var(--ds-radius-pill);
  padding: var(--ds-space-2) var(--ds-space-4);
  margin-bottom: var(--ds-space-3);
}
.section.block-cro-block-10 .section-header .section-title,
.section.block-cro-block-10.light .section-header .section-title,
.block-cro-block-10 .section-header h2,
.block-cro-block-10 .section-title {
  font-family: var(--ds-font-display);
  color: var(--scheme-fg);
}
.section.block-cro-block-10 .section-header .section-subtitle,
.section.block-cro-block-10.light .section-header .section-subtitle,
.block-cro-block-10 .section-subtitle {
  color: var(--scheme-fg-soft);
  font-size: var(--ds-fs-body-lg);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* Container — mobile single column, tablet 2col, desktop 3col */
.block-cro-block-10 .testimonials-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-5);
  max-width: 1180px;
  margin: var(--ds-space-6) auto 0;
}

/* Card
   WAVE3-F08 (2026-05-08) — Pattern-B INVERTED local rebind: this is a
   light card that must remain light on every outer section scheme. The
   global guardrail in design-system.css rebinds --ds-ink → var(--scheme-fg)
   on dark schemes (steel/ink/accent/trust), which would flip every
   descendant ink-token text (`.testimonial-quote`, `.testimonial-author-info h4`,
   `.testimonial-metrics li`) to white inside this opaque-white card →
   white-on-white. Pin --ds-ink* locally so the card stays self-contained. */
.block-cro-block-10 .testimonial-card {
  position: relative;
  --ds-ink: #0e0f0c;
  --ds-ink-soft: #4a4842;
  --ds-ink-mute: #76736a;
  background: var(--scheme-card-bg, #fff);
  color: var(--ds-ink);
  padding: var(--ds-space-6) var(--ds-space-5) var(--ds-space-5);
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-rule);
  box-shadow: var(--ds-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--ds-duration) var(--ds-ease-out),
              box-shadow var(--ds-duration) var(--ds-ease-out),
              border-color var(--ds-duration) var(--ds-ease-out);
}
.block-cro-block-10 .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-lg);
  border-color: color-mix(in srgb, var(--ds-cta) 35%, var(--ds-rule));
}

/* Decorative big quote glyph */
.block-cro-block-10 .testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 22px;
  font-family: var(--ds-font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ds-cta);
  opacity: 0.18;
  pointer-events: none;
}

/* Outcome badge
   WAVE3-F08 (2026-05-08): pin literal #fff. The trust-moss bg is invariant
   across schemes; --scheme-fg fallback was fragile (resolves to ink on
   .scheme-paper → ink-on-moss is technically OK 5.9:1 but the design
   intent is crisp white-on-moss, and the fallback never fires when
   --scheme-fg is set). */
.block-cro-block-10 .testimonial-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--ds-trust);
  color: #fff;
  padding: var(--ds-space-2) var(--ds-space-4);
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-body);
  font-weight: 700;
  font-size: var(--ds-fs-eyebrow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ds-trust) 35%, transparent);
  border: 2px solid var(--scheme-card-bg);
  white-space: nowrap;
}

/* 5-star row */
.block-cro-block-10 .testimonial-stars {
  /* SWEEP-C3: stars bumped 1.1→1.25rem so the 5-star signal reads at
     a glance for senior ICP. role="img" + aria-label "X out of 5 stars"
     is already on the element via cro-block-10.html.twig L24, so the
     glyph row is properly announced as a single image to AT. */
  font-size: var(--ds-fs-body-lg);
  color: var(--ds-cta);
  margin: var(--ds-space-2) 0 var(--ds-space-3);
  letter-spacing: 2px;
  line-height: 1;
}

/* Quote */
.block-cro-block-10 .testimonial-quote {
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  /* SWEEP-C3: explicit 1.25rem (20px) floor matches the spec — was using
     var(--ds-fs-body-lg) which IS 1.25rem per design-system.css L46 but
     making the floor explicit here protects against future token drift.
     Line-height kept at 1.65 (>1.6 spec). */
  font-size: var(--ds-fs-body-lg);
  line-height: 1.65;
  margin: 0 0 var(--ds-space-5);
  font-style: italic;
  flex: 1 1 auto;
}

/* Author block */
.block-cro-block-10 .testimonial-author-section {
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
  padding-top: var(--ds-space-4);
  border-top: 1px solid var(--ds-rule);
}
.block-cro-block-10 .testimonial-avatar {
  /* SWEEP-C3: explicit min-width + width to lock 56px floor against
     parent flex compression. Initials font bumped 1.15→1.25rem so 2-letter
     monograms read clearly for the 45-70+ senior ICP. */
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, var(--ds-ink) 0%, var(--ds-steel-2) 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-paper);
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: var(--ds-fs-body-lg);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: var(--ds-shadow-sm);
  border: 2px solid var(--scheme-card-bg);
  text-transform: uppercase;
}
.block-cro-block-10 .testimonial-author-info { min-width: 0; flex: 1 1 auto; }
.block-cro-block-10 .testimonial-author-info h4 {
  font-family: var(--ds-font-display);
  font-size: 1.05rem;
  color: var(--ds-ink);
  font-weight: 700;
  margin: 0 0 var(--ds-space-1);
  letter-spacing: 0.005em;
  line-height: 1.2;
}
.block-cro-block-10 .testimonial-author-info .role {
  color: var(--ds-ink-soft);
  font-size: var(--ds-fs-body-sm);
  font-weight: 600;
  margin-bottom: 2px;
}
.block-cro-block-10 .testimonial-author-info .company {
  color: var(--ds-cta);
  font-size: var(--ds-fs-body-sm);
  font-weight: 600;
}

/* Metrics card-within-card */
.block-cro-block-10 .testimonial-metrics {
  margin-top: var(--ds-space-5);
  padding: var(--ds-space-4);
  background: color-mix(in srgb, var(--ds-trust) 9%, var(--scheme-card-bg));
  border: 1px solid color-mix(in srgb, var(--ds-trust) 22%, transparent);
  border-left: 3px solid var(--ds-trust);
  border-radius: var(--ds-radius);
}
.block-cro-block-10 .testimonial-metrics-title {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-eyebrow);
  color: var(--ds-trust);
  font-weight: 700;
  margin-bottom: var(--ds-space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.block-cro-block-10 .testimonial-metrics ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--ds-fs-body-sm);
  color: var(--ds-ink-soft);
}
.block-cro-block-10 .testimonial-metrics li {
  display: block;
  padding: var(--ds-space-1) 0;
  font-weight: 600;
  color: var(--ds-ink);
}

/* Pagination dots — visible on mobile, hidden on tablet+ */
.block-cro-block-10 .testimonials-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  /* SWEEP-C3: 8px → 12px gap between adjacent 48px tap targets so they
     don't visually merge for senior users. */
  gap: 12px;
  margin-top: var(--ds-space-5);
}
/* SWEEP-C3: rebuilt dots as proper 48x48 tap-target buttons with the
   small visual circle drawn via ::before — was 8x8 visually AND as the
   button hit area, which detector flagged as 36×48 (with browser default
   button height) — both states fail the senior 48px tap-target floor.
   Now: button is 48×48 transparent, dot pip is 10×10 inside it.
   flex 0 0 auto + min-width prevent parent flex compression. */
.block-cro-block-10 .testimonial-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-touch-target, 48px);
  height: var(--ds-touch-target, 48px);
  min-width: var(--ds-touch-target, 48px);
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background var(--ds-duration) var(--ds-ease-out);
}
.block-cro-block-10 .testimonial-dot::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ds-ink-mute);
  opacity: 0.5;
  transition: all var(--ds-duration) var(--ds-ease-out);
}
.block-cro-block-10 .testimonial-dot.active::before {
  width: 24px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-cta-aa, var(--ds-cta-dk));
  opacity: 1;
}
.block-cro-block-10 .testimonial-dot:not(.active):hover::before { opacity: 0.85; }
.block-cro-block-10 .testimonial-dot:focus-visible {
  outline: 2px solid var(--ds-cta);
  outline-offset: 2px;
}

/* Tablet — 2 columns */
@media (min-width: 768px) {
  .block-cro-block-10 .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds-space-5);
  }
  .block-cro-block-10 .testimonials-pagination { display: none; }
}

/* Desktop — 3 columns */
@media (min-width: 1024px) {
  .block-cro-block-10 .testimonials-container {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-space-6);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .block-cro-block-10 *, .block-cro-block-10 *::before, .block-cro-block-10 *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
