/* ─────────────────────────────────────────────────────────────────
   CRO Block 14 — Portfolio / Client Carousel
   Token-only. Mobile-first. Image-as-hero card with overlay tag + ribbon.
   v2: fixed text selection (no hover height-shift), edge padding, trust strip.
   ───────────────────────────────────────────────────────────────── */

.block-cro-block-14 {
  background: var(--scheme-bg);
  color: var(--scheme-fg);
  font-family: var(--ds-font-body);
  user-select: text;
  -webkit-user-select: text;
}

/* Container: explicit horizontal padding so it never touches viewport edges */
.block-cro-block-14 .container {
  max-width: var(--ds-container-xl, 1320px);
  padding-left: clamp(var(--ds-space-4), 4vw, var(--ds-space-7)) !important;
  padding-right: clamp(var(--ds-space-4), 4vw, var(--ds-space-7)) !important;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.block-cro-block-14 .col-lg-12 { width: 100%; padding: 0; }

.block-cro-block-14 .showcase-container {
  display: flex; flex-direction: column;
  gap: var(--ds-space-6);
}

/* ── Header ── */
.block-cro-block-14 .showcase-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
/* WAVE3-F08 (2026-05-08): same eyebrow-pill defect as CH-09a fix on
   cro-block-9 — was using --ds-cta (#e36218) on tinted-cream pill yielding
   ~3.0–3.2:1 (AA-Large boundary). Bumped to --ds-cta-dk (#b94e12) for
   ~4.5:1. Font-weight 700 already in place. */
.block-cro-block-14 .showcase-eyebrow {
  display: inline-block;
  margin-bottom: var(--ds-space-3);
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--ds-cta) 25%, transparent);
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-mono, var(--ds-font-body));
  font-size: var(--ds-fs-eyebrow, 0.875rem);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ds-cta-dk, #b94e12);
  background: color-mix(in srgb, var(--ds-cta) 6%, transparent);
}
.block-cro-block-14 .showcase-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  margin: 0 0 var(--ds-space-3) 0;
  color: var(--scheme-fg);
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.05;
}
.block-cro-block-14 .count-num { color: var(--ds-cta); }
.block-cro-block-14 .showcase-subtitle {
  margin: 0;
  font-size: var(--ds-fs-body, 1rem);
  color: var(--scheme-fg-soft);
  line-height: 1.55;
}

/* ── Trust strip (5 inline credentials, above the grid) ──
   WAVE3-F08 (2026-05-08) — Pattern-B INVERTED local rebind: this is a
   white-65% pill that must remain readable on every outer scheme. On
   .scheme-ink the previous color: var(--scheme-fg) resolved to #fff →
   white text on the white-tint pill over black bg → ~1.5:1 fail. Pin
   --scheme-fg* and --ds-ink* to dark literals locally so the strip
   always carries dark text on its semi-opaque white surface. */
.block-cro-block-14 .showcase-truststrip {
  --scheme-fg: #0e0f0c;
  --scheme-fg-soft: #4a4842;
  --ds-ink: #0e0f0c;
  --ds-ink-soft: #4a4842;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-3) var(--ds-space-5);
  padding: var(--ds-space-3) var(--ds-space-4);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(14,15,12,.08);
  border-radius: var(--ds-radius-pill);
  width: max-content;
  max-width: 100%;
  margin: calc(var(--ds-space-3) * -1) auto 0;
  font-family: var(--ds-font-mono, var(--ds-font-body));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0e0f0c;
}
.block-cro-block-14 .showcase-truststrip .ts-item {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.block-cro-block-14 .showcase-truststrip .ts-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ds-trust);
  flex-shrink: 0;
}
.block-cro-block-14 .showcase-truststrip .ts-star { color: var(--ds-cta); }

/* ── Slider track → responsive grid ── */
.block-cro-block-14 .slider-wrapper { position: relative; }
.block-cro-block-14 .slider-arrow { display: none !important; }

.block-cro-block-14 .slider-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-4);
  /* No overflow:hidden — would prevent selection across cards */
}
@media (min-width: 576px) {
  .block-cro-block-14 .slider-track { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .block-cro-block-14 .slider-track { grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-5); }
}
@media (min-width: 1200px) {
  .block-cro-block-14 .slider-track { grid-template-columns: repeat(4, 1fr); }
}

/* ── Client Card ── */
.block-cro-block-14 .client-card {
  position: relative;
  background: var(--scheme-card-bg, #fff);
  border: 1px solid var(--scheme-rule);
  border-radius: var(--ds-radius-lg, 14px);
  overflow: hidden;
  display: flex; flex-direction: column;
  /* Hover: shadow + image-zoom only — no transform, so selection stays stable */
  transition: box-shadow var(--ds-duration) var(--ds-ease-out),
              border-color var(--ds-duration) var(--ds-ease-out);
  box-shadow: var(--ds-shadow-sm);
  min-width: 0;
  user-select: text;
  -webkit-user-select: text;
}
.block-cro-block-14 .client-card:hover,
.block-cro-block-14 .client-card:focus-within {
  border-color: color-mix(in srgb, var(--ds-cta) 35%, transparent);
  box-shadow: var(--ds-shadow-lg);
}

/* Media: image-as-hero with overlays */
.block-cro-block-14 .card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ds-paper-2, #f1ede4);
  overflow: hidden;
}
.block-cro-block-14 .card-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform var(--ds-duration-slow, 360ms) var(--ds-ease-out);
}
.block-cro-block-14 .client-card:hover .card-media img,
.block-cro-block-14 .client-card:focus-within .card-media img {
  transform: scale(1.04);
}
/* Subtle gradient bottom for tag legibility.
   BUG-T10 (W4-S10): footprint trimmed 60% → 38% and final alpha .65 → .50 —
   covers just enough of the image-bottom for the .card-tag pill to stay
   WCAG-AA legible without reading as a heavy "decorator strip" across the
   photo (audit flagged the 132 px / 160 px tall decorator on every card). */
.block-cro-block-14 .card-media::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(14,15,12,0) 0%, rgba(14,15,12,.50) 100%);
  pointer-events: none;
}

/* Industry tag — bottom-left over the image
   WAVE3-F08 (2026-05-08) — Pattern-B INVERTED local rebind: white-96%
   pill must stay readable on every outer scheme. On .scheme-ink the
   guardrail flips --ds-ink → white → white-on-white tag. Pin --ds-ink
   to dark literally so the tag always carries dark text. */
.block-cro-block-14 .card-tag {
  position: absolute;
  left: var(--ds-space-3);
  bottom: var(--ds-space-3);
  z-index: 2;
  --ds-ink: #0e0f0c;
  --ds-ink-soft: #4a4842;
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .96);
  color: var(--ds-ink);
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-mono, var(--ds-font-body));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--ds-shadow-md);
  backdrop-filter: blur(6px);
}

/* Ribbon — top-right, --ds-cta tint */
.block-cro-block-14 .card-ribbon {
  position: absolute;
  top: var(--ds-space-3);
  right: var(--ds-space-3);
  z-index: 2;
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: var(--ds-cta-aa, var(--ds-cta-dk));
  color: #fff;
  border-radius: var(--ds-radius-sm);
  font-family: var(--ds-font-mono, var(--ds-font-body));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--ds-shadow-cta);
}

/* Body */
.block-cro-block-14 .card-body {
  padding: var(--ds-space-4);
  display: flex; flex-direction: column;
  gap: var(--ds-space-3);
  flex: 1;
  user-select: text;
  -webkit-user-select: text;
}
/* Senior-UX T10 (W4-S10): card stat copy bumped to 18 px / 1.6 to clear
   AARP body floor. Was 15 px fallback. */
.block-cro-block-14 .card-stat {
  margin: 0;
  font-size: 18px;
  color: var(--scheme-fg-soft);
  line-height: 1.6;
}
.block-cro-block-14 .card-stat strong {
  color: var(--scheme-fg);
  font-weight: 700;
}

/* Reveal — ALWAYS shown so card heights stay stable (no layout shift on hover → selection stays clean) */
.block-cro-block-14 .card-reveal {
  display: flex; flex-direction: column;
  gap: var(--ds-space-3);
  margin-top: auto;
  padding-top: var(--ds-space-3);
  border-top: 1px solid var(--scheme-rule);
}

.block-cro-block-14 .reveal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
/* Senior-UX T10: reveal-list bumped 13 → 16 px, line-height 1.4 → 1.55. */
.block-cro-block-14 .reveal-list li {
  display: flex; align-items: flex-start; gap: var(--ds-space-2);
  font-size: 16px;
  color: var(--scheme-fg-soft);
  line-height: 1.55;
}
.block-cro-block-14 .reveal-list .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  background: var(--ds-trust);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}

/* Senior-UX T10: reveal-cta is the per-card primary action; bump to
   48 px tap target and 16 px label so seniors can read & hit it.
   WAVE3-F08 (2026-05-08): pin literal #0e0f0c bg + #fff fg. Browser
   audit caught this CTA rendering ink-on-ink (the var(--ds-ink) bg got
   flipped on dark schemes AND the var(--scheme-fg, #fff) fallback never
   fires when --scheme-fg is set). The dark CTA is design-invariant —
   black pill with white label — regardless of outer scheme. */
.block-cro-block-14 .reveal-cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  min-height: var(--ds-touch-target, 48px);
  padding: var(--ds-space-3) var(--ds-space-5);
  background: #0e0f0c;
  color: #fff;
  border-radius: var(--ds-radius, 12px);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background var(--ds-duration-fast) var(--ds-ease-out);
}
.block-cro-block-14 .reveal-cta:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring, 0 0 0 3px var(--ds-cta));
}
.block-cro-block-14 .reveal-cta:hover {
  background: var(--ds-cta-aa, var(--ds-cta-dk));
}

/* ── Final CTA card (the slot at the end) ── */
.block-cro-block-14 .client-card.cta-card {
  background: linear-gradient(135deg, var(--ds-cta) 0%, var(--ds-cta-dk, #b9492a) 100%);
  color: #fff;
  border-color: transparent;
  align-items: center; justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: var(--ds-space-5);
  box-shadow: var(--ds-shadow-cta);
}
.block-cro-block-14 .client-card.cta-card:hover { border-color: transparent; }
.block-cro-block-14 .client-card.cta-card .card-media,
.block-cro-block-14 .client-card.cta-card .card-body { display: none; }
.block-cro-block-14 .cta-content {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--ds-space-3);
}
.block-cro-block-14 .cta-icon { font-size: 2.25rem; line-height: 1; }
.block-cro-block-14 .cta-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}
/* Senior-UX T10: 13 → 16 px and 1.5 → 1.6 line-height for AARP floor. */
.block-cro-block-14 .cta-text {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
}
/* Senior-UX T10: end-CTA card primary button — 56 px tap-target,
   16 px label (AARP primary CTA spec). */
.block-cro-block-14 .cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--ds-touch-target-primary, 56px);
  padding: var(--ds-space-3) var(--ds-space-6);
  background: var(--scheme-card-bg, #fff);
  color: var(--ds-cta);
  border-radius: var(--ds-radius, 12px);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  transition: transform var(--ds-duration-fast) var(--ds-ease-out), box-shadow var(--ds-duration-fast);
}
.block-cro-block-14 .cta-button:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring-dark, 0 0 0 3px #fff);
}
.block-cro-block-14 .cta-button:hover { transform: translateY(-2px); }
.block-cro-block-14 .cta-guarantee {
  font-size: 11px;
  color: rgba(255, 255, 255, .85);
  font-family: var(--ds-font-mono, var(--ds-font-body));
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Bottom activity ticker ── */
.block-cro-block-14 .showcase-ticker {
  display: flex; align-items: center; justify-content: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  font-family: var(--ds-font-mono, var(--ds-font-body));
  font-size: 12px;
  color: var(--scheme-fg-soft);
  letter-spacing: .04em;
  text-align: center;
  flex-wrap: wrap;
}
.block-cro-block-14 .showcase-ticker .live-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800;
  color: var(--ds-trust);
  text-transform: uppercase;
}
.block-cro-block-14 .showcase-ticker .live-pulse::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ds-trust);
  animation: cb14pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-trust) 50%, transparent);
}
@keyframes cb14pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-trust) 55%, transparent); }
  50%      { transform: scale(1.1); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ds-trust) 0%, transparent); }
}

/* ── Slider dots (mobile carousel mode if JS enables it; harmless otherwise) ── */
.block-cro-block-14 .slider-dots {
  display: flex; justify-content: center; gap: var(--ds-space-1);
}
.block-cro-block-14 .slider-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--scheme-rule);
  border: none;
  cursor: pointer;
  transition: background var(--ds-duration-fast), width var(--ds-duration-fast);
}
.block-cro-block-14 .slider-dots .dot.active {
  background: var(--ds-cta-aa, var(--ds-cta-dk));
  width: 18px;
  border-radius: var(--ds-radius-pill);
}

/* Universal safety: cap any rogue SVGs that escape another stylesheet */
.block-cro-block-14 svg { max-width: 100%; height: auto; }

/* Senior-UX T10 (W4-S10): visible pause/play control for the autoscroll
   carousel (AARP / NN-g requirement on auto-advancing media). 48 px tap
   target, filled CTA style, focus-visible ring. */
.block-cro-block-14 .cro14-pause-btn {
  position: relative;
  margin: var(--ds-space-3) auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ds-touch-target, 48px);
  padding: 12px 24px;
  /* WAVE3-F08 (2026-05-08): pin literal #0e0f0c / #fff — invariant-dark
     pause-btn pill regardless of outer scheme (same fix as .reveal-cta). */
  background: #0e0f0c;
  color: #fff;
  border: 1px solid #0e0f0c;
  border-radius: var(--ds-radius-sm, 6px);
  font-family: var(--ds-font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  width: max-content;
  display: flex;
  transition: background var(--ds-duration-fast), border-color var(--ds-duration-fast);
}
.block-cro-block-14 .cro14-pause-btn:hover {
  background: var(--ds-cta-aa, var(--ds-cta-dk));
  border-color: var(--ds-cta);
}
.block-cro-block-14 .cro14-pause-btn:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring, 0 0 0 3px var(--ds-cta));
}

/* Senior-UX T10: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .block-cro-block-14 .showcase-ticker .live-pulse::before,
  .block-cro-block-14 .card-media img,
  .block-cro-block-14 .client-card.cta-card,
  .block-cro-block-14 .reveal-cta {
    animation: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────
   SWEEP-C4 (2026-05-08) — emoji glyph font-fallback
   .cta-icon (🎯), .ts-star (★), .reveal-list .check (✓), and
   .cta-guarantee (✓ leading) inherit a font-family without emoji
   coverage and render as □ on systems where the design font
   lacks the codepoint. Add the OS-emoji font tail so the codepoints
   resolve to the platform's emoji font without disturbing adjacent
   text glyphs in those classes.
   ───────────────────────────────────────────────────────────────── */
.block-cro-block-14 .cta-icon,
.block-cro-block-14 .showcase-truststrip .ts-star,
.block-cro-block-14 .reveal-list .check,
.block-cro-block-14 .cta-guarantee,
.block-cro-block-14 .ts-item {
  font-family: var(--ds-font-body),
               "Apple Color Emoji",
               "Segoe UI Emoji",
               "Noto Color Emoji",
               "Twemoji Mozilla",
               "EmojiOne Color",
               "Android Emoji",
               sans-serif;
}

/* ── Senior-UX CTA floor (W2-T10 / 2026-05-08) ─────────────────────
   Audit found per-card reveal-cta buttons computed at 50px (Get
   Similar Results, Get Compliant, Book Audit, Get Protected, Get
   Certified). Bump to primary tap-target floor for ICP 45-70+. */
.block-cro-block-14 .reveal-cta {
  min-height: var(--ds-touch-target-primary, 56px) !important;
}
