/* ============================================================
   LWD, Inc. — lwddrugtesting.com
   Modern responsive stylesheet (system fonts, no external deps)
   ============================================================ */

:root {
  --navy: #0e3a5c;
  --navy-dark: #0a2c46;
  --blue: #1273a6;
  --blue-soft: #e8f2f9;
  --steel: #7fa8cc;
  --accent: #e2543f;
  --accent-dark: #c74531;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --ink: #22303c;
  --muted: #5c6d7a;
  --border: #dfe8ef;
  --ok: #1d7a4f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(14, 58, 92, .08), 0 8px 24px rgba(14, 58, 92, .07);
  --shadow-lg: 0 12px 40px rgba(14, 58, 92, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
main { padding-block: 8px 48px; }
.section { padding-block: 36px; }
.section-tight { padding-block: 20px; }

.page-head { padding: 28px 0 8px; }
.page-head h1 { margin: 0 0 6px; }
.page-head .lead { color: var(--muted); font-size: 1.08rem; max-width: 46rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-dark); color: #cfe2f0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 6px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .dot { color: var(--steel); margin-inline: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(14,58,92,.04); }
.site-header .container { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img { width: 72px; height: auto; border-radius: 8px; }
.brand .wordmark { line-height: 1.15; }
.brand .wordmark strong { display: block; font-size: 1.25rem; color: var(--navy); letter-spacing: .02em; }
.brand .wordmark span { display: block; font-size: .8rem; color: var(--muted); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Navigation ---------- */
.nav-wrap { background: var(--navy); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 12px 14px; color: #dbeaf5; font-weight: 600; font-size: .92rem;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: #fff; background: var(--navy-dark); text-decoration: none; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; margin: 8px auto; background: transparent; border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-size: .9rem;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding-block: 6px; }
  .main-nav a { border-bottom: none; border-left: 3px solid transparent; }
  .main-nav a[aria-current="page"] { border-left-color: var(--accent); background: var(--navy-dark); }
  .header-cta .btn-ghost { display: none; }
}
@media (min-width: 901px) { .nav-toggle { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0f638e; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 78%);
  color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 400px at 85% -10%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin: 0 0 14px; line-height: 1.18; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.15rem; color: #d8e8f4; max-width: 44rem; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #eaf4fb; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h2, .card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.12rem; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card .more { font-weight: 700; font-size: .9rem; }
.card .icon { font-size: 1.6rem; display: inline-block; margin-bottom: 8px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin-bottom: 4px; }

/* ---------- Section headers ---------- */
.sec-title { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--navy); margin: 0 0 6px; letter-spacing: -.01em; }
.sec-sub { color: var(--muted); margin: 0 0 24px; max-width: 46rem; }

/* ---------- Stats band ---------- */
.stats { background: var(--surface); border-block: 1px solid var(--border); }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding-block: 26px; }
.stat { text-align: center; }
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .85rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 16px 62px; position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; display: grid; place-items: center;
}
.steps li strong { color: var(--navy); }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 4px; font-size: 1.3rem; }
.cta-band p { margin: 0; color: #d8e8f4; }
.notice {
  background: #fdf6ec; border: 1px solid #f0d9b5; border-left: 4px solid #d99a2b;
  border-radius: var(--radius-sm); padding: 14px 16px; color: #6b4f14; font-size: .93rem;
}
.notice-blue { background: var(--blue-soft); border-color: #bcd9ec; border-left-color: var(--blue); color: #14425f; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th { background: var(--blue-soft); color: var(--navy); font-weight: 700; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:nth-child(even) { background: #fafcfe; }
table.data .price { font-weight: 800; color: var(--navy); white-space: nowrap; }

/* ---------- Kit / product cards ---------- */
.kit-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kit-card .kit-img { background: #f7fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 10px; }
.kit-card h2, .kit-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.kit-card ul { padding-left: 18px; color: var(--muted); margin: 0 0 12px; }
@media (max-width: 640px) { .kit-card { grid-template-columns: 1fr; } }

/* ---------- Procedure steps (numbered with figure) ---------- */
.proc-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin-bottom: 22px; }
.proc-step .n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.proc-step h3 { margin: 4px 0 4px; font-size: 1.02rem; color: var(--navy); }
.proc-step p { margin: 0; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-inline: 4px; color: var(--steel); }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); max-width: 680px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 5px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fbfdff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(18,115,166,.25); background: #fff; }
.radio-row { display: flex; flex-wrap: wrap; gap: 14px; }
.radio-row label { font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.faq-item h2, .faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.faq-item p { margin: 0; color: var(--muted); }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
details.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
details.faq[open] summary { margin-bottom: 8px; }
details.faq p { margin: 0; color: var(--muted); }

/* ---------- Partner logos ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.partner-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: grid; place-items: center; min-height: 110px; box-shadow: var(--shadow);
}
.partner-tile img { max-height: 90px; width: auto; max-width: 100%; }

/* ---------- Prose ---------- */
.prose { max-width: 46rem; }
.prose p { color: #37474f; }
.prose ul li { margin-bottom: 6px; }
.prose h2 { color: var(--navy); font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -.01em; }
.prose h3 { color: var(--navy); font-size: 1.1rem; margin: 26px 0 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b8cede; margin-top: 40px; }
.site-footer .container { padding-block: 40px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 { color: #fff; font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #cfe2f0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-about p { color: #9fb8ca; font-size: .92rem; margin: 0 0 10px; }
.footer-contact address { font-style: normal; color: #cfe2f0; font-size: .92rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #8aa7bd; font-size: .82rem; }

/* ---------- Misc ---------- */
.figure { margin: 0; }
.figure img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.pill-heading { display: inline-block; background: var(--blue-soft); color: var(--navy); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.toc h2 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.toc ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 30px; }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.toc a { font-size: .93rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 18px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 18px; }