/*
Theme Name: DUBB45 Diagnostics
Theme URI: https://dubb45.com/
Author: DUBB45 Diagnostics LLC
Author URI: https://dubb45.com/
Description: A dark, industrial WordPress theme built for DUBB45 Diagnostics LLC. Purpose-built for FCA/Stellantis diagnostics, module programming and free radio-code tools. Includes a scan-tool inspired homepage, LocalBusiness/AutoRepair schema, breadcrumbs, Open Graph output and a full Customizer panel. No page builder, no jQuery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dubb45
Tags: automotive, dark, business, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   1. TOKENS
   Palette is drawn from the shop itself: asphalt and bay-floor greys, Mopar
   red, and the amber of a malfunction-indicator lamp. Amber is the accent
   that carries status; red is the accent that carries action. They never
   swap jobs.
   ========================================================================== */

:root {
  --asphalt: #14161a;
  --bay: #1a1d23;
  --bay-2: #21252d;
  --steel: #333a47;
  --steel-lo: rgba(255, 255, 255, 0.07);
  --steel-hi: rgba(255, 255, 255, 0.14);

  --hemi: #e03a2f;        /* fills, borders, large display type only */
  --hemi-txt: #ff5c4e;    /* any red text under ~24px — clears AA */
  --hemi-btn: #d63527;    /* button fill: white on this clears AA */
  --hemi-lo: #b82a21;
  --hemi-glow: rgba(224, 58, 47, 0.34);

  --amber: #ffb01f;
  --amber-dim: rgba(255, 176, 31, 0.13);
  --live: #3dd68c;

  --chalk: #edf1f6;
  --dust: #a3adbc;
  --dust-lo: #8792a3;

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Elevation ladder. Depth escalates with importance and never exceeds
     three steps. On a dark UI the lighter surface does most of the work;
     the shadow only confirms it. */
  --lift-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --lift-2: 0 6px 20px rgba(0, 0, 0, 0.5);
  --lift-3: 0 18px 48px rgba(0, 0, 0, 0.62);

  --radius: 10px;
  --radius-sm: 6px;
  --shell: 1200px;
  --gutter: 24px;
  --nav-h: 76px;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--hemi-txt); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--amber); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  color: #fff;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 900; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1.02rem; letter-spacing: 0.06em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

code {
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: 4px;
  padding: 0.14em 0.42em;
  color: var(--amber);
}

pre {
  background: var(--bay);
  border: 1px solid var(--steel);
  border-left: 3px solid var(--hemi);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.6;
}

pre code { background: none; border: 0; padding: 0; color: var(--chalk); }

blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--hemi);
  color: var(--dust);
  font-size: 1.08em;
}

hr { border: 0; border-top: 1px solid var(--steel); margin: 2.4em 0; }

::selection { background: var(--hemi); color: #fff; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 9999;
  background: var(--amber);
  color: #14161a;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #14161a; }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   `.sec` owns all vertical section rhythm. Nothing else sets section
   padding — that is how the paddings stay predictable.
   ========================================================================== */

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

.shell--narrow { max-width: 820px; }

.sec { padding-block: clamp(64px, 8vw, 108px); position: relative; }
.sec--tight { padding-block: clamp(44px, 5vw, 64px); }
.sec--bay { background: var(--bay); }

/* Hazard rule: a garage floor stripe, used as a section divider. Appears
   twice on the homepage. Any more and it stops meaning anything. */
.hazard {
  height: 8px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 12px,
    #14161a 12px 24px
  );
  opacity: 0.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head--mid { margin-inline: auto; text-align: center; }
.sec-head--mid .eyebrow::before { display: none; }
.sec-head p { color: var(--dust); font-size: 1.1rem; margin-bottom: 0; }

/* ==========================================================================
   4. BUTTONS
   The one place a gradient is allowed: it hints at dimension, it does not
   imitate a material.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  will-change: transform;
}

.btn--primary {
  background: linear-gradient(180deg, var(--hemi-btn), var(--hemi-lo));
  color: #fff;
  box-shadow: 0 2px 10px var(--hemi-glow);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--hemi-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--steel);
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--steel-hi);
  background: var(--bay-2);
  transform: translateY(-2px);
  box-shadow: var(--lift-2);
}

.btn--amber {
  background: var(--amber);
  color: #14161a;
  box-shadow: 0 2px 10px rgba(255, 176, 31, 0.3);
}
.btn--amber:hover {
  color: #14161a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 176, 31, 0.36);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn:active { transform: translateY(0); }

/* ==========================================================================
   5. HEADER / NAV
   Flat at rest, elevated on scroll. A permanent header shadow reads dated.
   ========================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(20, 22, 26, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.22s ease, border-color 0.22s ease,
              background 0.22s ease;
}

.hdr.is-stuck {
  border-bottom-color: var(--steel-lo);
  background: rgba(20, 22, 26, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { max-height: 46px; width: auto; }

.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; color: var(--hemi); }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--dust-lo);
  text-transform: uppercase;
  margin-top: 4px;
}

/* --- primary menu --- */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list li { position: relative; }

.nav__list a {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dust);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav__list a:hover { color: #fff; background: var(--bay-2); }

.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-ancestor > a,
.nav__list .current_page_ancestor > a { color: #fff; }

.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: var(--hemi);
  border-radius: 2px;
}

/* --- dropdowns --- */
.nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 246px;
  list-style: none;
  margin: 0;
  padding: 7px;
  background: var(--bay-2);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--lift-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__list .sub-menu a {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dust);
  padding: 9px 12px;
  white-space: normal;
}
.nav__list .sub-menu a:hover { background: var(--bay); color: var(--amber); }
.nav__list .sub-menu .current-menu-item > a::after { display: none; }

.nav__list .menu-item-has-children > a::before {
  content: "";
  float: right;
  margin: 8px 0 0 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  opacity: 0.6;
}

.hdr__cta { flex: none; }

/* --- burger --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--bay-2);
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--chalk);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   6. HERO — the scan session
   The thesis: this shop reads modules. So the hero shows a module being
   read. Everything else on the page stays quiet so this lands.
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--steel-lo);
}

/* Ambient: a faint red wash off-axis, plus a grid that reads as a
   wiring-diagram sheet rather than generic "tech grid". */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel-lo) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-lo) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 42%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 42%, #000 0%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hemi-glow) 0%, transparent 68%);
  filter: blur(46px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero__title { margin-bottom: 20px; }
.hero__title .ln { display: block; }
.hero__title .ln--hi {
  color: var(--hemi);
  -webkit-text-stroke: 0;
}

.hero__lede {
  color: var(--dust);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 55ch;
  margin-bottom: 30px;
}

.hero__acts { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--steel-lo);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
}
.hero__trust li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  flex: none;
}

/* --- the scan tool panel (signature element) --- */
.scan {
  background: var(--bay);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--lift-3);
  overflow: hidden;
  font-family: var(--font-mono);
}

.scan__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--bay-2);
  border-bottom: 1px solid var(--steel);
}

.scan__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); flex: none; }
.scan__dot--live { background: var(--live); box-shadow: 0 0 9px var(--live); animation: pulse 2.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.scan__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dust);
}
.scan__proto {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(255, 176, 31, 0.3);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
}

.scan__body {
  overflow: hidden;
  padding: 18px 16px;
  font-size: 13px;
  line-height: 1.95;
  min-height: 268px;
}

.scan__ln { display: flex; gap: 10px; white-space: nowrap; }
.scan__ln .tx { color: var(--dust-lo); flex: none; }
.scan__ln .rx { color: var(--chalk); }
.scan__ln .ok { color: var(--live); }
.scan__ln .wn { color: var(--amber); }
.scan__ln .er { color: var(--hemi-txt); }

.scan__caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--amber);
  vertical-align: -2px;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scan__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  background: var(--bay-2);
  border-top: 1px solid var(--steel);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dust-lo);
}
.scan__foot b { color: var(--live); font-weight: 700; }

/* ==========================================================================
   7. CARDS
   Surface + hairline does the lifting; the shadow only confirms it.
   ========================================================================== */

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--hemi), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--steel-hi);
  box-shadow: var(--lift-2);
}
.card:hover::before { transform: scaleX(1); }

.card__ico {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bay);
  border: 1px solid var(--steel);
  color: var(--hemi);
  line-height: 1;
  margin-bottom: 18px;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover .card__ico {
  color: var(--amber);
  border-color: rgba(255, 176, 31, 0.4);
  background: #15181d;
}

.card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card p { color: var(--dust); font-size: 0.97rem; margin-bottom: 18px; }

.card__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hemi-txt);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.18s ease, color 0.18s ease;
}
.card:hover .card__go { gap: 12px; color: var(--amber); }

/* --- feature (why choose) --- */
/* These are not links, so they get no hover lift and no sweep bar. A hover
   affordance on something you cannot click is a lie. */
.feat { text-align: left; }
.feat::before { display: none; }
.feat:hover { transform: none; border-color: var(--steel-lo); box-shadow: var(--lift-1); }
.feat__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--amber-dim);
  border: 1px solid rgba(255, 176, 31, 0.28);
  color: var(--amber);
  margin-bottom: 16px;
}
.feat h3 { font-size: 1.14rem; margin-bottom: 7px; }
.feat p { color: var(--dust); font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   8. TOOLS STRIP (free radio-code calculators)
   These are the traffic engine, so they get their own band and real
   surface treatment rather than being buried in the nav.
   ========================================================================== */

.tool {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  padding: 17px 19px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, background 0.18s ease;
}
.tool:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 31, 0.4);
  box-shadow: var(--lift-2);
}

.tool__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #14161a;
  background: var(--amber);
  border-radius: 3px;
  padding: 4px 8px;
  flex: none;
}

.tool__txt { min-width: 0; }
.tool__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.tool__desc { display: block; font-size: 12.5px; color: var(--dust); line-height: 1.4; }

.tool__arrow { margin-left: auto; color: var(--dust-lo); flex: none; transition: transform 0.18s ease, color 0.18s ease; }
.tool:hover .tool__arrow { transform: translateX(4px); color: var(--amber); }

/* ==========================================================================
   9. MODULE READOUT
   22 tiles at this density cannot each carry a shadow — that is noise.
   Surface + hairline only, hover supplies the lift.
   ========================================================================== */

.mods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 10px;
}

.mod {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.mod:hover {
  border-color: var(--steel-hi);
  background: #262b34;
  transform: translateY(-2px);
}

.mod__pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 7px var(--live);
  flex: none;
}

.mod__txt { min-width: 0; }
.mod__id {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #fff;
}
.mod__name {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--dust-lo);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   10. STATS BAND
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--steel-lo);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bay-2); padding: 30px 22px; text-align: center; }
.stat__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--hemi);
  margin-bottom: 7px;
}
.stat__l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust);
}

/* ==========================================================================
   11. CTA BAND
   ========================================================================== */

.cta {
  position: relative;
  background:
    linear-gradient(135deg, rgba(224, 58, 47, 0.14), transparent 62%),
    var(--bay-2);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--lift-2);
  padding: clamp(38px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--dust); max-width: 58ch; margin: 0 auto 28px; font-size: 1.06rem; }
.cta__acts { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ==========================================================================
   12. BREADCRUMBS + PAGE HEADERS
   ========================================================================== */

.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dust-lo);
  padding-block: 18px;
  border-bottom: 1px solid var(--steel-lo);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--steel); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--dust); }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-current] { color: var(--amber); }

.phead {
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--steel-lo);
  background:
    radial-gradient(circle at 12% 0%, rgba(224, 58, 47, 0.13), transparent 55%),
    var(--bay);
}
.phead h1 { margin-bottom: 0; }
.phead p { color: var(--dust); margin: 14px 0 0; font-size: 1.08rem; max-width: 62ch; }

.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dust-lo);
}
.pmeta a { color: var(--dust); }

/* ==========================================================================
   13. ENTRY CONTENT — where existing page/post content renders.
   Must handle whatever the calculators and legacy pages throw at it.
   ========================================================================== */

.entry { padding-block: clamp(44px, 5vw, 72px); }
.entry__body { font-size: 1.05rem; }
.entry__body > *:first-child { margin-top: 0; }
.entry__body h2 { margin-top: 1.7em; }
.entry__body h3, .entry__body h4 { margin-top: 1.5em; }
.entry__body ul, .entry__body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.entry__body li { margin-bottom: 0.42em; }
.entry__body li::marker { color: var(--hemi-txt); }
.entry__body img { border-radius: var(--radius); box-shadow: var(--lift-2); }
.entry__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.entry__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.95rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
}
.entry__body th, .entry__body td { padding: 11px 14px; border-bottom: 1px solid var(--steel-lo); text-align: left; }
.entry__body th {
  background: var(--bay-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.entry__body tbody tr:hover { background: rgba(255, 255, 255, 0.026); }

.entry__thumb { border-radius: var(--radius); box-shadow: var(--lift-2); margin-bottom: 32px; overflow: hidden; }

/* --- Forms: calculators live here, so inputs must look intentional --- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="password"], input[type="search"],
input[type="date"], select, textarea {
  width: 100%;
  background: var(--asphalt);
  color: var(--chalk);
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
::placeholder { color: var(--dust-lo); opacity: 1; }
textarea { min-height: 150px; resize: vertical; font-family: var(--font-body); }
label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--dust); margin-bottom: 7px; }

input[type="submit"], button[type="submit"], .wp-block-button__link, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--hemi-btn), var(--hemi-lo));
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--hemi-glow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
input[type="submit"]:hover, button[type="submit"]:hover,
.wp-block-button__link:hover, .wp-element-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--hemi-glow);
}

/* ==========================================================================
   14. POST LIST
   ========================================================================== */

.plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--steel-hi); box-shadow: var(--lift-2); }
.pcard__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bay); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__in { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pcard__date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.pcard h3 { font-size: 1.16rem; margin-bottom: 9px; }
.pcard h3 a { color: #fff; }
.pcard h3 a:hover { color: var(--hemi-txt); }
.pcard p { color: var(--dust); font-size: 0.94rem; margin-bottom: 16px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px; height: 42px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--dust);
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius-sm);
  transition: all 0.16s ease;
}
.pager .page-numbers:hover { color: #fff; border-color: var(--steel-hi); }
.pager .page-numbers.current { background: var(--hemi-btn); border-color: var(--hemi-btn); color: #fff; }

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.ftr {
  background: var(--bay);
  border-top: 1px solid var(--steel-lo);
  padding-block: 66px 0;
}

.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 46px;
}

.ftr__about p { color: var(--dust); font-size: 0.94rem; margin: 16px 0 20px; max-width: 42ch; }

.ftr__social { display: flex; gap: 9px; }
.ftr__social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--bay-2);
  border: 1px solid var(--steel-lo);
  border-radius: var(--radius-sm);
  color: var(--dust);
  transition: all 0.16s ease;
}
.ftr__social a:hover {
  color: var(--amber);
  border-color: rgba(255, 176, 31, 0.42);
  transform: translateY(-2px);
  box-shadow: var(--lift-2);
}

.ftr__col h2, .ftr__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.ftr__col ul { list-style: none; margin: 0; padding: 0; }
.ftr__col li { margin-bottom: 10px; }
.ftr__col a { color: var(--dust); font-size: 0.93rem; }
.ftr__col a:hover { color: #fff; padding-left: 4px; }
.ftr__col a { transition: color 0.16s ease, padding-left 0.16s ease; }

.ftr__base {
  border-top: 1px solid var(--steel-lo);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dust-lo);
}
.ftr__base strong { color: var(--chalk); }
.ftr__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }

/* ==========================================================================
   16. MOTION REVEAL
   ========================================================================== */

.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .scan { max-width: 620px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .burger { display: flex; }
  .hdr__cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--asphalt);
    border-bottom: 1px solid var(--steel);
    box-shadow: var(--lift-3);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 14px var(--gutter) 30px;
    display: none;
  }
  .nav.is-open { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--steel-lo); }
  .nav__list a { padding: 15px 4px; font-size: 17px; border-radius: 0; }
  .nav__list a:hover { background: none; }
  .nav__list .current-menu-item > a::after,
  .nav__list .current_page_item > a::after { display: none; }

  .nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 10px 14px;
    min-width: 0;
    border-left: 2px solid var(--steel);
    margin-bottom: 12px;
  }
  .nav__list .sub-menu li { border: 0; }
  .nav__list .sub-menu a { font-size: 15px; padding: 8px 4px; }
  .nav__list .menu-item-has-children > a::before { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .mods { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .sec-head { margin-bottom: 36px; }
  .hero__acts .btn { flex: 1 1 100%; }
  .scan__body { font-size: 11.5px; padding: 14px 12px; min-height: 232px; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ftr__base { flex-direction: column; text-align: center; }
  .brand__sub { display: none; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan__proto { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* --- WP core alignment/caption classes --- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-size: 12.5px;
  color: var(--dust-lo);
  text-align: center;
  margin-top: 9px;
  font-family: var(--font-mono);
}
.sticky .pcard { border-color: var(--amber); }

@media print {
  .hdr, .ftr, .hero::before, .hero::after, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
}
