/* Styles for the [aria_case_study] shortcode.
   Everything is scoped under .vc-aria-proof so the section is self-contained
   and cannot leak into the rest of the page (no global *, html, or body rules). */

.vc-aria-proof {
  --aria-ink: #0F1115;
  --aria-ink-2: #161922;
  --aria-line: rgba(255,255,255,0.08);
  /* Main accent → site primary; the "free" stat callout → site secondary.
     Both follow each café's accent pair (set in Site Options). */
  --aria-red: var(--vc-primary, #95cd31);
  --aria-red-deep: var(--vc-primary-deep, #7fb521);
  --aria-gray: #6b6b6b;
  --aria-gray-2: #9a9a9a;
  --aria-gold: var(--vc-secondary, #6d4fd6);

  position: relative;
  color: #fff;
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Don't inherit white-space:nowrap (or pre) from a page-builder wrapper —
     it stops text wrapping and silently disables overflow-wrap below. */
  white-space: normal;
}

/* Standalone single-case_study page: give the section its own dark backdrop and
   vertical rhythm. In the page builder the [aria_case_study] shortcode sits inside
   a dark block that already provides these, so this is scoped to the CPT template
   (WordPress adds the `single-case_study` body class there). */
.single-case_study .vc-aria-proof,
.block-case-study .vc-aria-proof {
  background: var(--aria-ink);
  padding: clamp(56px, 8vw, 104px) 0;
}
.vc-aria-proof *,
.vc-aria-proof *::before,
.vc-aria-proof *::after { box-sizing: border-box; }
.vc-aria-proof a { color: inherit; text-decoration: none; }

.vc-aria-proof .wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* eyebrow */
.vc-aria-proof .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--aria-red);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
}
.vc-aria-proof .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--aria-red); }

/* header */
.vc-aria-proof .head {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px;
  align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
/* Let grid children shrink so long text wraps instead of forcing the
   column wider than the container (grid items default to min-width:auto). */
.vc-aria-proof .head > *,
.vc-aria-proof .feature > * { min-width: 0; }
.vc-aria-proof .head h2,
.vc-aria-proof .sub,
.vc-aria-proof .quote blockquote { overflow-wrap: break-word; }
.vc-aria-proof .head h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin-top: 22px;
  max-width: 13ch; text-transform: uppercase;
}
.vc-aria-proof .head h2 .red { color: var(--aria-red); }
.vc-aria-proof .sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.72); padding-bottom: 6px; max-width: 46ch; }
.vc-aria-proof .sub strong { color: #fff; font-weight: 700; }

/* stat strip */
.vc-aria-proof .stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.85);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.vc-aria-proof .stat { padding: 34px 26px 30px; border-right: 1px solid var(--aria-line); }
.vc-aria-proof .stat:last-child { border-right: none; }
.vc-aria-proof .stat .num {
  font-size: clamp(38px, 4.2vw, 60px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.95; color: #fff; display: flex; align-items: baseline; gap: 4px;
}
.vc-aria-proof .stat .num sup { font-size: 0.45em; font-weight: 700; color: var(--aria-red); top: -0.1em; }
.vc-aria-proof .stat .lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--aria-gray-2);
  margin-top: 16px; line-height: 1.55;
}
.vc-aria-proof .stat.free { background: color-mix(in srgb, var(--vc-secondary, #6d4fd6) 8%, transparent); position: relative; }
.vc-aria-proof .stat.free .num, .vc-aria-proof .stat.free .num sup { color: var(--aria-gold); }
.vc-aria-proof .stat.free .lbl { color: var(--vc-secondary-bright, #a892ff); }
.vc-aria-proof .stat.free .tag {
  position: absolute; top: 18px; right: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--aria-gold); color: var(--aria-ink); padding: 4px 9px; border-radius: 999px;
}

/* feature: quote + doc */
.vc-aria-proof .feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }

.vc-aria-proof .quote { display: flex; flex-direction: column; }
.vc-aria-proof .quote .label {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--aria-red);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 24px;
}
.vc-aria-proof .quote blockquote {
  font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
  max-width: 42ch;
}
.vc-aria-proof .quote blockquote::before {
  content: "\201C"; color: var(--aria-red); font-size: 1em; line-height: 0; vertical-align: -0.22em; margin-right: 4px;
}
.vc-aria-proof .quote blockquote .pop {
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--vc-primary, #95cd31) 50%, transparent) 60%); font-weight: 600;
}
.vc-aria-proof .quote .attrib {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--aria-line);
  display: flex; align-items: center; gap: 14px;
}
.vc-aria-proof .quote .av {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--aria-red), var(--aria-red-deep));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.vc-aria-proof .quote .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-aria-proof .quote .attrib .who { font-weight: 700; font-size: 16px; }
.vc-aria-proof .quote .attrib .role {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--aria-gray-2);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px;
}

/* clickable case study cover */
.vc-aria-proof .doc {
  position: relative; display: flex; flex-direction: column;
  background: var(--aria-ink-2); border: 1px solid var(--aria-line); border-radius: 8px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.vc-aria-proof .doc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--vc-primary, #95cd31) 50%, transparent); box-shadow: 0 26px 60px rgba(0,0,0,0.5); }
.vc-aria-proof .doc .strip {
  height: 6px;
  /* Accent bar: primary → secondary accent (per-café overridable). */
  background: linear-gradient(90deg, var(--vc-primary, #95cd31), var(--vc-secondary, #6d4fd6));
}
.vc-aria-proof .doc .doc-body { padding: clamp(28px, 3vw, 36px) clamp(26px, 3vw, 34px) 0; flex: 1; }
.vc-aria-proof .doc .doc-cover {
  display: block; width: 100%; height: auto; margin-bottom: 26px;
  border-radius: 6px; border: 1px solid var(--aria-line);
}
.vc-aria-proof .doc .doc-tag {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 26px;
}
.vc-aria-proof .doc .doc-meta { display: flex; gap: 26px; padding-bottom: 30px; flex-wrap: wrap; }
.vc-aria-proof .doc .doc-meta .k {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--aria-gray); margin-bottom: 5px;
}
.vc-aria-proof .doc .doc-meta .v { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.03em; color: #fff; }
.vc-aria-proof .doc .doc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(26px, 3vw, 34px); border-top: 1px solid var(--aria-line); background: rgba(0,0,0,0.25);
}
.vc-aria-proof .doc .doc-foot .read {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
  background: var(--aria-red); color: #fff; padding: 12px 22px; border-radius: 8px;
  transition: background .2s ease;
}
.vc-aria-proof .doc:hover .doc-foot .read { background: var(--aria-red-deep); }
.vc-aria-proof .doc .doc-foot .read .arr { transition: transform .25s; }
.vc-aria-proof .doc:hover .doc-foot .read .arr { transform: translateX(5px); }
.vc-aria-proof .doc .doc-foot .filemeta {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--aria-gray-2); text-align: right; line-height: 1.5;
}

.vc-aria-proof .ctas { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 26px; }
/* Text links with a thick underline — not pills. */
.vc-aria-proof .btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 0;
  font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.vc-aria-proof .btn-primary { color: var(--aria-red); text-decoration-color: var(--aria-red); }
.vc-aria-proof .btn-primary:hover { color: #fff; text-decoration-color: #fff; }
.vc-aria-proof .btn-ghost { color: #fff; text-decoration-color: rgba(255,255,255,0.35); }
.vc-aria-proof .btn-ghost:hover { text-decoration-color: #fff; }

/* Context guard — this section is often dropped into body content (.vc-rte /
   .vc-prose), whose link + blockquote rules are MORE specific than a bare
   `.vc-aria-proof a` and would repaint the quote and the clickable doc card
   (green text, underlines). Re-assert the section's own treatment with enough
   specificity to win in that context. */
.vc-aria-proof .quote blockquote { color: #fff; }
.vc-aria-proof .feature .doc,
.vc-aria-proof .feature .doc:hover,
.vc-aria-proof .feature .doc:focus { color: inherit; text-decoration: none; }
.vc-aria-proof .doc .doc-tag,
.vc-aria-proof .doc .doc-meta .v { color: #fff; }
.vc-aria-proof .doc .doc-foot .read { color: #fff; text-decoration: none; }
.vc-aria-proof .ctas .btn-primary { color: var(--aria-red); text-decoration-color: var(--aria-red); }
.vc-aria-proof .ctas .btn-ghost { color: #fff; }

@media (max-width: 960px) {
  .vc-aria-proof .head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .vc-aria-proof .stats { grid-template-columns: repeat(2, 1fr); }
  .vc-aria-proof .stat { border-bottom: 1px solid var(--aria-line); }
  .vc-aria-proof .stat.free { grid-column: 1 / -1; }
  .vc-aria-proof .feature { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .vc-aria-proof .stats { grid-template-columns: 1fr 1fr; }
}
