/* ═══════════════════════════════════════════
   AccuEnviro v3 Design System
   Editorial photography + technical precision
   Inter + Source Serif 4 + JetBrains Mono
   Last updated: 2026-04-24
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:ital,wght@0,400;0,500;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ────────────────────────────────────── */
:root {
  /* surfaces */
  --bg: #F4F3EE;
  --paper: #FFFFFF;
  --panel: #EDECE4;
  --panel-2: #F7F5EE;
  --sand: #E4DDCB;

  /* ink */
  --ink: #0F1210;
  --ink-2: #1A1E1B;
  --text: #2B2F2C;
  --text-muted: #6E7269;
  --subtle: #9A9F96;
  --muted: #6E7269; /* legacy alias */
  --white: #ffffff;

  /* brand */
  --primary: #2F4428;
  --primary-dark: #23321E;
  --primary-alt: #486E3F;
  --primary-light: #A8C79A;
  --primary-subtle: #E8ECE4;
  --accent: #B36A24;
  --dark: #0E1310;

  /* borders */
  --border: #DFDCD3;
  --border-soft: #ECEAE2;

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* legacy aliases */
  --font-head: var(--font-serif);
  --font-body: var(--font-sans);

  /* rhythm */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;

  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(15,18,16,.04);
  --shadow-md: 0 2px 10px rgba(15,18,16,.06);
  --shadow-lg: 0 8px 40px rgba(15,18,16,.08);
  --transition: .3s cubic-bezier(.4,0,.2,1);

  --max-w: 1320px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 3.1rem); font-style: italic; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: normal; font-weight: 500; }
h4 { font-size: 1.05rem; font-style: normal; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em; }
p { margin-bottom: 1em; font-size: 1rem; line-height: 1.65; color: var(--text); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.label::before,
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.on-dark,
.label.on-dark { color: rgba(255,255,255,0.72); }

/* section title helpers used in existing pages */
.section-line {
  width: 32px;
  height: 1px;
  background: var(--primary);
  margin-bottom: var(--space-sm);
}
.section-line-center { margin-left: auto; margin-right: auto; }

/* spacing utilities (legacy) */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.max-w-prose { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Layout ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.bg-white { background: var(--paper); }
.bg-panel { background: var(--panel); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Utility bar (top strip) ───────────────────── */
.utility-bar {
  background: var(--dark);
  color: rgba(240,240,232,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.utility-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 9px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.utility-bar-inner > * { display: none; }
.utility-bar-inner > :first-child { display: flex; justify-self: start; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  .utility-bar-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 9px 40px;
  }
  .utility-bar-inner > * { display: block; }
  .utility-bar-inner > :first-child { justify-self: start; display: flex; }
  .utility-bar-inner > :nth-child(2) {
    justify-self: center;
    padding: 0 28px;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .utility-bar-inner > :last-child { justify-self: end; }
}
.utility-bar .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #8FB67A;
  box-shadow: 0 0 0 3px rgba(143,182,122,0.22);
  flex-shrink: 0;
}

/* ── Navigation ────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) { .nav-inner { padding: 14px 40px; gap: 40px; } }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo .logo-mark {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 500;
  flex-shrink: 0;
}
.nav-logo .logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.nav-logo .logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-logo .logo-name span { color: var(--primary); }
.nav-logo .logo-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}

.nav-links {
  display: none;
  gap: 28px;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--ink); }
.nav-links a.nav-cta { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn-primary {
  padding: 9px 14px;
  font-size: 12.5px;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}
@media (min-width: 900px) { .hamburger { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px 24px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:last-child {
  margin-top: 16px;
  border-bottom: none;
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary, .btn-dark, .btn-outline, .btn-ghost, .btn-white, .btn-ghost-white, .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary, .nav-cta {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover, .nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-dark {
  background: #fff;
  color: var(--ink);
}
.btn-dark:hover { background: #fff; color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost.on-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover { background: var(--panel); }
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn-ghost-white:hover { border-color: #fff; }
.btn-lg { padding: 16px 26px; font-size: 14.5px; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

/* ── Hero (home v3) ────────────────────────────── */
.hero {
  position: relative;
  height: 720px;
  min-height: 640px;
  overflow: hidden;
  background: var(--dark);
}
.hero-short { height: 480px; min-height: 420px; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,12,0.55) 0%, rgba(12,14,12,0.35) 40%, rgba(12,14,12,0.85) 100%);
}
.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg.hero-bg-panel {
  background: var(--panel-2);
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-bg.hero-bg-panel::after { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .hero-content { padding: 140px 40px 72px; }
}
.hero-inner { max-width: 820px; }
.hero h1 {
  margin: 22px 0 20px;
  color: #fff;
  text-wrap: balance;
}
.hero-bg.hero-bg-panel ~ .hero-content h1 { color: var(--ink); }
.hero-sub {
  margin: 0 0 32px;
  max-width: 580px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}
.hero-bg.hero-bg-panel ~ .hero-content .hero-sub { color: var(--text); }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero metrics card (bottom strip of hero) */
.hero-metrics {
  margin-top: 40px;
  background: rgba(12,14,12,0.55);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-metrics {
    grid-template-columns: auto 1fr repeat(4, auto);
    gap: 30px;
    padding: 18px 26px;
  }
}
.hero-metrics-live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #B8D6A4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-metrics-live .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #8FB67A;
  box-shadow: 0 0 0 3px rgba(143,182,122,0.25);
}
.hero-metrics-msg {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
}
.hero-metric {
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.hero-metric-v {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.hero-metric-l {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2em;
  margin-top: 6px;
  text-transform: uppercase;
}

/* editorial captions */
.hero-caption {
  position: absolute;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 2;
}
.hero-caption.left { left: 24px; }
.hero-caption.right { right: 24px; }
@media (min-width: 768px) {
  .hero-caption.left { left: 40px; }
  .hero-caption.right { right: 40px; }
}

/* interior hero (for non-home pages) */
.hero-short .hero-content {
  justify-content: center;
}
.hero-short h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-style: normal;
  color: #fff;
}
.hero-short .hero-sub {
  font-size: 16px;
}
.hero.hero-panel { background: var(--panel-2); color: var(--ink); }
.hero.hero-panel h1 { color: var(--ink); }
.hero.hero-panel .hero-sub { color: var(--text); }
.hero.hero-panel .hero-bg::after { display: none; }

/* animated hero entrances */
.hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4 {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 700ms cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-anim-1 { animation-delay: 100ms; }
.hero-anim-2 { animation-delay: 220ms; }
.hero-anim-3 { animation-delay: 340ms; }
.hero-anim-4 { animation-delay: 460ms; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ── Section intros ────────────────────────────── */
.section-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .section-intro { grid-template-columns: 1.15fr 1.85fr; gap: 72px; }
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-lede {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 540px;
}

/* ── Chips / pills ─────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--primary);
}
.chip.no-dot::before { display: none; }
.chip.soft {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: rgba(47,68,40,0.25);
}
.chip.dark {
  background: var(--dark);
  color: #F0ECE0;
  border-color: var(--dark);
}

/* ── Data table (What We Do) ───────────────────── */
.data-table {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table-head,
.data-table-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 18px 20px;
  gap: 16px;
}
.data-table-head {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: none;
}
.data-table-row {
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.data-table-row:last-child { border-bottom: none; }
.data-cell-no {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  flex-shrink: 0;
}
.data-cell-cap .name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: block;
}
.data-cell-cap .sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.data-cell-scope {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.data-cell-scope strong { color: var(--ink); }
.data-cell-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.data-cell-jx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
}
.bars span {
  width: 3px;
  background: var(--border);
}
.bars span:nth-child(1) { height: 6px; }
.bars span:nth-child(2) { height: 9px; }
.bars span:nth-child(3) { height: 12px; }
.bars span:nth-child(4) { height: 15px; }
.bars[data-active="4"] span,
.bars[data-active="3"] span:nth-child(-n+3),
.bars[data-active="2"] span:nth-child(-n+2),
.bars[data-active="1"] span:nth-child(-n+1) {
  background: var(--primary);
}

.data-table-row-wide {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.data-table-row-wide:last-child { border-bottom: none; }
.data-table-row-wide .data-row-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px) {
  .data-table-head {
    display: grid;
    grid-template-columns: 56px 1.3fr 2.2fr 1.6fr 1.2fr 44px;
    gap: 22px;
    padding: 14px 28px;
  }
  .data-table-row-wide {
    grid-template-columns: 56px 1.3fr 2.2fr 1.6fr 1.2fr 44px;
    gap: 22px;
    padding: 24px 28px;
  }
  .data-table-row-wide .data-row-body { display: contents; }
}
.data-cell-action {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.data-cell-action.filled {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.data-cell-action.toggle {
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.data-cell-action.toggle:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.data-table-row-wide.open > .data-row-body .data-cell-action.toggle,
.data-cell-action.toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* legend (Routine / Seasonal / On Request) */
.data-table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-sq {
  width: 10px; height: 10px;
  border: 1px solid var(--primary);
  background: transparent;
  display: inline-block;
}
.legend-sq.filled { background: var(--primary); }
.legend-sq.half {
  background: linear-gradient(to right, var(--primary) 50%, transparent 50%);
}
.legend-sq.empty { background: transparent; }

/* expanded row panel */
.data-row-expanded {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}
.data-row-expanded[hidden] { display: none; }
.expanded-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .expanded-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 36px;
  }
}
.expanded-col { min-width: 0; }
.expanded-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.expanded-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.expanded-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.expanded-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  background: var(--primary);
}
.expanded-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.expanded-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--primary);
}

/* stats row at end of data-table */
.data-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 26px 24px;
}
@media (min-width: 700px) { .data-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .data-stats { grid-template-columns: repeat(5, 1fr); padding: 26px 28px; } }
.data-stat {
  padding-left: 0;
  border-left: none;
}
.data-stat + .data-stat { padding-left: 20px; border-left: 1px solid var(--border); }
@media (min-width: 1000px) {
  .data-stat + .data-stat { padding-left: 28px; }
}
.data-stat-l {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.data-stat-v {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.data-stat-v .suffix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.data-stat-s {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Industry grid ─────────────────────────────── */
.industry-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-2);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.industry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.industry-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0E1310;
}
.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.industry-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.2) 100%);
}
.industry-card-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 9px;
  background: rgba(10,12,10,0.55);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #E8E6DD;
  text-transform: uppercase;
  z-index: 2;
}
.industry-card-tag span { color: #A9ADA2; margin-left: 8px; }
.industry-card-content { padding: 24px; }
.industry-card-content h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.industry-card-content .sub {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.industry-card-content .chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* legacy industry card used by location pages */
.industries-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Trusted By ────────────────────────────────── */
.trust-bar { padding: 72px 0; background: var(--bg); }
.trust-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 16px 0 0;
}
.trust-center {
  text-align: center;
  margin-bottom: 36px;
}
.trust-center .label { justify-content: center; }
.trust-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
}
@media (min-width: 700px) { .trust-logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .trust-logos { grid-template-columns: repeat(7, 1fr); } }
.trust-logos > * {
  padding: 24px 14px;
  text-align: center;
  border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
}
.trust-logos > :first-child { border-left: none; }
.trust-logos > :nth-child(-n+2) { border-top: none; }
@media (min-width: 700px) {
  .trust-logos > :nth-child(4n+1) { border-left: none; }
  .trust-logos > :nth-child(-n+4) { border-top: none; }
}
@media (min-width: 1000px) {
  .trust-logos > :nth-child(n) { border-left: 1px solid var(--border-soft); }
  .trust-logos > :nth-child(7n+1) { border-left: none; }
  .trust-logos > :nth-child(n) { border-top: none; }
}
.trust-logo-img {
  max-height: 32px;
  max-width: 140px;
  width: auto;
  height: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity var(--transition);
}
.trust-logo-img:hover { opacity: 1; }
.trust-logo-text { font-weight: 500; }

/* ── FAQ ───────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 80px; }
}
.faq-heading { position: sticky; top: 120px; align-self: start; }
.faq-heading .section-title { font-size: clamp(2rem, 4.4vw, 3.75rem); }
.faq-heading .section-lede { max-width: 380px; margin-top: 20px; }
.faq-list { display: flex; flex-direction: column; }
.faq-row { border-top: 1px solid var(--border); }
.faq-row:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: left;
}
.faq-q-text {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.faq-q-icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 200ms;
  flex-shrink: 0;
  font-size: 14px;
}
.faq-row.open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  padding-bottom: 26px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
  display: none;
}
.faq-row.open .faq-a { display: block; }

/* ── Cards (generic, Why Us grid) ──────────────── */
.card, .card-flat {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover, .card-flat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.card-flat { display: block; color: inherit; text-decoration: none; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3, .card h4, .card-flat h3, .card-flat h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  font-style: normal;
}
.card p, .card-flat p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Stats (on index stats section) ────────────── */
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Steps (process lists on service pages) ────── */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}
.step h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  font-style: normal;
}
.step p { margin: 0; font-size: 15px; }

/* ── Tables (service page method tables) ───────── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background: var(--panel);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-family: var(--font-sans);
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ── Image break strip ─────────────────────────── */
.img-break {
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.img-break::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,19,16,0.1), rgba(14,19,16,0.35));
}

/* ── CTA (dark, final) ─────────────────────────── */
.cta-section {
  background: var(--dark);
  color: #F0F0EE;
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
@media (min-width: 768px) { .cta-section { padding: 120px 0; } }
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/6675078/pexels-photo-6675078.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,19,16,0.95) 0%, rgba(14,19,16,0.82) 60%, rgba(14,19,16,0.65) 100%);
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  margin: 22px 0 20px;
}
.cta-section p {
  color: rgba(240,240,238,0.75);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-section .eyebrow,
.cta-section .label { color: rgba(255,255,255,0.72); }

/* two-column CTA (home final) */
.cta-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .cta-two { grid-template-columns: 1.4fr 1fr; gap: 80px; }
}
.cta-contact-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 28px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.cta-contact-card .live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(240,240,238,0.6);
  text-transform: uppercase;
}
.cta-contact-card .live .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #8FB67A;
  box-shadow: 0 0 0 3px rgba(143,182,122,0.25);
}
.cta-contact-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cta-contact-row:last-child { border-bottom: none; }
.cta-contact-row .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(240,240,238,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cta-contact-row .v1 {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #fff;
  font-weight: 500;
}
.cta-contact-row .v2 {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(240,240,238,0.6);
  margin-top: 2px;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr; gap: 48px; }
}
.footer-brand .nav-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.footer-brand .nav-logo span { color: var(--primary); }
.footer-brand .footer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
}
.footer-brand p {
  margin: 18px 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(47,68,40,0.25);
  border-radius: var(--radius);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 9px; }
.footer ul a,
.footer ul li {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted); }
.footer-social a:hover { color: var(--primary); }

/* ── Fade reveal ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-child {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-child.in { opacity: 1; transform: translateY(0); }

/* ── Blog listing cards ────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card-img {
  aspect-ratio: 16 / 9;
  background: var(--panel);
  background-size: cover;
  background-position: center;
}
.blog-card-body { padding: 24px; }
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.blog-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Blog post layout (article + sidebar) ──────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.back-link:hover { color: #fff; }

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}
.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 72px;
  }
}

.blog-article {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  max-width: 720px;
}
.blog-article p { margin: 0 0 1.25em; }
.blog-article h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.2;
}
.blog-article h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 32px 0 12px;
  font-style: normal;
}
.blog-article ul, .blog-article ol {
  margin: 0 0 1.25em 1.25em;
  padding-left: 12px;
}
.blog-article ul li { list-style: disc; margin-bottom: 8px; }
.blog-article ol li { list-style: decimal; margin-bottom: 8px; }
.blog-article a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-article strong { color: var(--ink); font-weight: 600; }
.blog-article blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--primary-subtle);
  border-left: 3px solid var(--primary);
  font-style: italic;
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-article table {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
}

.blog-sidebar { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 120px; }
@media (max-width: 959px) { .blog-sidebar { position: static; } }
.sidebar-box,
.sidebar-cta {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-box h4,
.sidebar-cta h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sidebar-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-box ul li a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.sidebar-box ul li a:hover { color: var(--primary); }
.sidebar-cta {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.sidebar-cta h4 { color: rgba(255,255,255,0.75); }
.sidebar-cta p {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 16px;
}
.sidebar-cta .btn-white,
.sidebar-cta .btn-dark {
  width: 100%;
  justify-content: center;
}

.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.related-posts h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--ink);
}

/* Support .faq-item from blog posts (same behavior as .faq-row) */
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item .faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.faq-item .faq-q::after {
  content: '+';
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 200ms;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 0 26px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item .faq-a p { margin: 0; }

/* ── Blog post article body (legacy alias) ─────── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 32px 0 12px;
  font-style: normal;
}
.article-body p { margin-bottom: 1.25em; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25em 1.25em;
  padding-left: 12px;
}
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--primary-subtle);
  border-left: 3px solid var(--primary);
  font-style: italic;
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body code {
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.article-body table {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ── Forms (contact page) ──────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--subtle); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,68,40,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Misc helpers ──────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* On-dark variants used in interior heroes for eyebrow inline styling */
.hero .label, .hero .eyebrow { color: rgba(255,255,255,0.72); }
.hero.hero-panel .label, .hero.hero-panel .eyebrow { color: var(--primary); }

/* Responsive — hide mobile hamburger at desktop */
@media (min-width: 900px) { .hamburger { display: none; } }

/* ─────────────────────────────────────────────────────────────
   ACCUENVIRO — MOBILE RESPONSIVE FIXES
   Tested on: iPhone 14 Pro Max (426px viewport)
   Date: June 2026
   ───────────────────────────────────────────────────────────── */

/* ── G-1: Nav logo clipping (all pages) ─────────────────────── */
@media (max-width: 899px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-logo img {
    width: 72px;
    height: auto;
  }
}

/* ── G-2: Utility bar text wrap (all pages) ─────────────────── */
@media (max-width: 899px) {
  .utility-bar-inner {
    padding: 7px 16px;
  }

  .utility-bar-inner > :first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* ── G-3: Footer column dividers (all pages) ────────────────── */
@media (max-width: 699px) {
  .footer {
    padding: 48px 0 28px;
  }

  .footer-grid {
    gap: 0;
  }

  .footer-grid > * + * {
    border-top: 1px solid var(--border-soft);
    padding-top: 32px;
    margin-top: 32px;
  }
}

/* ── G-4: Trust logos border logic (homepage) ───────────────── */
@media (max-width: 699px) {
  .trust-logos > :nth-child(odd) {
    border-left: none;
  }

  .trust-logos > :nth-child(-n+2) {
    border-top: none;
  }
}

/* ── H-1: Hero metrics overflow + caption overlap ───────────── */
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-content {
    padding: 80px 24px 40px;
    justify-content: flex-start;
    gap: 32px;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 20px;
    margin-top: 24px;
  }

  .hero-metrics-live,
  .hero-metrics-msg {
    grid-column: 1 / -1;
  }

  .hero-metric {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
  }

  .hero-caption {
    display: none;
  }
}

/* ── H-2: Hero sub-paragraph font size ──────────────────────── */
@media (max-width: 767px) {
  .hero-sub {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
}

/* ── H-3: FAQ sticky heading overlap (homepage) ─────────────── */
@media (max-width: 899px) {
  .faq-heading {
    position: static;
    top: auto;
    align-self: auto;
    margin-bottom: 40px;
  }

  .faq-heading .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .faq-heading .section-lede {
    max-width: 100%;
    margin-top: 14px;
  }

  .faq-grid {
    gap: 24px;
  }
}

/* ── H-4: Services table cell overflow (homepage) ───────────── */
@media (max-width: 899px) {
  .data-cell-methods,
  .data-cell-jurisdiction,
  .data-cell-cap {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .chip {
    font-size: 9.5px;
    padding: 3px 8px;
  }

  .data-table-row-wide .data-row-body {
    gap: 16px;
  }
}

/* ── H-5: CTA section card + buttons (homepage) ─────────────── */
@media (max-width: 899px) {
  .cta-contact-card {
    padding: 20px;
  }

  .cta-two {
    gap: 32px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── C-1: Contact form card padding (contact.html) ───────────── */
.contact-form-card {
  border: 1px solid var(--border);
  padding: 40px;
}

@media (max-width: 699px) {
  .contact-form-card {
    padding: 24px;
  }
}

/* ── ST-1: Stack testing equipment card padding ──────────────── */
@media (max-width: 767px) {
  .grid-3 .card,
  .grid-3 .card-flat {
    padding: 20px;
  }

  .grid-3 {
    gap: 16px;
  }
}
