/* ==========================================================================
   CMC Group LLC — site styles
   Brand colors live in :root. Change them here to restyle the whole site.
   ========================================================================== */

:root {
  --navy-900: #0b1730;
  --navy-800: #11213f;
  --navy-700: #1a2e55;
  --amber: #ffb400;
  --amber-600: #e69f00;
  --blue: #2f7df6;
  --ink: #16202f;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 23, 48, 0.08);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--amber); color: var(--navy-900); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

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

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-600); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--amber-600); margin-bottom: .8em;
}
.accent { color: var(--amber); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 48, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { width: 38px; height: 38px; color: var(--amber); }
.brand-text { font-size: 1.3rem; font-weight: 500; letter-spacing: .02em; }
.brand-text strong { font-weight: 800; }

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: #d9e1ee; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-menu a:hover { color: #fff; }
.nav-menu a.btn { color: var(--navy-900); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #1f3c75 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-900), var(--navy-800));
  padding: 96px 0 110px;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--amber); }
.lead { font-size: 1.15rem; color: #c3cee0; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: #c3cee0; font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1730' d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center/13px no-repeat;
}

.panel-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
.panel-head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.panel-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.panel-head .dot:first-child { background: var(--amber); }
.panel-title { margin-left: auto; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb0cc; }
.meter { display: grid; grid-template-columns: 110px 1fr 76px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; color: #c3cee0; }
.meter b { color: #fff; font-weight: 600; text-align: right; font-size: .85rem; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--amber)); animation: fill 1.6s ease-out both; }
@keyframes fill { from { width: 0; } }
.panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: #fff; font-weight: 600; }
.panel-foot svg { width: 20px; height: 20px; fill: #3ddc84; }

/* Sections --------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark p, .section-dark li { color: #c3cee0; }
.section-dark .eyebrow { color: var(--amber); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; fill: var(--amber); }
.card-link { font-weight: 700; color: var(--navy-700); text-decoration: none; font-size: .95rem; }
.card-link:hover { color: var(--amber-600); }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 0 0 30px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1730' d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section-dark .checklist strong { color: #fff; }

.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.segment {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--amber);
}
.segment p { margin: 0; font-size: .95rem; }

/* QA/QC panel */
.split-reverse > :first-child { order: 0; }
.qa-panel { background: var(--bg-alt); border-radius: 20px; padding: 40px; border: 1px solid var(--line); }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered li { counter-increment: n; display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.numbered li:last-child { border-bottom: 0; }
.numbered li::before {
  content: counter(n, decimal-leading-zero); flex: none; font-weight: 800; color: var(--amber-600);
  font-size: .9rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
}

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); position: relative; }
.step-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--amber); line-height: 1; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 12px; }
.why-grid h3 { font-size: 1.05rem; padding-left: 14px; border-left: 3px solid var(--amber); }
.why-grid p { color: var(--muted); font-size: .96rem; margin: 0; }
.industries-title { margin-bottom: 18px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 16px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }

/* CTA band */
.cta-band { background: linear-gradient(90deg, var(--amber), #ffcc4d); padding: 56px 0; color: var(--navy-900); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--amber-600); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-list svg { width: 22px; height: 22px; fill: var(--amber); flex: none; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--amber); }

.quote-form {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 34px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3); display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.quote-form .opt { color: var(--muted); font-weight: 400; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd7e3; border-radius: 10px;
  background: #fbfcfe; color: var(--ink); width: 100%;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,125,246,.18); background: #fff; }
.quote-form .invalid { border-color: #d93a3a; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1a8f4d; }
.form-status.err { color: #d93a3a; }

/* Footer */
.site-footer { background: #070f20; color: #9fb0cc; padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { margin-bottom: 14px; }
.site-footer h4, .site-footer .fh { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.license { font-size: .85rem; opacity: .8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .split-reverse > :first-child { order: 2; }
  .hero-visual { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-menu > li:last-child > a { margin-top: 14px; border: 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .cards, .steps, .segments, .why-grid, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .quote-form, .qa-panel { padding: 24px; }
  .meter { grid-template-columns: 90px 1fr 64px; font-size: .82rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   v2 additions: multi-page layout, diagram hero, planner, QA/QC components
   ========================================================================== */
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow.mono { letter-spacing: .08em; }
.center-text { text-align: center; color: var(--muted); font-size: 1.1rem; }

/* Top bar */
.topbar { background: #070f20; color: #9fb0cc; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 14px; height: 36px; }
.topbar a { color: var(--amber); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--amber); }
a.card { text-decoration: none; color: inherit; }

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 76px 0 84px;
  background: radial-gradient(900px 400px at 85% -20%, #1f3c75 0%, transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 820px; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero .hero-cta { margin-bottom: 0; }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.jump a { display: block; padding: 8px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover { border-color: var(--amber); color: var(--amber); }

/* Hero diagram */
.hero-visual { margin: 0; }
.sld { width: 100%; height: auto; }
.sld-lines path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2; }
.sld-flow path { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.sld-nodes rect { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.sld-nodes rect.hot { stroke: var(--amber); fill: rgba(255,180,0,.1); }
.sld text { fill: #dfe7f5; font: 700 10.5px "JetBrains Mono", monospace; text-anchor: middle; dominant-baseline: middle; letter-spacing: .04em; }
.sld-checks rect { fill: rgba(61,220,132,.12); stroke: #3ddc84; stroke-width: 1; }
.sld-checks text { fill: #3ddc84; font-size: 9.5px; }
.sld-caption { font-size: 12px !important; fill: #fff !important; }
.sld-caption.dim { fill: #8fa3c4 !important; font-weight: 500 !important; }

/* Audience paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--amber);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.path-tag { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.path ul { padding-left: 18px; color: var(--muted); font-size: .96rem; flex: 1; margin: 0 0 18px; }
.path li { margin-bottom: 6px; }
.path .card-link { font-weight: 700; color: var(--navy-700); }

/* Pillars + example record */
.pillars { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillars li { background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; }
.pillar-num { color: var(--amber); font-weight: 700; font-size: .9rem; display: block; margin-bottom: 10px; }
.pillars h3 { color: #fff; }
.pillars p { margin: 0; font-size: .96rem; }
.report-strip { max-width: 760px; margin: 0 auto; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; background: #0a1529; font-size: .85rem; }
.report-strip-head, .report-strip-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; padding: 12px 18px; align-items: center; }
.report-strip-head { background: rgba(255,255,255,.06); color: #8fa3c4; font-size: .72rem; letter-spacing: .08em; grid-template-columns: 1fr auto; }
.report-strip-row { border-top: 1px solid rgba(255,255,255,.07); color: #c3cee0; }
.pass { color: #3ddc84; font-weight: 700; }

/* Teaser */
.teaser-card { background: var(--navy-900); color: #c3cee0; border-radius: 16px; padding: 10px 22px; box-shadow: var(--shadow); font-size: .9rem; }
.teaser-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.teaser-row:last-child { border: 0; }
.teaser-row b { color: #fff; }
.teaser-row.result b { color: var(--amber); }

/* Credentials + TODO placeholders */
.cred { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; }
.cred li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-weight: 600; background: var(--bg-alt); }
.todo { outline: 2px dashed #e0892b; outline-offset: -2px; background-color: rgba(255,180,0,.12) !important; color: #7a4a00 !important; }
.todo-banner { background: #fff4d6; border: 2px dashed #e0892b; color: #7a4a00; padding: 14px 18px; border-radius: 10px; font-size: .85rem; margin-bottom: 28px; }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card h3 { margin-bottom: .4em; }

/* EV planner */
.planner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.planner-form { background: var(--navy-800); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 28px; display: grid; gap: 20px; }
.planner-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.planner-form legend { color: var(--amber); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.planner-form label { display: grid; gap: 6px; color: #dfe7f5; font-weight: 600; font-size: .92rem; }
.planner-form .opt { font-weight: 400; color: #8fa3c4; font-size: .8rem; }
.planner-form input, .planner-form select {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: #0a1529; color: #fff; width: 100%;
}
.planner-form input:focus, .planner-form select:focus { outline: none; border-color: var(--amber); }
.planner-out { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; min-height: 100%; }
.planner-empty { color: var(--muted); text-align: center; padding: 60px 0; margin: 0; font-size: .9rem; }
.planner-note { max-width: 780px; margin: 22px auto 0; text-align: center; font-size: .85rem; color: #8fa3c4 !important; }
.verdict { padding: 14px 18px; border-radius: 12px; font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.verdict small { display: block; font-weight: 500; font-size: .9rem; margin-top: 4px; }
.verdict.ok { background: #e3f7ec; color: #0f6b3a; }
.verdict.lm { background: #fff4d6; color: #7a4a00; }
.verdict.up { background: #fde6e6; color: #9a1f1f; }
.out-rows { margin: 0 0 18px; }
.out-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.out-rows dt { color: var(--muted); }
.out-rows dd { margin: 0; font-weight: 700; font-family: "JetBrains Mono", monospace; }
.meter-bar { height: 12px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; margin: 6px 0 4px; border: 1px solid var(--line); }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); transition: width .5s; }
.meter-bar i.over { background: #d93a3a; }

/* Timeline / lifecycle / method / panel note */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 22px 52px; }
.timeline li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: var(--amber); font-weight: 800; display: grid; place-items: center;
}
.timeline li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: .96rem; }
.panel-note { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 32px; }
.panel-note p { color: var(--muted); }
.panel-note p:last-child { margin: 0; }

.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lifecycle li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.lifecycle li > span { color: var(--amber-600); font-weight: 700; font-size: .85rem; }
.lifecycle h3 { font-size: 1rem; margin: 6px 0; }
.lifecycle p { font-size: .88rem; color: var(--muted); margin: 0; }

.log { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); font-size: .8rem; }
.log-head { background: var(--navy-900); color: var(--amber); padding: 12px 16px; font-size: .7rem; letter-spacing: .06em; }
.log-row { display: grid; grid-template-columns: 52px 1fr 70px 56px; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
.log-cols { background: var(--bg-alt); color: var(--muted); font-size: .7rem; text-transform: uppercase; border-top: 0; }
.sev { font-size: .7rem; text-align: center; border-radius: 99px; padding: 3px 0; }
.sev.high { background: #fde6e6; color: #9a1f1f; }
.sev.med { background: #fff4d6; color: #7a4a00; }
.sev.low { background: #e6eefc; color: #1f4fa0; }
.st { font-size: .72rem; color: #9a1f1f; }
.st.closed { color: #0f6b3a; }

.svc-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.section-alt .svc-detail { background: #fff; }
.svc-detail h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.svc-detail .checklist { margin: 0; }
.method { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; margin: 56px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.method li { padding: 20px; border-right: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.method li:last-child { border: 0; }
.method b { display: block; color: var(--navy-900); margin-bottom: 6px; font-size: .8rem; }

/* Projects */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.case-img { height: 180px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; font-size: .9rem; font-weight: 700; }
.case-tag { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts { margin: 12px 0; font-size: .8rem; }
.facts div { display: flex; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts dt { width: 70px; color: var(--muted); }
.facts dd { margin: 0; }

/* Contact */
.urgent { background: var(--navy-800); border: 1px solid rgba(255,180,0,.4); border-radius: var(--radius); padding: 26px; }
.urgent h3 { color: #fff; margin-bottom: .2em; }
.contact-list li.todo { padding: 8px 12px; border-radius: 8px; }

@media (max-width: 1024px) {
  .paths, .pillars, .cards-3, .cases { grid-template-columns: 1fr; }
  .cards-4, .cred { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
  .planner { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .method li { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .cards-4, .cred, .lifecycle { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .topbar span { display: none; }
  .page-hero { padding: 56px 0 64px; }
  .report-strip-row { grid-template-columns: 1fr auto; }
  .report-strip-row span:nth-child(2) { display: none; }
  .log-row { grid-template-columns: 44px 1fr 60px; }
  .log-row .st, .log-cols span:last-child { display: none; }
  .planner-form, .planner-out { padding: 22px; }
}

/* Services dropdown + breadcrumbs */
.crumbs { font-size: .8rem; letter-spacing: .04em; color: #8fa3c4; margin-bottom: 14px; }
.crumbs a { color: var(--amber); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -14px; min-width: 230px; background: var(--navy-800); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.sub a:hover { background: rgba(255,255,255,.08); }
.sub a[aria-current="page"] { color: var(--amber); }
.card .card-link { margin-top: 10px; }
@media (max-width: 860px) {
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .sub a { padding: 10px 0; font-size: .92rem; color: #9fb0cc; border-bottom: 0 !important; }
}

/* ==========================================================================
   v3 additions: quick request band, gear grid, states, checklists
   ========================================================================== */
.topbar-inner { justify-content: space-between; }
.topbar-info { letter-spacing: .02em; }

.quick-band { position: relative; margin-top: -48px; z-index: 5; padding-bottom: 8px; }
.quick-form {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto; gap: 14px; align-items: end;
  background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: 0 24px 50px rgba(11,23,48,.22);
  border-top: 4px solid var(--amber);
}
.quick-title { display: grid; gap: 2px; align-self: center; }
.quick-title b { font-size: 1.05rem; color: var(--navy-900); }
.quick-title span { font-size: .85rem; color: var(--muted); }
.quick-form label { display: grid; gap: 5px; font-weight: 600; font-size: .82rem; color: var(--ink); }
.quick-form .opt { font-weight: 400; color: var(--muted); }
.quick-form input, .quick-form select { font: inherit; font-weight: 400; font-size: .95rem; height: 46px; padding: 11px 12px; border: 1px solid #cfd7e3; border-radius: 10px; background: #fbfcfe; width: 100%; color: var(--ink); }
.quick-form input:focus, .quick-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,125,246,.18); }
.quick-form .invalid { border-color: #d93a3a; }
.quick-form .form-status { grid-column: 1 / -1; margin: 0; }
.quick-form .btn { white-space: nowrap; }

.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gear { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 16px 18px; display: grid; gap: 4px; }
.gear b { font-size: .98rem; }
.gear span { font-size: .85rem; color: var(--muted); }
.section-alt .gear { background: #fff; }

.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.state { background: var(--navy-800); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; }
.state b { display: inline-block; color: var(--navy-900); background: var(--amber); border-radius: 8px; padding: 4px 10px; font-size: .85rem; margin-bottom: 12px; }
.state h3 { color: #fff; }
.state p { margin: 0; font-size: .95rem; }

.checklist-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.checklist-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.checklist-box h3:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { border-bottom: 1px solid var(--line); }
.check-list label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: .98rem; }
.check-list input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--amber-600); flex: none; }
.check-list input:checked + * , .check-list label:has(input:checked) { color: var(--muted); }
.checklist-note { font-size: .85rem; color: var(--muted); margin-top: 20px; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 1100px) {
  .quick-form { grid-template-columns: 1fr 1fr; }
  .quick-title { grid-column: 1 / -1; }
  .gear-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) { .topbar-info { font-size: .78rem; } }
@media (max-width: 640px) {
  .quick-band { margin-top: -30px; }
  .quick-form { grid-template-columns: 1fr; padding: 20px; }
  .gear-grid { grid-template-columns: 1fr 1fr; }
  .states { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; gap: 10px; }
  .topbar span.topbar-info { display: none; }
  .checklist-box { padding: 20px; }
}
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .page-hero, .checklist-actions, .jump, .quick-band { display: none !important; }
  .section, .section-alt { padding: 12px 0; background: #fff; }
  .checklist-box { box-shadow: none; border: 0; padding: 0; }
  body { font-size: 12pt; }
}
.quick-form .form-status:empty { display: none; }

/* ==========================================================================
   v4: two-tier header, stat row, booking form, help band
   ========================================================================== */
.hdr-top { background: #fff; border-bottom: 1px solid var(--line); }
.hdr-top-inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.hdr-top .brand { color: var(--navy-900); }
.hdr-top .brand-mark { color: var(--amber); }
.hdr-loc { display: grid; gap: 2px; font-size: .88rem; color: var(--muted); padding-left: 24px; border-left: 1px solid var(--line); }
.hdr-loc b { color: var(--ink); font-weight: 600; }
.hdr-loc span { display: inline-flex; align-items: center; gap: 6px; }
.hdr-loc svg { width: 14px; height: 14px; fill: var(--blue); }
.hdr-links { margin-left: auto; display: flex; gap: 0; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.hdr-links li + li { border-left: 1px solid var(--line); }
.hdr-links a { padding: 4px 16px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.hdr-links a:hover { color: var(--navy-900); text-decoration: underline; }

.header-inner { height: 64px; }
.hdr-cta { display: flex; align-items: center; gap: 22px; }
.hdr-book { display: grid; justify-items: center; gap: 2px; }
.hdr-book small { color: #9fb0cc; font-size: .72rem; letter-spacing: .02em; }
.hdr-phone { color: var(--amber); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.hdr-phone:hover { color: #fff; }
.only-mobile { display: none; }
.nav-menu { gap: 26px; }

/* Hero stat row */
.stat-row { display: flex; flex-wrap: wrap; gap: 20px 34px; margin-top: 6px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.stat { display: flex; align-items: center; gap: 12px; }
.stat-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1730' d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: 0 0 0 4px rgba(255,180,0,.2); }
.stat b { display: block; color: #fff; font-size: 1.15rem; line-height: 1.15; }
.stat small { color: #9fb0cc; font-size: .82rem; }

/* Booking form (tabs over a card) */
.quick-band { margin-top: -64px; }
.book-tabs { display: flex; gap: 4px; }
.book-tabs button {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem;
  padding: 14px 22px; border: 0; border-radius: 12px 12px 0 0; cursor: pointer;
  background: rgba(255,255,255,.78); color: var(--muted);
}
.book-tabs button svg { width: 18px; height: 18px; fill: currentColor; }
.book-tabs button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 -6px 14px rgba(11,23,48,.08); }
.book-tabs button:hover { color: var(--navy-900); }
.book-form { background: #fff; border-radius: 0 16px 16px 16px; padding: 28px 30px 26px; box-shadow: 0 24px 50px rgba(11,23,48,.22); }
.book-title { font-size: 1.35rem; color: var(--blue); margin: 0 0 16px; }
.book-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.book-grid label { display: grid; gap: 6px; font-weight: 600; font-size: .85rem; }
.book-grid input, .book-grid select {
  font: inherit; font-weight: 400; font-size: .95rem; height: 48px; padding: 0 12px; width: 100%;
  border: 1px solid #cfd7e3; border-radius: 8px; background: #fbfcfe; color: var(--ink);
}
.book-grid input:focus, .book-grid select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,125,246,.18); background: #fff; }
.book-grid .invalid { border-color: #d93a3a; }
.book-foot { display: flex; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.book-foot .btn { background: var(--blue); color: #fff; }
.book-foot .btn:hover { background: #1e66d8; }
.book-note { margin: 0; font-size: .8rem; color: var(--muted); flex: 1 1 320px; }
.book-form .form-status { margin: 12px 0 0; }
.book-form .form-status:empty { display: none; }

/* "How can CMC help?" band */
.section-band { background: linear-gradient(180deg, #123a7a, #0f2f63); color: #fff; }
.section-band .section-head p:last-child { color: #c3d3ee; }
.section-band .eyebrow { color: var(--amber); }
.section-band .card { border: 0; }
.section-band .card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.3); }

@media (max-width: 1100px) { .book-grid { grid-template-columns: repeat(3, 1fr); } .hdr-loc { display: none; } }
@media (max-width: 860px) {
  .hdr-links { display: none; }
  .hdr-top-inner { padding-top: 10px; padding-bottom: 10px; }
  .hdr-book .btn { padding: 8px 14px; font-size: .9rem; }
  .header-inner { height: 56px; }
  .nav-menu { top: 100%; }
  .only-mobile { display: block; }
  .nav-menu li.only-mobile a { border-bottom: 0; }
  .nav-menu > li:last-child > a { margin-top: 14px; }
  .nav-toggle { padding-left: 0; }
}
@media (max-width: 640px) {
  .quick-band { margin-top: -36px; }
  .book-tabs { overflow-x: auto; }
  .book-tabs button { padding: 12px 14px; font-size: .85rem; white-space: nowrap; }
  .book-form { padding: 22px 20px; border-radius: 0 0 16px 16px; }
  .book-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 16px 24px; }
}

/* v5: four audience cards, residential/commercial landing pages */
.paths-4 { grid-template-columns: repeat(4, 1fr); }
.paths-4 .path { padding: 26px 22px; }
@media (max-width: 1100px) { .paths-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .paths-4 { grid-template-columns: 1fr; } }
@media (max-width: 1024px) and (min-width: 641px) { .paths-4 { grid-template-columns: repeat(2, 1fr); } }

/* v6: lighting sub-pages in the dropdown */
.sub .sub-item a { padding-left: 30px; font-size: .9rem; color: #9fb0cc; }
.sub .sub-item a::before { content: "\2514\00a0"; color: rgba(255,255,255,.3); margin-left: -16px; }
@media (max-width: 860px) { .sub .sub-item a { padding-left: 14px; } .sub .sub-item a::before { margin-left: 0; } }

.urgent h2 { color: #fff; font-size: 1.2rem; margin-bottom: .2em; }
