/* ============================================================
   Consultative Genomics — Shared Stylesheet (congen.css)
   ------------------------------------------------------------
   Organization:
     1. Design tokens (:root)  — colors, fonts, spacing
     2. Base & typography
     3. Layout (container, grid, sections)
     4. Navbar + mobile menu
     5. Buttons & pills
     6. Components (cards, badges, forms, tables)
     7. Page-specific sections
     8. Motion / reveal
     9. Depth & texture layer
    10. Responsive (media queries)
   ============================================================ */

/* ═══════════════════════════════════════════
   CONSULTATIVE GENOMICS — DESIGN SYSTEM
   Structure & scale adapted from the JWPA site,
   recolored to the ConGen navy / green palette.
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── DESIGN TOKENS ───────────────────────── */
:root {
  /* Brand */
  --green:        #7ec042;
  --green-dark:   #6aa835;
  --green-deep:   #55892a;   /* text-safe green */
  --green-mist:   #f1f8e7;

  --navy:         #1d2d47;
  --navy-mid:     #2b3d5c;
  --navy-deep:    #141f33;

  /* Neutrals */
  --slate:        #334155;
  --muted:        #64748b;
  --muted-light:  #94a3b8;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --bg:           #f8fafc;
  --white:        #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 5.5rem;
  --container:   1160px;

  /* Radius */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(29,45,71,.07), 0 1px 4px rgba(29,45,71,.04);
  --shadow-md: 0 12px 32px rgba(29,45,71,.10), 0 2px 8px rgba(29,45,71,.05);
  --shadow-lg: 0 24px 48px rgba(29,45,71,.13), 0 4px 12px rgba(29,45,71,.06);

  /* Legacy aliases (used by inline styles in interior pages) */
  --divider:      #e2e8f0;
  --paper:        #f8fafc;
  --green-light:  #f1f8e7;
  --navy-dark:    #141f33;
  --amber-bg:     #fff3d6;
  --amber-tx:     #b0841a;
  --err:          #c0392b;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(126,192,66,.4); outline-offset: 3px; border-radius: 4px; }

/* ── LAYOUT ──────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section    { padding: var(--section-pad) 0; }
.section-sm { padding: 3.5rem 0; }
.section-bg { background: var(--bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── TYPOGRAPHY ──────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 1rem;
}
.section-label::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.section-label.light { color: var(--green); }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: .75rem;
}
.section-heading.light { color: var(--white); }
.section-sub {
  font-size: .975rem; color: var(--muted); line-height: 1.75;
  max-width: 600px; margin-bottom: 2.75rem;
}
.section-sub.light { color: rgba(255,255,255,.68); }
.section-head-center { text-align: center; }
.section-head-center .section-label { justify-content: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-body); font-weight: 600; border: none;
  border-radius: var(--radius-sm); cursor: pointer; line-height: 1;
  white-space: nowrap; transition: all .2s ease;
  padding: .85rem 1.6rem; font-size: .9rem;
}
.btn-sm { padding: .5rem 1.1rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2rem; font-size: .95rem; }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(126,192,66,.3); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(126,192,66,.38); }
.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--muted-light); background: var(--bg); transform: translateY(-1px); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: var(--white); border: 1.5px solid rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }

/* ── TOP UTILITY BAR ─────────────────────── */
.topbar { background: var(--navy); color: rgba(255,255,255,.72); font-size: .78rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 1rem; }
.topbar a { color: rgba(255,255,255,.72); transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: box-shadow .35s ease, background .35s ease, border-color .35s ease, height .3s ease;
}
.nav-inner {
  display: flex; align-items: center; height: 76px;
  max-width: var(--container); margin: 0 auto; padding: 0 2.5rem; gap: 2rem;
}
.nav-brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.nav-brand img { height: 42px; width: auto; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.nav-brand:hover img { transform: scale(1.06); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.nav-brand-name span { color: var(--green-deep); }
.nav-brand-sub { font-size: .55rem; font-weight: 600; color: var(--muted-light); letter-spacing: .16em; text-transform: uppercase; margin-top: .2rem; }

/* pill-group nav — links sit inside a soft rounded track */
.nav-links {
  display: flex; align-items: center; gap: .35rem; list-style: none; flex: 1; justify-content: flex-end;
  padding: 0;
}
.nav-link {
  position: relative; display: block; padding: .55rem .9rem; font-size: .875rem; font-weight: 500;
  color: var(--slate); letter-spacing: -.005em; transition: color .3s ease; white-space: nowrap;
}
/* thin animated underline that grows from center */
.nav-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: .3rem; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-dark)); border-radius: 2px;
  transition: left .3s cubic-bezier(.4,0,.2,1), right .3s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { left: .9rem; right: .9rem; }
.nav-link.active { color: var(--navy); font-weight: 600; }
.nav-link.active::after { left: .9rem; right: .9rem; background: var(--green); }

.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }

/* scrolled: condense + solidify */
.nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 24px -14px rgba(29,45,71,.28);
  border-bottom-color: transparent;
}
.nav.scrolled .nav-inner { height: 66px; }

/* ── HERO ────────────────────────────────── */
.hero { padding: 4.5rem 0 5rem; background: linear-gradient(165deg, var(--green-mist) 0%, var(--white) 55%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--navy); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--green-deep); }
.hero-desc { font-size: 1.025rem; color: var(--muted); line-height: 1.8; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; align-items: center; }
.hero-trust-item { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero-trust-item svg { color: var(--green-deep); flex: none; }
@media (max-width: 420px) { .hero-trust { grid-template-columns: 1fr; } }
.hero-visual { position: relative; }
.hero-card-main {
  background: var(--navy); border-radius: var(--radius-lg); padding: 2.5rem;
  color: var(--white); position: relative; overflow: hidden;
}
.hero-card-main::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126,192,66,.35), transparent 70%);
  right: -90px; top: -110px;
}
.hero-card-tag { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.25rem; position: relative; }
.hero-card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: .75rem; max-width: 280px; position: relative; }
.hero-card-desc { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 1.5rem; max-width: 320px; position: relative; }
.hero-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); position: relative; }
.hero-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .875rem 1rem; }
.hero-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: .2rem; }
.hero-stat-label { font-size: .66rem; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; }
.hero-pill {
  position: absolute; bottom: -1.25rem; left: -1.25rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .875rem 1.25rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .75rem;
}
.hero-pill-icon { width: 38px; height: 38px; background: var(--green-mist); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--green-deep); }
.hero-pill-text { font-size: .78rem; }
.hero-pill-label { font-weight: 700; color: var(--navy); }
.hero-pill-sub { color: var(--muted); margin-top: .1rem; }

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all .25s ease; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.card-text { font-size: .9rem; color: var(--muted); line-height: 1.7; flex: 1 1 auto; }
.card-more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--green-deep); }
.card-more svg { transition: transform .2s; }
.card:hover .card-more svg { transform: translateX(4px); }

/* feature list inside cards */
.card-list { list-style: none; margin-top: 1rem; display: grid; gap: .6rem; }
.card-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--slate); }
.card-list li svg { flex: none; margin-top: .2rem; color: var(--green-deep); }

/* ── CALLOUT ─────────────────────────────── */
.callout { background: var(--green-mist); border: 1px solid var(--green); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1.5rem 1.65rem; margin-top: 1.75rem; }
.callout-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .6rem; }
.callout-title svg { color: var(--green-deep); flex: none; }
.callout p { margin-top: .5rem; font-size: .9rem; color: var(--slate); line-height: 1.7; }

/* ── DARK BAND ───────────────────────────── */
.band { background: var(--navy); color: var(--white); }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.band p { color: rgba(255,255,255,.68); }
.quote-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 2.25rem; }
.quote-mark { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--green); }
.quote-card p { font-size: 1rem; line-height: 1.75; margin-top: .5rem; }
.quote-attr { margin-top: 1.25rem; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.5); }

/* ── STEPS ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: .45rem; }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── COMPARISON (overreads) ──────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-col { border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); background: var(--white); }
.compare-col.muted { background: var(--bg); }
.compare-col.feature { border-color: var(--green); box-shadow: var(--shadow-md); }
.compare-tag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; }
.compare-col.muted .compare-tag { color: var(--muted); }
.compare-col.feature .compare-tag { color: var(--green-deep); }
.compare-col h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 1rem; }
.compare-list { list-style: none; display: grid; gap: .75rem; }
.compare-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; line-height: 1.6; }
.compare-col.muted .compare-list li { color: var(--muted); }
.compare-col.muted .compare-list li svg { color: var(--muted-light); flex: none; margin-top: .15rem; }
.compare-col.feature .compare-list li { color: var(--slate); }
.compare-col.feature .compare-list li svg { color: var(--green-deep); flex: none; margin-top: .15rem; }

/* ── CTA PANEL ───────────────────────────── */
.cta-panel { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: var(--radius-lg); padding: 3.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(126,192,66,.25), transparent 70%); right: -110px; top: -130px; }
.cta-panel > * { position: relative; }
.cta-panel .section-heading { color: var(--white); }
.cta-panel p { color: rgba(255,255,255,.68); max-width: 540px; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── CREDENTIAL STRIP ────────────────────── */
.creds { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.creds .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.cred { display: flex; align-items: center; gap: .75rem; }
.cred svg { color: var(--green-deep); flex: none; }
.cred-title { font-size: .88rem; font-weight: 700; color: var(--navy); }
.cred-sub { font-size: .76rem; color: var(--muted); }

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white); }
.footer-brand-name span { color: var(--green); }
.footer-brand-sub { font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: .2rem; }
.footer-tagline { font-size: .88rem; line-height: 1.75; margin-top: 1.1rem; max-width: 320px; }
.footer h4 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer a { font-size: .88rem; transition: color .2s; }
.footer a:hover { color: var(--green); }
.footer-news { display: flex; gap: .5rem; margin-top: .75rem; }
.footer-news input { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); padding: .6rem .8rem; color: var(--white); font-family: inherit; font-size: .85rem; }
.footer-news input::placeholder { color: rgba(255,255,255,.35); }
.footer-news input:focus { outline: none; border-color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }

/* ── PAGE HERO (interior pages) ──────────── */
.page-hero { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: var(--white); padding: 3.75rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(126,192,66,.25), transparent 70%); right: -120px; top: -140px; }
.page-hero .container { position: relative; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: .9rem; }
.breadcrumb a:hover { color: var(--green); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-hero p { color: rgba(255,255,255,.68); margin-top: .8rem; max-width: 62ch; font-size: 1rem; line-height: 1.75; }

/* ── REVEAL ANIMATION ────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid, .band-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .grid-3, .steps, .compare, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 680px) {
  :root { --section-pad: 3.5rem; }
  .container { padding: 0 1.25rem; }
  .grid-2, .grid-3, .steps, .compare, .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .topbar-right { gap: .85rem; }
  .cta-panel { padding: 2.25rem 1.5rem; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 2.8rem); }
}

/* ═══════════════════════════════════════════
   LEGACY CLASS MAP
   Maps the original ConGen page markup onto the
   JWPA-based design system above, so interior
   pages inherit the same type, scale and colour.
   ═══════════════════════════════════════════ */

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: var(--section-pad) 0; }
section.page-hero { padding: 3.75rem 0 3.5rem; }

/* headings inside legacy content */
.sec-head { margin-bottom: 2.5rem; text-align: center; }
.sec-head.left { text-align: left; }
.sec-head h2, h2.section-heading { font-family: var(--font-display); }
.sec-head h2 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.15;
}
.sec-head p { font-size: .975rem; color: var(--muted); line-height: 1.75; max-width: 620px; margin: .75rem auto 0; }
.sec-head.left p { margin-left: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
p { line-height: 1.75; }

/* eyebrow label */
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 1rem;
}
.label::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.label.light { color: var(--green); }
.g { color: var(--green-deep); }

/* buttons */
.btn-contained { background: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(126,192,66,.3); }
.btn-contained:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outlined { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); }
.btn-outlined:hover { border-color: var(--muted-light); background: var(--bg); }
.btn-light-out { background: rgba(255,255,255,.08); color: var(--white); border: 1.5px solid rgba(255,255,255,.25); }
.btn-light-out:hover { background: rgba(255,255,255,.16); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* icon chips */
.ic { width: 52px; height: 52px; border-radius: var(--radius); background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.ic-lg { width: 54px; height: 54px; border-radius: var(--radius); background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 1rem; }
.ph-icon { width: 56px; height: 56px; border-radius: var(--radius); background: rgba(255,255,255,.12); color: var(--green); display: grid; place-items: center; margin-bottom: 1rem; }

/* breadcrumb */
.breadcrumb .sep { margin: 0 .4rem; opacity: .5; }

/* ── grids of cards (about values, tests, why, etc.) ── */
.values, .why-grid, .res-grid, .related-cards, .tests, .tfeat-grid, .ways {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.values { grid-template-columns: repeat(2, 1fr); }
.value, .why-item, .res-card, .rel-card, .test-card, .tfeat, .way, .step, .form-card, .sidebar, .cp-sec {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all .25s ease;
}
.value:hover, .why-item:hover, .res-card:hover, .rel-card:hover, .test-card:hover, .tfeat:hover, .way:hover {
  border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.value h3, .why-item h3, .res-card h3, .rel-card h4, .test-card h3, .tfeat h3, .way h3, .step h3, .cp-sec h3 {
  font-family: var(--font-display); color: var(--navy); margin-bottom: .45rem;
}
.value p, .why-item p, .res-card p, .rel-card p, .test-card p, .tfeat > p, .way p, .step p, .cp-sec p {
  font-size: .9rem; color: var(--muted); line-height: 1.7;
}
.test-card, .tfeat, .res-card, .way { display: flex; flex-direction: column; }
.test-more, .tfeat-more, .dl, .card-more {
  margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--green-deep);
}
.tfeat-list, .card-list, .who, .ship-list, .cp-list {
  list-style: none; margin-top: 1rem; display: grid; gap: .65rem; padding: 0;
}
.tfeat-list li, .who li, .ship-list li, .cp-list li {
  display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--slate); line-height: 1.6;
}
.tfeat-list li svg, .who li svg, .ship-list li svg, .cp-list li svg { flex: none; margin-top: .2rem; color: var(--green-deep); }
.rec { display: inline-block; background: var(--green); color: var(--white); font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .75rem; }
.way.feat { border-color: var(--green); box-shadow: var(--shadow-md); }
.liner { margin-top: 1rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.liner span { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; margin-top: .2rem; }

/* ── steps ── */
.steps { display: grid; gap: 1.5rem; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; margin-bottom: 1.1rem;
}

/* ── two-column feature rows ── */
.about-grid, .band-grid, .ship-grid, .contact-wrap, .detail, .pay-hero-grid, .cp-sec {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.detail { grid-template-columns: 1.6fr .8fr; }
.contact-wrap { grid-template-columns: .9fr 1.1fr; }
.cp-sec { grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.25rem; }
.cp-ic { width: 58px; height: 58px; border-radius: var(--radius); background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; flex: none; }

/* ── dark bands ── */
.band { background: var(--navy); color: var(--white); }
.band h2 { color: var(--white); font-family: var(--font-display); }
.band p { color: rgba(255,255,255,.68); }
.band-photo { border-radius: var(--radius-lg); overflow: hidden; background: #eef4fb; box-shadow: var(--shadow-lg); }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA panels ── */
.cta-band, .cp-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: var(--radius-lg);
  padding: 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2, .cp-cta h2 { color: var(--white); font-family: var(--font-display); font-size: clamp(1.75rem,3.5vw,2.4rem); }
.cta-band p, .cp-cta p { color: rgba(255,255,255,.68); max-width: 560px; margin: .75rem auto 0; }
.cta-band .hero-actions, .cp-cta .hero-actions { justify-content: center; }
.cta-slim {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: var(--radius-lg); padding: 2rem 2.5rem;
}
.cta-slim h3 { color: var(--white); font-family: var(--font-display); font-size: 1.35rem; }
.cta-slim p { color: rgba(255,255,255,.6); font-size: .95rem; margin-top: .25rem; }

/* ── credential strip ── */
.creds { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.creds .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.ci { display: flex; align-items: center; gap: .75rem; color: var(--green-deep); }
.ct { font-size: .88rem; font-weight: 700; color: var(--navy); }
.cs { font-size: .76rem; color: var(--muted); }

/* ── about photo + stat ── */
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: #eef4fb; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.av-stat { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; background: rgba(20,31,51,.78); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.1rem 1.35rem; color: var(--white); z-index: 2; }
.av-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--green); }
.av-stat .l { font-size: .8rem; opacity: .85; }

/* ── test detail sidebar ── */
.sidebar h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .9rem; }
.facts { display: grid; gap: .65rem; margin-bottom: 1.25rem; }
.fact { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; border-bottom: 1px solid var(--border-light); padding-bottom: .55rem; }
.fact .k { color: var(--muted); }
.fact .v { color: var(--navy); font-weight: 600; }
.sidebar .btn { width: 100%; }
.disclaimer { margin-top: 1.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .82rem; color: var(--muted); line-height: 1.65; }
.detail h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .6rem; }
.detail h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 1.75rem 0 .5rem; }

/* ── contact ── */
.contact-info-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.ci2 { display: flex; gap: .9rem; align-items: flex-start; }
.ci2 .label { margin-bottom: .15rem; }
.ci2 .val { color: var(--navy); font-weight: 600; font-size: .95rem; }
.frow { display: grid; gap: 1rem; margin-bottom: 1rem; }
.frow2 { grid-template-columns: 1fr 1fr; }
.form-card label { display: block; font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .7rem .85rem; font-family: inherit; font-size: .92rem; color: var(--slate);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--green); }
.form-success { background: var(--green-mist); border: 1px solid var(--green); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--green-deep); font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--border); }
.faq button {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.35rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy);
}
.faq button svg { flex: none; transition: transform .25s; color: var(--green-deep); }
.faq.open button svg { transform: rotate(45deg); }
.faq .ans { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq.open .ans { max-height: 320px; }
.faq .ans p { padding-bottom: 1.35rem; color: var(--muted); font-size: .93rem; }

/* ── legal / article pages ── */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 .6rem; }
.article h3 { font-size: 1.08rem; margin: 1.5rem 0 .4rem; }
.article p, .article li { color: var(--slate); font-size: .95rem; line-height: 1.8; }
.article ul { margin: .75rem 0 .75rem 1.25rem; }
.updated { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── paybill extras ── */
.pay-hero { background: linear-gradient(165deg, var(--green-mist), var(--white) 58%); }
.pay-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem,4.5vw,3.2rem); }
.pay-hero .lead { font-size: 1.02rem; color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.pay-secure { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); display: inline-flex; gap: .5rem; align-items: center; }
.pay-secure svg { color: var(--green-deep); }
.card-mock {
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: var(--shadow-lg); padding: 1.9rem; color: var(--white); position: relative; overflow: hidden;
  max-width: 430px; aspect-ratio: 1.6/1;
}
.card-mock .lbl { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.card-mock .chip { width: 48px; height: 36px; border-radius: 7px; background: linear-gradient(135deg,#e7c768,#c79b35); margin: 1.4rem 0 1.2rem; }
.pay-badge {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .8rem 1.1rem; display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; color: var(--navy); margin-top: 1rem;
}
.pay-badge svg { color: var(--green-deep); }

/* ── how-to-order resources ── */
.ship-grid { align-items: start; }

@media (max-width: 1000px) {
  .values, .why-grid, .res-grid, .related-cards, .tests, .tfeat-grid, .ways { grid-template-columns: 1fr 1fr; }
  .about-grid, .band-grid, .ship-grid, .contact-wrap, .detail, .pay-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 1.25rem; }
  .values, .why-grid, .res-grid, .related-cards, .tests, .tfeat-grid, .ways { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr !important; }
  .cp-sec { grid-template-columns: 1fr; }
  .frow2 { grid-template-columns: 1fr; }
  .cta-band, .cp-cta { padding: 2.25rem 1.5rem; }
  .cta-slim { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   MOTION SYSTEM
   ═══════════════════════════════════════════ */
/* page-load fade */
html.cg-preload body { opacity: 0; }
body { opacity: 1; transition: opacity .5s ease; }
html.cg-exit body { opacity: 0; transition: opacity .22s ease; }

/* scroll reveals — base + directional variants */
.reveal, [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="fade"]  { transform: none; }
.reveal.in, [data-reveal].in { opacity: 1; transform: none; }

/* gentle hover lift utility */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.cg-preload body, html.cg-exit body { opacity: 1 !important; }
  * { scroll-behavior: auto !important; }
}

/* ═══════════════════════════════════════════
   POLISH LAYER — hovers, micro-interactions,
   refinement applied sitewide.
   ═══════════════════════════════════════════ */

/* smoother easing on every card-like element */
.card, .value, .why-item, .res-card, .rel-card, .test-card, .tfeat, .way, .step,
.form-card, .cp-value, .cp-step, .faq {
  transition: transform .3s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s cubic-bezier(.22,.61,.36,1),
              border-color .3s ease;
}

/* icon chips lift + tint on card hover */
.card .card-icon, .value .ic, .why-item .ic, .res-card .ic, .test-card .ic,
.tfeat .tfeat-ic, .way .ic, .step .num, .cp-value-ic, .cp-step-num {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s ease, color .25s ease;
}
.card:hover .card-icon, .value:hover .ic, .why-item:hover .ic, .res-card:hover .ic,
.test-card:hover .ic, .tfeat:hover .tfeat-ic, .way:hover .ic, .cp-value:hover .cp-value-ic {
  transform: translateY(-2px) scale(1.06);
  background: var(--green); color: #fff;
}

/* arrow nudges on any "more" link */
.card-more svg, .test-more svg, .tfeat-more svg, .dl svg { transition: transform .25s ease; }
.card:hover .card-more svg, .test-card:hover .test-more svg,
.tfeat:hover .tfeat-more svg, .res-card:hover .dl svg,
a:hover > .card-more svg { transform: translateX(4px); }

/* button micro-interactions: lift + subtle shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(.98); }

/* links in body copy get an animated underline */
.article a, .cs a, .footer-tagline a { position: relative; color: var(--green-deep); }

/* page hero: layered glow + fade-up entrance for its direct children */
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 120%, rgba(126,192,66,.14), transparent 45%);
  pointer-events: none;
}
.page-hero h1 { position: relative; }
.page-hero em { font-style: italic; }

/* sidebar (test detail) — elevate + sticky on desktop */
.sidebar { box-shadow: var(--shadow); position: relative; }
@media (min-width: 1001px) { .sidebar { position: sticky; top: 96px; } }
.sidebar:hover { box-shadow: var(--shadow-md); }
.fact { transition: color .2s ease; }
.detail .who li, .card-list li, .cp-list li { transition: transform .2s ease; }
.detail .who li:hover, .cp-list li:hover { transform: translateX(3px); }

/* contact info rows */
.ci2 { transition: transform .2s ease; padding: .25rem 0; }
.ci2:hover { transform: translateX(3px); }
.ci2 .ic { transition: background .25s ease, color .25s ease; }
.ci2:hover .ic { background: var(--green); color: #fff; }

/* form fields: soft focus ring */
.form-card input, .form-card select, .form-card textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  box-shadow: 0 0 0 3px rgba(126,192,66,.18);
}

/* FAQ rows: hover tint + smooth chevron */
.faq { transition: background .2s ease; border-radius: var(--radius-sm); }
.faq:hover { background: var(--bg); }
.faq button { padding-left: .35rem; padding-right: .35rem; }

/* quote card + hero card subtle float on hover */
.quote-card, .hero-card-main { transition: transform .35s ease, box-shadow .35s ease; }
.quote-card:hover { transform: translateY(-3px); }

/* dark-band step tiles + payor grid items lift */
.band [class*="reveal"]:hover { transform: none; }

/* credential items: icon pulse on hover of the strip */
.cred, .ci { transition: transform .2s ease; }
.creds .cred:hover, .creds .ci:hover { transform: translateY(-2px); }

/* section headings get a refined optical rhythm */
.section-heading { text-wrap: balance; }
.section-sub { text-wrap: pretty; }

/* nav links use the pill highlight defined above (no underline) */

/* topbar links underline sweep */
.topbar-right a { position: relative; }
.topbar-right a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.topbar-right a:hover::after { transform: scaleX(1); }

/* image wraps get a gentle zoom */
.about-photo img, .band-photo img, .hero-img-wrap img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.about-photo:hover img, .band-photo:hover img { transform: scale(1.04); }

/* scrollbar (webkit) — subtle brand accent */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #c7d0dc; border: 3px solid var(--white); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .card:hover .card-icon, .value:hover .ic, .why-item:hover .ic { transform: none; }
  .about-photo:hover img, .band-photo:hover img { transform: none; }
}

/* ═══════════════════════════════════════════
   GREEN PAGE TITLES + TIGHTER CTA
   ═══════════════════════════════════════════ */
/* full-green page titles; brighter green on dark heros, deep green on light */
.cg-h1-green { color: var(--green) !important; }
.hero .cg-h1-green,               /* homepage light hero */
.pay-hero .cg-h1-green { color: var(--green-deep) !important; }
.cg-h1-green em { font-style: italic; color: inherit !important; }

/* CTA band — smaller, tighter */
.cta-band, .cp-cta {
  padding: 2.5rem 2.5rem !important;
  max-width: 940px; margin-left: auto; margin-right: auto;
}
.cta-band h2, .cp-cta h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem) !important; }
.cta-band p, .cp-cta p { font-size: .96rem !important; margin-top: .6rem !important; }
.cta-band .hero-actions, .cp-cta .hero-actions { margin-top: 1.4rem !important; }
.cta-band .label, .cp-cta .label { margin-bottom: .5rem; }
@media (max-width: 680px) {
  .cta-band, .cp-cta { padding: 2rem 1.4rem !important; }
}

/* ═══════════════════════════════════════════
   ORDERING PROCESS — sequential reveal timeline
   ═══════════════════════════════════════════ */
.oproc { position: relative; margin-top: 2.5rem; display: grid; gap: 1rem; }
.oproc-line { position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: var(--border); overflow: hidden; }
.oproc-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--green), var(--green-dark)); transition: height 1.4s cubic-bezier(.4,0,.2,1); }
.oproc-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start;
  opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
.oproc-step.in { opacity: 1; transform: none; }
.oproc-marker { display: flex; justify-content: center; }
.oproc-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--border);
  display: grid; place-items: center; color: var(--muted-light); z-index: 1;
  transition: border-color .4s ease, color .4s ease, background .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.oproc-step.active .oproc-dot { border-color: var(--green); color: #fff; background: var(--green); transform: scale(1.08); }
.oproc-body { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem; transition: border-color .4s ease, box-shadow .4s ease; }
.oproc-step.active .oproc-body { border-color: var(--green); box-shadow: var(--shadow); }
.oproc-n { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.oproc-body h3 { font-family: var(--font-display); font-size: 1.08rem; color: var(--navy); margin-top: .15rem; }
.oproc-body p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-top: .3rem; }
@media (prefers-reduced-motion: reduce) {
  .oproc-step { opacity: 1; transform: none; }
  .oproc-line-fill { transition: none; }
}

/* Clinical Partners — value strip alignment */
.cp-values-band { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.cp-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
.cp-value { height: 100%; }
@media (max-width:1000px){ .cp-values { grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .cp-values { grid-template-columns: 1fr; } }

/* How to Order — provider portal feature list */
.portal-feats { list-style:none; display:grid; gap:.7rem; margin:1.5rem 0; padding:0; }
.portal-feats li { display:flex; gap:.7rem; align-items:flex-start; color:rgba(255,255,255,.82); font-size:.95rem; line-height:1.55; }
.portal-feats li svg { color:var(--green); flex:none; margin-top:.15rem; }

/* About approach — image slots replacing number badges */
.approach-img { position:relative; width:56px; height:56px; border-radius:14px; overflow:hidden; margin-bottom:.9rem;
  background:var(--green); display:grid; place-items:center; }
.approach-img img { width:100%; height:100%; object-fit:cover; display:block; }
.approach-img .approach-fallback { position:absolute; inset:0; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:800; color:#0f1a2b; font-size:1.4rem; }
.approach-img img:not([style*="none"]) + .approach-fallback { display:none; }

/* Homepage med-necessity: card fills column height, link anchored near bottom */
#about.section .card { display: flex; flex-direction: column; }
#about.section .card .card-list { flex: 1 1 auto; margin-bottom: .5rem; }
#about.section .card .card-more { margin-top: auto; }

/* Homepage hero image slot (replaces the navy physician-led card) */
.hero-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 340px; box-shadow: var(--shadow-lg); background: var(--navy);
}
.hero-img-wrap img { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-img-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem;
  background: linear-gradient(to top, rgba(20,31,51,.92), rgba(20,31,51,.35) 60%, transparent);
  color: #fff;
}
.hero-img-tag { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.hero-img-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.25; max-width: 320px; }
/* graceful fallback when no image file is present: a branded navy panel with a helix motif */
.hero-img-wrap.noimg { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); }
.hero-img-wrap.noimg::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126,192,66,.3), transparent 70%); right: -80px; top: -100px;
}
.hero-img-wrap.noimg .hero-img-overlay { background: none; position: static; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }

/* Homepage lab card — richer list with sub-text */
.card-lead { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.1rem; }
.card-list-rich li { align-items: flex-start; }
.card-list-rich li > span { display: flex; flex-direction: column; }
.card-list-rich li strong { color: var(--navy); font-weight: 600; font-size: .92rem; }
.card-list-rich li .li-sub { color: var(--muted); font-size: .82rem; line-height: 1.5; margin-top: .1rem; }

/* Contact — fill space under hours */
.contact-note { display:flex; gap:.9rem; align-items:flex-start; background:var(--green-mist); border:1px solid var(--green); border-radius:var(--radius); padding:1.1rem 1.25rem; margin-top:1.75rem; }
.contact-note-ic { width:40px; height:40px; border-radius:10px; background:#fff; color:var(--green-deep); display:grid; place-items:center; flex:none; }
.contact-note-t { font-weight:700; color:var(--navy); font-size:.95rem; }
.contact-note-d { font-size:.85rem; color:var(--slate); margin-top:.2rem; line-height:1.5; }
.contact-quick { display:grid; gap:.6rem; margin-top:1.25rem; }
.cq { display:flex; align-items:center; gap:.8rem; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:.85rem 1rem; transition:border-color .25s, transform .25s, box-shadow .25s; }
.cq:hover { border-color:var(--green); transform:translateX(3px); box-shadow:var(--shadow); }
.cq-ic { width:38px; height:38px; border-radius:9px; background:var(--green-mist); color:var(--green-deep); display:grid; place-items:center; flex:none; transition:background .25s, color .25s; }
.cq:hover .cq-ic { background:var(--green); color:#fff; }
.cq-t { flex:1; font-size:.9rem; font-weight:600; color:var(--navy); }
.cq > svg { color:var(--green-deep); flex:none; }

/* ═══════════════════════════════════════════
   EXTRA ANIMATION LAYER — tasteful flourishes
   ═══════════════════════════════════════════ */

/* section labels: the green rule sweeps in */
.section-label::before, .label::before { transition: width .5s cubic-bezier(.22,.61,.36,1); }
.reveal .section-label::before, .reveal .label::before { width: 0; }
.reveal.in .section-label::before, .reveal.in .label::before { width: 28px; }

/* hero image: slow ken-burns drift once loaded */
@keyframes cg-kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-img-wrap img { animation: cg-kenburns 18s ease-in-out infinite alternate; }
.hero-img-overlay { transition: transform .4s ease; }
.hero-img-wrap:hover .hero-img-overlay { transform: translateY(-3px); }

/* cards: soft green glow that fades in on hover (layered over existing lift) */
.card, .test-card, .tfeat, .thub-card, .cp-value, .value, .why-item, .res-card, .step {
  position: relative;
}
.thub-card::before, .card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(126,192,66,0); transition: box-shadow .35s ease; opacity: .6;
}
.thub-card:hover::before, .card:hover::before { box-shadow: 0 0 30px -6px rgba(126,192,66,.35); }

/* buttons: primary gets a gentle pulse-ready glow on hover */
.btn-primary { transition: background .2s ease, transform .2s ease, box-shadow .3s ease; }
.btn-primary:hover { box-shadow: 0 6px 22px -6px rgba(126,192,66,.55); }

/* credential + trust icons: tiny pop when their row reveals */
@keyframes cg-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.reveal.in .cred svg, .reveal.in .ci svg { animation: cg-pop .5s cubic-bezier(.34,1.56,.64,1) both; }

/* hero stat tiles: float subtly, staggered */
@keyframes cg-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero-stat { animation: cg-float 5s ease-in-out infinite; }
.hero-stat:nth-child(2) { animation-delay: .8s; }
.hero-stat:nth-child(3) { animation-delay: 1.6s; }

/* nav brand: logo lifts a hair on hover */
.nav-brand { transition: transform .25s ease; }
.nav-brand:hover { transform: translateY(-1px); }

/* animated focus glow on inputs (contact/newsletter) */
@keyframes cg-ring { from { box-shadow: 0 0 0 0 rgba(126,192,66,.35); } to { box-shadow: 0 0 0 4px rgba(126,192,66,0); } }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { animation: cg-ring .6s ease-out; }

/* smooth anchor-scroll offset so jump links (chips) don't hide under sticky nav */
:target { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  .hero-img-wrap img, .hero-stat { animation: none !important; }
  .reveal.in .cred svg, .reveal.in .ci svg { animation: none !important; }
}

/* Homepage med-necessity: left column flex so buttons align to card bottom */
#about.section .mn-left { display: flex; flex-direction: column; }
#about.section .mn-actions { margin-top: auto; padding-top: 1.5rem; }

/* Homepage med-necessity: proof row filling the left column */
.mn-stats { display: grid; gap: .85rem; margin-top: 1.75rem; }
.mn-stat { display: flex; gap: .85rem; align-items: center; }
.mn-stat-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; flex: none; transition: background .25s ease, color .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.mn-stat:hover .mn-stat-ic { background: var(--green); color: #fff; transform: scale(1.06); }
.mn-stat-t { font-weight: 700; color: var(--navy); font-size: .95rem; }
.mn-stat-d { font-size: .84rem; color: var(--muted); margin-top: .1rem; line-height: 1.4; }

/* ═══════════════════════════════════════════
   DEPTH & TEXTURE LAYER
   Subtle premium touches — gradient mesh, brand
   motif, richer shadows, soft section dividers.
   Purely additive; no markup changes required.
   ═══════════════════════════════════════════ */

/* --- 1. Richer, more sophisticated shadows --- */
:root {
  --shadow-sm: 0 1px 2px rgba(29,45,71,.05), 0 2px 6px rgba(29,45,71,.04);
  --shadow:    0 2px 6px rgba(29,45,71,.05), 0 8px 20px -6px rgba(29,45,71,.10);
  --shadow-md: 0 4px 10px rgba(29,45,71,.06), 0 18px 40px -12px rgba(29,45,71,.16);
  --shadow-lg: 0 8px 18px rgba(29,45,71,.07), 0 32px 60px -16px rgba(29,45,71,.22);
  --shadow-green: 0 10px 30px -10px rgba(126,192,66,.45);
}

/* --- 2. Gradient-mesh depth in the light hero --- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 82% 12%, rgba(126,192,66,.12), transparent 60%),
    radial-gradient(50% 70% at 8% 90%, rgba(29,45,71,.06), transparent 60%),
    linear-gradient(165deg, var(--green-mist) 0%, var(--white) 58%);
  overflow: hidden;
}

/* --- 3. Faint DNA/helix brand motif (SVG data-uri), used sparingly --- */
.hero::before,
.page-hero::before,
.band::before,
.td-hero::before,
.thub-hero::before,
.cons-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='260' viewBox='0 0 140 260'%3E%3Cg fill='none' stroke='%237ec042' stroke-width='2' opacity='0.5'%3E%3Cpath d='M40 0c60 40-60 90 0 130s-60 90 0 130'/%3E%3Cpath d='M100 0c-60 40 60 90 0 130s60 90 0 130'/%3E%3C/g%3E%3Cg fill='%237ec042' opacity='0.5'%3E%3Ccircle cx='47' cy='30' r='2.5'/%3E%3Ccircle cx='93' cy='30' r='2.5'/%3E%3Ccircle cx='63' cy='65' r='2.5'/%3E%3Ccircle cx='77' cy='65' r='2.5'/%3E%3Ccircle cx='47' cy='100' r='2.5'/%3E%3Ccircle cx='93' cy='100' r='2.5'/%3E%3Ccircle cx='63' cy='160' r='2.5'/%3E%3Ccircle cx='77' cy='160' r='2.5'/%3E%3Ccircle cx='47' cy='195' r='2.5'/%3E%3Ccircle cx='93' cy='195' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: right -20px top;
  background-size: 120px auto;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
/* keep hero content above the motif */
.hero .container, .page-hero .container, .band .container,
.td-hero .container, .thub-hero .container, .cons-hero .container { position: relative; z-index: 1; }
/* dark sections: brighten the motif slightly so it reads on navy */
.page-hero::before, .band::before, .td-hero::before,
.thub-hero::before, .cons-hero::before { opacity: .07; }

/* --- 4. Soft section dividers (feathered edge between bands) --- */
.section-bg { position: relative; }
.section-bg::before,
.section-bg::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 40px;
  pointer-events: none; z-index: 0;
}
.section-bg::before { top: 0;    background: linear-gradient(var(--white), transparent); }
.section-bg::after  { bottom: 0; background: linear-gradient(transparent, var(--white)); }
.section-bg > .container { position: relative; z-index: 1; }

/* --- 5. Cards get a subtle top sheen + deeper hover lift --- */
.card, .thub-card, .tfeat, .value, .why-item, .res-card, .cp-value, .step {
  position: relative;
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 40%);
  background-repeat: no-repeat;
}
.card:hover, .thub-card:hover, .tfeat:hover {
  box-shadow: var(--shadow-lg);
}

/* --- 6. Dark navy panels get a subtle green inner glow (navy stays rich) --- */
.cta-panel, .cta-band, .cp-payor {
  background-color: var(--navy-deep) !important;
  background-image:
    radial-gradient(60% 90% at 100% 0%, rgba(126,192,66,.16), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--navy-deep)) !important;
  background-repeat: no-repeat;
}

/* --- 7. Primary buttons: soft green aura for depth --- */
.btn-primary, .btn-contained { box-shadow: var(--shadow-green); }
.btn-primary:hover, .btn-contained:hover { box-shadow: 0 14px 34px -10px rgba(126,192,66,.6); }

/* --- 8. Credential strip: faint texture so it isn't flat --- */
.creds {
  background:
    radial-gradient(50% 140% at 50% 0%, rgba(126,192,66,.05), transparent 70%),
    var(--bg);
}

/* --- 9. Section label rule gets a soft glow --- */
.section-label::before, .label::before { box-shadow: 0 0 8px rgba(126,192,66,.5); }

@media (prefers-reduced-motion: reduce) { /* texture is static; nothing to disable */ }

/* Homepage hero video (replaces the static image slot) */
.hero-photo {
  width: 100%; height: 100%; min-height: 340px;
  object-fit: cover; display: block;
}
.hero-img-wrap { background: var(--navy-deep); }
/* strengthen the overlay gradient so the tag/title stay legible over motion */
.hero-img-wrap .hero-img-overlay {
  background: linear-gradient(to top, rgba(20,31,51,.95) 0%, rgba(20,31,51,.55) 38%, rgba(20,31,51,.12) 70%, transparent 100%);
}

/* Hero overlay PharmD sub-line */
.hero-img-sub { color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.4; margin-top: .5rem; max-width: 300px; }

/* Tests page — side-by-side PGx vs PCR comparison */
.tcmp { margin-top:2rem; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--white); }
.tcmp-head, .tcmp-row { display:grid; grid-template-columns:1fr 1.4fr 1.4fr; }
.tcmp-head { background:var(--navy); color:#fff; font-weight:700; font-size:.9rem; }
.tcmp-head > div { padding:1rem 1.25rem; }
.tcmp-head .tcmp-col { border-left:1px solid rgba(255,255,255,.12); }
.tcmp-row { border-top:1px solid var(--border); }
.tcmp-row:nth-child(even) { background:var(--bg); }
.tcmp-row > div { padding:1.05rem 1.25rem; font-size:.9rem; line-height:1.55; color:var(--slate); }
.tcmp-row > div + div { border-left:1px solid var(--border); }
.tcmp-attr { font-weight:700; color:var(--navy); }
.tcmp-row svg { color:var(--green-deep); vertical-align:-2px; margin-right:.2rem; }
@media(max-width:820px){ .tcmp-head{display:none;} .tcmp-row{grid-template-columns:1fr;} .tcmp-row>div+div{border-left:none;border-top:1px dashed var(--border);} .tcmp-attr{background:var(--green-mist);} }

/* Test detail — disclaimer note box */
.td-disclaimer { display:flex; gap:.75rem; align-items:flex-start; background:var(--green-mist); border:1px solid var(--green); border-left:4px solid var(--green); border-radius:var(--radius); padding:1.1rem 1.3rem; margin-top:1.75rem; }
.td-disclaimer svg { color:var(--green-deep); flex:none; margin-top:.1rem; }
.td-disclaimer p { color:var(--slate); font-size:.9rem; line-height:1.6; margin:0; }

/* Collection kit request form (How to Order) */
.kit-form { margin-top: 1rem; text-align: left; }
.kit-form .frow { margin-bottom: .8rem; }
.kit-form .frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.kit-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.kit-form input, .kit-form select, .kit-form textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; color: var(--navy); background: var(--white); box-sizing: border-box;
}
.kit-form input:focus, .kit-form select:focus, .kit-form textarea:focus { outline: none; border-color: var(--green); }
.kit-form button { margin-top: .4rem; }
.kit-success { background: var(--green-mist); border: 1px solid var(--green); color: var(--green-deep);
  border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
@media (max-width: 480px) { .kit-form .frow2 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   ROBUST NAV + MOBILE MENU
   ═══════════════════════════════════════════ */

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .nav-links {
    display: none;
    position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 86vw);
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: .25rem; padding: 6rem 1.25rem 2rem; background: var(--white);
    box-shadow: -12px 0 40px -12px rgba(29,45,71,.3);
    z-index: 60; overflow-y: auto;
  }
  .nav.menu-open .nav-links { display: flex; animation: navSlideIn .3s cubic-bezier(.22,.61,.36,1); }
  @keyframes navSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .nav-links .nav-link { font-size: 1rem; padding: .85rem 1rem; }
  /* dim backdrop */
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(20,31,51,.45); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s ease; z-index: 55;
  }
  .nav.menu-open .nav-backdrop { pointer-events: auto; }
  .nav.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
  /* close (X) button inside the panel */
  .nav-close {
    position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none;
    cursor: pointer; padding: .4rem; color: var(--navy); display: inline-flex;
  }
}
@media (min-width: 1001px) { .nav-close, .nav-close-li, .nav-backdrop { display: none; } }

/* Mobile: simplify the top bar so the header isn't cramped */
@media (max-width: 1000px) {
  .topbar .container { justify-content: center; }
  .topbar-right { display: none; }
}
@media (max-width: 680px) {
  .topbar { font-size: .7rem; }
  .topbar span { text-align: center; }
}

/* Ensure mobile nav header never overflows and toggle stays on-screen */
@media (max-width: 1000px) {
  .nav-inner { position: relative; overflow: visible; gap: 1rem; padding: 0 1.25rem; }
  .nav-toggle { display: inline-flex !important; margin-left: auto; position: relative; z-index: 61; }
  .nav-cta { display: none; }  /* CTA already removed, but guard */
  .nav-links { width: min(340px, 86vw); }
}

/* Mobile: shrink brand so header fits with the toggle */
@media (max-width: 1000px) {
  .nav-brand img { height: 38px; }
  .nav-brand-name { font-size: 1rem; }
  .nav-brand-sub { font-size: .5rem; }
}
@media (max-width: 460px) {
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: .95rem; }
  .nav-brand img { height: 34px; }
}

/* Mobile: guarantee toggle is on-screen with absolute positioning */
@media (max-width: 1000px) {
  .nav-inner { padding-right: 60px; }
  .nav-toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
  .nav-brand { max-width: calc(100% - 60px); overflow: hidden; }
  .nav-brand-text { overflow: hidden; }
  .nav-brand-name, .nav-brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* How to Order — specimen shipping notes (fills the left column) */
.ship-notes { margin-top: 2rem; display: grid; gap: 1.1rem; }
.ship-note { display: flex; gap: .9rem; align-items: flex-start; }
.ship-note-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--green-mist); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.ship-note h4 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin: 0 0 .2rem; }
.ship-note p { font-size: .9rem; color: var(--muted); line-height: 1.55; margin: 0; }
.ship-note a { color: var(--green-deep); font-weight: 600; }
