/* Brand: navy and black with yellow, from the current hvacengineering.ca; Raleway throughout. */
:root {
  --bg: #F5F6FA;
  --panel: #FFFFFF;
  --ink: #000024;
  --steel: #50536E;
  --line: #D8DAE6;
  --air: #8A6300;          /* accent for text and marks on light grounds: deep gold */
  --air-tint: #FFF4CF;
  --yellow: #FED03D;
  --navy: #000024;
  --black: #000000;
  --magenta: #B41450;
  --ok: #1B7A51;
  --ok-tint: #DCEFE5;
  --warn: #A5550A;
  --warn-tint: #F8E6D2;
  --ph: #C98A12;
  --ph-tint: #FFF5DC;
  --cta: #FED03D;
  --cta-ink: #000024;
  --cta-hover: #FFDD6B;
  --hdr-bg: #000024;
  --hdr-ink: #FFFFFF;
  --hdr-line: #1C1C4A;
  --topbar-bg: #000000;
  --topbar-ink: #FFFFFF;
  --footer-bg: #000024;
  --footer-ink: #E4E5F0;
  --footer-muted: #9A9CBC;
  --radius: 2px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --il-ink: #000024;
  --il-mute: #50536E;
  --il-panel: #FFFFFF;
  --il-soft: #EEF0F7;
  --il-yellow: #FED03D;
  --il-hot: #FDE3D3;
  --il-cold: #DCEBFA;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #00001A;
    --panel: #0A0A33;
    --ink: #ECEDF5;
    --steel: #A3A6C2;
    --line: #24264F;
    --air: #FED03D;
    --air-tint: #1E1A33;
    --ok: #5CCB94;
    --ok-tint: #173A2B;
    --warn: #F0A257;
    --warn-tint: #3E2A16;
    --ph: #E8B44A;
    --ph-tint: #2B2410;
    --hdr-bg: #00001F;
    --hdr-line: #1C1C4A;
    --footer-bg: #000010;
    --footer-ink: #E4E5F0;
    --footer-muted: #8C8EAE;
    --il-ink: #DDE0F0;
    --il-mute: #9EA2C2;
    --il-panel: #0A0A33;
    --il-soft: #15164A;
    --il-yellow: #FED03D;
    --il-hot: #4A2A26;
    --il-cold: #16305A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #00001A;
  --panel: #0A0A33;
  --ink: #ECEDF5;
  --steel: #A3A6C2;
  --line: #24264F;
  --air: #FED03D;
  --air-tint: #1E1A33;
  --ok: #5CCB94;
  --ok-tint: #173A2B;
  --warn: #F0A257;
  --warn-tint: #3E2A16;
  --ph: #E8B44A;
  --ph-tint: #2B2410;
  --hdr-bg: #00001F;
  --hdr-line: #1C1C4A;
  --footer-bg: #000010;
  --footer-ink: #E4E5F0;
  --footer-muted: #8C8EAE;
  --il-ink: #DDE0F0;
  --il-mute: #9EA2C2;
  --il-panel: #0A0A33;
  --il-soft: #15164A;
  --il-yellow: #FED03D;
  --il-hot: #4A2A26;
  --il-cold: #16305A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--air); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--air); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 14ch; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 1em; }

/* Concept bar */
.concept {
  background: var(--ph-tint);
  border-bottom: 1px dashed var(--ph);
  font-size: 0.9rem;
  padding: 8px 0;
}
.concept p { margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand span { font-weight: 500; color: var(--steel); }
.brand svg { flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--air); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75em 1.3em;
  border-radius: var(--radius);
  border: 1.5px solid var(--cta);
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--air); border-color: var(--air); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--panel); color: var(--ink); }
.btn-small { padding: 0.5em 1em; font-size: 0.95rem; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--steel); max-width: 34em; margin: 24px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-offices { margin: 28px 0 0; color: var(--steel); font-size: 0.98rem; }
.hero-offices strong { color: var(--ink); font-weight: 600; }

/* Balance report panel */
.balance {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 20px 18px;
}
.balance-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.balance-title { font-weight: 600; margin: 0; font-size: 1rem; }
.balance-title span { font-weight: 400; color: var(--steel); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.toggle button {
  font: inherit; font-size: 0.9rem; font-weight: 500;
  border: 0; background: transparent; color: var(--steel);
  padding: 0.3em 0.9em; border-radius: 3px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.schematic { display: block; width: 100%; height: auto; margin: 4px 0 6px; }
.schematic .duct { fill: var(--air-tint); stroke: var(--ink); stroke-width: 1.25; }
.schematic .ahu { fill: var(--panel); stroke: var(--ink); stroke-width: 1.5; }
.schematic .branch { stroke: var(--air); stroke-linecap: butt; }
.schematic .blade { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.schematic .pivot { fill: var(--ink); }
.schematic .diff-box { fill: var(--panel); stroke: var(--ink); stroke-width: 1.5; }
.schematic .diff-x { stroke: var(--ink); stroke-width: 1; }
.schematic .lbl { fill: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 600; }
.schematic .lbl-muted { fill: var(--steel); font-family: var(--font); font-size: 11.5px; font-weight: 500; }
.schematic .dot-ok { fill: var(--ok); }
.schematic .dot-warn { fill: var(--warn); }
.schematic .arrow { fill: var(--air); }

.readings { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.readings th {
  font-weight: 500; color: var(--steel); font-size: 0.8rem; text-align: right;
  padding: 6px 8px; border-bottom: 1px solid var(--line); line-height: 1.25;
}
.readings td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.readings th:first-child, .readings td:first-child { text-align: left; padding-left: 0; }
.readings th:last-child, .readings td:last-child { padding-right: 0; }
.readings td:first-child { font-weight: 600; }
.dev-ok { color: var(--ok); }
.dev-warn { color: var(--warn); }
.pill {
  display: inline-block; min-width: 4.9em; text-align: center; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; padding: 1px 8px; border-radius: 999px;
}
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pill-warn { background: var(--warn-tint); color: var(--warn); }
.balance-summary { margin: 12px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.balance-summary span { display: block; font-weight: 400; color: var(--steel); }
.balance-note { margin: 4px 0 0; font-size: 0.85rem; color: var(--steel); }

/* Sections */
.block { padding: 96px 0; border-top: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.block-head p { margin: 0; color: var(--steel); font-size: 1.1rem; max-width: 36em; }

/* Needs */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.need { padding: 24px 24px 8px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.need:first-child { border-left: 0; padding-left: 0; }
.need:last-child { padding-right: 0; }
.need p { color: var(--steel); }
.need-links { margin-top: auto; padding-top: 4px; font-size: 0.95rem; }
.need-links span { color: var(--steel); display: block; font-size: 0.85rem; }
.need-links a { display: block; font-weight: 600; text-decoration: none; padding: 2px 0; }
.need-links a:hover { text-decoration: underline; }

/* Services */
.svc { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 2px solid var(--ink); }
.svc h3 { font-family: var(--font); font-size: 1.65rem; font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.svc-desc { color: var(--steel); margin: 0; max-width: 28em; }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.svc li:last-child { border-bottom: 0; }
.svc-receive { margin: 0; }
.svc-receive-label { display: block; font-size: 0.85rem; color: var(--steel); margin-bottom: 4px; }


.svc li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.svc li a:hover { color: var(--air); text-decoration-color: currentColor; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 16px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--air); margin-bottom: 10px;
}
.steps p { color: var(--steel); margin: 0; }

/* Placeholders */
.ph {
  border: 1.5px dashed var(--ph);
  background: var(--ph-tint);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ph strong { display: block; font-weight: 600; margin-bottom: 2px; }
.ph span { color: var(--steel); font-size: 0.95rem; }
.ph-note { margin-bottom: 24px; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.projects .ph { min-height: 150px; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.office { padding: 20px 24px 0; border-left: 1px solid var(--line); }
.office:first-child { border-left: 0; padding-left: 0; }
.office h3 { font-family: var(--font); font-size: 1.6rem; font-weight: 600; margin-bottom: 6px; }
.office address { font-style: normal; color: var(--steel); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.quote-intro p { color: var(--steel); font-size: 1.1rem; max-width: 30em; }
.quote-intro .direct { color: var(--ink); font-size: 1rem; margin-top: 24px; }
.quote-intro .direct a { font-weight: 600; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label span { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.6em 0.75em; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--air); outline-offset: 0; border-color: var(--air); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-status { margin: 0; font-size: 0.95rem; color: var(--ok); font-weight: 600; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 64px 0 32px; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-size: 0.95rem; color: var(--footer-muted); font-weight: 500; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 3px 0; }
.footer-grid li a { text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-brand { color: var(--footer-ink); }
.footer-brand span { color: var(--footer-muted); }
.footer-blurb { color: var(--footer-muted); margin-top: 14px; max-width: 24em; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--footer-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1240px) {
  .header-phone { display: none; }
}
@media (max-width: 1040px) {
  .nav { gap: 18px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc > div:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 0; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .block { padding: 72px 0; }
  .block-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .needs { grid-template-columns: 1fr 1fr; }
  .need:nth-child(3) { border-left: 0; padding-left: 0; }
  .need:nth-child(n+3) { border-top: 1px solid var(--line); }
  .need:nth-child(2) { padding-right: 0; }
  .creds { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
  .projects .ph { min-height: 0; }
  .offices { grid-template-columns: 1fr 1fr; }
  .office:nth-child(3) { border-left: 0; padding-left: 0; }
  .office:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 8px 16px 16px; }
  .header-actions .btn { display: none; }
  .brand { font-size: 1.2rem; }
  .lede { font-size: 1.1rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .balance { padding: 16px 14px 14px; }
  .readings { font-size: 0.85rem; }
  .readings th, .readings td { padding: 6px 4px; }
  .schematic .lbl { font-size: 19px; }
  .schematic .lbl-muted { font-size: 16px; }
  .pill { min-width: 0; padding: 1px 6px; }
  .needs { grid-template-columns: 1fr; }
  .need, .need:nth-child(n) { border-left: 0; padding: 20px 0 12px; }
  .need + .need { border-top: 1px solid var(--line); }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .office, .office:nth-child(n) { border-left: 0; padding: 18px 0 0; margin-top: 0; }
  .office + .office { border-top: 1px solid var(--line); margin-top: 18px; }
  .form { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.svc li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.svc li a:hover { color: var(--air); text-decoration-color: currentColor; }

/* ---- Service pages ---- */
.svc-hero { padding: 40px 0 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; color: var(--steel); margin-bottom: 32px; }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--air); }
.svc-hero .hero-grid { align-items: start; }
.svc-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); max-width: 16ch; }
.svc-hero .lede { margin-bottom: 32px; }

.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 24px 12px; }
.sheet-title { font-family: var(--font); font-size: 1rem; font-weight: 600; margin: 14px 0 6px; }
.sheet dl { margin: 0; }
.sheet-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sheet dt { color: var(--steel); font-size: 0.9rem; padding-top: 2px; }
.sheet dd { margin: 0; }
.sheet ul { margin: 0; padding: 0; list-style: none; }
.sheet li + li { margin-top: 4px; }

.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.sec h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 2px solid var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border: 2px solid var(--air); }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 3rem 1fr; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.flow li:first-child { border-top: 2px solid var(--ink); }
.flow li::before { content: counter(flow); font-family: var(--font); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--air); grid-row: span 2; }
.flow h3 { margin: 2px 0 0; }
.flow p { margin: 0; color: var(--steel); }

.receive { list-style: none; margin: 0; padding: 0; }
.receive li { padding: 10px 0; border-top: 1px solid var(--line); }
.receive li:first-child { border-top: 2px solid var(--ink); }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font); font-size: 1.6rem; line-height: 1; color: var(--air); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--steel); max-width: 40em; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related a { display: block; border-top: 2px solid var(--ink); padding-top: 14px; text-decoration: none; color: var(--ink); }
.related a strong { display: block; font-family: var(--font); font-weight: 600; font-size: 1.45rem; line-height: 1.15; margin-bottom: 6px; }
.related a span { color: var(--steel); }
.related a:hover strong { color: var(--air); text-decoration: underline; text-underline-offset: 4px; }
.related-group { margin-top: 24px; }

.cta-band { padding: 72px 0; border-top: 1px solid var(--line); background: var(--air-tint); }
.cta-band .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.cta-band p { color: var(--steel); margin: 12px 0 0; max-width: 34em; }
.cta-band .hero-ctas { justify-content: flex-end; }

@media (max-width: 900px) {
  .sec-grid { grid-template-columns: 1fr; gap: 24px; }
  .related { grid-template-columns: 1fr; gap: 20px; }
  .cta-band .wrap { grid-template-columns: 1fr; gap: 24px; }
  .cta-band .hero-ctas { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .svc-hero { padding: 28px 0 56px; }
  .crumbs { margin-bottom: 20px; }
  .sheet { padding: 4px 16px 8px; }
  .sheet-row { grid-template-columns: 1fr; gap: 2px; }
  .sec { padding: 48px 0; }
  .cta-band { padding: 56px 0; }
}

/* ---- Guides library ---- */
.page-hero { padding: 48px 0 56px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); max-width: 18ch; }
.page-hero .lede { margin-bottom: 0; }
.guide-search { margin-top: 28px; max-width: 34em; }
.guide-search input { font: inherit; font-size: 1.05rem; width: 100%; padding: 0.75em 0.9em; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-search input:focus { outline: 2px solid var(--air); border-color: var(--air); }
.search-count { color: var(--steel); font-size: 0.95rem; margin: 10px 0 0; min-height: 1.4em; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 2px solid var(--ink); }
.cat-card { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.cat-card h3 { font-family: var(--font); font-size: 1.5rem; font-weight: 600; line-height: 1.12; margin-bottom: 6px; }
.cat-card h3 a { color: var(--ink); text-decoration: none; }
.cat-card h3 a:hover { color: var(--air); text-decoration: underline; text-underline-offset: 4px; }
.cat-card p { color: var(--steel); margin: 0 0 8px; }
.cat-count { font-size: 0.85rem; color: var(--steel); }
.cat-card.featured h3::after { content: "New"; font-family: var(--font); font-size: 0.75rem; font-weight: 600; color: var(--air); background: var(--air-tint); border-radius: 3px; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }

.guide-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.guide-list li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line); }
.guide-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.guide-list a:hover { color: var(--air); text-decoration: underline; text-underline-offset: 4px; }
.guide-list p { margin: 4px 0 0; color: var(--steel); font-size: 0.95rem; }
.guide-list .cat-tag { display: block; font-size: 0.8rem; color: var(--steel); margin-top: 2px; }
.cat-section { padding: 40px 0; border-top: 1px solid var(--line); }
.cat-section h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.cat-section h2 a { color: var(--ink); text-decoration: none; }
.cat-section h2 a:hover { color: var(--air); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-bottom: 72px; }
.article-head { padding: 40px 0 32px; }
.article-head h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 20ch; }
.article-head .lede { margin-bottom: 12px; }
.article-meta { color: var(--steel); font-size: 0.92rem; margin: 0; }
.prose { font-size: 1.07rem; line-height: 1.7; max-width: 44em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin: 2em 0 0.6em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--air); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--air-tint); }
.prose tr:last-child td { border-bottom: 0; }
.aside-stack { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.aside-box { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.aside-box h2 { font-family: var(--font); font-size: 1rem; font-weight: 600; margin: 0 0 10px; }
.aside-box ol, .aside-box ul { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.aside-box li { padding: 5px 0; border-top: 1px solid var(--line); }
.aside-box li:first-child { border-top: 0; }
.aside-box a { color: var(--ink); text-decoration: none; }
.aside-box a:hover { color: var(--air); text-decoration: underline; }
.aside-cta { background: var(--air-tint); border-color: transparent; }
.aside-cta p { font-size: 0.95rem; color: var(--steel); margin: 0 0 14px; }
.article-cta { margin-top: 40px; padding: 28px; background: var(--air-tint); border-radius: 6px; max-width: 44em; }
.article-cta h2 { font-size: 1.7rem; margin: 0 0 8px; border: 0; padding: 0; }
.article-cta p { color: var(--steel); margin: 0 0 18px; }

.form-errors { background: var(--warn-tint); color: var(--warn); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 96px 0; }
.thanks h1 { max-width: 18ch; }

@media (max-width: 1040px) {
  .article-wrap { grid-template-columns: 1fr; gap: 32px; }
  .aside-stack { position: static; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cat-grid { grid-template-columns: 1fr; }
  .guide-list { columns: 1; }
  .page-hero { padding: 28px 0 40px; }
  .article-head { padding: 24px 0 20px; }
}


/* ---- Brand layer: header, buttons and type tuned for Raleway ---- */
body { font-size: 16.5px; font-variant-numeric: lining-nums; }
h1, h2 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.svc-hero h1, .page-hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.svc h3, .office h3, .related a strong, .cat-card h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.005em; }
.steps li::before, .flow li::before { font-weight: 700; color: var(--air); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }

.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: 0.85rem; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 10px; height: 34px; }
.topbar a { color: var(--topbar-ink); text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar span { opacity: 0.6; }

.site-header { background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); }
.header-inner { height: 84px; }
.brand { color: var(--hdr-ink); font-family: var(--font); font-weight: 800; font-size: 1.3rem; letter-spacing: 0; }
.brand span { color: var(--yellow); font-weight: 500; }
.brand svg rect:last-child { fill: var(--hdr-bg); stroke: var(--yellow); }
.nav a { color: var(--hdr-ink); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.header-phone { color: var(--hdr-ink); }
.header-phone:hover { color: var(--yellow); }
.menu-btn { color: var(--hdr-ink); }

.btn { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; padding: 0.95em 1.6em; border-radius: var(--radius); }
.btn-primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-small { font-size: 0.8rem; padding: 0.75em 1.2em; }

/* Homepage hero sits on navy, like the current site */
.hero { background: var(--navy); color: #FFFFFF; border-bottom: 4px solid var(--yellow); }
.hero h1 { color: #FFFFFF; }
.hero .lede, .hero .hero-offices { color: #C9CBE0; }
.hero .hero-offices strong { color: #FFFFFF; }
.hero .btn-secondary { border-color: #FFFFFF; color: #FFFFFF; }
.hero .btn-secondary:hover { background: #FFFFFF; color: var(--navy); }
.hero .balance { color: var(--ink); }

.cta-band { background: var(--navy); color: #FFFFFF; }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: #C9CBE0; }
.cta-band .btn-secondary { border-color: #FFFFFF; color: #FFFFFF; }
.cta-band .btn-secondary:hover { background: #FFFFFF; color: var(--navy); }
.article-cta { background: var(--navy); color: #FFFFFF; }
.article-cta h2 { color: #FFFFFF; }
.article-cta p { color: #C9CBE0; }
.article-cta .btn-secondary { border-color: #FFFFFF; color: #FFFFFF; }
.aside-cta { background: var(--air-tint); }
.site-footer { border-top: 4px solid var(--yellow); }
.footer-brand span { color: var(--yellow); }
.prose th { background: var(--air-tint); }
table, .readings, .cat-count, .header-phone, .article-meta { font-variant-numeric: lining-nums tabular-nums; }

@media (max-width: 900px) {
  .menu-btn { border-color: var(--hdr-line); color: var(--hdr-ink); }
  .nav { top: 84px; background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); }
  .nav a { border-bottom-color: var(--hdr-line); }
}
@media (max-width: 600px) {
  .topbar .wrap { justify-content: center; }
  .header-inner { height: 68px; }
  .nav { top: 68px; }
}


/* ---- Illustrations (inline SVG, coloured by class so both themes work) ---- */
.il { display: block; width: 100%; height: auto; }
.il-bg { fill: var(--il-panel); }
.il-ln { fill: none; stroke: var(--il-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-thin { fill: none; stroke: var(--il-ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.il-dash { fill: none; stroke: var(--il-mute); stroke-width: 1.25; stroke-dasharray: 4 4; }
.il-fill { fill: var(--il-soft); stroke: var(--il-ink); stroke-width: 2; stroke-linejoin: round; }
.il-solid { fill: var(--il-ink); }
.il-ac { fill: var(--il-yellow); }
.il-acs { fill: none; stroke: var(--il-yellow); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il-hot { fill: var(--il-hot); }
.il-cold { fill: var(--il-cold); }
.il-txt { fill: var(--il-ink); font: 500 12px var(--font); }
.il-txt-s { fill: var(--il-mute); font: 500 10.5px var(--font); }
.il-txt-b { fill: var(--il-ink); font: 700 12px var(--font); }
.figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--il-panel); }
.figure figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--steel); border-top: 1px solid var(--line); background: var(--panel); }

.article-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.article-head .figure { align-self: center; }
.page-hero.with-figure .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.svc-figure { margin-bottom: 20px; }

.cat-card .thumb { display: block; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--il-panel); }
.cat-card .thumb:hover { border-color: var(--air); }
.related a .thumb { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--il-panel); }

/* Icons */
.ico { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--yellow); margin-bottom: 14px; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc .ico { margin-bottom: 12px; }

/* Key takeaways get a check-mark list */
.prose h2#key-takeaways + ul { list-style: none; padding: 20px 22px; background: var(--air-tint); border-radius: 6px; }
.prose h2#key-takeaways + ul li { position: relative; padding-left: 30px; }
.prose h2#key-takeaways + ul li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23FED03D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

@media (max-width: 900px) {
  .article-head, .page-hero.with-figure .wrap { grid-template-columns: 1fr; gap: 24px; }
}

/* Needs: six cards in three columns */
.needs { grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.need { padding: 24px 24px 24px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.need:first-child, .need:last-child { padding-left: 24px; padding-right: 24px; }
.need:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.need:nth-child(3n) { padding-right: 0; }

/* Design and design-build */
.design-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.design-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.design-card h3 { font-size: 1.4rem; font-weight: 700; margin: 4px 0 0; }
.design-card p { color: var(--steel); margin: 0; }
.design-card .ticks { margin: 4px 0 8px; }
.design-card .btn { align-self: flex-start; margin-top: auto; }
.design-figure { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.phases-h { font-size: 1.3rem; font-weight: 700; margin: 56px 0 20px; }
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.partners h3 { margin-bottom: 4px; }
.partners p { color: var(--steel); margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .needs { grid-template-columns: 1fr 1fr; }
  .need, .need:first-child, .need:last-child { padding: 20px; border-left: 1px solid var(--line); }
  .need:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .need:nth-child(2n) { padding-right: 0; }
  .design-split { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .needs, .partners { grid-template-columns: 1fr; }
  .need, .need:nth-child(n) { border-left: 0; padding: 20px 0; }
}

/* ---- Industries */
.ind-head { margin-top: 72px; }
.h2-like { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0; }
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.industry { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.industry:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.industry:nth-child(3n) { padding-right: 0; }
.industry .ico { margin-bottom: 8px; }
.industry strong { font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.industry > span:not(.ico):not(.sol-more) { color: var(--steel); }
.sol-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.95rem; color: var(--air); }
.industry:hover strong, .solution:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.solution { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 14px; text-decoration: none; color: var(--ink); }
.solution .thumb { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--il-panel); }
.solution strong { font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin-bottom: 6px; }
.sol-text { color: var(--steel); }
.ind-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ind-chips a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--paper, transparent); }
.ind-chips a:hover { border-color: var(--ink); }
.ind-chips .ico { width: 32px; height: 32px; }
.ind-chips .ico svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) {
  .industries, .solutions { grid-template-columns: 1fr 1fr; }
  .industry, .industry:nth-child(3n+1), .industry:nth-child(3n) { padding: 20px; border-left: 1px solid var(--line); }
  .industry:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .industry:nth-child(2n) { padding-right: 0; }
}
@media (max-width: 600px) {
  .industries, .solutions { grid-template-columns: 1fr; }
  .industry, .industry:nth-child(n) { padding: 20px 0; border-left: 0; }
  .ind-head { margin-top: 48px; }
}
.ind-chips .ico { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
