/* 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; } }

/* ==========================================================================
   Mason's HVAC Crew — hvacmasons.xyz
   THE DEVICE: running bond. Content sits in bricks laid on a four-column
   grid, with every other course offset by a half brick, separated by a
   mortar gap. Nothing is a card; everything is a course.
   01 Tokens · 02 Base · 03 Header · 04 Call bar · 05 Buttons
   06 Hero · 07 Page heads · 08 The bond · 09 Sections
   10 Lean tool (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --sand: #f4f1ea; --sand-2: #e7e2d6; --white: #ffffff;
  --char: #312b26; --char-2: #4a4038; --char-soft: #d8d1c6;
  --orange: #d1541a; --orange-dark: #a53d0e; --orange-soft: #fae4d7;
  --ink: #1c1814; --text: #4e463f; --muted: #726a61; --line: #d5cec2;
  --focus: #a53d0e; --err: #a02820;
  --disp: "Darker Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.91rem; --f-xs: 0.77rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.06rem);
  --f1: clamp(1.14rem, 1.03rem + 0.5vw, 1.36rem);
  --f2: clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem); --f3: clamp(2.3rem, 1.7rem + 3vw, 3.9rem);
  --r: 1px; --wrap: 1200px; --mortar: 6px;
  --pad-y: clamp(2.8rem, 2.2rem + 3.2vw, 4.6rem);
}

/* 02 Base */
body { background: var(--sand); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.66; }
h1, h2, h3 { margin: 0 0 0.35em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--orange-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; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.course { 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(--orange-dark); }
.sec--char .course, .phead .course, .hero .course, .brick--char .course { color: #f0a97f; }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--char); }
.hd .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: 58px; }
.mc-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: #fff; text-decoration: none; }
.mc-logo svg { width: 26px; height: 26px; flex: none; }
.mc-logo b { display: block; font-family: var(--disp); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.mc-logo small { display: block; margin-top: 0.1em; font-size: 0.53rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #f0a97f; }
.hd__tel { display: none; align-items: center; gap: 0.4rem; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hd__tel svg { width: 16px; height: 16px; color: #f0a97f; flex: none; }
.hd__tel:hover { color: #f0a97f; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,0.32); border-radius: var(--r); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.mcnav { display: none; }
@media (max-width: 899px) {
  .mcnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--char); }
  .mcnav.is-open { display: flex; }
  .mcnav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: var(--disp); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
  .mcnav a[aria-current="page"] { color: #f0a97f; }
  .mcnav :focus-visible { outline-color: #f0a97f; }
}
@media (max-width: 400px) { .mc-logo small { display: none; } }
@media (min-width: 900px) {
  .hd .wrap { min-height: 72px; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .hd__tel { display: inline-flex; }
  .mcnav { display: flex; gap: 1.5rem; }
  .mcnav a { padding: 0.3rem 0; color: #b6aca1; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .mcnav a:hover { color: #fff; }
  .mcnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
  .mcnav :focus-visible { outline-color: #f0a97f; }
}

/* 04 Call bar — phones only; one wide orange button pinned to the foot */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1rem; background: var(--orange); color: #241004; font-family: var(--disp); font-size: 1.4rem; font-weight: 700; text-decoration: none; box-shadow: 0 -2px 12px rgba(28,24,20,0.2); }
.callbar svg { width: 19px; height: 19px; flex: none; }
.callbar:hover { background: var(--orange-dark); color: #fff; }
body { padding-bottom: 60px; }
@media (min-width: 900px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* 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(--orange); color: #241004; font-family: var(--disp); font-size: 1.25rem; font-weight: 700; line-height: 1.2; 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: 0.9em; height: 0.9em; flex: none; }
.btn--char { background: var(--char); color: #fff; }
.btn--char:hover { background: var(--ink); color: #fff; }
/* on a charcoal field the charcoal button would disappear, so it outlines instead */
.hero .btn--char, .phead .btn--char, .sec--char .btn--char, .brick--char .btn--char { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }
.hero .btn--char:hover, .phead .btn--char:hover, .sec--char .btn--char:hover, .brick--char .btn--char:hover { background: #fff; color: var(--ink); }
.btn--line { background: transparent; color: var(--char); box-shadow: inset 0 0 0 2px var(--char); }
.btn--line:hover { background: var(--char); color: #fff; }
.btn--sand, .phead a.btn--sand, .sec--char a.btn--sand, .hero a.btn--sand, .brick--char a.btn--sand, .lean__out a.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover, .phead a.btn--sand:hover, .sec--char a.btn--sand:hover, .hero a.btn--sand:hover, .brick--char a.btn--sand:hover, .lean__out a.btn--sand: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.55rem; margin-top: 1.3rem; }

/* 06 Hero */
.hero { padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem); background: var(--char); color: #b6aca1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: #e2dbd3; max-width: 50ch; }
.hero :focus-visible { outline-color: #f0a97f; }

/* 07 Page heads */
.phead { padding-block: clamp(2.1rem, 1.7rem + 2.3vw, 3.4rem); background: var(--char); color: #b6aca1; }
.phead h1 { color: #fff; max-width: 18ch; }
.phead p { font-size: 1.03rem; max-width: 58ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #f0a97f; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.83rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: #f0a97f; }

/* 08 The bond — the device */
.bond { display: grid; gap: var(--mortar); grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 900px) { .bond { grid-template-columns: repeat(4, 1fr); } }
.bond > * { min-width: 0; } /* stop any one brick forcing the whole course wider */
.brick { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.1rem, 0.95rem + 0.9vw, 1.7rem); background: var(--white); }
@media (min-width: 900px) { .brick { grid-column: span 2; } .brick--h { grid-column: span 1; } .brick--w { grid-column: span 4; } .brick--3 { grid-column: span 3; } }
.brick h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.brick p { font-size: var(--f-sm); }
.brick ul { margin: 0.6rem 0 0; padding-left: 1.05em; font-size: var(--f-sm); }
.brick li { margin-bottom: 0.26rem; }
.brick .btns { margin-top: auto; padding-top: 1rem; }
.brick--char { background: var(--char); color: #b6aca1; }
.brick--char h3, .brick--char b { color: #fff; }
.brick--char a:not(.btn) { color: #fff; }
.brick--char :focus-visible { outline-color: #f0a97f; }
.brick--orange { background: var(--orange-soft); }
.brick--fig { padding: 0; }
.brick--fig img, .brick--fig .img-placeholder { display: block; width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.brick__n { display: block; margin-bottom: 0.5rem; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-dark); }
.brick--char .brick__n { color: #f0a97f; }
.brick__big { display: block; font-family: var(--disp); font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem); font-weight: 700; line-height: 0.95; color: var(--ink); }
.brick--char .brick__big { color: #fff; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--sand { background: var(--sand); }
.sec--tint { background: var(--sand-2); }
.sec--char { background: var(--char); color: #b6aca1; }
.sec--char h2, .sec--char h3, .sec--char b { color: #fff; }
.sec--char a:not(.btn) { color: #fff; }
.sec--char :focus-visible { outline-color: #f0a97f; }
.head { max-width: 640px; }
.plain { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.plain li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.sec--char .plain li { border-bottom-color: rgba(255,255,255,0.22); }
.plain b { display: block; font-family: var(--disp); font-size: 1.28rem; line-height: 1.15; }
.plain span { font-size: var(--f-sm); }
.figwide img, .figwide .img-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--sand-2); }
.where { display: grid; gap: var(--mortar); align-items: stretch; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; } }
.where > div:first-child { padding: clamp(1.1rem, 0.95rem + 0.9vw, 1.8rem); background: var(--white); }

/* 10 Lean tool (signature) */
.lean { display: grid; gap: var(--mortar); }
@media (min-width: 980px) { .lean { grid-template-columns: 1fr 1fr; align-items: start; } .lean__set { position: sticky; top: 6rem; } }
.lean__set { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--white); }
.lean__set fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
.lean__set fieldset:last-of-type { margin-bottom: 0; }
.lean__set legend { display: block; margin-bottom: 0.5rem; padding: 0; font-family: var(--disp); font-size: 1.22rem; font-weight: 700; line-height: 1.12; color: var(--ink); }
.yn { display: flex; gap: var(--mortar); }
.yn label { position: relative; flex: 1 1 0; }
.yn input { position: absolute; opacity: 0; }
.yn span { display: block; padding: 0.55rem 0.5rem; border: 1px solid var(--line); background: var(--sand); font-size: var(--f-sm); font-weight: 700; text-align: center; cursor: pointer; }
.yn input:checked + span { background: var(--char); border-color: var(--char); color: #fff; }
.yn input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.lean__out { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--char); color: #b6aca1; }
.lean__out h2 { color: #fff; font-size: 1.1rem; }
.lean__out b { color: #fff; }
.lean__bar { margin: 1.1rem 0 0.4rem; }
.lean__ends { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f0a97f; }
.lean__track { position: relative; height: 12px; margin: 0.45rem 0; background: #4a4038; }
.lean__pip { position: absolute; top: -4px; width: 6px; height: 20px; margin-left: -3px; background: var(--orange); transition: left 0.35s ease; }
.lean__mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(255,255,255,0.35); }
.lean__title { display: block; margin: 1.1rem 0 0.6rem; font-family: var(--disp); font-size: clamp(1.7rem, 1.4rem + 1.5vw, 2.4rem); font-weight: 700; line-height: 1.02; color: #fff; }
.lean__out ul { margin: 0.8rem 0 0; padding-left: 1.15em; font-size: var(--f-sm); }
.lean__out li { margin-bottom: 0.4rem; }
.lean__out .caveat { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.22); font-size: 0.85rem; color: #93887d; }
.lean__out :focus-visible { outline-color: #f0a97f; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; margin-top: 1.5rem; border-top: 3px solid var(--char); }
.mcq { border-bottom: 1px solid var(--line); }
.mcq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; font-family: var(--disp); font-weight: 700; font-size: 1.32rem; line-height: 1.15; color: var(--ink); list-style: none; cursor: pointer; }
.mcq summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 1rem; color: var(--orange-dark); }
.mcq[open] summary::after { content: "\2013"; }
.mcq > 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.94rem; }
.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 #bcb3a5; 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='%23312b26' 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(--char); }
.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 #bcb3a5; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--char); border-color: var(--char); 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.84rem; color: var(--muted); }
.contact { display: grid; gap: var(--mortar); align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.15fr 0.85fr; } }
.contact > * { min-width: 0; }
.contact > div:first-child { padding: clamp(1.1rem, 0.95rem + 0.9vw, 1.8rem); background: var(--white); }
.side { display: grid; gap: var(--mortar); }
.side__card { padding: 1.2rem 1.35rem; background: var(--white); }
.side__card h2 { font-size: 1.28rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.8rem; font-weight: 700; line-height: 1.05; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #968c82; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #f0a97f; }
.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.5rem; font-weight: 700; line-height: 1.1; 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: #f0a97f; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.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(--sand-2); border: 1px dashed #b6ac9d; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
