/*
Theme Name: Iron Grid MSSP
Theme URI: https://www.irongridmssp.com
Author: Iron Grid
Author URI: https://www.irongridmssp.com
Description: Managed Security Services Provider theme — iron, grid cyan, signal amber. Templates for Security Operations, Network Security, Microsoft Cloud, IT Operations, Compliance, the Solution Stack, Pricing, About, and Contact. Ships a Solution custom post type covering Microsoft CSP, Huntress, Carbon Black, Wazuh, WatchGate.io, Meraki, Kaseya, Autotask, and IT Glue.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: iron-grid
Tags: business, security, technology, dark, custom-menu, custom-logo, translation-ready
*/

/* ─── Design Tokens ────────────────────────────────── */
:root {
  --iron:       #0B0F14;
  --iron-2:     #111822;
  --iron-3:     #18212D;
  --iron-4:     #1F2A38;
  --grid:       #24303F;
  --cyan:       #29D8E6;
  --cyan-dim:   #17A9B6;
  --cyan-glow:  rgba(41, 216, 230, 0.10);
  --amber:      #FFB020;
  --green:      #3DD68C;
  --red:        #F05A4E;
  --violet:     #8B7CF6;
  --bone:       #E9EDF3;
  --white:      #FFFFFF;
  --text-mid:   #A6B1C0;
  --text-dim:   #6C7787;
  --radius:     4px;
  --radius-lg:  10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w:      1280px;
  --section-pad: 96px;
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--iron);
  color: var(--bone);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Screen-reader-only, and the skip link that becomes visible on focus. */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 999;
  width: auto; height: auto;
  clip: auto;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--iron);
  font-weight: 700;
  border-radius: var(--radius);
}

/* ─── Layout ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad) 0; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 128px 0; }
.section--panel {
  background: var(--iron-2);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

/* The grid motif — a faint blueprint lattice behind hero and banner areas.
   No overflow:hidden here on purpose: the ::before is inset to the box anyway,
   and clipping would slice the console card's drop shadow at the container edge. */
.gridlines { position: relative; }
.gridlines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(41,216,230,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(41,216,230,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ─── Typography ────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.02; }
h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.08; }
h3 { font-size: clamp(17px, 2vw, 22px); line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-size: 14px; letter-spacing: 0; }

p { max-width: 62ch; }

.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 58ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }

.text-cyan  { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-bone  { color: var(--bone); }
.text-dim   { color: var(--text-dim); }
.text-mid   { color: var(--text-mid); }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--cyan);
  color: #06232A;
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--grid);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-dark {
  background: var(--iron-3);
  color: var(--bone);
  border-color: var(--grid);
}
.btn-dark:hover { border-color: var(--text-dim); background: var(--iron-4); }

.btn-alert {
  background: transparent;
  color: var(--amber);
  border-color: rgba(255, 176, 32, 0.45);
}
.btn-alert:hover { background: rgba(255, 176, 32, 0.1); border-color: var(--amber); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ─── Utility Top Bar ───────────────────────────────── */
.topbar {
  background: var(--iron-2);
  border-bottom: 1px solid var(--grid);
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 38px;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.15);
  flex-shrink: 0;
}

.topbar-spacer { flex: 1; }

.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-links a {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s;
}
.topbar-links a:hover { color: var(--white); }

.topbar-hotline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--amber) !important;
}
.topbar-hotline:hover { color: var(--white) !important; }

/* ─── Navigation ────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--grid);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 36px;
}

.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* The mark: a 3x3 lattice with one cell lit — the "grid" in Iron Grid. */
.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}
.logo-mark i {
  display: block;
  background: var(--grid);
  border-radius: 1px;
}
.logo-mark i:nth-child(1),
.logo-mark i:nth-child(5),
.logo-mark i:nth-child(9) { background: var(--cyan); }
.nav-logo span { color: var(--cyan); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  min-width: 250px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-menu > li:hover .sub-menu,
.nav-menu > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
}
.nav-menu .sub-menu li a:hover { background: var(--iron-3); color: var(--white); }

.nav-spacer { flex: 1; }
.nav-cta { white-space: nowrap; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--bone);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────── */
.hero { padding: 96px 0 84px; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 18% 45%, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero-eyebrow { margin-bottom: 22px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-headline .cyan { color: var(--cyan); }

.hero-body {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--text-mid);
  margin-bottom: 34px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-trust span.sep { color: var(--grid); }

/* ─── SOC Console Card ──────────────────────────────── */
.console {
  width: 380px;
  flex-shrink: 0;
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--iron-3);
  border-bottom: 1px solid var(--grid);
}

.console-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.console-badge {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 3px 9px;
}

.console-body { padding: 18px 16px; }

.console-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(36, 48, 63, 0.6);
  font-size: 12px;
}
.console-row:last-child { border-bottom: none; }
.console-row .k { color: var(--text-dim); letter-spacing: 0.04em; }
.console-row .v { color: var(--bone); text-align: right; font-weight: 500; }

.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  font-weight: 500;
}
.sev-crit { background: rgba(240, 90, 78, 0.14); color: var(--red); }
.sev-high { background: rgba(255, 176, 32, 0.14); color: var(--amber); }
.sev-ok   { background: rgba(61, 214, 140, 0.14); color: var(--green); }

.console-timeline {
  border-top: 1px solid var(--grid);
  padding: 14px 16px 16px;
  background: rgba(24, 33, 45, 0.4);
}

.console-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: var(--text-mid);
  padding: 5px 0;
}
.console-step .t { color: var(--text-dim); flex-shrink: 0; width: 52px; }
.console-step .d { color: var(--green); flex-shrink: 0; }

.console-foot {
  padding: 11px 16px;
  border-top: 1px solid var(--grid);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ─── Pillars / Feature Grid ────────────────────────── */
.pillars {
  border-top: 1px solid var(--grid);
  padding: 72px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  display: block;
  background: var(--iron);
  padding: 34px 26px;
  transition: background 0.15s;
}
.pillar:hover { background: var(--iron-2); }

a.pillar { position: relative; }
a.pillar::after {
  content: '→';
  position: absolute;
  top: 30px;
  right: 22px;
  color: var(--cyan);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
a.pillar:hover::after { opacity: 1; transform: translateX(0); }
a.pillar:hover .pillar-title { color: var(--cyan); }

.pillar-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--cyan);
}

.pillar-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.pillar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.pillar-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ─── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  background: var(--iron-2);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  padding: 44px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── The Stack (vendor cards) ──────────────────────── */
.stack-section { padding: var(--section-pad) 0; }

.stack-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stack-card {
  display: flex;
  flex-direction: column;
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.stack-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  background: var(--iron-3);
}

.stack-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

/* Vendor monogram — drawn in CSS, so the theme ships no third-party logo files. */
.vendor-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--iron);
  background: var(--cyan);
}
.vendor-mark[data-tone="amber"]  { background: var(--amber); }
.vendor-mark[data-tone="green"]  { background: var(--green); }
.vendor-mark[data-tone="violet"] { background: var(--violet); color: var(--white); }
.vendor-mark[data-tone="red"]    { background: var(--red); color: var(--white); }
.vendor-mark[data-tone="steel"]  { background: var(--iron-4); color: var(--bone); border: 1px solid var(--grid); }

.stack-card-heading { min-width: 0; }

.stack-card h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 4px;
}

.stack-card-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.stack-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.stack-card-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--grid);
}

.stack-card-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.stack-card-meta-row .k { color: var(--text-dim); }
.stack-card-meta-row .v {
  color: var(--bone);
  font-weight: 500;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* ─── Filter Tabs ───────────────────────────────────── */
.filter-bar {
  background: var(--iron-2);
  border-bottom: 1px solid var(--grid);
}

.filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-tab {
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.filter-tab:hover { color: var(--text-mid); }
.filter-tab.is-active {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

/* ─── Defense Layers Diagram ────────────────────────── */
.layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 44px;
}

.layer {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.15s, background 0.15s;
}
.layer:hover { background: var(--iron-3); }
.layer[data-tone="amber"]  { border-left-color: var(--amber); }
.layer[data-tone="green"]  { border-left-color: var(--green); }
.layer[data-tone="violet"] { border-left-color: var(--violet); }

.layer-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.layer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.layer-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 68ch;
}

.layer-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  background: var(--iron-4);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
a.chip:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── Services Strip ────────────────────────────────── */
.services-strip {
  background: var(--iron-2);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  padding: 72px 0;
}

.services-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-item {
  display: block;
  padding: 24px;
  background: var(--iron-3);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, transform 0.15s;
}
.service-item:hover { border-color: var(--cyan); transform: translateY(-2px); }
a.service-item:hover h3 { color: var(--cyan); }

.service-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--white);
}
.service-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ─── Verticals ─────────────────────────────────────── */
.verticals { padding: var(--section-pad) 0; }

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 44px;
}

.vertical-tile {
  background: var(--iron-2);
  padding: 38px 30px;
  position: relative;
  transition: background 0.15s;
}
.vertical-tile:hover { background: var(--iron-3); }
.vertical-tile::after {
  content: '→';
  position: absolute;
  bottom: 22px;
  right: 24px;
  color: var(--cyan);
  font-size: 19px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.vertical-tile:hover::after { opacity: 1; transform: translateX(0); }

.vertical-tile h3 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 10px;
}
.vertical-tile p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-right: 24px;
}

.vertical-frameworks {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ─── Steps / Onboarding ────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 44px;
}

.step {
  background: var(--iron-2);
  padding: 30px 26px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 10px;
}

.step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-when {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── Spec / Comparison Table ───────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  background: var(--iron-2);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--grid);
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  background: var(--iron-3);
  white-space: nowrap;
}

.spec-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--white);
  font-size: 13.5px;
}

.spec-table td { color: var(--text-mid); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: rgba(24, 33, 45, 0.5); }

.tick { color: var(--green); font-weight: 700; }
.cross { color: var(--text-dim); }

/* ─── Pricing ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}

.plan {
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan--featured {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.plan-flag {
  position: absolute;
  top: -11px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cyan);
  color: #06232A;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.plan-for {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 22px;
  min-height: 40px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--grid);
}
.plan-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--cyan);
  letter-spacing: -0.03em;
}
.plan-price .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.5;
}
.plan-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  margin-top: 8px;
}
.plan-features li.muted { color: var(--text-dim); }
.plan-features li.muted::before { background: var(--grid); }

.plan-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ─── FAQ ───────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 44px;
}

.faq details { background: var(--iron-2); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--white);
  list-style: none;
  letter-spacing: -0.015em;
  transition: background 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--iron-3); }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '\2212'; }

.faq-answer {
  padding: 0 26px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 78ch;
}
.faq-answer p + p { margin-top: 12px; }

/* ─── Mission / Trust Block ─────────────────────────── */
.mission { padding: var(--section-pad) 0; }

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.mission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  background: var(--iron-3);
  border: 1px solid var(--grid);
  padding: 6px 13px;
  border-radius: var(--radius);
}

.mission-visual {
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 7px;
  flex-shrink: 0;
}

.cert-item h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.cert-item p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ─── CTA Banner ────────────────────────────────────── */
.cta-banner {
  background: var(--iron-2);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  padding: 80px 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-inner h2 { max-width: 26ch; }

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ─── Incident Banner ───────────────────────────────── */
.incident-banner {
  background: linear-gradient(90deg, rgba(240, 90, 78, 0.14), rgba(255, 176, 32, 0.08));
  border-top: 1px solid rgba(240, 90, 78, 0.3);
  border-bottom: 1px solid rgba(240, 90, 78, 0.3);
  padding: 26px 0;
}

.incident-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.incident-inner .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(240, 90, 78, 0.4);
  border-radius: 3px;
  padding: 5px 11px;
  flex-shrink: 0;
}

.incident-inner p {
  font-size: 14.5px;
  color: var(--bone);
  margin: 0;
  flex: 1;
  min-width: 260px;
  max-width: none;
}

/* ─── Contact ───────────────────────────────────────── */
.contact-section { padding: var(--section-pad) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-block h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.contact-block p,
.contact-block a {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  display: block;
}
.contact-block a:hover { color: var(--white); }

.contact-form-wrap {
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  padding: 38px;
}

.contact-form-wrap h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--white);
}
.contact-form-wrap .form-intro {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--iron-3);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 22px;
}
.form-consent input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.form-notice {
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}
.form-notice--ok {
  background: rgba(61, 214, 140, 0.1);
  border: 1px solid rgba(61, 214, 140, 0.32);
  color: var(--green);
}
.form-notice--err {
  background: rgba(240, 90, 78, 0.1);
  border: 1px solid rgba(240, 90, 78, 0.35);
  color: var(--red);
}

/* ─── Footer ────────────────────────────────────────── */
#site-footer {
  background: var(--iron-2);
  border-top: 1px solid var(--grid);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 52px;
}

.footer-brand .nav-logo { font-size: 20px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.12s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p,
.footer-contact a {
  font-size: 13px;
  color: var(--text-mid);
  display: block;
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-contact a:hover { color: var(--white); }

.footer-hotline {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 176, 32, 0.07);
  border: 1px solid rgba(255, 176, 32, 0.28);
  border-radius: var(--radius);
}
.footer-hotline .k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 4px;
}
.footer-hotline a {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--white);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--grid);
  font-size: 12px;
  color: var(--text-dim);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--white); }

.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-legal {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--grid);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: none;
}

/* ─── Page Templates ────────────────────────────────── */
.page-hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--grid);
}

.page-hero h1 { color: var(--white); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--grid); margin: 0 8px; }

.content-section { padding: var(--section-pad) 0; }

.content-section .entry-content {
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-mid);
}
.content-section .entry-content h2,
.content-section .entry-content h3 {
  color: var(--white);
  margin: 40px 0 16px;
}
.content-section .entry-content p { margin-bottom: 20px; max-width: 70ch; }
.content-section .entry-content a { color: var(--cyan); }
.content-section .entry-content a:hover { text-decoration: underline; }
.content-section .entry-content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.content-section .entry-content ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text-mid);
  font-size: 15px;
}
.content-section .entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.content-section .entry-content ol { padding-left: 22px; margin-bottom: 20px; }
.content-section .entry-content ol li { margin-bottom: 8px; }
.content-section .entry-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: var(--bone);
  font-size: 17px;
}
.content-section .entry-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--iron-3);
  border: 1px solid var(--grid);
  border-radius: 3px;
  padding: 2px 6px;
}

/* Two-column detail layout (single solution, service pages) */
.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.sidecar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.sidecar-card {
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidecar-card h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* Prose block used by hand-built service pages */
.prose {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-mid);
  max-width: 72ch;
}
.prose h2 { color: var(--white); margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--white); margin: 32px 0 12px; }
.prose p { margin-bottom: 18px; max-width: 70ch; }
.prose ul { margin-bottom: 22px; }
.prose ul li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.prose strong { color: var(--bone); font-weight: 600; }

/* Simple two/three column feature rows */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--iron-2);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card h3 { font-size: 16px; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* ─── Utility ───────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--grid); }

.tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-cyan  { background: rgba(41, 216, 230, 0.12); color: var(--cyan); }
.tag-amber { background: rgba(255, 176, 32, 0.12); color: var(--amber); }
.tag-white { background: rgba(233, 237, 243, 0.08); color: var(--bone); }

.stack-mt-sm { margin-top: 16px; }
.stack-mt    { margin-top: 32px; }
.stack-mb-sm { margin-bottom: 12px; }
.stack-mb    { margin-bottom: 20px; }

.section-head { margin-bottom: 8px; }
.section-head .eyebrow { margin-bottom: 12px; display: block; }

/* Pagination (index.php) */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-mid);
  transition: border-color 0.15s, color 0.15s;
}
.pagination .page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.pagination .page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: #06232A; font-weight: 600; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .console { display: none; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .verticals-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan--featured { box-shadow: 0 0 0 1px var(--cyan); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .sidecar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layer { grid-template-columns: 110px 1fr; }
  .layer-chips { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 20px; }
  .topbar-links a:not(.topbar-hotline) { display: none; }
  .topbar-status { display: none; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-cta { display: none; }
  .hero { padding: 60px 0 56px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-inner h2 { max-width: 100%; }
  .stack-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 12px; }
  .contact-form-wrap { padding: 26px; }
  .mission-visual { padding: 28px; }
}

/* Mobile nav open state.
   Anchored to #site-header (sticky, therefore a positioned ancestor) rather
   than to the viewport. A fixed panel at a hard top offset detaches from the
   header the moment the page scrolls and the non-sticky top bar slides away. */
body.nav-open .nav-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  background: var(--iron);
  border-top: 1px solid var(--grid);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  padding: 24px 20px 40px;
  gap: 2px;
}
body.nav-open .nav-menu > li { width: 100%; }
body.nav-open .nav-menu > li > a {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--grid);
}
body.nav-open .nav-menu .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 0 8px 14px;
  min-width: 0;
}

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

/* ─── Print ─────────────────────────────────────────── */
@media print {
  #site-header, .topbar, #site-footer, .cta-banner, .nav-toggle { display: none; }
  body { background: #fff; color: #111; }
  .container { max-width: 100%; }
}
