/* Affordable Healthcare Idaho — site styles
   Plain CSS, no build step. Theme lives in the variables below. */

:root {
  --pine: #1f4a3b;
  --pine-700: #163629;
  --pine-50: #eaf1ec;
  --sand: #f7f3ec;
  --sand-200: #ece4d6;
  --rust: #a4541a;
  --rust-700: #84420f;
  --ink: #1b2620;
  --ink-soft: #4d5a53;
  --line: #dcd5c8;
  --bg: #fffdf9;
  --max: 1120px;
  --read: 70ch;
  --radius: 14px;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.22rem; font-weight: 700; margin: 1.2em 0 .4em; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .4rem; }
strong { color: var(--ink); }
.muted { color: var(--ink-soft); font-size: .92rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--rust); margin-bottom: .6rem; }

/* buttons */
.btn { display: inline-block; background: var(--rust); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--rust); cursor: pointer; font: 600 1rem var(--font-body); }
.btn:hover { background: var(--rust-700); border-color: var(--rust-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--ghost:hover { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--light:hover { background: #fff; color: var(--pine-700); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 10px 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 64px; width: auto; display: block; }
@media (max-width: 560px) { .logo img { height: 42px; } }
.logo span { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.05; }
.logo small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.nav__links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; }
.nav__links li { margin: 0; position: relative; }
.nav__links a { display: block; padding: 8px 11px; font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav__links a:hover { background: var(--pine-50); color: var(--pine-700); }
.nav__call { background: var(--pine); color: #fff !important; font-weight: 600 !important; border-radius: 999px !important; padding: 9px 16px !important; margin-left: 6px; }
.nav__call:hover { background: var(--pine-700) !important; }
.dropdown { list-style: none; position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 14px 30px rgba(20,40,30,.12); display: none; margin: 0; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav__links.open { display: flex; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav__call { margin: 8px 0 0; text-align: center; }
}

/* hero */
.hero { position: relative; background: linear-gradient(160deg, var(--pine-700) 0%, var(--pine) 55%, #2e6650 100%); color: #fff; overflow: hidden; }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; opacity: .9; pointer-events: none; }
.hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 72px 20px 120px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .eyebrow { color: #f2c48d; }
.hero p.lead { font-size: 1.15rem; max-width: 56ch; margin-top: 1rem; color: rgba(255,255,255,.92); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.4rem; padding: 0; list-style: none; font-size: .9rem; color: rgba(255,255,255,.88); }
.trust li { margin: 0; }
.trust li::before { content: "✓ "; color: #f2c48d; font-weight: 700; }
.hero--short .hero__inner { padding: 56px 20px 96px; }

/* sections */
.section { padding: 64px 0; }
.section--tint { background: var(--sand); }
.section--pine { background: var(--pine-50); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 64ch; }
.byline { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.9); }

/* grids & cards */
.grid { display: grid; gap: 18px; margin-top: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; text-decoration: none; }
.card--step { border-top: 4px solid var(--rust); }
.step-num { font-family: var(--font-head); font-size: 2rem; color: var(--rust); line-height: 1; margin-bottom: 8px; }

/* layers diagram */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.layer { padding: 22px; background: #fff; border-right: 1px solid var(--line); }
.layer:last-child { border-right: 0; }
.layer h3 { margin-top: 4px; }
.layer .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--pine-50); color: var(--pine-700); }
.layer--2 .tag { background: #f8e6d6; color: var(--rust-700); }
.layer--3 .tag { background: var(--sand-200); color: var(--ink); }
@media (max-width: 760px) { .layers { grid-template-columns: 1fr; } .layer { border-right: 0; border-bottom: 1px solid var(--line); } }

/* tables */
.table-wrap { overflow-x: auto; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* callouts */
.note { background: var(--sand); border-left: 4px solid var(--rust); padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.note p:last-child { margin-bottom: 0; }
.note--pine { background: var(--pine-50); border-left-color: var(--pine); }
.disclosures { background: var(--sand); border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--ink-soft); }
.disclosures p { margin-bottom: .7rem; max-width: 95ch; }
.disclosures strong { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* FAQ (visible) */
.faqs { margin-bottom: 8px; }
.grid + h2, .grid + .faqs, .card + h2 { margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { margin: 0 0 .4em; font-size: 1.12rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* link lists */
.linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.linklist li { margin: 0; }
.linklist a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .95rem; }
.linklist a:hover { border-color: var(--pine); }

/* split + facts */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts h3 { margin-top: 0; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--ink-soft); }

/* example box */
.example { background: #fff; border: 2px solid var(--pine); border-radius: var(--radius); padding: 22px; }
.example .big { font-family: var(--font-head); font-size: 2.2rem; color: var(--pine-700); line-height: 1.1; }
.example h3 { margin-top: 0; }

/* map */
.map { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.map svg { width: 100%; height: auto; }
.map text { font: 600 13px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.map a:hover text { fill: var(--rust); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(20,40,30,.06); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9c1b2; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(164,84,26,.25); border-color: var(--rust); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }
.req { color: var(--rust); }

/* CTA band */
.cta-band { background: var(--pine-700); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* author */
.author { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font: 700 1.3rem var(--font-head); flex: none; }

/* footer */
.site-footer { background: #13241c; color: rgba(255,255,255,.82); padding: 52px 0 96px; font-size: .93rem; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-small { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: rgba(255,255,255,.6); }

/* sticky mobile bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-shadow: 0 -6px 18px rgba(0,0,0,.12); }
  .mobile-bar a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; color: #fff; background: var(--pine); }
  .mobile-bar a + a { background: var(--rust); }
}

/* article pages (legal/utility) */
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article { max-width: 760px; }
