/* =========================================================================
   South Asian Health — design system v2
   Concierge medicine practice site. Two pages: index.html,
   south-asian-health-data.html
   Brand: sunrise mark, kumkum maroon / brass / indigo on parchment,
   Lora + Public Sans, Devanagari as a secondary voice.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #F6F1E8;
  --card: #FFFDF8;
  --ink: #2B2118;
  --body: #4A392C;
  --subline: #5B4636;

  --maroon: #7A2E14;
  --maroon-strong: #5E200D;
  --brass: #C08A3E;
  --brass-deep: #B0803A;
  --brass-light: #E4C489;
  --indigo: #1E3A4F;

  --hairline: rgba(122, 46, 20, 0.14);
  --hairline-strong: rgba(122, 46, 20, 0.24);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --deva: 'Noto Serif Devanagari', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --content-max: 1120px;
  --side-pad: 40px;
  --measure: 660px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-strong); }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.06; max-width: 24ch; }
h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}
section { padding: 88px 0; }
.hairline-top { border-top: 1px solid var(--hairline); }
.measure { max-width: var(--measure); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--maroon);
}
.header-nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--subline); white-space: nowrap; }
.nav-link:hover { color: var(--maroon); }
.site-header .btn-primary .btn-short { display: none; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost,
.btn-inverse,
.btn-inverse-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.site-header .btn-primary { padding: 12px 22px; font-size: 15px; }
.btn-primary { background: var(--maroon); color: var(--card); border-color: var(--maroon); }
.btn-primary:hover { background: var(--maroon-strong); border-color: var(--maroon-strong); color: var(--card); }
.btn-ghost { color: var(--maroon); border-color: rgba(122, 46, 20, 0.4); }
.btn-ghost:hover { background: rgba(122, 46, 20, 0.06); }
.btn-inverse { background: var(--card); color: var(--maroon); }
.btn-inverse:hover { background: var(--brass-light); color: var(--maroon-strong); }
.btn-inverse-ghost { color: var(--card); border-color: rgba(255, 253, 248, 0.5); }
.btn-inverse-ghost:hover { background: rgba(255, 253, 248, 0.1); color: var(--card); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo);
}
.eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.eyebrow-rule {
  width: 1px;
  height: 11px;
  background: var(--hairline-strong);
  align-self: center;
  flex: none;
}
.deva {
  font-family: var(--deva);
  font-size: 14px;
  line-height: 1;
  color: var(--maroon);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-orbits {
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 730px;
  right: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 25%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 25%);
}
.hero-orbits svg { position: absolute; }
.orbit-indigo {
  width: 620px; height: 620px;
  top: -160px; right: -200px;
  color: var(--indigo);
  opacity: 0.45;
}
.orbit-brass {
  width: 440px; height: 440px;
  top: 0; right: -30px;
  color: var(--brass);
  opacity: 0.6;
}
.hero h1 { margin-top: 22px; }
.hero .subhead {
  margin-top: 24px;
  font-size: 19px;
  color: var(--subline);
  max-width: 56ch;
}
.hero .btn-row { margin-top: 34px; }
.hero .cta-note { margin-top: 20px; font-size: 15px; color: var(--subline); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}
.about-grid h2 { margin-top: 20px; }
.signoff {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-strong);
}
.signoff .name { font-family: var(--serif); font-size: 19px; }
.signoff .role { color: var(--subline); font-size: 14.5px; margin-top: 4px; }
.about-body { max-width: 64ch; }
.about-body p { margin-bottom: 1.2em; font-size: 18px; line-height: 1.7; color: var(--body); }
.about-body p:last-child { margin-bottom: 0; }
.about-body p.drop { font-size: 19px; line-height: 1.68; color: var(--ink); }
.about-body p.drop::first-letter {
  font-family: var(--serif);
  color: var(--maroon);
  float: left;
  font-size: 3.4em;
  line-height: 0.84;
  padding-right: 0.08em;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 34ch; }
.section-head.wide { max-width: 44ch; }
.section-head h2 { margin-top: 20px; }
.section-lede { margin-top: 18px; font-size: 18px; color: var(--subline); max-width: 64ch; }
.head-split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.head-split .section-lede { margin-top: 0; font-size: 17px; max-width: 52ch; }

/* ---------- Process grid ---------- */
.process-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.step {
  background: var(--card);
  padding: 36px 32px 40px;
}
.step-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.step-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--brass-deep); }
.step-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo);
  min-height: 34px;
  text-align: right;
}
.step h3 { margin-top: 24px; }
.step-copy { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--subline); }
.step-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.step-tag {
  font-size: 13px;
  color: var(--indigo);
  border: 1px solid rgba(30, 58, 79, 0.24);
  padding: 4px 11px;
  border-radius: 2px;
}
.step-tag.path {
  color: var(--maroon);
  background: rgba(122, 46, 20, 0.07);
  border-color: rgba(122, 46, 20, 0.22);
}

/* ---------- Two paths ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.path-card {
  background: var(--card);
  border: 1px solid rgba(122, 46, 20, 0.16);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.path-card h3 { margin-top: 16px; font-size: 26px; line-height: 1.2; }
.path-name {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo);
}
.path-tagline { margin-top: 12px; color: var(--subline); font-size: 17px; }
.path-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.path-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16.5px;
  line-height: 1.5;
}
.path-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--indigo);
  margin-top: 10px;
  flex: none;
}
.path-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-strong);
  font-size: 15px;
  color: var(--subline);
}
.path-card.emphasis {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--card);
}
.path-card.emphasis h3 { color: var(--card); }
.path-card.emphasis .path-name { color: var(--brass-light); }
.path-card.emphasis .path-tagline { color: rgba(255, 253, 248, 0.82); }
.path-card.emphasis .path-plus {
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-light);
}
.path-card.emphasis .path-list { margin-top: 20px; }
.path-card.emphasis .path-list li::before { background: var(--brass-light); }
.path-card.emphasis .path-note {
  border-top-color: rgba(255, 253, 248, 0.22);
  color: rgba(255, 253, 248, 0.72);
}
.paths-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.paths-cta .helper { font-size: 15px; color: var(--subline); }

/* ---------- Comparison ---------- */
.compare {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.compare .th {
  background: var(--bg);
  padding: 20px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--subline);
}
.compare .th.ours { color: var(--maroon); }
.compare .td {
  background: var(--card);
  padding: 24px 28px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--subline);
}
.compare .td.ours { color: var(--ink); }
.compare-note {
  margin-top: 36px;
  color: var(--subline);
  font-size: 17px;
  line-height: 1.75;
  max-width: 78ch;
}
.compare-note strong { color: var(--ink); font-family: var(--serif); font-weight: 400; }

/* ---------- Closing band ---------- */
.closing {
  background: var(--maroon);
  color: var(--card);
  padding: 96px 0;
}
.closing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.seal { width: 44px; height: 44px; }
.closing h2 { margin-top: 32px; color: var(--card); font-size: clamp(2rem, 3vw, 2.7rem); }
.closing p { margin-top: 18px; color: rgba(255, 253, 248, 0.82); font-size: 18px; max-width: 52ch; }
.closing .btn-row { margin-top: 32px; justify-content: center; }
.contact-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
  color: rgba(255, 253, 248, 0.7);
  font-family: var(--mono);
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; }
.site-footer.ruled { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-link { color: var(--maroon); text-decoration: none; font-size: 16px; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.footer-credit { color: var(--subline); font-size: 14px; }

/* ---------- Data page ---------- */
.data-hero { padding: 96px 0 80px; }
.data-hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.data-hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 4.6vw, 4.1rem); }
.data-hero .subhead { font-size: 18px; line-height: 1.7; color: var(--subline); }
.data-section { padding: 80px 0; }
.data-section .head-split .section-head { max-width: 38ch; }
.data-section h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.18; }

.stat-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-grid.two { grid-template-columns: repeat(2, 1fr); }
.stat-card {
  background: var(--card);
  border: 1px solid rgba(122, 46, 20, 0.16);
  border-top: 3px solid var(--maroon);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.stat-card.qualitative { border-top-color: var(--indigo); }
.stat-figure {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.05;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}
.stat-figure.long { font-size: 30px; line-height: 1.15; }
.stat-card.qualitative .stat-figure { color: var(--indigo); }
.stat-label {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo);
}
.stat-body { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--subline); flex: 1; }
.stat-body em { color: var(--ink); }
.stat-source {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.stat-source a { font-size: 13px; font-weight: 600; color: var(--indigo); text-decoration: none; }
.stat-source a:hover { text-decoration: underline; }

/* ---------- Sources ---------- */
.sources-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}
.source-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.source-num { font-family: var(--serif); color: var(--brass-deep); font-size: 16px; }
.source-item p { font-size: 15px; line-height: 1.6; color: var(--subline); }
.source-item p em { color: var(--ink); }
.sources-note {
  margin-top: 44px;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid rgba(122, 46, 20, 0.16);
  font-size: 16px;
  color: var(--subline);
  line-height: 1.7;
  max-width: 88ch;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-orbits { left: 62%; }
}
@media (max-width: 860px) {
  :root { --side-pad: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .data-hero .wrap { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .paths-grid { grid-template-columns: 1fr; }
  .sources-list { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .th {
    position: sticky;
    top: 82px;
    z-index: 10;
    box-shadow: 0 1px 0 var(--hairline);
  }
  .compare .th.ours { top: 140px; }
  .compare .th:first-child,
  .compare .td:nth-child(odd) { border-bottom: none; }
}
/* Header nav links wrap onto two lines below ~800px once they're nowrap-protected —
   hide them here (same treatment as the old build) before that happens. */
@media (max-width: 800px) {
  .site-header .wrap { gap: 10px; }
  .header-nav { gap: 10px; }
  .header-nav .nav-link { display: none; }
  .brand-sub { display: none; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-header .btn-primary { padding: 10px 13px; font-size: 14px; }
  .site-header .btn-primary .btn-full { display: none; }
  .site-header .btn-primary .btn-short { display: inline; }
}

@media (max-width: 720px) {
  section, .data-section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .data-hero { padding: 64px 0 48px; }
  .closing { padding: 72px 0; }
  .process-grid, .stat-grid, .stat-grid.two { grid-template-columns: 1fr; }
  .hero-orbits { display: none; }
  .step, .path-card { padding: 28px 24px; }
  .contact-block { gap: 10px; flex-direction: column; }
}

/* Oldest/smallest phones: brand + button alone still don't fit at full size */
@media (max-width: 360px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { font-size: 15px; }
  .site-header .btn-primary { padding: 8px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
