/* ─── The Clinician Advocate — Shared Styles ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F6F3EE;
  --bg-card: #FFFFFF;
  --ink: #1F2A28;
  --ink-muted: #5B6B68;
  --ink-dim: #8B978F;
  --navy: #101B1A;
  --navy-card: #182422;
  --teal: #0F766E;
  --teal-dark: #0B5C56;
  --teal-tint: #EAF6F4;
  --amber: #B45309;
  --amber-tint: #FFF6E9;
  --blue: #1D4ED8;
  --blue-tint: #EEF3FF;
  --rule: #E2DCCF;
  --rule-dark: rgba(255,255,255,.1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.serif { font-family: Georgia, 'Times New Roman', serif; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 200;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; background: rgba(246,243,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; letter-spacing: .01em; color: var(--ink); }
.nav-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.nav-logo-mark { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-mark { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .78rem; font-weight: 600; color: var(--ink-muted); transition: color .15s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { font-size: .75rem; font-weight: 700; color: #fff !important; background: var(--teal); padding: 10px 22px; border-radius: 4px; transition: background .15s; }
.nav-cta:hover { background: var(--teal-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* ─── HERO ─── */
.hero { background: var(--navy); color: #fff; padding: 100px 5% 80px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(15,118,110,.28) 0%, rgba(15,118,110,0) 70%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; position: relative; z-index: 1; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.eyebrow.light { color: #7FD9CF; }
.hero h1 { font-family: Georgia, serif; font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.1; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: #7FD9CF; }
.hero p.lede { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.72); max-width: 620px; margin-bottom: 36px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; font-size: .8rem; font-weight: 700; padding: 14px 28px; border-radius: 4px; transition: opacity .15s, background .15s; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { opacity: .88; }
.btn-outline { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

/* ─── STAT BAND ─── */
.stat-band { background: var(--bg-card); border-bottom: 1px solid var(--rule); padding: 44px 5%; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto; }
.stat-cell { text-align: center; padding: 0 20px; border-left: 1px solid var(--rule); }
.stat-cell:first-child { border-left: none; }
.stat-num { font-family: Georgia, serif; font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--teal); line-height: 1; }
.stat-lbl { font-size: .74rem; color: var(--ink-muted); margin-top: 10px; line-height: 1.5; }

/* ─── SECTION SCAFFOLDING ─── */
.section { padding: 96px 5%; }
.section.alt { background: var(--bg-card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-inner { max-width: 1160px; margin: 0 auto; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.tag.teal { color: var(--teal); }
.tag.amber { color: var(--amber); }
.tag.blue { color: var(--blue); }
h2.section-title { font-family: Georgia, serif; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: 20px; }
.body-text { font-size: .96rem; line-height: 1.8; color: var(--ink-muted); }

/* ─── INDEX FEATURE (two-col) ─── */
.index-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .index-grid { grid-template-columns: 1fr; gap: 40px; } }

.roadmap { margin-top: 36px; display: flex; flex-direction: column; gap: 0; }
.road-step { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); }
.road-step:last-child { border-bottom: 1px solid var(--rule); }
.road-badge { flex-shrink: 0; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; height: fit-content; white-space: nowrap; }
.road-badge.active { background: var(--teal-tint); color: var(--teal-dark); }
.road-badge.planned { background: var(--rule); color: var(--ink-muted); }
.road-step h4 { font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.road-step p { font-size: .82rem; color: var(--ink-muted); line-height: 1.6; }

.capture-form { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.capture-form input { flex: 1; min-width: 220px; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 4px; font-family: inherit; font-size: .85rem; background: #fff; }
.capture-form input:focus { outline: none; border-color: var(--teal); }
.capture-form button { padding: 13px 24px; }
.form-note { font-size: .72rem; color: var(--ink-dim); margin-top: 10px; }
.form-success, .form-error { display: none; margin-top: 12px; padding: 12px 16px; border-radius: 4px; font-size: .82rem; }
.form-success { background: var(--teal-tint); color: var(--teal-dark); }
.form-error { background: #FDECEC; color: #B42318; }

/* Illustrative scorecard preview card */
.preview-card { background: var(--navy-card); border-radius: 10px; padding: 32px 28px 24px; color: #fff; }
.preview-card .preview-tag { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7FD9CF; margin-bottom: 4px; }
.preview-card .preview-title { font-size: .95rem; font-weight: 700; margin-bottom: 22px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-label { font-size: .7rem; color: rgba(255,255,255,.65); width: 90px; flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: rgba(255,255,255,.1); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--teal), #7FD9CF); }
.preview-foot { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 20px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }

/* ─── ISSUE TILES ─── */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); margin-top: 48px; border: 1px solid var(--rule); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tile-grid { grid-template-columns: 1fr; } }
.tile { background: var(--bg-card); padding: 32px 26px; border-top: 3px solid var(--teal); }
.tile:nth-child(3n+2) { border-top-color: var(--amber); }
.tile:nth-child(3n) { border-top-color: var(--blue); }
.tile .tile-num { font-family: Georgia, serif; font-size: 1.3rem; color: var(--ink-dim); margin-bottom: 10px; }
.tile h4 { font-size: .88rem; font-weight: 700; margin-bottom: 10px; }
.tile p { font-size: .82rem; line-height: 1.7; color: var(--ink-muted); }

/* ─── STORY FORM ─── */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.rr-form { display: flex; flex-direction: column; gap: 18px; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; padding: 32px; }
.rr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .rr-form-row { grid-template-columns: 1fr; } }
.rr-form-group { display: flex; flex-direction: column; gap: 6px; }
.rr-form-group label { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.rr-form-group input, .rr-form-group textarea {
  border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px;
  font-family: inherit; font-size: .85rem; color: var(--ink); background: #fff; resize: vertical;
}
.rr-form-group input:focus, .rr-form-group textarea:focus { outline: none; border-color: var(--teal); }
.char-note { font-size: .68rem; color: var(--ink-dim); text-align: right; }

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
@media (max-width: 860px) { .stories-grid { grid-template-columns: 1fr; } }
.story-card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; padding: 26px 22px; }
.story-card blockquote { font-family: Georgia, serif; font-style: italic; font-size: 1rem; line-height: 1.6; margin-bottom: 14px; }
.story-card cite { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-style: normal; }

/* ─── RESOURCES ─── */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; padding: 26px 24px; }
.resource-card h4 { font-size: .85rem; font-weight: 700; margin-bottom: 8px; color: var(--teal-dark); }
.resource-card p { font-size: .82rem; line-height: 1.75; color: var(--ink-muted); }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; filter: grayscale(.15); }
.quote-block { border-left: 3px solid var(--amber); padding-left: 24px; margin: 28px 0; }
.quote-block blockquote { font-family: Georgia, serif; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; margin-bottom: 10px; }
.quote-block cite { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); font-style: normal; }
.cred-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.cred-list li { display: flex; gap: 12px; font-size: .84rem; color: var(--ink-muted); }
.cred-line { width: 16px; height: 2px; background: var(--teal); margin-top: 9px; flex-shrink: 0; }

/* ─── SERVICES (off to the side) ─── */
.services-section { background: var(--navy); color: #fff; padding: 80px 5%; }
.services-head { max-width: 620px; margin-bottom: 44px; }
.services-head .tag { color: #7FD9CF; }
.services-head h3 { font-family: Georgia, serif; font-size: 1.6rem; margin-bottom: 10px; }
.services-head p { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px) { .service-cards { grid-template-columns: 1fr; } }
.service-card { background: var(--navy-card); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.service-card h4 { font-size: .88rem; font-weight: 700; }
.service-card p { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.7; flex-grow: 1; }
.service-card .go { font-size: .72rem; font-weight: 700; color: #7FD9CF; }

/* ─── NEWSLETTER BAND ─── */
.newsletter-band { background: var(--teal); color: #fff; padding: 70px 5%; text-align: center; }
.newsletter-band h3 { font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 auto 14px; max-width: 560px; }
.newsletter-band p { font-size: .92rem; color: rgba(255,255,255,.82); max-width: 480px; margin: 0 auto 30px; line-height: 1.7; }
.newsletter-band .btn { background: #fff; color: var(--teal-dark); }
.newsletter-band .btn:hover { opacity: .9; }

/* ─── FOOTER ─── */
footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 60px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: Georgia, serif; font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.footer-brand-desc { font-size: .8rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #7FD9CF; margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: .8rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }

/* ─── CONTACT MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,27,26,.72); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-card { background: var(--bg-card); border-radius: 10px; padding: 36px; max-width: 440px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-card > p { font-size: .85rem; color: var(--ink-muted); margin-bottom: 20px; line-height: 1.6; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: .85rem; color: var(--ink-muted); cursor: pointer; }
.modal-card .rr-form { border: none; padding: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 6%; }
  .hero { padding: 72px 6% 56px; }
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .stat-cell { border-left: none; border-top: 1px solid var(--rule); padding-top: 20px; }
  .stat-cell:first-child { border-top: none; padding-top: 0; }
}
