:root {
  --navy: #162E51;
  --ink: #0E1B2D;
  --blue: #005EA2;
  --blue-dark: #074F87;
  --red: #D83933;
  --gold: #FFBE2E;
  --gold-soft: #F6D36A;
  --white: #FFFFFF;
  --paper: #F7F9FC;
  --line: #DCE1E8;
  --line-soft: #E4E9F0;
  --text: #1B2733;
  --muted: #56657A;
  --soft-blue: #E8F2FA;
  --soft-gold: #FFF7DE;
  --shadow: 0 18px 50px rgba(14, 27, 45, .12);
  --shadow-soft: 0 8px 24px rgba(14, 27, 45, .07);
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1180px;
  --font: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.015em; }
main { display: block; }
section { scroll-margin-top: 90px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 14px; z-index: 1000; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(14, 27, 45, .96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 54px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.site-nav a.active { background: rgba(255, 255, 255, .16); color: var(--white); }
.site-nav a.nav-cta { background: var(--gold); color: var(--navy); font-weight: 700; margin-left: 6px; }
.site-nav a.nav-cta:hover { background: var(--gold-soft); color: var(--navy); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; border-radius: var(--radius); padding: 9px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--white); margin: 6px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }
.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; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 110px 0 52px;
  background-image:
    linear-gradient(90deg, rgba(8, 18, 34, .95) 0%, rgba(14, 27, 45, .85) 43%, rgba(14, 27, 45, .38) 100%),
    url("../images/lab-capacity-hero.png");
  background-size: cover;
  background-position: center right;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--blue));
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 42px; align-items: end; }
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 13px;
}
.page-hero .eyebrow, .section .eyebrow, .contact-card .eyebrow { color: var(--blue); }
.hero h1, .page-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  max-width: 880px;
}
.hero-text { font-size: 20px; max-width: 720px; color: rgba(255, 255, 255, .92); margin: 0 0 28px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  font-weight: 700;
  font-family: var(--font);
  font-size: 16px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(0, 94, 162, .28); }
.button.primary:hover { background: var(--blue-dark); color: var(--white); }
.hero .button.primary, .cta .button.primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.hero .button.primary:hover, .cta .button.primary:hover { background: var(--gold-soft); color: var(--navy); }
.button.secondary { border-color: rgba(255, 255, 255, .74); color: var(--white); background: rgba(255, 255, 255, .06); }
.button.secondary:hover { background: rgba(255, 255, 255, .14); color: var(--white); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " \2192"; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.metric-strip div {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 14px 16px;
  backdrop-filter: blur(4px);
}
.metric-strip strong, .metric-strip span { display: block; }
.metric-strip strong { color: var(--gold); font-size: 17px; }
.metric-strip span { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.45; }

.hero-card, .feature-panel, .contact-card, .info-panel, .inquiry-form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 215, 217, .8);
}
.hero-card { background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .65); }
.hero-card img { width: 78px; display: block; margin-bottom: 14px; }
.hero-card h2, .feature-panel h2, .contact-card h2 { margin: 0 0 12px; color: var(--navy); font-size: 24px; }
.hero-card p, .feature-panel p, .contact-card p { color: var(--muted); }
.status-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.status-list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; font-weight: 600; color: var(--navy); }
.status-list span { width: 10px; height: 10px; background: var(--gold); border-radius: 50%; margin-top: 8px; }

/* ---------- Bands & sections ---------- */
.intro-band { background: var(--ink); color: var(--white); padding: 22px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.intro-grid p { margin: 0; color: rgba(255, 255, 255, .87); font-size: 17px; }
.intro-grid a { color: var(--gold); }

.section { padding: 88px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line-soft); }
.section-heading { max-width: 840px; margin-bottom: 38px; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2, .split h2, .process-copy h2, .confirmation-band h2, .cta h2, .request-sidebar h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
  color: var(--navy);
}
.section-heading p, .split p, .process-copy p, .request-sidebar p { color: var(--muted); font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.reverse { grid-template-columns: .9fr 1.1fr; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(14, 27, 45, .08);
}
.support-card {
  padding: 28px 26px;
  min-height: 270px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .2s ease;
}
.support-card:hover { background: var(--paper); }
.support-card:last-child { border-right: 0; }
.support-card.accent, .support-card.accent:hover { background: var(--soft-gold); }
.card-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.support-card h3, .service-card h2, .workflow-card h3, .principle-grid h3 { margin: 0 0 12px; color: var(--navy); line-height: 1.25; font-size: 19px; }
.service-card h2 { font-size: 22px; }
.support-card p:last-child, .service-card p, .workflow-card p, .principle-grid p { color: var(--muted); }

.scenario-list { display: grid; gap: 12px; }
.scenario-list article, .confirmation-grid article, .scope-list article {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.scenario-list strong, .confirmation-grid strong, .scope-list strong { color: var(--navy); }
.scenario-list span, .confirmation-grid span, .scope-list span { color: var(--muted); }

.process-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 50px; align-items: start; }
.process-copy { position: sticky; top: 108px; }
.process-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: process; }
.process-rail li {
  position: relative;
  display: grid;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 20px 20px 64px;
}
.process-rail li::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.process-rail strong { color: var(--navy); font-size: 17px; }
.process-rail span { color: var(--muted); }
.process-rail.numbered li { background: var(--white); }

.test-case-section { background: linear-gradient(135deg, var(--ink), var(--navy)); color: var(--white); }
.feature-panel.dark { background: var(--ink); color: var(--white); border-color: rgba(255, 255, 255, .18); }
.feature-panel.dark h2 { color: var(--white); }
.feature-panel.dark p { color: rgba(255, 255, 255, .84); }
.feature-panel.dark .eyebrow { color: var(--gold); }
.confirmation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.test-case-section .confirmation-grid article { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.test-case-section .confirmation-grid strong { color: var(--white); }
.test-case-section .confirmation-grid span { color: rgba(255, 255, 255, .8); }

/* ---------- Page heroes ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--paper), var(--white));
  border-bottom: 1px solid var(--line-soft);
  padding: 76px 0 62px;
}
.compact-hero { padding: 64px 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 42px; align-items: end; }
.page-hero p { font-size: 19px; max-width: 860px; color: var(--muted); }
.hero-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(14, 27, 45, .08);
}
.hero-note strong, .hero-note span { display: block; }
.hero-note strong { color: var(--navy); margin-bottom: 8px; }
.hero-note span { color: var(--muted); }

/* ---------- Cards & grids ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card.accent { background: var(--soft-gold); }
.service-card ul { padding-left: 19px; margin: 18px 0 0; color: var(--muted); }
.service-card li { margin-bottom: 8px; }
.confirmation-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: center; }

.workflow-grid, .principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-grid { grid-template-columns: repeat(4, 1fr); }
.workflow-card, .principle-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}
.workflow-card span, .principle-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- Request form ---------- */
.request-layout { display: grid; grid-template-columns: 390px 1fr; gap: 36px; align-items: start; }
.request-sidebar { position: sticky; top: 108px; display: grid; gap: 18px; }
.scope-list { display: grid; gap: 10px; }
.notice {
  border-left: 5px solid var(--red);
  background: #FFF6F5;
  color: var(--text) !important;
  padding: 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.inquiry-form { display: grid; gap: 18px; align-self: start; }
.inquiry-form h2 { margin: 0; color: var(--navy); }
.inquiry-form p { margin: 0; color: var(--muted); }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.inquiry-form label { display: grid; gap: 7px; font-weight: 700; color: var(--navy); font-size: 15px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 94, 162, .18);
  border-color: var(--blue);
}
.inquiry-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
.inquiry-form legend { padding: 0 6px; color: var(--navy); font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.volume-options { grid-template-columns: repeat(5, 1fr); }
.checkbox {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
}
.checkbox input { width: auto; margin-top: 5px; accent-color: var(--blue); }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--paper); transition: border-color .15s ease, background .15s ease; }
.option:hover { border-color: var(--blue); background: var(--soft-blue); }
.acknowledgement { background: #FFF6F5; border: 1px solid #F3C4BF; border-radius: var(--radius); padding: 13px; }
.form-note, .form-status { color: var(--muted); font-size: 14px; }
.form-status:not(:empty) { color: var(--navy); font-weight: 700; }
.form-fallback { display: none; gap: 10px; }
.form-fallback.show { display: grid; }
.form-fallback textarea { font-size: 13px; min-height: 140px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; }
.primary-contact { background: linear-gradient(160deg, var(--navy), var(--ink)); color: var(--white); border: 0; }
.primary-contact h2 { color: var(--white); }
.primary-contact p { color: rgba(255, 255, 255, .85); }
.primary-contact .eyebrow { color: var(--gold); }
.contact-lines { display: grid; gap: 0; margin: 22px 0; }
.contact-lines p {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 14px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.contact-lines strong { color: var(--gold); }
.contact-lines a, .contact-lines span { color: var(--white); }
.contact-support { display: grid; gap: 18px; }

/* ---------- CTA & footer ---------- */
.cta { background: linear-gradient(135deg, var(--navy), var(--ink)); color: var(--white); padding: 76px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--red), var(--blue)); }
.cta-inner { text-align: center; max-width: 900px; }
.cta .eyebrow { color: var(--gold); }
.cta h2 { color: var(--white); }
.cta p { color: rgba(255, 255, 255, .87); font-size: 18px; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .85); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 36px; }
.footer-logo { display: block; width: auto; height: 52px; margin-bottom: 16px; }
.site-footer h2 { color: var(--white); font-size: 17px; margin-top: 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 30px; padding-top: 20px; font-size: 14px; }
.disclaimer { color: rgba(255, 255, 255, .7); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page img { width: 110px; margin: 0 auto 24px; }
.error-page h1 { color: var(--navy); font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; }
.error-page p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid, .page-hero-grid, .process-layout, .request-layout, .contact-layout, .confirmation-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 88px 0 42px; background-position: center; }
  .hero-card, .process-copy, .request-sidebar { position: static; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .support-card:nth-child(2n) { border-right: 0; }
  .support-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .volume-options { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; gap: 4px; }
  .site-nav a { padding: 13px 14px; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 6px; text-align: center; justify-content: center; display: flex; }
  .split, .reverse { grid-template-columns: 1fr; gap: 32px; }
  .workflow-grid, .confirmation-grid, .footer-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .brand-logo { height: 46px; }
}

@media (max-width: 680px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .brand-logo { height: 40px; }
  .hero { padding: 66px 0 34px; }
  .hero-text, .page-hero p, .section-heading p, .split p, .process-copy p, .request-sidebar p { font-size: 17px; }
  .hero-card, .feature-panel, .contact-card, .info-panel, .inquiry-form, .service-card, .workflow-card, .principle-grid article { padding: 22px; }
  .metric-strip, .support-grid, .service-grid, .option-grid, .form-grid.two, .principle-grid { grid-template-columns: 1fr; }
  .support-card { border-right: 0 !important; border-bottom: 1px solid var(--line); min-height: auto; }
  .support-card:last-child { border-bottom: 0; }
  .contact-lines p { grid-template-columns: 1fr; gap: 4px; }
  .footer-logo { height: 44px; }
}

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