/* ============================================================
   NEMPATHY SOLUTIONS — public site stylesheet
   Shared across all pages. DM Sans/Mono for continuity with
   Kevin's existing decks; Source Serif for editorial emphasis.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Mono:wght@400;500&family=Source+Serif+4:ital,wght@0,500;1,400;1,500&display=swap');

:root {
  --ink: #0D1B2A;
  --ink-soft: #4A5A66;
  --paper: #F6F8F7;
  --paper-raised: #FFFFFF;
  --line: rgba(13,27,42,0.12);
  --line-soft: rgba(13,27,42,0.07);
  --teal: #0E6B6B;
  --teal-deep: #094A4A;
  --teal-tint: #E0F4F4;
  --amber: #854F0B;
  --amber-deep: #603905;
  --amber-tint: #FAEEDA;
  --amber-bright: #D9A24C;
  --panel: #0D1B2A;
  --panel-text: #E7EBEA;
  --panel-text-soft: #93A6A8;
  --shadow: 0 1px 2px rgba(13,27,42,0.05), 0 10px 30px rgba(13,27,42,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.68;
  font-size: 20px;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.serif { font-family: 'Source Serif 4', Georgia, serif; }
.mono { font-family: 'DM Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------- NAV ---------- */
nav.topnav {
  background: var(--panel);
  border-bottom: 3px solid var(--amber);
}
.topnav-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 16px; padding: 16px 0; text-decoration: none; }
.brand-badge {
  width: 60px; height: 60px; border-radius: 9px;
  background: var(--teal); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Source Serif 4', serif; font-size: 32px; font-weight: 600;
  flex-shrink: 0;
}
.brand-name { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub { color: var(--panel-text-soft); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.navlinks { display: flex; gap: 4px; flex-wrap: wrap; }
.navlinks a {
  display: block; padding: 10px 14px; color: rgba(231,235,234,0.72);
  text-decoration: none; font-size: 16.5px; font-weight: 500;
  border-radius: 6px 6px 0 0; border-bottom: 2px solid transparent;
}
.navlinks a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.navlinks a.on { color: var(--panel); background: var(--amber); font-weight: 700; border-bottom-color: var(--amber); }

/* ---------- HERO ---------- */
.hero { background: var(--panel); color: var(--panel-text); padding: 68px 0 60px; }
.eyebrow {
  font-size: 19px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-bright); margin: 0 0 16px;
}
.hero h1 {
  font-weight: 700; font-size: clamp(34px, 4.8vw, 52px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance; max-width: 16ch;
}
.hero .lede { font-size: 22px; color: var(--panel-text-soft); max-width: 58ch; margin: 0 0 8px; }
.hero .lede strong { color: #fff; font-weight: 600; }

/* ---------- SECTION SCAFFOLD ---------- */
section.block { padding: 58px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: none; }
section.block.tint { background: var(--paper-raised); }
.section-label {
  font-size: 19px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 12px;
}
h2.section-title {
  font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em;
  margin: 0 0 18px; text-wrap: balance;
}
.section-dek { color: var(--ink-soft); max-width: 64ch; font-size: 20px; margin: 0 0 36px; }

/* ---------- CARDS ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .card-grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 24px 26px; box-shadow: var(--shadow);
}
.card .c-num { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 600; color: var(--teal); margin-bottom: 12px; letter-spacing: 0.03em; }
.card h3 { font-size: 21px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { font-size: 18px; color: var(--ink-soft); margin: 0; line-height: 1.62; }
.card ul { margin: 10px 0 0; padding-left: 18px; }
.card li { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 7px; line-height: 1.55; }

/* ---------- STAT ROW ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 0; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--panel); color: var(--panel-text); border-radius: 12px;
  padding: 20px 18px;
}
.stat .s-num { font-family: 'DM Mono', monospace; font-size: 28px; font-weight: 500; color: var(--amber-bright); letter-spacing: -0.01em; }
.stat .s-label { font-size: 13.5px; color: var(--panel-text-soft); margin-top: 7px; line-height: 1.45; }

/* ---------- PULLQUOTE ---------- */
.pullquote {
  font-family: 'Source Serif 4', Georgia, serif; font-style: italic;
  font-size: clamp(22px, 2.8vw, 28px); line-height: 1.42; color: var(--ink);
  border-left: 3px solid var(--amber); padding: 4px 0 4px 24px; margin: 34px 0;
  max-width: 56ch; text-wrap: balance;
}
.pullquote cite {
  display: block; font-style: normal; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); margin-top: 12px;
}

/* ---------- CTA ---------- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  font-size: 17px; font-weight: 700; text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary { background: var(--amber); color: var(--panel); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.hero .btn-ghost { border-color: rgba(231,235,234,0.3); color: var(--panel-text); }
.hero .btn-ghost:hover { border-color: var(--amber-bright); color: var(--amber-bright); }

/* ---------- TABLE ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 17.5px; background: var(--paper-raised); }
table.data th {
  background: var(--panel); color: var(--panel-text); text-align: left; padding: 12px 16px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
table.data tr:last-child td { border-bottom: none; }

/* ---------- FOOTER ---------- */
footer.sitefoot {
  background: var(--panel); color: var(--panel-text-soft); padding: 40px 0 34px;
  font-size: 16px; line-height: 1.8;
}
footer.sitefoot .foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.sitefoot a { color: var(--amber-bright); text-decoration: none; }
footer.sitefoot a:hover { text-decoration: underline; }
footer.sitefoot .foot-brand { color: #fff; font-weight: 700; font-size: 16.5px; margin-bottom: 6px; }

/* ---------- MISC ---------- */
.rule { height: 1px; background: var(--line); border: none; margin: 0; }
.tag {
  display: inline-block; background: var(--teal-tint); color: var(--teal-deep);
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
