/* 00  Core — resets and behaviour hooks only. Every visual decision for this
       site lives in the sections below, starting with the design tokens.    */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
iframe { border: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 0.5rem; top: 0.5rem; z-index: 999; transform: translateY(-160%); padding: 0.8rem 1.2rem; background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field__error { margin: 0; min-height: 1rem; font-size: 0.82rem; font-weight: 700; color: var(--err); }
.field.is-invalid :where(input, select, textarea) { border-color: var(--err); }
.form-status { min-height: 1.2rem; font-weight: 700; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; padding: 1rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.img-placeholder b { display: block; font-size: 0.92rem; letter-spacing: 0; text-transform: none; word-break: break-all; }
:target { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Maple Ridge HVAC Works — maplehvac.xyz
   THE DEVICE: run-in headings. Headings sit on the same line as the text they
   introduce, in verdigris, the way a reference book sets them. A narrow
   measure, generous leading, and no cards anywhere.
   01 Tokens · 02 Base · 03 Header · 04 Run-in contact line · 05 Buttons
   06 Opening · 07 Page heads · 08 Run-in blocks · 09 Sections
   10 Steam matrix (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --cream: #faf6ee; --cream-2: #efe8dc; --white: #ffffff;
  --ox: #40241f; --ox-2: #5c362e; --ox-soft: #e7d8d3;
  --verd: #2e7d6b; --verd-dark: #1f5e50; --verd-soft: #dceae6;
  --ink: #221512; --text: #4d423e; --muted: #736761; --line: #ddd3c5;
  --focus: #1f5e50; --err: #a02820;
  --disp: "Cardo", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f-xs: 0.78rem; --f0: clamp(1.02rem, 0.99rem + 0.18vw, 1.1rem);
  --f1: clamp(1.14rem, 1.04rem + 0.46vw, 1.32rem);
  --f2: clamp(1.55rem, 1.3rem + 1.3vw, 2.15rem); --f3: clamp(1.95rem, 1.5rem + 2.3vw, 3rem);
  --r: 2px; --wrap: 1080px; --read: 40rem; --pad-y: clamp(2.6rem, 2.1rem + 3vw, 4.4rem);
}

/* 02 Base */
body { background: var(--cream); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.78; }
h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 1.05em; max-width: var(--read); }
p:last-child { margin-bottom: 0; }
a { color: var(--verd-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; max-width: var(--read); }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.mark { display: block; margin-bottom: 0.5rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verd-dark); }
.sec--ox .mark, .phead .mark, .open .mark { color: #8fcfc0; }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.hd__bar .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: 54px; }
.mr-logo { display: inline-flex; align-items: baseline; gap: 0.45rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.mr-logo b { font-family: var(--disp); font-size: clamp(1.15rem, 1.02rem + 0.8vw, 1.55rem); font-weight: 700; color: var(--ink); line-height: 1.1; }
.mr-logo small { font-family: var(--sans); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; color: var(--verd-dark); white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.mrnav { display: none; }
@media (max-width: 899px) {
  .mrnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--cream); border-bottom: 1px solid var(--line); }
  .mrnav.is-open { display: flex; }
  .mrnav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.16rem; font-weight: 700; text-decoration: none; }
  .mrnav a[aria-current="page"] { color: var(--verd-dark); }
}
@media (max-width: 420px) { .mr-logo small { display: none; } }
@media (min-width: 900px) {
  .hd__bar .wrap { min-height: 68px; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .mrnav { display: flex; gap: 1.4rem; }
  .mrnav a { padding: 0.3rem 0; color: var(--text); font-family: var(--disp); font-size: 1.04rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .mrnav a:hover { color: var(--ink); }
  .mrnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--verd); }
}

/* 04 Run-in contact line — the device applied to the header itself */
.callline { border-top: 1px solid var(--line); background: var(--verd-soft); }
.callline .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; padding-block: 0.5rem; font-size: var(--f-sm); }
.callline i { font-style: normal; font-family: var(--disp); font-weight: 700; color: var(--verd-dark); }
.callline a { color: var(--ink); font-family: var(--disp); font-size: 1.06rem; font-weight: 700; text-decoration: none; }
.callline a:hover { color: var(--verd-dark); }
@media (min-width: 900px) { .callline { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.62rem 1.3rem; border: 0; border-radius: var(--r); background: var(--ox); color: #fff; font-family: var(--disp); font-size: 1.04rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--verd { background: var(--verd); color: #fff; }
.btn--verd:hover { background: var(--verd-dark); color: #fff; }
.btn--line { background: transparent; color: var(--ox); box-shadow: inset 0 0 0 2px var(--ox); }
.btn--line:hover { background: var(--ox); color: #fff; }
.btn--cream, .phead a.btn--cream, .sec--ox a.btn--cream, .open a.btn--cream, .st__out a.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover, .phead a.btn--cream:hover, .sec--ox a.btn--cream:hover, .open a.btn--cream:hover, .st__out a.btn--cream:hover { background: #fff; color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

/* 06 Opening */
.open { padding-block: clamp(2.4rem, 1.9rem + 2.6vw, 4rem); background: var(--ox); color: #d8c5c0; }
.open h1 { color: #fff; max-width: 19ch; }
.open p { font-size: var(--f1); line-height: 1.6; color: #f0e4e0; }
.open :focus-visible { outline-color: #8fcfc0; }

/* 07 Page heads */
.phead { padding-block: clamp(2rem, 1.6rem + 2.2vw, 3.2rem); background: var(--ox); color: #d8c5c0; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.05rem; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #8fcfc0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.84rem; }
.crumbs li + li::before { content: "\2014"; margin-right: 0.45rem; color: #8fcfc0; }

/* 08 Run-in blocks — the device */
.runin { max-width: var(--read); margin-bottom: 1.5rem; }
.runin h2, .runin h3 { display: inline; margin: 0; font-size: inherit; color: var(--verd-dark); }
.runin h2::after, .runin h3::after { content: "\00a0"; }
.runin > p { display: inline; margin: 0; }
.runin + .runin { margin-top: 1.5rem; }
.runin--big h2 { font-size: var(--f1); }
.sec--ox .runin h2, .sec--ox .runin h3 { color: #8fcfc0; }
.stack { max-width: var(--read); }
.stack > * + * { margin-top: 1.5rem; }
.listing { margin: 1.2rem 0 0; padding: 0; list-style: none; max-width: var(--read); }
.listing li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.sec--ox .listing li { border-bottom-color: rgba(255,255,255,0.25); }
.listing i { font-style: normal; font-family: var(--disp); font-weight: 700; color: var(--verd-dark); }
.sec--ox .listing i { color: #8fcfc0; }
.rule { margin: 0 0 1.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ox); max-width: none; }
.rule h2 { margin: 0; }
.sec--ox .rule { border-bottom-color: #8fcfc0; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--cream { background: var(--cream); }
.sec--white { background: var(--white); }
.sec--tint { background: var(--cream-2); }
.sec--ox { background: var(--ox); color: #d8c5c0; }
.sec--ox h2, .sec--ox h3, .sec--ox b { color: #fff; }
.sec--ox a:not(.btn) { color: #fff; }
.sec--ox :focus-visible { outline-color: #8fcfc0; }
.twin { display: grid; gap: 2rem; }
@media (min-width: 900px) { .twin { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.twin > * { min-width: 0; }
.figbox img, .figbox .img-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.cap { margin: 0.5rem 0 0; font-size: var(--f-xs); color: var(--muted); font-style: italic; max-width: var(--read); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--cream-2); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* 10 Steam matrix (signature) */
.st { display: grid; gap: 1.8rem; }
@media (min-width: 980px) { .st { grid-template-columns: 0.8fr 1.2fr; gap: 2.8rem; align-items: start; } .st__set { position: sticky; top: 6rem; } }
.st__set { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--white); border-top: 4px solid var(--verd); }
.st__set fieldset { margin: 0 0 1.3rem; padding: 0; border: 0; }
.st__set fieldset:last-of-type { margin-bottom: 0; }
.st__set legend { display: block; margin-bottom: 0.55rem; padding: 0; font-family: var(--disp); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.opts { display: grid; gap: 0.35rem; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); font-size: var(--f-sm); font-weight: 600; cursor: pointer; }
.opts input:checked + span { background: var(--ox); border-color: var(--ox); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.st__out { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--ox); color: #d8c5c0; }
.st__out h2 { color: #fff; font-size: 1.06rem; }
.st__out b { color: #fff; }
.st__title { display: block; margin: 0.4rem 0 0.7rem; font-family: var(--disp); font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 700; color: #fff; line-height: 1.2; }
.st__out p { max-width: none; }
.st__out ul { margin: 0.8rem 0 0; padding-left: 1.15em; font-size: var(--f-sm); max-width: none; }
.st__out li { margin-bottom: 0.42rem; }
.st__rule { margin-top: 1.2rem; padding: 0.9rem 1.1rem; background: rgba(143,207,192,0.16); border-left: 4px solid #8fcfc0; font-size: var(--f-sm); }
.st__out .caveat { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.25); font-size: 0.86rem; color: #a99490; }
.st__out :focus-visible { outline-color: #8fcfc0; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 840px; margin-top: 1.3rem; border-top: 2px solid var(--ox); }
.mrq { border-bottom: 1px solid var(--line); }
.mrq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; font-family: var(--disp); font-weight: 700; font-size: 1.14rem; color: var(--ink); list-style: none; cursor: pointer; }
.mrq summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 0.95rem; color: var(--verd-dark); }
.mrq[open] summary::after { content: "\2013"; }
.mrq > div { padding: 0 0 1.1rem; }

/* 12 Form & contact */
.form { display: grid; gap: 1rem 1.3rem; margin-top: 1.2rem; }
@media (min-width: 640px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.72rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c4b8a9; border-radius: var(--r); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340241f' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 15px; padding-right: 2.3rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ox); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.44rem 0.9rem; border: 1px solid #c4b8a9; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--ox); border-color: var(--ox); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.2rem 1.35rem; background: var(--white); border-left: 4px solid var(--verd); }
.side__card h2 { font-size: 1.12rem; }
.side__card p { max-width: none; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.55rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #9b8d88; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #8fcfc0; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.8rem 1.6rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.45rem; font-family: var(--disp); font-size: 1.28rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8fcfc0; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft p { max-width: none; }
.ft__base { padding-block: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; }

/* 14 Images */
.img-placeholder { background: var(--cream-2); border: 1px dashed #bfb3a3; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
