/* Cascade Diagnostics - shared styles for every page. */

:root {
  --navy: #032A51;
  --navy-hover: #0A3D6E;
  --navy-deep: #021E3B;
  --navy-2: #0B3B6B;
  --navy-3: #14497F;
  --ink: #1D3553;
  --muted: #42546B;
  --subtle: #5A6B80;
  --green: #2F7A3F;
  --green-dark: #1F5A2C;
  --green-bg: #E3F1E6;
  --mint: #8FD6A0;
  --amber: #8A4B00;
  --amber-bg: #FFF1DC;
  --amber-dot: #D98A1E;
  --bg-soft: #F5F8FB;
  --line: #E3EAF2;
  --line-2: #DCE4EE;
  --line-3: #C9D6E6;
  --on-dark: #C9D6E6;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow: 0 30px 60px -30px rgba(2, 27, 54, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--green); }
input, button, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus, .skip-link:hover { top: 16px; color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.bg-soft { background: var(--bg-soft); }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.02em; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin-top: 14px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); }
.body { font-size: 17px; line-height: 1.7; color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; color: var(--subtle); }
.accent { color: var(--green); }
.crumbs { font-size: 14px; color: var(--subtle); }
.crumbs a { color: var(--muted); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--line); color: var(--navy); }
.btn-sm { padding: 11px 20px; font-size: 15px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--navy); }
.link-arrow svg { width: 18px; height: 18px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge-green { color: var(--green-dark); background: var(--green-bg); }
.badge-mint { color: var(--navy); background: var(--mint); }
.badge-amber { color: var(--amber); background: var(--amber-bg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-dot); }
.chip { font-size: 13px; color: #fff; border: 1px solid #2A5C8E; padding: 6px 12px; border-radius: 999px; }
.icon-box { width: 48px; height: 48px; flex: none; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-2); color: var(--navy); }
.icon-box svg { width: 24px; height: 24px; }
.icon-box.green { background: var(--green-bg); border-color: transparent; color: var(--green); }
.icon-box.soft { background: #EEF3F8; border-color: transparent; }
.check { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--green-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.check svg { width: 13px; height: 13px; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.nav-logo img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 4px; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--green); }

/* ---------- Cards ---------- */
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.card.white { background: #fff; }
.card h3 { font-size: 20px; margin: 20px 0 10px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.lift { transition: transform .25s, box-shadow .25s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(3, 42, 81, .35); }
.float-card { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.dark-panel { background: var(--navy); color: #fff; border-radius: 28px; position: relative; overflow: hidden; }
.dark-panel h2, .dark-panel h3 { color: #fff; }
.dark-panel p { color: var(--on-dark); }
.dark-panel a:not(.btn):hover, a.dark-panel:hover { color: var(--mint); } /* green hover fails contrast on navy */
.deco { position: absolute; pointer-events: none; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px 8px 10px; font-size: 14px; font-weight: 500; }
.hero .h1 { margin-top: 28px; }
.hero .lead { font-size: 19px; margin-top: 24px; max-width: 540px; }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; }
.stat-num { font-family: var(--font-head); font-size: 36px; font-weight: 600; color: var(--navy); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 2px; }
.hero-visual { flex: 1 1 460px; min-width: 0; position: relative; height: 540px; }
.hero-visual .backdrop { position: absolute; inset: 0 0 40px 40px; background: var(--navy); border-radius: 32px; overflow: hidden; }
.hero-visual .chroma { position: absolute; left: 0; top: 56px; width: 330px; }
.hero-visual .report { position: absolute; right: 24px; bottom: 0; width: 300px; }
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); }
.report-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.report-rows div { display: flex; justify-content: space-between; }
.report-rows .sub { color: var(--subtle); padding-left: 12px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head > div { max-width: 640px; }
.section-head > p { max-width: 440px; }
.service { flex: 1 1 460px; min-width: 0; min-height: 420px; text-decoration: none; color: inherit; border-radius: 28px; padding: 44px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.service > :not(.deco) { position: relative; }
.service h3 { font-size: 32px; }
.service p { font-size: 17px; line-height: 1.6; max-width: 460px; }
.service.light { background: var(--bg-soft); border: 1px solid var(--line-2); }
.service.light p { color: var(--muted); }
.service .icon-box { width: 56px; height: 56px; border-radius: 16px; }
.service .icon-box svg { width: 28px; height: 28px; }
.service.dark-panel .icon-box { background: #0F3F70; border-color: transparent; color: var(--mint); }
.service .more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.service .more svg { width: 18px; height: 18px; }

.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.class-list { list-style: none; padding: 0; margin: 18px 0 0; }
.class-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--navy-3); font-size: 15px; }
.count { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--navy); background: var(--mint); border-radius: 999px; min-width: 30px; text-align: center; padding: 3px 9px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 56px 0 0; }
.steps li { counter-increment: step; border: 1px solid var(--line-2); border-radius: 22px; padding: 30px 28px; }
.steps li::before { content: "0" counter(step); display: flex; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--green); }
.steps h3 { font-size: 22px; margin: 22px 0 10px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.cta-band { padding: 64px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band > :not(.deco) { position: relative; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list a { font-size: 16px; font-weight: 600; text-decoration: none; }
.form-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.form-card h3 { font-size: 24px; }

/* ---------- Toxicology menu ---------- */
.page-hero { background: var(--navy); position: relative; overflow: hidden; }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--on-dark); }
.page-hero .h1 { color: #fff; margin-top: 20px; font-size: clamp(38px, 4.6vw, 60px); }
.page-hero .lead { color: var(--on-dark); margin-top: 20px; max-width: 640px; }
.page-hero-inner { position: relative; padding-top: 80px; padding-bottom: 88px; }
.stat-tiles { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.stat-tile { background: var(--navy-2); border-radius: 18px; padding: 18px 24px; min-width: 150px; }
.stat-tile .stat-num { color: #fff; font-size: 34px; }
.stat-tile .stat-num.mint { color: var(--mint); }
.stat-tile .stat-label { color: var(--on-dark); }

.toolbar { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.search { flex: 1 1 320px; max-width: 420px; position: relative; display: block; }
.search svg { position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; color: var(--subtle); }
.search input { width: 100%; height: 54px; border: 1px solid var(--line-3); border-radius: 999px; padding: 0 20px 0 50px; font-size: 15px; color: var(--ink); background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { cursor: pointer; font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 999px; min-height: 44px; background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); transition: background .15s, color .15s, border-color .15s; }
.pill:hover { border-color: var(--navy); }
.pill[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill small { opacity: .7; font-weight: 500; font-size: inherit; }

.tox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 24px; align-items: start; }
.tox-card { border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: #fff; }
.tox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.tox-head > div { display: flex; align-items: center; gap: 14px; }
.tox-head h2 { font-size: 21px; }
.tox-head .num { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.tox-head .meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tox-rows { list-style: none; margin: 0; padding: 6px 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 26px; border-bottom: 1px solid #F0F4F8; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #F8FAFC; }
.drug { font-size: 15px; font-weight: 600; color: #fff; background: var(--navy); padding: 7px 14px; border-radius: 10px; min-width: 120px; }
.drug.excluded { color: var(--muted); background: none; border: 1.5px dashed #8A9BB0; padding: 6px 14px; }
.row > svg { width: 18px; height: 18px; color: #8A9BB0; }
.metabs { display: flex; flex-wrap: wrap; gap: 8px; }
.metab { font-size: 13.5px; font-weight: 500; color: var(--green-dark); background: var(--green-bg); border: 1px solid #B9DCC1; padding: 6px 12px; border-radius: 999px; }
.parent-only { font-size: 13px; color: var(--subtle); }
.empty { border: 1px dashed var(--line-3); border-radius: 22px; padding: 48px; text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.note { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 32px; padding: 18px 22px; background: var(--bg-soft); border-radius: 16px; display: flex; gap: 12px; align-items: flex-start; }
.note svg { flex: none; width: 20px; height: 20px; color: var(--navy); margin-top: 1px; }
.outline-cta { border: 1px solid var(--line-2); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }

/* ---------- PCR ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; background: var(--amber-bg); color: var(--amber); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.status .dot { width: 9px; height: 9px; }
.pcr-art { position: relative; width: 440px; max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; }
.pcr-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcr-art .float-card { position: absolute; right: -8px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.status-card { flex: 1 1 380px; min-width: 0; border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; display: flex; gap: 18px; align-items: center; text-decoration: none; }
.status-card .title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy); }
.status-card .desc { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
.spin { animation: spin 14s linear infinite; transform-origin: 50% 50%; }

/* ---------- Simple centered pages (404) ---------- */
.message { max-width: 760px; padding-top: 120px; padding-bottom: 140px; text-align: center; }
.message .lead { margin: 20px auto 0; max-width: 560px; }
.message .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 72px; padding-bottom: 40px; }
.footer-brand { flex: 1 1 300px; max-width: 360px; }
.footer-brand img { height: 96px; width: auto; display: block; }
.footer-brand p { font-size: 15px; line-height: 1.6; margin-top: 20px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols strong { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 15px; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1B3D63; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: #9FB3CA; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-logo img { height: 46px; }
  /* links become a swipeable row under the logo instead of wrapping into a tall block */
  .nav-links { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .nav-links .btn { display: none; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .hero-visual { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .hero-visual .backdrop { display: none; }
  .hero-visual .chroma, .hero-visual .report { position: static; width: 100%; }
  .service, .cta-band, .outline-cta, .form-card { padding: 32px 24px; }
  .row { padding: 12px 18px; }
  .tox-head { padding: 18px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .spin { animation: none; }
  .lift, .lift:hover { transition: none; transform: none; }
}
