/* American Medical — design system
   AMA brand: white · navy #002855 · cyan #00B3F0 · Zodiak display serif + Satoshi body */

:root {
  /* palette — light */
  --bg: #ffffff;
  --surface: #f7f9fe;
  --surface-2: #edf3fb;
  --text: #0f2d4d;
  --text-2: #3f5468;
  --muted: #64788a;
  --accent: #0077b4;
  --accent-strong: #002855;
  --accent-soft: #e1f4fd;
  --clay: #00b3f0;
  --clay-soft: #dcf2fc;
  --border: oklch(from var(--text) l c h / 0.12);
  --border-soft: oklch(from var(--text) l c h / 0.07);

  /* type */
  --font-display: "Zodiak", Georgia, serif;
  --font-body: "Satoshi", -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1.7rem + 4.2vw, 4.6rem);

  /* space, radius, shadow */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 22px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 250 / 0.06), 0 4px 14px oklch(0.25 0.02 250 / 0.05);
  --shadow-md: 0 2px 4px oklch(0.25 0.02 250 / 0.07), 0 10px 28px oklch(0.25 0.02 250 / 0.08);
  --content-narrow: 640px; --content-default: 1000px; --content-wide: 1200px;
}

/* ------------------------------------------------ reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-5); }
.container.wide { max-width: var(--content-wide); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section.tight { padding-block: clamp(var(--space-12), 5vw, var(--space-16)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--clay); border-radius: 2px; }
.lede { font-size: var(--text-lg); color: var(--text-2); max-width: 62ch; }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .inner {
  max-width: var(--content-wide); margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex; align-items: center; gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand svg { color: var(--accent); }
.brand .brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.brand .brand-sub { display: block; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .brand .brand-sub { display: none; } }

.nav { display: flex; gap: var(--space-1); margin-left: auto; align-items: center; }
.nav a {
  color: var(--text-2); font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-full);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.nav .cta { background: var(--accent); color: oklch(0.99 0.005 84); margin-left: var(--space-2); }
.nav .cta:hover { background: var(--accent-strong); color: oklch(0.99 0.005 84); }
.nav .cta.ghost { background: transparent; color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent-strong); }
.nav .cta.ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }

.menu-btn {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px; color: var(--text); cursor: pointer;
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-base); }
  .nav .cta { margin-left: 0; text-align: center; margin-top: var(--space-2); }
  .menu-btn { display: block; }
}

/* ------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: var(--space-10);
  padding-block: clamp(var(--space-16), 9vw, 120px);
  align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-bottom: var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-art { position: relative; min-height: 280px; }
.hero-art svg { width: 100%; height: auto; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% -10%, oklch(from var(--accent) l c h / 0.09), transparent 65%),
    radial-gradient(520px 380px at -8% 108%, oklch(from var(--clay) l c h / 0.09), transparent 60%);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--text-sm); font-family: var(--font-body);
  padding: 13px 24px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  min-height: 44px;
}
.btn.primary { background: var(--accent); color: oklch(0.99 0.005 84); }
.btn.primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--text-2); background: var(--surface); color: var(--text); }
.btn.small { padding: 8px 16px; min-height: 38px; font-size: var(--text-xs); }
.btn:active { transform: translateY(0); }

/* ------------------------------------------------ stats band */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6);
  border-block: 1px solid var(--border-soft);
  padding-block: var(--space-10);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--accent); line-height: 1; }
.stat .label { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-2); }

/* ------------------------------------------------ cards */
.grid { display: grid; gap: var(--space-5); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.region-card { display: flex; flex-direction: column; gap: var(--space-2); color: var(--text); }
.region-card:hover { color: var(--text); }
.region-card .count { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.region-card h3 { margin: 0; }
.region-card p { color: var(--text-2); font-size: var(--text-sm); margin: 0; }
.region-card .go { margin-top: auto; padding-top: var(--space-3); font-weight: 700; font-size: var(--text-sm); color: var(--accent); }

/* practice card */
.practice-card { display: flex; flex-direction: column; gap: var(--space-3); }
.practice-card h3 { margin: 0; font-size: 1.35rem; }
.practice-card .spec {
  align-self: flex-start;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft);
  padding: 4px 12px; border-radius: var(--radius-full);
}
.practice-card .tagline { font-style: italic; font-family: var(--font-display); color: var(--text-2); margin: 0; }
.practice-card .desc { color: var(--text-2); font-size: var(--text-sm); margin: 0; }
.meta { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-2); }
.meta .row { display: flex; gap: var(--space-3); align-items: flex-start; }
.meta svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--clay); }
.meta a { font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }

/* provider card */
.provider-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
.provider-card .avatar {
  width: 52px; height: 52px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.provider-card h3 { margin: 0; font-size: 1.2rem; }
.provider-card .cred { color: var(--clay); font-weight: 700; font-size: var(--text-sm); }
.provider-card .role { color: var(--text-2); font-size: var(--text-sm); }
.provider-card .locs { color: var(--muted); font-size: var(--text-xs); }
.provider-card .bio { color: var(--text-2); font-size: var(--text-sm); margin: var(--space-2) 0 0; }
.provider-card .card-actions { padding-top: var(--space-3); }

/* practice group header on providers page */
.practice-group { margin-bottom: var(--space-12); }
.practice-group > .group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3);
  border-bottom: 2px solid var(--border); padding-bottom: var(--space-3); margin-bottom: var(--space-6);
}
.practice-group h3 { margin: 0; }
.practice-group .group-head .where { color: var(--muted); font-size: var(--text-sm); }

/* region section header */
.region-head { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.region-head h2 { margin: 0; }
.region-head .blurb { color: var(--text-2); max-width: 52ch; }

/* ------------------------------------------------ services */
.service-card { display: flex; flex-direction: column; gap: var(--space-3); }
.service-card .icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { margin: 0; font-size: 1.25rem; }
.service-card p { color: var(--text-2); font-size: var(--text-sm); margin: 0; }

/* ------------------------------------------------ band / CTA */
.band {
  background: var(--accent-strong);
  color: oklch(0.96 0.01 84);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  position: relative; overflow: hidden;
}
.band h2 { color: inherit; max-width: 22ch; }
.band p { color: oklch(0.96 0.01 84 / 0.75); max-width: 58ch; }
.band .btn.primary { background: oklch(0.98 0.008 84); color: var(--accent-strong); }
.band .btn.primary:hover { background: oklch(0.93 0.012 84); }
.band .btn.secondary { border-color: oklch(0.98 0.01 84 / 0.35); color: oklch(0.97 0.01 84); }
.band .btn.secondary:hover { background: oklch(1 0 0 / 0.1); color: oklch(0.99 0 0); }
.band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; border: 60px solid oklch(1 0 0 / 0.05);
}

/* ------------------------------------------------ book page */
.book-hero { padding-block: clamp(var(--space-16), 7vw, var(--space-20)) var(--space-8); }
.steps { counter-reset: step; display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700;
  color: var(--clay); display: block; margin-bottom: var(--space-2);
}
.portal-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
  background: var(--clay-soft); border: 1px solid oklch(from var(--clay) l c h / 0.25);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
}
.portal-strip p { margin: 0; font-size: var(--text-sm); color: var(--text-2); }
.portal-strip .btn { margin-left: auto; }
@media (max-width: 640px) { .portal-strip .btn { margin-left: 0; } }
.portal-strip .app-links { margin-left: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.portal-strip .app-links .btn { margin-left: 0; }
@media (max-width: 640px) { .portal-strip .app-links { margin-left: 0; } }

/* AMA logo */
.brand img.logo { height: 40px; width: auto; display: block; }

/* booking directory table-ish list */
.book-list { display: grid; gap: var(--space-3); }
.book-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
}
.book-row .who { font-weight: 700; }
.book-row .who small { display: block; font-weight: 500; color: var(--muted); }
.book-row .spacer { margin-left: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 560px) { .book-row .spacer { margin-left: 0; width: 100%; } }

/* ------------------------------------------------ about */
.two-col { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.05fr 0.95fr; } }
.prose p { color: var(--text-2); }
.prose .drop { font-size: var(--text-lg); color: var(--text); }
blockquote {
  margin: var(--space-8) 0; padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--clay);
  background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--text);
}
blockquote cite { display: block; margin-top: var(--space-2); font-family: var(--font-body); font-style: normal; font-size: var(--text-xs); color: var(--muted); }
.leader-list { display: grid; gap: var(--space-3); }
.leader { display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.leader .avatar { width: 44px; height: 44px; flex: none; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.leader .who b { display: block; }
.leader .who span { color: var(--muted); font-size: var(--text-sm); }

/* ------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--surface); margin-top: var(--space-20); }
.site-footer .inner {
  max-width: var(--content-wide); margin-inline: auto;
  padding: var(--space-16) var(--space-5) var(--space-10);
  display: grid; gap: var(--space-10);
}
@media (min-width: 860px) { .site-footer .inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--text-2); font-size: var(--text-sm); }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-blurb { color: var(--muted); font-size: var(--text-sm); max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-5); text-align: center;
  color: var(--muted); font-size: var(--text-xs);
}

/* page hero (interior pages) */
.page-hero { padding-block: clamp(var(--space-16), 7vw, var(--space-20)) 0; }
.page-hero h1 { font-size: var(--text-3xl); max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }

/* region jump nav */
.jump-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.jump-nav a {
  font-size: var(--text-sm); font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 8px 18px; min-height: 40px; display: inline-flex; align-items: center;
}
.jump-nav a:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

/* reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* util */
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
