/* EMT Journey — Cobalt & Flare. Tokens first; components use only tokens. */
:root {
  --bg: #F7F5F2;          /* Ash */
  --surface: #FFFFFF;
  --ink: #16171A;         /* Charcoal */
  --muted: #5B5E66;
  --border: #E4E1DC;
  --primary: #1F5FD6;     /* Cobalt */
  --primary-ink: #FFFFFF;
  --link: #1A4FB3;        /* Cobalt text */
  --flare: #FF8A2A;       /* Flare */
  --flare-ink: #16171A;
  --flare-icon: #E0620A;
  --flare-text: #A85200;
  --danger: #B3261E;
  --danger-ink: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,23,26,.06), 0 8px 24px rgba(22,23,26,.06);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171A;        /* Charcoal */
    --surface: #1F2125;   /* Graphite */
    --ink: #F4F2EF;       /* Ink on dark */
    --muted: #A9ABB1;
    --border: #2E3036;
    --primary: #4DA3FF;   /* Signal */
    --primary-ink: #16171A;
    --link: #4DA3FF;
    --flare: #FFA24D;     /* Flare on dark */
    --flare-ink: #16171A;
    --flare-icon: #FFA24D;
    --flare-text: #FFA24D;
    --danger: #FF8A80;
    --danger-ink: #16171A;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 2px; }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.5rem var(--font-head); }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; flex-direction: column; width: 100%; gap: 0; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; border-top: 1px solid var(--border); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 1.05rem var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-outline { border-color: var(--primary); color: var(--link); background: transparent; }
.btn-flare { background: var(--flare); color: var(--flare-ink); }
.btn-disabled { border-color: var(--border); color: var(--muted); background: var(--surface); cursor: default; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 64px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--flare-text); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; }
.eyebrow::before { content: ""; width: 40px; height: 3px; background: var(--flare); }
.accent { color: var(--primary); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; }
.tags li { border-left: 3px solid var(--flare); background: var(--surface); padding: 4px 10px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.phone { justify-self: center; width: min(300px, 80vw); border-radius: 36px; border: 10px solid #0E0F11; box-shadow: var(--shadow); overflow: hidden; background: #0E0F11; }
.phone img { display: block; width: 100%; }
.ekg { height: 60px; width: 100%; display: block; margin: 32px 0 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections, cards */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards-5 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards-5 { grid-template-columns: repeat(2, 1fr); } .cards-5 > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cards-5 { grid-template-columns: repeat(5, 1fr); } .cards-5 > :last-child { grid-column: auto; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.badge { display: inline-block; background: var(--flare); color: var(--flare-ink); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.badge-draft { background: var(--danger); color: var(--danger-ink); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--border); }
.feature-row:nth-child(even) .feature-media { order: -1; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } .feature-row:nth-child(even) .feature-media { order: 0; } }

/* Prose (blog, legal) */
.prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); }
.prose pre { overflow-x: auto; background: var(--surface); padding: 12px; border-radius: 8px; }
.prose blockquote { border-left: 4px solid var(--flare); margin: 1em 0; padding: .2em 1em; color: var(--muted); }
.updated { color: var(--muted); font-style: italic; }
.draft-banner { background: var(--danger); color: var(--danger-ink); text-align: center; padding: 8px; font-weight: 700; }

/* Testimonials, gallery */
.quote { font-size: 1.1rem; }
.quote footer { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.quote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; float: left; margin-right: 12px; }
.stars { color: var(--flare-icon); letter-spacing: 2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; display: block; margin-bottom: 4px; }
.form input, .form textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; }
.form .helptext { color: var(--muted); font-size: .9rem; }
.errorlist { color: var(--danger); margin: 4px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; }
.messages { margin-top: 16px; }
.message { padding: 12px 16px; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--primary); }
.message-error { border-left-color: var(--danger); }

/* Staff toolbar */
.staff-toolbar { position: sticky; top: 0; z-index: 60; background: #1F5FD6; color: #fff; font-size: .9rem; }
.staff-toolbar .container { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; min-height: 40px; }
.staff-toolbar a, .staff-toolbar button { color: #fff; font: inherit; font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.staff-toolbar a:hover, .staff-toolbar button:hover { text-decoration: underline; }
.staff-toolbar .count { background: #FF8A2A; color: #16171A; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.staff-toolbar form { margin: 0 0 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0; color: var(--muted); }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { font: 700 1.4rem var(--font-head); color: var(--ink); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.mt-lg { margin-top: 40px; }
.pager { display:flex; gap:16px; justify-content:center; margin-top:24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
