/* ==========================================================================
   Case Studies page (mh-cs-*) — case-studies.php
   Uses the tokens and base components from styles.css.
   ========================================================================== */

/* 1. Hero */
.mh-cs-hero { padding-block: 112px 96px; }
.mh-cs-hero__copy { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.mh-cs-hero__statement { font-size: 56px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; max-width: 820px; }
.mh-cs-hero__lead { font-size: 18px; line-height: 1.6; color: var(--mh-text-body); max-width: 600px; }
.mh-cs-hero .mh-hero__actions { justify-content: center; padding-top: 8px; }
.mh-cs-facts { margin: 80px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--mh-border); }
.mh-cs-facts > div { padding: 28px 24px 0; text-align: center; border-left: 1px solid var(--mh-border-subtle); display: flex; flex-direction: column; gap: 8px; }
.mh-cs-facts > div:first-child { border-left: 0; }
.mh-cs-facts dt { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--mh-ink); }
.mh-cs-facts dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mh-text-secondary); }

/* 2. Case */
.mh-cs-case { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.mh-cs-case--rev { flex-direction: row-reverse; }
.mh-cs-case__visual { flex: 1 1 620px; min-width: 0; }
.mh-cs-case__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-cs-stage { border-radius: 16px; overflow: hidden; padding: 40px 32px; display: flex; align-items: center; justify-content: center; background: var(--mh-blue-tint); }
.mh-cs-stage img { display: block; width: 100%; height: auto; }
.mh-cs-stage--blue { background: var(--mh-blue-tint); }
.mh-cs-stage--violet { background: var(--mh-violet-tint); }
.mh-cs-stage--green { background: var(--mh-green-tint); }
.mh-cs-stage--amber { background: var(--mh-amber-tint); }
.mh-cs-stage--teal { background: var(--mh-teal-tint); }
.mh-cs-stage--navy { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); }
.mh-cs-case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mh-cs-case__num { font-size: 14px; font-weight: 600; color: var(--mh-text-muted); font-variant-numeric: tabular-nums; }
.mh-cs-case__title { font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.mh-cs-case__title a { text-decoration: none; }
.mh-cs-case__text { font-size: 16px; line-height: 1.6; color: var(--mh-text-body); }
.mh-cs-facts-list { width: 100%; margin: 8px 0 0; border-top: 1px solid var(--mh-border); }
.mh-cs-facts-list > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--mh-border); }
.mh-cs-facts-list dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); padding-top: 3px; }
.mh-cs-facts-list dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mh-text-strong); }
.mh-cs-case .mh-btn { margin-top: 4px; }

/* Case on navy */
.mh-section--navy .mh-cs-case__num { color: var(--mh-on-navy-muted); }
.mh-section--navy .mh-cs-case__title { color: var(--mh-on-navy); }
.mh-section--navy .mh-cs-case__text { color: var(--mh-on-navy-body); }
.mh-section--navy .mh-cs-facts-list,
.mh-section--navy .mh-cs-facts-list > div { border-color: rgba(255,255,255,0.12); }
.mh-section--navy .mh-cs-facts-list dt { color: var(--mh-on-navy-muted); }
.mh-section--navy .mh-cs-facts-list dd { color: var(--mh-on-navy-body); }

.mh-cs-empty { font-size: 16px; color: var(--mh-text-body); text-align: center; }

/* 3. CTA */
.mh-cs-cta { padding-block: 112px; border-top: 1px solid var(--mh-border-subtle); }
.mh-cs-cta__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.mh-cs-cta__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-cs-cta__copy p { font-size: 16px; line-height: 1.6; color: var(--mh-text-body); max-width: 520px; }
.mh-cs-cta__card { flex: 1 1 380px; min-width: 0; background: var(--mh-navy); color: var(--mh-on-navy); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mh-cs-cta__card-title { font-size: 20px; line-height: 1.3; font-weight: 600; }
.mh-cs-cta__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--mh-on-navy-body); }
.mh-cs-cta__list li { display: flex; align-items: center; gap: 10px; }
.mh-cs-cta__list svg { width: 16px; height: 16px; flex: none; color: var(--mh-accent); }
.mh-cs-cta__card .mh-btn { margin-top: 8px; }
.mh-cs-cta__card .mh-btn:focus-visible { outline-color: var(--mh-accent); }

/* Responsive */
@media (max-width: 900px) {
  .mh-cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-cs-facts > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .mh-cs-hero { padding-block: 72px; }
  .mh-cs-hero__statement { font-size: 40px; }
  .mh-cs-facts { margin-top: 56px; }
  .mh-cs-facts dt { font-size: 32px; }
  .mh-cs-case__title { font-size: 30px; }
  .mh-cs-stage { padding: 20px 12px; }
  .mh-cs-facts-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mh-cs-cta { padding-block: 72px; }
  .mh-cs-cta__card { padding: 24px; }
}
