/* ============================================================
   Sonoran Medical Supplies — brand system
   Palette: Saguaro #1F4D3A · Sage #7FA487 · Ink #182420
            Sand #F2EDDF · Paper #FBF9F2 · Ochre #C4903F
   Type: Jost (display) · Archivo (body/utility)
   ============================================================ */

:root {
  --saguaro: #1F4D3A;
  --saguaro-deep: #16382B;
  --sage: #7FA487;
  --sage-soft: #A9C3AE;
  --ink: #182420;
  --sand: #F2EDDF;
  --paper: #FBF9F2;
  --line: #DDD5C2;
  --ochre: #C4903F;
  --radius: 12px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Jost", sans-serif; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { max-width: 68ch; }
a  { color: var(--saguaro); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saguaro);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--ochre); border-radius: 2px; }
.on-dark .eyebrow { color: var(--sage-soft); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { height: 44px; width: auto; display: block; }
.brand-name { font-family: "Jost", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.10em; text-transform: uppercase; line-height: 1.2; }
.brand-name span { display: block; font-size: 0.62rem; letter-spacing: 0.30em; color: var(--saguaro); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { font-family: "Archivo", sans-serif; font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--sage); }
.site-nav a.active { border-bottom-color: var(--saguaro); color: var(--saguaro); }
.site-nav .btn { border-bottom: none; }
.site-nav a.btn-solid, .site-nav a.btn-solid.active { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--saguaro);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-solid { background: var(--saguaro); color: #fff; }
.btn-solid:hover { background: var(--saguaro-deep); border-color: var(--saguaro-deep); }
.btn-ghost { color: var(--saguaro); background: transparent; }
.btn-ghost:hover { background: rgba(127, 164, 135, 0.15); }
.on-dark .btn-ghost { color: var(--paper); border-color: var(--sage); }
.on-dark .btn-ghost:hover { background: rgba(127, 164, 135, 0.2); }
.on-dark .btn-solid { background: var(--sage); border-color: var(--sage); color: var(--saguaro-deep); }
.on-dark .btn-solid:hover { background: var(--sage-soft); border-color: var(--sage-soft); }

/* ---------- Hero ---------- */
.hero {
  background: var(--saguaro);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero .wrap { padding-top: 84px; padding-bottom: 96px; position: relative; z-index: 2; }
.hero h1 { max-width: 17ch; margin: 18px 0 20px; color: #fff; }
.hero p.lede { font-size: 1.13rem; max-width: 56ch; color: #E8EEE6; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark {
  position: absolute; right: -30px; bottom: -60px;
  width: min(42vw, 460px); opacity: 0.14; z-index: 1;
  pointer-events: none;
}
.hero.hero-sub .wrap { padding-top: 64px; padding-bottom: 64px; }

/* ---------- Fact bar ---------- */
.fact-bar { background: var(--saguaro-deep); color: var(--paper); }
.fact-bar .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; padding-top: 0; padding-bottom: 0;
}
.fact { padding: 22px 20px; border-left: 1px solid rgba(127,164,135,0.3); }
.fact:first-child { border-left: none; padding-left: 0; }
.fact .k { font-family: "Archivo", sans-serif; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-soft); }
.fact .v { font-family: "Jost", sans-serif; font-size: 1.15rem; font-weight: 600; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--saguaro); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 12px; color: #4A554F; }
.section-dark .section-head p { color: #DDE7DA; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.section-paper .card { background: var(--sand); }
.card h3 { color: var(--saguaro); margin-bottom: 10px; }
.card p { font-size: 0.97rem; color: #3C463F; }
.card .hcpcs {
  display: inline-block; margin-top: 14px;
  font-family: "Archivo", monospace, sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--saguaro);
  background: rgba(127,164,135,0.18); border-radius: 6px; padding: 4px 10px;
}
.card-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--sage); }

/* ---------- Ledger rows (performance metrics) ---------- */
.ledger { border-top: 2px solid var(--saguaro); }
.ledger-row {
  display: grid; grid-template-columns: 130px 1fr 2fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.ledger-row .metric { font-family: "Jost", sans-serif; font-size: 2rem; font-weight: 600; color: var(--saguaro); }
.ledger-row .label { font-weight: 600; }
.ledger-row .note { font-size: 0.95rem; color: #4A554F; }
@media (max-width: 720px) { .ledger-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}
.section-dark .checklist li::before { background: var(--sage-soft); }

/* ---------- Saguaro horizon divider (signature) ---------- */
.horizon { line-height: 0; background: var(--sand); }
.horizon svg { width: 100%; height: 56px; display: block; }
.horizon-paper { background: var(--paper); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font-family: "Archivo", sans-serif; font-size: 0.84rem; font-weight: 500;
  border: 1.5px solid var(--sage); color: var(--saguaro);
  border-radius: 999px; padding: 7px 16px; background: var(--paper);
}
.section-dark .chip { background: transparent; color: #E8EEE6; border-color: rgba(127,164,135,0.6); }

/* ---------- Data tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.data-table th {
  font-family: "Archivo", sans-serif; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; text-align: left; color: var(--saguaro);
  padding: 12px 14px; border-bottom: 2px solid var(--saguaro);
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: rgba(127,164,135,0.07); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--saguaro); color: var(--paper); }
.cta-band .wrap { padding: 64px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; max-width: 22ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--saguaro-deep); color: #C9D6C7; font-size: 0.92rem; }
.site-footer .wrap { padding: 56px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #DDE7DA; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-logo svg { height: 84px; width: auto; margin-bottom: 14px; }
.footer-legal { border-top: 1px solid rgba(127,164,135,0.25); }
.footer-legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 24px; font-size: 0.8rem; color: #93A896; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { gap: 16px; }
  .hero .wrap { padding-top: 60px; padding-bottom: 72px; }
  .section { padding: 60px 0; }
}

/* ---------- Story timeline ---------- */
.timeline { position: relative; padding-left: 34px; display: grid; gap: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: var(--sage); border-radius: 2px; opacity: 0.5; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 5px; width: 19px; height: 19px; border-radius: 50%; background: var(--saguaro); border: 4px solid var(--sand); }
.timeline-item .era { font-family: "Archivo", sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ochre); }
.timeline-item h3 { margin: 4px 0 8px; color: var(--saguaro); }
.timeline-item p { font-size: 0.98rem; color: #3C463F; }

/* ---------- FAQ accordions ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.section-paper .faq details { background: var(--sand); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: "Jost", sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--saguaro); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--sage); flex-shrink: 0; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; font-size: 0.97rem; color: #3C463F; }

/* Nav Contact button — ghost style, wins over .site-nav link rules */
.site-nav a.btn-ghost,
.site-nav a.btn-ghost.active { color: var(--saguaro); border: 2px solid var(--saguaro); border-radius: 999px; }
.site-nav a.btn-ghost:hover { background: rgba(127, 164, 135, 0.15); }
