/* ============================================================
   Seacoast Laboratory Data Systems - sldsi.com rebuild
   Design system: clinical lab-report aesthetic
   ============================================================ */
:root {
  --ink: #0a1e2f;          /* deep seacoast navy */
  --ink-soft: #21384c;
  --slate: #51626f;
  --paper: #f6f9fa;        /* clinical white */
  --white: #ffffff;
  --teal: #0d7c8a;         /* primary accent */
  --teal-deep: #0a5f6a;
  --teal-tint: #e3f1f3;
  --line: #d8e2e7;
  --amber: #c47f17;        /* flag/critical value, used sparingly */
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 6px;
}

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

/* ---------- barcode motif ---------- */
.barcode {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 2px, transparent 2px 5px,
    currentColor 5px 6px, transparent 6px 11px,
    currentColor 11px 14px, transparent 14px 17px,
    currentColor 17px 18px, transparent 18px 24px
  );
  opacity: .85;
}

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: #bfd3de;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px; gap: 16px;
}
.topbar a { color: #dcebf2; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--ink); color: var(--teal-tint);
  display: grid; place-items: center; flex: none;
}
.brand .name { line-height: 1.2; }
.brand .name strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: block; }
.brand .name span { font-family: var(--sans); font-size: 11px; color: var(--slate); letter-spacing: .08em; }

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 15.5px; font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--teal-deep); }
nav.main a[aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--teal); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 11px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--teal-tint); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px;
  padding-top: 84px; padding-bottom: 92px; align-items: center;
}
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; letter-spacing: .04em;
  color: var(--teal-deep); display: block; margin-bottom: 12px;
}
.hero .eyebrow { color: #6fc6d1; }

h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08; letter-spacing: -.022em; font-weight: 650;
  margin-bottom: 22px;
}
.hero p.lede { font-size: 19px; color: #c4d6e0; max-width: 54ch; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* the signature: specimen report card */
.report-card {
  background: var(--white); color: var(--ink);
  border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: hidden; font-size: 14px;
}
.report-card .rc-head {
  background: var(--teal-tint); border-bottom: 1px solid var(--line);
  padding: 17px 22px;
}
.report-card .rc-head .barcode { width: 110px; color: var(--ink); }
.report-card .rc-head .rc-title { font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; display: block; }
.report-card table { width: 100%; border-collapse: collapse; }
.report-card th, .report-card td { text-align: left; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.report-card th { font-size: 11px; letter-spacing: .12em; color: var(--slate); font-weight: 500; text-transform: uppercase; }
.report-card td.result { color: var(--teal-deep); font-weight: 600; }
.report-card td.flag { color: var(--amber); font-weight: 600; }
.report-card .rc-foot { padding: 13px 20px; font-size: 12px; color: var(--slate); letter-spacing: .04em; font-weight: 500; }

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.018em; line-height: 1.15; font-weight: 650; margin-bottom: 16px; }
h3 { font-size: 20px; letter-spacing: -.01em; font-weight: 600; margin-bottom: 10px; }
.section-intro { max-width: 62ch; color: var(--ink-soft); margin-bottom: 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
section.alt .card { background: var(--paper); }
.card .tag {
  font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: .1em;
   color: var(--teal-deep);
}
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card a.more { margin-top: auto; font-weight: 600; text-decoration: none; font-size: 15px; }
.card a.more:hover { text-decoration: underline; }
.card.product { border-top: 4px solid var(--teal); }

/* feature list as a "panel" */
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.panel .panel-head {
  background: var(--ink); color: var(--white); padding: 15px 24px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .06em; 
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel .panel-head .barcode { width: 80px; color: #8fb6c4; }
.panel ul { list-style: none; padding: 10px 0; }
.panel li { padding: 11px 24px 11px 52px; position: relative; color: var(--ink-soft); font-size: 15.5px; border-bottom: 1px solid var(--paper); }
.panel li:last-child { border-bottom: none; }
.panel li::before {
  content: "+"; position: absolute; left: 24px; top: 9px;
  font-family: var(--sans); color: var(--teal); font-weight: 600;
}

/* testimonials */
.quote {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 8px; padding: 24px 26px;
}
.quote p { color: var(--ink-soft); font-size: 15.5px; }
.quote footer { margin-top: 14px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .08em; color: var(--slate); }

/* stats strip */
.stats { background: var(--ink); color: var(--white); }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; padding-top: 62px; padding-bottom: 62px; }
.stat .num { font-size: 54px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.stat .num span { color: var(--teal); }
.stat .lbl { font-family: var(--sans); font-weight: 500; font-size: 13.5px; letter-spacing: .06em;  color: #9db4c2; margin-top: 8px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); border-top: 3px solid var(--teal); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: #d9f0f3; }

/* page hero (interior pages) */
.page-hero { background: var(--ink); color: var(--white); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero p.lede { color: #c4d6e0; font-size: 18.5px; max-width: 64ch; margin-top: 6px; }
.crumb { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .07em; margin-bottom: 14px; }
.crumb a { color: #8fb6c4; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: #6fc6d1; }

/* prose */
.prose { max-width: 72ch; }
.prose p + p { margin-top: 18px; }
.prose h2 { margin-top: 44px; }
.prose ul { margin: 16px 0 16px 22px; color: var(--ink-soft); }
.prose li + li { margin-top: 6px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.contact-card dt { font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .06em;  color: var(--slate); padding-top: 3px; }
.contact-card dd { color: var(--ink-soft); }

/* footer */
footer.site { background: var(--ink); color: #9db4c2; }
footer.site .wrap { padding-top: 56px; padding-bottom: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer.site h4 { color: var(--white); font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
footer.site ul { list-style: none; }
footer.site li + li { margin-top: 8px; }
footer.site a { color: #b9cdd9; text-decoration: none; font-size: 14.5px; }
footer.site a:hover { color: var(--white); text-decoration: underline; }
.foot-legal {
  border-top: 1px solid #1d3346; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .03em;
}
.foot-brand p { font-size: 14.5px; max-width: 40ch; margin-top: 12px; }
.foot-brand .barcode { width: 120px; color: #3a5468; margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 64px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 16px;
  }
  nav.main.open { display: flex; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  section { padding: 56px 0; }
}

/* dropdown nav */
.has-sub { position: relative; }
.has-sub > .nav-link {
  color: var(--ink-soft); font-size: 15.5px; font-weight: 500; cursor: pointer;
  padding: 4px 0; border-bottom: 2px solid transparent; display: inline-block;
}
.has-sub > .nav-link::after { content: " \25BE"; font-size: 10px; color: var(--slate); }
.has-sub:hover > .nav-link, .has-sub:focus-within > .nav-link { color: var(--teal-deep); }
.has-sub .sub {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(10,30,47,.14); padding: 8px; min-width: 250px;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a {
  display: block; padding: 9px 12px; border-radius: 6px; border-bottom: none;
  font-size: 15px; color: var(--ink-soft); text-decoration: none;
}
.has-sub .sub a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.has-sub .sub a[aria-current="page"] { color: var(--teal-deep); background: var(--teal-tint); }
@media (max-width: 680px) {
  .has-sub .sub { display: block; position: static; border: none; box-shadow: none; padding: 4px 0 4px 14px; min-width: 0; }
  .has-sub > .nav-link::after { content: ""; }
}
/* shoreline posts */
.post-card .date { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--slate); }
.badge-example {
  display: inline-block; font-weight: 600; font-size: 10.5px; letter-spacing: .08em;
  background: #f6ecd9; color: var(--amber); border-radius: 4px; padding: 2px 8px; margin-bottom: 4px;
}

/* contact form */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .06em;
   color: var(--slate); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--slate); margin-top: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* nav demo button legibility fix */
nav.main a.btn-primary { color: #fff; border-bottom: none; padding: 11px 22px; }
nav.main a.btn-primary:hover { color: #fff; background: var(--teal-deep); }
/* shoreline posts */
.post-meta { font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; color: #8fb6c4;  }
.note-box {
  background: var(--teal-tint); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 22px; font-size: 15px; color: var(--ink-soft); margin-top: 36px;
}
.prose h3 { margin-top: 28px; }
.back-link { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-decoration: none; }
.issue-group { margin-top: 40px; }

/* specimen journey schematic (hero) */
.journey { padding: 8px 22px 16px; }
.jstep { position: relative; padding: 11px 0 11px 26px; }
.jstep::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.jstep::after {
  content: ""; position: absolute; left: 4px; top: 30px; bottom: -13px;
  width: 2px; background: var(--line);
}
.jstep:last-child::after { display: none; }
.jrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.jname { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.jtag {
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em; color: var(--teal-deep);
  text-align: right;
}
/* product links: fine underline so each name reads as its own link */
a.jtag, .jtag a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13,124,138,.5);
}
a.jtag:hover, .jtag a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}
/* connecting word between two product links: plain, muted, spaced */
.jsep {
  display: inline-block; margin: 0 6px;
  color: var(--slate); font-weight: 400; text-decoration: none;
}
.jsep.comma { margin-left: 0; margin-right: 6px; }
.jtag { text-decoration: none; }
.jdesc { font-size: 13.5px; color: var(--slate); line-height: 1.45; margin-top: 5px; }
.jrow { align-items: center; }
.jstep { padding: 14px 0 14px 30px; }
.jstep::before { width: 12px; height: 12px; top: 20px; }
.jstep::after { left: 5px; top: 36px; bottom: -14px; }
.rc-head span { font-weight: 600; }

/* footer logo (SVG recreation of the Seacoast wordmark) */
.foot-logo { margin-top: 20px; display: block; }

/* header logo */
.brand-logo { display: block; }
@media (max-width: 680px) { .brand-logo { width: 252px; height: 42px; } }

/* nav item descriptions in dropdown */
.has-sub .sub a { line-height: 1.3; }
.has-sub .sub a .sub-desc {
  display: block; font-size: 12.5px; color: var(--slate); font-weight: 400; margin-top: 2px;
}
.has-sub .sub a:hover .sub-desc { color: var(--teal-deep); }
.has-sub .sub { min-width: 340px; }
/* wave motif replacing barcode in panel heads / cards */
.wavemark { width: 58px; height: 18px; flex: none; }
/* checkbox group in contact form */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 4px; }
.check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.check-item input { width: auto; margin-top: 3px; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

/* dropdown suppression after a selection */
.has-sub.closed .sub { display: none !important; }

#products { scroll-margin-top: 96px; }

/* accessibility: skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* quieter closing note, used on secondary pages instead of the full band */
.closer {
  border-top: 1px solid var(--line); padding: 30px 0 4px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.closer p { color: var(--ink-soft); font-size: 17px; max-width: 58ch; }
.closer a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.closer a:hover { text-decoration: underline; }
