/*
Theme Name: Arcadia
Theme URI: https://arcadiadiagnostics.com
Author: Arcadia Diagnostics
Description: A minimalist, professional theme for Arcadia Diagnostics — an independent analytical testing laboratory. Green and white, typography-led, built for credibility.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arcadia
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* Green scale — deep, institutional, not "startup bright" */
  --g-950: #06231a;
  --g-900: #0a2e21;
  --g-800: #0f3d2c;
  --g-700: #14523a;
  --g-600: #1a6b4a;
  --g-500: #23885d;
  --g-400: #34a06f;
  --g-300: #6fc39a;
  --g-200: #a9dcc3;
  --g-100: #d9ece2;
  --g-50:  #eff7f2;

  /* Neutrals */
  --paper:   #ffffff;
  --paper-2: #f7faf8;
  --paper-3: #f0f5f2;
  --ink:     #0d1a14;
  --ink-2:   #38493f;
  --ink-3:   #6b7d72;
  --ink-4:   #93a49b;
  --line:    #e3ece7;
  --line-2:  #cfded6;

  /* Semantic */
  --bg:         var(--paper);
  --fg:         var(--ink);
  --fg-muted:   var(--ink-3);
  --accent:     var(--g-600);
  --accent-ink: var(--g-800);

  /* Type */
  --ff-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.25rem + 3.9vw, 4.5rem);
  --fs-h1:      clamp(2.1rem, 1.35rem + 2.4vw, 3.3rem);
  --fs-h2:      clamp(1.7rem, 1.25rem + 1.5vw, 2.4rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-label:   0.6875rem;

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --section-y: clamp(4rem, 2rem + 7vw, 7.5rem);

  /* Layout */
  --wrap:       1200px;
  --wrap-tight: 860px;
  --wrap-prose: 68ch;
  --gutter:     clamp(1.25rem, 0.5rem + 3vw, 3rem);

  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(6,35,26,.05), 0 1px 3px rgba(6,35,26,.04);
  --shadow-md: 0 4px 6px -1px rgba(6,35,26,.06), 0 2px 4px -2px rgba(6,35,26,.05);
  --shadow-lg: 0 12px 24px -8px rgba(6,35,26,.12), 0 4px 8px -4px rgba(6,35,26,.06);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .45s;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-sans);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.014em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.008em; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-ink);
  text-decoration-color: var(--g-200);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--g-600); text-decoration-color: var(--g-400); }

img, svg, video { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

strong, b { font-weight: 600; color: var(--ink); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }
li::marker { color: var(--g-400); }

code, kbd, samp { font-family: var(--ff-mono); font-size: 0.9em; }

::selection { background: var(--g-200); color: var(--g-950); }

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

.screen-reader-text, .sr-only {
  position: absolute !important; 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: -9999px; top: 0; z-index: 999;
  background: var(--g-800); color: #fff; padding: .75rem 1.25rem;
  font-family: var(--ff-mono); font-size: var(--fs-xs);
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--tight { max-width: var(--wrap-tight); }
.prose { max-width: var(--wrap-prose); }

/* Everything shares the .wrap left edge; readable line length is enforced by
   capping the component, not by narrowing (and re-centring) its container. */
.measure { max-width: 58rem; }
.section .table-scroll,
.section > .wrap > .faq,
.section .section-head { max-width: 58rem; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 1.5rem + 5vw, 5rem); }
.section--paper { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--g-900); color: var(--g-100); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--g-200); text-decoration-color: var(--g-600); }
.section--dark a:hover { color: #fff; }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }

/* ==========================================================================
   4. TYPOGRAPHIC UTILITIES
   ========================================================================== */

/* Signature element: a monospace, letterspaced eyebrow. Reads "laboratory". */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--g-600);
  margin: 0 0 var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: var(--g-400);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.section--dark .eyebrow { color: var(--g-300); }
.section--dark .eyebrow::before { background: var(--g-600); }

.lede {
  font-size: clamp(1.075rem, 1rem + .35vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lede { color: var(--g-100); }

.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-sm); }
.xs    { font-size: var(--fs-xs); }

.section-head { max-width: 44rem; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--g-700); color: #fff; border-color: var(--g-700); }
.btn--primary:hover { background: var(--g-600); border-color: var(--g-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--g-800); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--g-50); border-color: var(--g-300); color: var(--g-800); }

.btn--light { background: #fff; color: var(--g-900); border-color: #fff; }
.btn--light:hover { background: var(--g-50); border-color: var(--g-50); color: var(--g-900); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }

.btn--sm { padding: .7rem 1.15rem; font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--ff-sans); font-size: var(--fs-sm); font-weight: 500;
  color: var(--g-700); text-decoration: none;
}
.arrow-link svg { transition: transform .25s var(--ease); flex: none; }
.arrow-link:hover { color: var(--g-500); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--ff-sans); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -0.025em; color: var(--ink);
}
.brand__sub {
  font-family: var(--ff-mono); font-size: .5625rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--g-600); margin-top: 3px;
}

.primary-nav { display: none; }
@media (min-width: 1000px) { .primary-nav { display: block; } }
.primary-nav ul { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav a {
  display: block; padding: .5rem .75rem;
  font-family: var(--ff-sans); font-size: .9rem; font-weight: 450;
  color: var(--ink-2); text-decoration: none; border-radius: var(--radius);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.primary-nav a:hover { color: var(--g-700); background: var(--g-50); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current-menu-ancestor > a { color: var(--g-700); font-weight: 550; }

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 20;
  min-width: 16rem; padding: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { padding: .6rem .75rem; font-size: .875rem; }

.header-actions { display: none; align-items: center; gap: var(--sp-3); }
@media (min-width: 1000px) { .header-actions { display: flex; } }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }
.nav-toggle span { position: relative; display: block; width: 17px; height: 1.5px; background: var(--ink); transition: background-color .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile panel.
   Rendered as a sibling of .site-header, never a child — the header's
   backdrop-filter would otherwise become this element's containing block and
   clip it to the header's height. */
.mobile-nav {
  position: fixed; inset: 76px 0 0; z-index: 99;
  background: #fff; padding: var(--sp-5) var(--gutter) var(--sp-8);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1000px) { .mobile-nav { display: none; } }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block; padding: .95rem 0;
  font-family: var(--ff-sans); font-size: 1.0625rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.mobile-nav .sub-menu { padding-left: var(--sp-4); }
.mobile-nav .sub-menu li:last-child { border-bottom: 0; }
.mobile-nav .sub-menu a { font-size: .95rem; font-weight: 400; color: var(--ink-2); padding: .7rem 0; }
.mobile-nav__actions { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
body.nav-open { overflow: hidden; }

/* Sit below the WordPress admin bar when one is present (logged-in users). */
.admin-bar .mobile-nav { top: calc(76px + 46px); }
@media screen and (min-width: 783px) {
  .admin-bar .mobile-nav { top: calc(76px + 32px); }
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(4rem, 2rem + 8vw, 8.5rem) clamp(4rem, 2rem + 7vw, 7rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--g-50) 0%, rgba(239,247,242,0) 62%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: var(--fs-display); letter-spacing: -0.035em; margin-bottom: var(--sp-5); max-width: 20ch; }
.hero__title em { font-style: normal; color: var(--g-600); }
.hero__lede { max-width: 54ch; margin-bottom: var(--sp-7); }
.hero .btn-row { margin-bottom: var(--sp-8); }

/* Chromatogram motif — an abstract HPLC trace. The signature graphic. */
/* Sits low and stays quiet: the trace should read as a watermark behind the
   stat strip, not as a shape competing with the buttons above it. */
.chromatogram {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  width: 100%; height: clamp(130px, 17vw, 215px);
  pointer-events: none; opacity: .42;
}
.chromatogram path.trace {
  fill: none; stroke: var(--g-400); stroke-width: 1.25;
  stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.chromatogram path.fill { fill: url(#chromaGrad); stroke: none; }
.chromatogram line { stroke: var(--g-200); stroke-width: 1; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: no-preference) {
  .chromatogram path.trace {
    stroke-dasharray: 2400; stroke-dashoffset: 2400;
    animation: draw-trace 2.6s var(--ease) .3s forwards;
  }
}
@keyframes draw-trace { to { stroke-dashoffset: 0; } }

/* Hero stat strip */
.hero-stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative; z-index: 2;
}
.hero-stat { background: #fff; padding: var(--sp-5); }
.hero-stat__label {
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--g-600); margin-bottom: var(--sp-2);
}
.hero-stat__value {
  font-family: var(--ff-sans); font-size: 1.05rem; font-weight: 550;
  color: var(--ink); line-height: 1.35; letter-spacing: -0.015em;
}

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(2.5rem, 1.5rem + 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--g-50) 0%, rgba(255,255,255,0) 100%);
}
.page-hero__title { max-width: 22ch; }
.page-hero .lede { margin-top: var(--sp-4); }

/* Breadcrumb */
.crumbs { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ink-4); margin-bottom: var(--sp-5); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--g-600); }
.crumbs span { margin-inline: .5rem; color: var(--line-2); }

/* ==========================================================================
   8. CARDS / GRIDS
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  display: flex; flex-direction: column;
}
a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover { border-color: var(--g-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.card__icon { width: 34px; height: 34px; margin-bottom: var(--sp-5); color: var(--g-600); }
.card__title { font-size: 1.0625rem; margin-bottom: var(--sp-3); letter-spacing: -0.012em; }
.card__body { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-5); flex: 1; }
.card__body :last-child { margin-bottom: 0; }
.card__foot { margin-top: auto; }

/* Numbered feature list — restrained take on the "01 —" pattern */
.numbered { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 780px) { .numbered { grid-template-columns: 1fr 1fr; } }
.numbered__item { background: #fff; padding: var(--sp-6) clamp(1rem, .5rem + 1.5vw, 2rem); }
.numbered__n {
  font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: .1em;
  color: var(--g-400); margin-bottom: var(--sp-4); display: block;
}
.numbered__title { font-size: 1.0625rem; margin-bottom: var(--sp-3); }
.numbered__body { font-size: var(--fs-sm); color: var(--ink-3); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); }
@media (min-width: 860px) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
}
.step { position: relative; padding-top: var(--sp-6); border-top: 1px solid var(--line-2); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -0.75rem; left: 0;
  background: var(--paper); padding-right: .6rem;
  font-family: var(--ff-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .1em; color: var(--g-500);
}
.section--paper .step::before { background: var(--paper-2); }
.step__title { font-size: 1.0625rem; margin-bottom: var(--sp-3); }
.step__body { font-size: var(--fs-sm); color: var(--ink-3); }

/* Spec table — data-forward, reads like a lab report */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table caption {
  text-align: left; font-family: var(--ff-mono); font-size: var(--fs-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--g-600);
  padding-bottom: var(--sp-4);
}
.spec-table th, .spec-table td { text-align: left; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th {
  font-family: var(--ff-sans); font-weight: 550; color: var(--ink);
  width: 34%; min-width: 9rem;
}
.spec-table td { color: var(--ink-3); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Dual column: what it does / does not tell you */
.dual { display: grid; gap: var(--sp-6); }
@media (min-width: 780px) { .dual { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
.dual__col { padding: var(--sp-6); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.dual__col--yes { background: var(--g-50); border-color: var(--g-100); }
.dual__col--no  { background: var(--paper-2); }
.dual__head {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: var(--sp-4);
}
.dual__col--yes .dual__head { color: var(--g-700); }
.dual__col--no  .dual__head { color: var(--ink-3); }
.dual ul { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.dual li { padding-left: 1.5rem; position: relative; margin-bottom: var(--sp-3); color: var(--ink-2); }
.dual li::before { position: absolute; left: 0; top: 0; font-family: var(--ff-mono); }
.dual__col--yes li::before { content: "+"; color: var(--g-500); }
.dual__col--no  li::before { content: "\2212"; color: var(--ink-4); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--ff-sans); font-size: 1.0125rem; font-weight: 550; color: var(--ink);
  letter-spacing: -0.012em; line-height: 1.4;
}
.faq__q:hover { color: var(--g-700); }
.faq__icon { flex: none; width: 16px; height: 16px; margin-top: .3rem; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--g-500);
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.faq__icon::before { top: 7.5px; left: 0; width: 16px; height: 1.5px; }
.faq__icon::after  { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
/* Resting state is OPEN so the answers are readable without JS.
   Only once .js is confirmed do we collapse them into an accordion. */
.faq__a { overflow: hidden; transition: height .3s var(--ease); }
.js .faq__a { height: 0; }
.faq__a-inner { padding-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-3); max-width: 72ch; }

/* Callout */
.callout {
  border-left: 2px solid var(--g-400);
  background: var(--g-50);
  padding: var(--sp-5) var(--sp-6);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  max-width: 62rem;
}
.callout__title {
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--g-700); margin-bottom: var(--sp-2);
}

/* Placeholder marker — makes unfilled facts impossible to miss */
.placeholder {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #fff7e0, #fff7e0 8px, #fdf0cc 8px, #fdf0cc 16px);
  border: 1px dashed #d9a520;
  color: #7a5600;
  font-family: var(--ff-mono); font-size: .78em;
  padding: .1em .45em; border-radius: 3px;
}

/* ==========================================================================
   9. COA LOOKUP PORTAL
   ========================================================================== */

.coa-portal { max-width: 42rem; margin-inline: auto; }

.coa-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.coa-form__label {
  display: block;
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--g-700); margin-bottom: var(--sp-3);
}
.coa-input-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.coa-input {
  flex: 1 1 16rem;
  font-family: var(--ff-mono); font-size: 1.0625rem; letter-spacing: .06em;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink);
  text-transform: uppercase;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.coa-input::placeholder { color: var(--ink-4); letter-spacing: .04em; text-transform: none; }
.coa-input:focus {
  outline: none; background: #fff; border-color: var(--g-400);
  box-shadow: 0 0 0 3px var(--g-100);
}
.coa-form__hint { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-4); }

.coa-status { margin-top: var(--sp-5); font-size: var(--fs-sm); }
.coa-status:empty { display: none; }
.coa-status__msg { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); display: flex; gap: .6rem; align-items: flex-start; }
.coa-status__msg--error { background: #fdf2f2; border: 1px solid #f7d4d4; color: #8a2020; }
.coa-status__msg--wait  { background: var(--paper-3); border: 1px solid var(--line); color: var(--ink-3); }

/* Result */
.coa-result {
  margin-top: var(--sp-6);
  background: #fff;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: coa-in .4s var(--ease) both;
}
@keyframes coa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.coa-result__head {
  background: var(--g-800); color: #fff;
  padding: var(--sp-5) var(--sp-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
.coa-result__verified {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--g-200);
}
.coa-result__accession { font-family: var(--ff-mono); font-size: 1.05rem; letter-spacing: .08em; color: #fff; }
.coa-result__body { padding: var(--sp-6); }
.coa-result__title { font-size: 1.3rem; margin-bottom: var(--sp-5); }

.coa-fields { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 620px) { .coa-fields { grid-template-columns: 1fr 1fr; } }
.coa-field { background: #fff; padding: var(--sp-4) var(--sp-5); }
.coa-field__label {
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: .35rem;
}
.coa-field__value { font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.coa-field__value.mono { font-family: var(--ff-mono); }

.coa-results-table { margin-top: var(--sp-6); }
.coa-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 3px;
}
.coa-badge--pass { background: var(--g-100); color: var(--g-800); }
.coa-badge--fail { background: #fdeaea; color: #8a2020; }
.coa-badge--na   { background: var(--paper-3); color: var(--ink-3); }

.coa-result__foot {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}

.coa-privacy-note {
  margin-top: var(--sp-6); padding: var(--sp-5);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  font-size: var(--fs-xs); color: var(--ink-3);
}

/* ==========================================================================
   10. FORMS
   ========================================================================== */

.field { margin-bottom: var(--sp-5); }
.field label {
  display: block; font-family: var(--ff-sans); font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink); margin-bottom: var(--sp-2);
}
.field .req { color: var(--g-600); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field select, .field textarea {
  width: 100%;
  font-family: var(--ff-body); font-size: var(--fs-sm);
  padding: .8rem 1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7d72' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--g-400); box-shadow: 0 0 0 3px var(--g-100);
}
.field__help { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-2); }
.field-row { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer { background: var(--g-950); color: var(--g-200); padding-block: var(--sp-9) var(--sp-6); font-size: var(--fs-sm); }
.site-footer h4 {
  font-family: var(--ff-mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--g-300); margin-bottom: var(--sp-4); font-weight: 500;
}
.footer-grid { display: grid; gap: var(--sp-7); margin-bottom: var(--sp-8); }
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-3); }
.site-footer a { color: var(--g-200); text-decoration: none; transition: color .18s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: var(--g-400); }
.footer-about { margin-top: var(--sp-4); max-width: 34ch; color: var(--g-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--g-400);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-bottom li { margin: 0; }
.footer-disclaimer {
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-xs); line-height: 1.65; color: var(--g-400); max-width: 90ch;
}

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */

.cta-band { background: var(--g-800); color: #fff; position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 44rem; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: var(--g-200); margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-band .btn-row { justify-content: center; }
.cta-band__grid {
  position: absolute; inset: 0; z-index: 1; opacity: .13;
  background-image: linear-gradient(var(--g-400) 1px, transparent 1px), linear-gradient(90deg, var(--g-400) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 20%, transparent 75%);
}

/* ==========================================================================
   13. SCROLL REVEAL
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: .08s; }
  .reveal-d2 { transition-delay: .16s; }
  .reveal-d3 { transition-delay: .24s; }
  .reveal-d4 { transition-delay: .32s; }
}
/* Resting state must equal finished state when JS is off or motion is reduced. */
.reveal { opacity: 1; transform: none; }

/* ==========================================================================
   14. EDITOR / BLOCK CONTENT FALLBACK
   ========================================================================== */

.entry-content > * { margin-bottom: var(--sp-5); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: var(--sp-8); }
.entry-content h3 { margin-top: var(--sp-6); }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content blockquote {
  margin: var(--sp-6) 0; padding-left: var(--sp-5);
  border-left: 2px solid var(--g-400); font-size: 1.075rem; color: var(--ink-2);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content th, .entry-content td { padding: .75rem 1rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--paper-2); font-weight: 600; color: var(--ink); }

/* Legal / long-form documents */
.legal-doc { max-width: 76ch; }
.legal-doc h2 { font-size: 1.35rem; margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.legal-doc h2:first-of-type { margin-top: var(--sp-6); }
.legal-doc h3 { font-size: 1.05rem; margin-top: var(--sp-6); }
.legal-doc, .legal-doc p, .legal-doc li { font-size: var(--fs-sm); }

/* 404 */
.error-404 { text-align: center; padding-block: var(--sp-10); }
.error-404 .code { font-family: var(--ff-mono); font-size: 4rem; color: var(--g-200); letter-spacing: .05em; margin-bottom: var(--sp-4); }

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .mobile-nav, .chromatogram { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a { text-decoration: underline; }
}
