/*
Theme Name:   Noor Electric
Theme URI:    https://noorelectric.ca
Author:       RSOL Technology
Author URI:   https://www.rsoltechnology.com
Description:  Custom WordPress theme for Noor Electric Inc. (Saskatoon, SK). Rebuilds the client-approved hand-coded static site (see /site in the project repo) as a maintainable WordPress theme, reusing the same brand tokens, layout, copy and inline schematic SVG illustrations. Services and FAQs are editable via custom post types; business info (phone/hours/social) is editable via the Customizer. Elementor is supported as an optional content editor for basic pages only -- it is not used as the layout engine, which stays in this theme's PHP templates per the project's standing architecture rule.
Version:      1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain:  noor-electric
License:      Proprietary -- built for Noor Electric Inc., not for redistribution.
*/

/* ==========================================================================
   This stylesheet is required by WordPress (wp_get_theme() reads the header
   above) and is enqueued as the theme's main stylesheet in inc/enqueue.php.
   Everything below is ported byte-for-byte from the approved static
   reference (site/css/style.css) -- same design tokens, same component
   rules, same breakpoints, same prefers-reduced-motion handling. No visual
   changes were introduced in this port. Only two things differ from the
   static file:
     1. This header comment block (required by WP, wasn't in the static file).
     2. Asset URLs referenced by the schematic-panel/hero-panel rules are
        unchanged (they use CSS custom properties and inline SVG, not file
        paths), so no url() rewriting was needed anywhere in this file.
   ========================================================================== */
:root {
  /* Color tokens — extracted directly from the live noorelectric.ca
     (Elementor kit CSS: button bg #DD0733, logo mark #E22329, body text
     #000000/#6D6B6B, section bg #ECECEC). Values are unchanged from launch. */
  --color-navy-900: #111111;   /* panel black — matches site's #000 headings/footer */
  --color-navy-700: #212121;   /* lighter black-derived surface for gradients */
  --color-amber-500: #E2222D;  /* brand red — the "live" / energized color */
  --color-amber-600: #C41B26;  /* hover state, darker red */
  --color-amber-400: #FF5C66;  /* lighter brand-red tint — WCAG AA-safe (4.5:1+) for text on dark/navy backgrounds; amber-500 text fails AA there */
  --color-slate-600: #6D6B6B;  /* secondary text — exact site value */
  --color-slate-800: #1A1A1A;  /* body text, near-black */
  --color-white: #FFFFFF;
  --color-fog-100: #ECECEC;    /* section alt background — exact site value */
  --color-fog-200: #DCDCDC;
  --color-success-600: #1E7A46;
  --color-border: #E2E2E2;
  --color-grid-line: rgba(255, 255, 255, 0.07); /* blueprint grid on dark panels */

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* Typography — display/body/accent match the fonts already enqueued on
     noorelectric.ca (Elementor kit: primary/text = Roboto, secondary =
     Roboto Slab, buttons = DM Sans). One utility face is added: a monospace
     face used only for circuit numbers, specs and readouts — the way a
     panel schedule or multimeter uses fixed-width type for data. */
  --font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Sharper, more instrument-panel radii than a generic SaaS card */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-slate-800);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem); }
/* Visually matches h3 sizing while allowing the correct heading LEVEL to be
   used for document-outline/WCAG 1.3.1 purposes (e.g. an <h2> that needs to
   look like an h3 because a parent <h1>/<h2> already exists on the page). */
.heading-sm { font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem); }
p { margin: 0 0 var(--space-4); color: var(--color-slate-600); }

a { color: var(--color-navy-900); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-amber-500);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.visually-hidden {
  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 {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-amber-500); color: var(--color-white);
  padding: var(--space-2) var(--space-4); border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-accent); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--color-amber-500); color: var(--color-white); }
.btn-primary:hover { background: var(--color-amber-600); }
.btn-secondary { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-navy-900); border-color: var(--color-navy-900); }
.btn-outline:hover { background: var(--color-navy-900); color: var(--color-white); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Top utility bar + Header
   ========================================================================== */
.topbar {
  background: var(--color-navy-900); color: #D9D9D9; font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-2); flex-wrap: wrap; gap: var(--space-2); }
.topbar a { color: #D9D9D9; }
.topbar strong { color: var(--color-amber-500); }
.topbar-phone { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-3); }

.logo { display: flex; flex-direction: column; gap: 2px; color: var(--color-navy-900); }
.logo-img { height: 30px; width: auto; }
.logo small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; color: var(--color-slate-600); letter-spacing: 0.04em; text-transform: uppercase; }

.footer-logo-badge {
  display: inline-flex; align-items: center; background: var(--color-white);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-3);
}
.footer-logo-badge img { height: 26px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--color-navy-900); border-radius: var(--radius-sm);
  padding: var(--space-2); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

.primary-nav ul { list-style: none; display: flex; gap: var(--space-6); margin: 0; padding: 0; align-items: center; }
.primary-nav a { font-weight: 600; font-size: 0.95rem; color: var(--color-slate-800); position: relative; padding-block: var(--space-2); }
.primary-nav a[aria-current="page"], .primary-nav a:hover { color: var(--color-navy-900); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--color-amber-500);
}
.header-cta { display: flex; align-items: center; gap: var(--space-4); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: 0 0 0 30%; background: var(--color-navy-900);
    transform: translateX(100%); transition: transform .25s ease;
    padding: var(--space-10) var(--space-6);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .primary-nav a { color: var(--color-white); font-size: 1.1rem; }
  .primary-nav a:hover { color: var(--color-amber-400); }
  .primary-nav a[aria-current="page"] { color: var(--color-amber-400); }
  .primary-nav a[aria-current="page"]::after { background: var(--color-white); }

  .floating-cta {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; bottom: var(--space-5); right: var(--space-5); z-index: 90;
    padding: 0.95rem 1.5rem; border-radius: 999px; border: none;
    background: var(--color-amber-500); color: var(--color-white);
    font-family: var(--font-accent); font-weight: 700; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.04em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transition: transform .15s ease, background .15s ease, opacity .2s ease, visibility .2s ease;
  }
  .floating-cta:active { transform: scale(.96); }
  .floating-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
}
@media (min-width: 881px) {
  .floating-cta { display: none; }
}

@media (max-width: 480px) {
  .site-header .container { gap: var(--space-2); }
  .logo small { display: none; }
  .logo-img { height: 24px; }
  .header-cta { gap: var(--space-2); }
  .header-cta .btn-primary { padding: 0.65rem 0.9rem; font-size: 0.78rem; }
  .nav-toggle { padding: var(--space-1) var(--space-2); }
}

/* ==========================================================================
   Hero — a blueprint panel, not a gradient banner
   ========================================================================== */
.hero {
  background-color: var(--color-navy-900);
  background-image:
    linear-gradient(var(--color-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px),
    radial-gradient(120% 140% at 100% 0%, var(--color-navy-700) 0%, var(--color-navy-900) 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  color: var(--color-white); padding-block: var(--space-12) var(--space-10); position: relative; overflow: clip;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10); align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(226,34,45,0.1); border: 1px solid rgba(226,34,45,0.35);
  color: var(--color-amber-400); font-family: var(--font-mono); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: var(--space-2) var(--space-4); border-radius: 999px; margin-bottom: var(--space-5);
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-amber-500); box-shadow: 0 0 6px var(--color-amber-500); }

.hero h1 { color: var(--color-white); margin-bottom: var(--space-5); }
.hero p.lead { color: #C7C7C7; font-size: 1.125rem; max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }

/* Signature: a schematic panel + power trace instead of an empty photo box */
.hero-panel {
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  padding: var(--space-6);
}
.hero-panel svg { width: 100%; height: auto; display: block; }
.hero-panel .trace-path {
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: trace-draw 1.6s 0.4s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-panel .trace-dot {
  opacity: 0; animation: trace-dot-in .4s 1.9s ease forwards;
}
.hero-panel .breaker-live {
  animation: breaker-glow 2.6s 2.1s ease-in-out infinite;
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
@keyframes trace-dot-in { to { opacity: 1; } }
@keyframes breaker-glow {
  0%, 100% { fill-opacity: 1; }
  50% { fill-opacity: 0.55; }
}
.hero-panel-caption {
  margin: var(--space-4) 0 0; text-align: center; font-size: 0.78rem; color: #8A8A8A;
}
@media (max-width: 880px) { .hero .container { grid-template-columns: 1fr; } .hero-panel { order: -1; } }

/* Schematic illustration panel — line-art diagrams standing in for photos
   until the client supplies real photography. Used on About and Services. */
.schematic-panel {
  background: var(--color-fog-100); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6); text-align: center;
}
.schematic-panel svg { width: 100%; max-width: 320px; height: auto; margin-inline: auto; }
.schematic-panel-tag {
  display: inline-block; margin-top: var(--space-5); font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-amber-600);
}
.service-block .schematic-panel { padding: var(--space-6); }
.service-block .schematic-panel svg { max-width: 280px; }

/* Circuit traces flow to life once their diagram scrolls into view —
   extends the hero panel's live-current motif to the About/Services
   schematic illustrations instead of a generic fade. */
.schematic-panel path[stroke-dasharray="4 4"] { opacity: 0; }
.schematic-panel.is-visible path[stroke-dasharray="4 4"] {
  animation: trace-flow-in .6s .35s ease-out forwards;
}
@keyframes trace-flow-in {
  0% { opacity: 0; stroke-dashoffset: 16; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .schematic-panel path[stroke-dasharray="4 4"] { opacity: 1; animation: none; }
}

/* Trust bar → rating plate: dark instrument-panel surface (reuses the
   hero/stats navy + amber system), mono caps at full weight, not a quiet
   grey strip. */
.trust-bar {
  background: var(--color-fog-100);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .4s ease;
}
.trust-bar .container { padding-block: var(--space-6); max-width: 560px; text-align: center; }
.trust-bar ul { list-style: none; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; }
.trust-bar li {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding-block: var(--space-3); width: 100%;
  border-top: 1px solid var(--color-fog-200);
}
.trust-bar li:first-child { border-top: none; }
.trust-bar svg { width: 16px; height: 16px; color: var(--color-success-600); flex-shrink: 0; }
.trust-bar-label {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-navy-900); white-space: nowrap;
}

.trust-bar-caption {
  margin: 0 0 var(--space-5); text-align: center;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  /* slate-600 on the trust-bar's fog-100 background is 4.48:1, just under
     the 4.5:1 AA floor — deepened to navy-900 to clear it with margin. */
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-navy-900);
}

/* Panel-energize sequence — scroll-linked: each badge switches on the
   moment IT scrolls into view (JS toggles .is-live per <li>, not on a
   fixed timer), so the pace naturally follows how fast the visitor
   scrolls. Default state is fully "on" so the strip never depends on JS. */
.trust-bar-caption.is-pending { opacity: 0; filter: blur(5px); transform: scale(.96) translateY(6px); }
.trust-bar li.is-pending svg { opacity: .4; filter: blur(3px); transform: scale(.82); color: var(--color-slate-600); }
.trust-bar li.is-pending .trust-bar-label { font-weight: 500; color: var(--color-slate-600); filter: blur(4px); }
.trust-bar li.is-pending:not(:first-child) { border-color: var(--color-fog-200); }

.trust-bar-caption.is-live { animation: caption-pop 1s cubic-bezier(.22, 1, .36, 1) forwards; }
.trust-bar li.is-live svg { animation: badge-energize 1.1s cubic-bezier(.22, 1, .36, 1) forwards; }
.trust-bar li.is-live .trust-bar-label { animation: label-bold 1.1s ease-out forwards; }

@keyframes caption-pop {
  0% { opacity: 0; filter: blur(5px); transform: scale(.96) translateY(6px); }
  100% { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); }
}
@keyframes badge-energize {
  0% { opacity: .4; filter: blur(3px); transform: scale(.82); color: var(--color-slate-600); }
  65% { opacity: 1; filter: blur(0); transform: scale(1.14); color: var(--color-success-600); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); color: var(--color-success-600); }
}
@keyframes label-bold {
  0% { font-weight: 500; color: var(--color-slate-600); filter: blur(4px); }
  70% { filter: blur(0); }
  100% { font-weight: 700; color: var(--color-navy-900); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-bar-caption.is-pending { opacity: 1; filter: none; transform: none; }
  .trust-bar li.is-pending svg { opacity: 1; filter: none; transform: none; color: var(--color-success-600); }
  .trust-bar li.is-pending .trust-bar-label { font-weight: 700; color: var(--color-navy-900); filter: none; }
  .trust-bar-caption.is-live, .trust-bar li.is-live svg, .trust-bar li.is-live .trust-bar-label { animation: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding-block: var(--space-12); }
.section-alt { background: var(--color-fog-100); }
.section-head { max-width: 640px; margin: 0 auto var(--space-10); text-align: center; }
.section-head .eyebrow { color: var(--color-amber-600); font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; display: block; margin-bottom: var(--space-3); }

.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-6); border-left: 3px solid transparent; transition: border-color .2s ease;
}
.card:hover { border-left-color: var(--color-amber-500); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(226,34,45,0.08);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.card-icon svg { width: 22px; height: 22px; color: var(--color-amber-600); }
.card a.card-link { font-weight: 700; color: var(--color-navy-900); display: inline-flex; align-items: center; gap: var(--space-1); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Panel directory — the services list, styled like the schedule card
   printed inside a real breaker panel door. Signature layout device.
   ========================================================================== */
.panel-directory {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: clip;
  background: var(--color-white);
}
.panel-row {
  display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center;
  gap: var(--space-5); padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.panel-directory a.panel-row:hover { background: var(--color-fog-100); }
.panel-row:last-child { border-bottom: none; }
.panel-row-ckt {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; color: var(--color-amber-600);
  display: flex; align-items: center; gap: var(--space-2);
}
.panel-row-ckt::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--color-amber-500); flex-shrink: 0;
}
.panel-row-body h3 { margin-bottom: var(--space-1); font-size: 1.05rem; }
.panel-row-body p { margin: 0; font-size: 0.92rem; }
.panel-row-tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-slate-600); border: 1px solid var(--color-border); border-radius: 999px;
  padding: var(--space-1) var(--space-3); white-space: nowrap;
}
@media (max-width: 700px) {
  .panel-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .panel-row-tag { justify-self: start; }
}

/* Service detail sections (services.html) */
.service-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: center; padding-block: var(--space-10); border-bottom: 1px solid var(--color-border); scroll-margin-top: 100px; }
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-list { list-style: none; padding: 0; margin: var(--space-4) 0; }
.service-list li { display: flex; gap: var(--space-2); padding: var(--space-2) 0; }
.service-list svg { width: 18px; height: 18px; color: var(--color-success-600); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 800px) { .service-block, .service-block:nth-child(even) { grid-template-columns: 1fr; direction: ltr; } }

/* Stats → multimeter readout: mono digits, hairline segments, quiet glow */
.stats { background: var(--color-navy-900); color: var(--color-white); }
.stats .grid-3 { text-align: center; }
.stats .grid-3 > div { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-6); }
.stats .grid-3 > div:first-child { border-top: none; padding-top: 0; }
@media (min-width: 901px) {
  .stats .grid-3 > div { border-top: none; padding-top: 0; padding-inline: var(--space-4); border-left: 1px solid rgba(255,255,255,0.12); }
  .stats .grid-3 > div:first-child { border-left: none; }
}
.stat-num {
  font-family: var(--font-mono); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600;
  color: var(--color-amber-500);
  letter-spacing: -0.02em;
}
.stat-label { color: #B5B5B5; font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--space-2); }

/* Steps / Process — square breaker-style chip, not a soft circle */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  background: var(--color-amber-500); color: var(--color-white); font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-navy-900); padding: var(--space-5) 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-plus { flex-shrink: 0; width: 24px; height: 24px; border: 2px solid var(--color-amber-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-amber-600); font-weight: 700; transition: transform .2s ease; }
.faq-item[open] summary .icon-plus { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--space-5); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--color-navy-900), var(--color-navy-700)); color: var(--color-white); text-align: center; }
.cta-band h2 { color: var(--color-white); }
.cta-band p.lead { color: #C7C7C7; max-width: 50ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--color-fog-100); border-radius: var(--radius-md); padding: var(--space-6); margin-bottom: var(--space-5); }
.info-card h3 { margin-bottom: var(--space-3); }
.info-row { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-4); }
.info-row svg { width: 22px; height: 22px; color: var(--color-amber-600); flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; color: var(--color-navy-900); }

form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--color-navy-900); margin-bottom: var(--space-2); }
input, textarea, select {
  width: 100%; font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-white); color: var(--color-slate-800);
}
textarea { resize: vertical; min-height: 120px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--color-amber-600); background: rgba(226,34,45,0.04);
}
.form-note { font-size: 0.85rem; color: var(--color-slate-600); }
.form-note.is-error { color: var(--color-amber-600); font-weight: 600; }

.map-embed {
  aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-navy-900); color: #D9D9D9; padding-block: var(--space-10) var(--space-6); }
/* p inherits the global slate-600 body color otherwise (3.6:1 on this dark
   background) — match the footer's own established muted-light convention. */
.site-footer p { color: #D9D9D9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
/* h3, not h4: the page's last heading before the footer is always an h2,
   so h4 here skipped a level in the document outline. */
.site-footer h3 { color: var(--color-white); font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.site-footer a { color: #D9D9D9; }
.site-footer a:hover { color: var(--color-amber-400); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--space-8); padding-top: var(--space-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: 0.8rem; font-family: var(--font-mono); color: #999; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2); background: rgba(30,122,70,0.1); color: var(--color-success-600);
  font-weight: 700; font-size: 0.8rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
}
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* Page hero (inner pages) */
.page-hero { background: var(--color-navy-900); color: var(--color-white); padding-block: var(--space-10) var(--space-8); }
.page-hero h1 { color: var(--color-white); margin-bottom: var(--space-3); }
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.78rem; color: #999; margin-bottom: var(--space-5);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.breadcrumb a { color: #C7C7C7; }
.breadcrumb a:hover { color: var(--color-amber-400); }

/* 404 — a breaker that's actually tripped, not a generic error graphic */
.tripped-breaker { margin: 0 auto var(--space-5); display: block; }
.tripped-breaker .breaker-toggle { transform-origin: 80px 22px; animation: breaker-trip .6s .2s cubic-bezier(.36, .07, .19, .97) both; }
.tripped-breaker .breaker-spark { opacity: 0; animation: spark-flicker .5s .5s steps(1, end) both; }
@keyframes breaker-trip {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-9deg); }
  55% { transform: rotate(4deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(-6deg); }
}
@keyframes spark-flicker {
  0%, 20%, 45% { opacity: 1; }
  10%, 35%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tripped-breaker .breaker-toggle { animation: none; transform: rotate(-6deg); }
  .tripped-breaker .breaker-spark { animation: none; opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-panel .trace-path { animation: none; stroke-dashoffset: 0; }
  .hero-panel .trace-dot { animation: none; opacity: 1; }
  .hero-panel .breaker-live { animation: none; }
  .card, .btn, .primary-nav { transition: none; }
}
