/* ============================================================================
   AlumCasting — Global Visual System (P.4.7 UX/UI/Brand Refresh)
   Industrial / Engineering / Precision / B2B design language.
   NAVY = brand / headings / trust / engineering
   ORANGE = conversion / CTA / important action
   BLUE  = secondary interaction / links / supporting accents
   No rainbow colors. Reusable tokens + components only.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand */
  --color-primary: #0B1F3A;        /* WordPress navy (#0B1F3A) */
  --color-primary-dark: #091A30;
  --color-primary-darker: #071425;
  --color-secondary: #145A96;      /* secondary blue */
  --color-secondary-dark: #0F4A7E;

  /* Conversion */
  --color-accent: #F97316;         /* brand orange — CTA only (matches WordPress) */
  --color-accent-hover: #EA580C;
  --color-accent-soft: #FFF1E6;    /* light orange tint */

  /* Text */
  --color-text: #334155;
  --color-text-muted: #64748B;     /* matches WordPress gray (#64748B) */
  --color-text-invert: #E8F0F8;

  /* Surfaces */
  --color-background: #FFFFFF;
  --color-surface: #F7F9FC;        /* matches WordPress light (#F7F9FC) */
  --color-light-section: #F1F5FA;
  --color-dark-section: #0B1F3A;
  --color-dark-section-2: #12233F;

  /* Lines */
  --color-border: #D1DAE5;         /* matches WordPress border (#D1DAE5) */
  --color-border-strong: #B8C5D8;

  /* Links / focus */
  --color-link: #145A96;
  --color-link-hover: #0B1F3A;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 43, 76, .08);
  --shadow-md: 0 6px 20px rgba(11, 43, 76, .10);
  --shadow-lg: 0 14px 38px rgba(11, 43, 76, .16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;

  --space-section: clamp(3rem, 6vw, 5.5rem);

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-base: 17px;
  --lh-base: 1.7;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin: .35rem 0; }
p { margin: 0 0 1.05rem; }

/* ---- Layout container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container.narrow { max-width: var(--container-narrow); }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 3px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: .2px;
  font-size: 1.22rem;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto; }
.brand-name { color: var(--color-primary); }

.nav-menu { margin-left: auto; }
.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: .55rem .8rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: .97rem;
  border-radius: var(--radius-sm);
}
.nav-menu a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
}
.nav-menu a.is-active { color: var(--color-primary); }
.header-cta { margin-left: .6rem; white-space: nowrap; }
/* Request a Quote is a HEADER CTA (desktop) / MOBILE CTA only — never a
   main-menu item. Hide on desktop so it does not render as a spurious
   extra entry inside the primary nav; the mobile media query reveals it
   inside the expanded menu. */
.mobile-cta { display: none; }

/* mobile toggle (checkbox hack — keyboard accessible, JS-free) */
.nav-toggle-cb {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.nav-toggle-cb:focus-visible + .nav-toggle {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============================================================================
   BUTTONS / CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
/* PRIMARY = conversion (orange) */
.btn-primary,
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.btn-accent:hover { background: var(--color-accent-hover); color: #fff; }
/* SECONDARY = navy outline (Explore Services, etc.) */
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-accent-soft); color: var(--color-primary); }
.btn-lg { padding: .88rem 1.75rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn-light {
  background: #fff;
  color: var(--color-primary);
}
.btn-light:hover { background: var(--color-accent-soft); color: var(--color-primary); }

/* ============================================================================
   HERO
   ========================================================================== */
/* ---- HERO — full-width cover band (P.4.9 WordPress alum-hero parity) ---- */
.hero-band {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-darker);
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,31,58,.82) 0%, rgba(11,31,58,.90) 100%),
    radial-gradient(120% 90% at 72% 18%, rgba(20,90,150,.40), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(249,115,22,.92);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.5px;
  color: #fff;
}
.hero-content .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: #D6E2F0;
  margin: 0 auto 1.8rem;
  max-width: 60ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.7rem;
}
.hero-trust .badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .35rem .85rem;
}
.hero-trust .badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-invert);
  padding-block: clamp(2rem, 5vw, 3.2rem);
}
.page-hero .container { max-width: var(--container); }
.page-hero h1 {
  margin: 0 0 .7rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  color: #fff;
}
.page-hero .lede {
  margin: 0 0 1.3rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #C6D6E8;
  max-width: 64ch;
}

/* ============================================================================
   SECTIONS (rhythm + separation)
   ========================================================================== */
.section { padding-block: var(--space-section); }
.section.alt { background: var(--color-surface); }
.section.dark {
  background: var(--color-dark-section);
  color: var(--color-text-invert);
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 0 0 .5rem;
  color: var(--color-primary-darker);
}
.section.alt .section-title, .section.dark .section-title { color: inherit; }
.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto 2.4rem;
}
.eyebrow-center {
  display: block;
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .6rem;
}

/* ============================================================================
   CARD GRID + CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.card-title {
  margin: 0;
  font-size: 1.18rem;
  color: var(--color-primary-darker);
}
.card-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .97rem;
}
.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: .95rem;
}
a.card:hover .card-link { color: var(--color-accent-hover); }

/* feature card (icon + heading + text) */
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { margin-top: 0; color: var(--color-primary-darker); }
.feature-card .ico {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: .9rem;
}
.feature-card .ico svg { width: 24px; height: 24px; }

/* why / process step card */
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-card .step-no {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: .7rem;
}
.step-card h3 { margin: 0 0 .4rem; color: var(--color-primary-darker); font-size: 1.12rem; }
.step-card p { margin: 0; color: var(--color-text-muted); font-size: .96rem; }

/* ============================================================================
   P.4.9 — GRID UTILITIES (enforce exact desktop column counts) + IMAGE CARDS
   ========================================================================== */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card-grid.grid-3,
.card-grid.grid-4,
.card-grid.grid-5 { gap: 1.4rem; }

/* image card (image + title + text + cta) — P.4.9 applications/cases fidelity */
.img-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.img-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.img-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-surface); }
.img-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-card-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: .55rem; }
.img-card-title { margin: 0; font-size: 1.12rem; color: var(--color-primary-darker); line-height: 1.3; }
.img-card-text { margin: 0; color: var(--color-text-muted); font-size: .93rem; }
a.img-card:hover .card-link { color: var(--color-accent-hover); }

/* section-level CTA (P0-F density) */
.section-cta { text-align: center; margin-top: 2.2rem; }

/* band rhythm — every homepage section is a distinct full-width band */
.home-band { position: relative; }
.home-band + .home-band { border-top: 1px solid var(--color-border); }

/* ============================================================================
   TRUST / CERT BAND
   ========================================================================== */
.trust-band {
  background: var(--color-primary);
  color: var(--color-text-invert);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}
.trust-band .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; }
.trust-band .trust-head {
  font-weight: 800;
  color: #fff;
  margin-right: .5rem;
  font-size: 1.05rem;
}
.trust-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  border-radius: 999px;
  padding: .5rem 1rem;
  font-weight: 700;
  font-size: .9rem;
}
.trust-badge::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ============================================================================
   PAGE CONTENT (markdown render)
   ========================================================================== */
.content {
  padding-block: clamp(2rem, 4vw, 3.2rem);
  max-width: var(--container-narrow);
}
.content > h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-primary-darker);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--color-border);
}
.content > h3 {
  margin-top: 1.8rem;
  font-size: 1.18rem;
  color: var(--color-primary);
}
.content p, .content li { color: var(--color-text); }
.content a { color: var(--color-link); font-weight: 600; }
.content a:hover { color: var(--color-link-hover); text-decoration: underline; }
.content img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1.4rem 0;
  background: var(--color-surface);
}
.content figure { margin: 1.4rem 0; }
.content ul li::marker { color: var(--color-secondary); }

/* tables → styled spec blocks */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .97rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.content th, .content td {
  border: 1px solid var(--color-border);
  padding: .7rem .9rem;
  text-align: left;
}
.content thead th { background: var(--color-primary); color: #fff; }
.content tbody tr:nth-child(even) { background: var(--color-surface); }

/* blockquote / note */
.content blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--color-secondary);
  background: #EAF1F8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
}

/* article meta */
.article-meta {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ============================================================================
   BLOG GRID
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.blog-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}
.blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.blog-title { margin: 0; font-size: 1.1rem; color: var(--color-primary-darker); line-height: 1.3; }
.blog-excerpt { margin: 0; color: var(--color-text-muted); font-size: .93rem; }
.blog-link { margin-top: auto; font-weight: 700; color: var(--color-secondary); font-size: .92rem; }
a.blog-card:hover .blog-link { color: var(--color-accent-hover); }

/* featured insights (home) */
.featured-insights .container { max-width: var(--container); }
.insights-cta { text-align: center; margin-top: 2.2rem; }

/* ============================================================================
   RELATED CARDS + CTA BAND
   ========================================================================== */
.related { padding-block: var(--space-section); background: var(--color-surface); }
.related .section-title { text-align: left; }

.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
  color: #fff;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-title { margin: 0 0 .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.cta-sub { margin: 0; color: #C6D6E8; max-width: 56ch; }
.cta-band .btn-primary, .cta-band .btn-accent { background: var(--color-accent); color: #fff; }
.cta-band .btn-primary:hover, .cta-band .btn-accent:hover { background: var(--color-accent-hover); }

/* home overview keeps readable width but slightly wider than article */
.home-overview { max-width: var(--container); }

/* ============================================================================
   QUALITY / TRUST BLOCK (shortcode)
   ========================================================================== */
.qt-block { max-width: 760px; margin: 2rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.qt-title { margin: 0 0 .4rem; font-size: 1.25rem; color: var(--color-primary); }
.qt-lede { margin: 0 0 1rem; color: var(--color-text-muted); font-size: .96rem; line-height: 1.5; }
.qt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.qt-grid li { display: flex; flex-direction: column; padding: .6rem .8rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; }
.qt-link { text-decoration: none; color: inherit; }
.qt-link:hover .qt-badge { text-decoration: underline; }
.qt-badge { font-weight: 700; color: var(--color-primary); font-size: 1rem; }
.qt-sub { color: var(--color-text-muted); font-size: .82rem; margin-top: .15rem; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-dark-section);
  color: #cbd9e9;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-col .footer-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
}
.footer-about { font-size: .92rem; line-height: 1.6; color: #aebfd2; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .5rem 0; }
.footer-col a { color: #cbd9e9; font-size: .94rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.1rem;
  font-size: .85rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}
.footer-bottom p { margin: 0; color: #9fb1c6; }
.footer-legal a { color: #cbd9e9; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
    margin-left: 0;
    padding: .5rem;
  }
  .nav-toggle-cb:checked ~ .nav-menu { display: block; }
  .nav-menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu a { display: block; padding: .85rem 1rem; border-bottom: 1px solid var(--color-border); }
  /* keep a prominent Request a Quote entry inside the mobile menu */
  .nav-menu .mobile-cta { display: block; margin-top: .4rem; }
  .nav-menu .mobile-cta .btn { width: 100%; }
  /* dropdowns become inline nested lists on mobile */
  .has-dropdown > .dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: block;
    padding: 0 0 0 1rem;
    background: var(--color-surface);
  }
  .dropdown a { padding: .6rem 1rem; border-bottom: 1px solid var(--color-border); }
  /* parity section stacking */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --fs-base: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4, .grid-5, .blog-grid { grid-template-columns: 1fr; }
  .hero-content { padding-block: clamp(2.8rem, 12vw, 4rem); }
}

/* ============================================================================
   P.4.7 WORDPRESS PARITY — METRICS BAND
   ========================================================================== */
.metrics-band {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.metric-num {
  display: block;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}
.metric-label {
  display: block;
  margin-top: .35rem;
  font-size: .92rem;
  color: var(--color-text-muted);
}

/* ============================================================================
   P.4.7 WORDPRESS PARITY — CERTIFIED / ADVANCED SPLIT
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.cert-media img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}
.cert-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.cert-list li { display: flex; gap: .8rem; align-items: flex-start; }
.cert-list .tick {
  color: var(--color-accent);
  font-weight: 800;
  flex: 0 0 auto;
  line-height: 1.5;
}
.cert-list strong { color: var(--color-primary-darker); }

/* ============================================================================
   P.4.7 WORDPRESS PARITY — ENGINEERING REVIEW (mid RFQ block)
   ========================================================================== */
.eng-review {
  background: var(--color-primary);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.eng-review .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.eng-review h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.eng-review p { margin: 0; color: #C6D6E8; max-width: 60ch; }
.eng-review .btn-accent { background: var(--color-accent); color: #fff; }
.eng-review .btn-accent:hover { background: var(--color-accent-hover); }

/* ============================================================================
   P.4.7 WORDPRESS PARITY — HEADER DROPDOWNS
   ========================================================================== */
.has-dropdown { position: relative; }
.has-dropdown > a .caret { font-size: .7em; margin-left: .25rem; opacity: .8; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .4rem 0;
  display: none;
  z-index: 50;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown li { list-style: none; display: block; width: 100%; }
.dropdown a {
  display: block;
  padding: .6rem 1.1rem;
  color: var(--color-text);
  font-size: .95rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--color-surface); color: var(--color-primary); text-decoration: none; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
