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

/* ==========================================================================
   Brookhaven HVAC & Surface Group — brookhavenhvac.xyz
   THE DEVICE: the tile grid. Content sits in equal modular tiles that line up
   on a strict grid, header included. Nothing is a hero card and nothing is a
   sidebar; everything is one module wide or two.
   01 Tokens · 02 Base · 03 Header · 04 Action tiles · 05 Buttons
   06 Hero · 07 Page heads · 08 The tile grid · 09 Sections
   10 Older houses (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #eaedef; --paper-2: #dde2e5; --white: #ffffff;
  --slate: #233140; --slate-2: #31445a; --slate-soft: #ccd4db;
  --leaf: #2f8f4e; --leaf-dark: #1f6b3a; --leaf-soft: #ddeee2;
  --ink: #12181f; --text: #47525c; --muted: #6b757e; --line: #ccd2d7;
  --focus: #1f6b3a; --err: #a02820; --warn: #a8600f;
  --disp: "Manrope", "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.6rem, 1.3rem + 1.5vw, 2.3rem); --f3: clamp(1.95rem, 1.45rem + 2.5vw, 3.1rem);
  --r: 0px; --wrap: 1200px; --gap: clamp(0.5rem, 0.3rem + 0.8vw, 0.9rem);
  --pad-y: clamp(2.6rem, 2rem + 3vw, 4.4rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.66; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--disp); color: var(--ink); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--leaf-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; }
.lbl { display: block; margin-bottom: 0.5rem; font-family: var(--disp); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--leaf-dark); }
.sec--slate .lbl, .phead .lbl, .hero .lbl, .tile--slate .lbl { color: #86d8a2; }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--slate); }
.hd .wrap { display: flex; align-items: stretch; gap: 0; min-height: 58px; }
.bh-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; padding-right: 0.8rem; color: #fff; text-decoration: none; }
.bh-logo svg { width: 26px; height: 26px; flex: none; }
.bh-logo b { display: block; font-family: var(--disp); font-size: 1.06rem; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.bh-logo small { display: block; margin-top: -0.12em; font-size: 0.53rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; color: #86d8a2; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; width: 40px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--r); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.bhnav { display: none; }
@media (max-width: 979px) {
  .hd .btn { display: none; }
  .bhnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--slate); }
  .bhnav.is-open { display: flex; }
  .bhnav 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.06rem; font-weight: 800; text-decoration: none; }
  .bhnav a[aria-current="page"] { color: #86d8a2; }
  .bhnav :focus-visible { outline-color: #86d8a2; }
}
@media (max-width: 400px) { .bh-logo small { display: none; } }
@media (min-width: 980px) {
  .hd .wrap { min-height: 70px; }
  .nav-toggle { display: none; }
  .bhnav { display: flex; align-items: center; gap: 1.5rem; margin-right: 1.6rem; }
  .bhnav a { padding: 0.3rem 0; color: #aab6c1; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .bhnav a:hover { color: #fff; }
  .bhnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--leaf); }
  .bhnav :focus-visible { outline-color: #86d8a2; }
  .hd .btn { align-self: center; }
}

/* 04 Action tiles — phones only; two equal modules straight under the header */
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--slate); }
.acts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; padding: 0.7rem 0.5rem; background: var(--white); color: var(--ink); font-family: var(--disp); font-weight: 800; text-align: center; text-decoration: none; line-height: 1.25; }
.acts a small { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--leaf-dark); }
.acts a:hover { background: var(--leaf-soft); }
.acts a + a { background: var(--leaf); color: #06230f; }
.acts a + a small { color: #0c3a1c; }
.acts a + a:hover { background: #86d8a2; color: #06230f; }
@media (min-width: 980px) { .acts { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.35rem; border: 0; border-radius: var(--r); background: var(--leaf); color: #06230f; font-family: var(--disp); font-size: 0.97rem; font-weight: 800; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: #86d8a2; color: #06230f; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--slate { background: var(--slate); color: #fff; }
.btn--slate:hover { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 2px var(--slate); }
.btn--line:hover { background: var(--slate); color: #fff; }
.btn--paper, .phead a.btn--paper, .sec--slate a.btn--paper, .hero a.btn--paper, .tile--slate a.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover, .phead a.btn--paper:hover, .sec--slate a.btn--paper:hover, .hero a.btn--paper:hover, .tile--slate a.btn--paper: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.4rem; }

/* 06 Hero */
.hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.2rem); background: var(--slate); color: #aab6c1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: #dde3e8; max-width: 50ch; }
.hero :focus-visible { outline-color: #86d8a2; }

/* 07 Page heads */
.phead { padding-block: clamp(2rem, 1.7rem + 2.3vw, 3.2rem); background: var(--slate); color: #aab6c1; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.03rem; max-width: 58ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #86d8a2; }
.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: #86d8a2; }

/* 08 The tile grid — the device */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; padding: clamp(1.1rem, 0.95rem + 0.9vw, 1.6rem); background: var(--white); }
.tile h3 { font-size: 1.12rem; }
.tile p { font-size: var(--f-sm); }
.tile ul { margin: 0.6rem 0 0; padding-left: 1.05em; font-size: var(--f-sm); }
.tile li { margin-bottom: 0.26rem; }
.tile .btns { margin-top: auto; padding-top: 1.1rem; }
.tile--slate { background: var(--slate); color: #aab6c1; }
.tile--slate h3, .tile--slate b { color: #fff; }
.tile--slate a:not(.btn) { color: #fff; }
.tile--slate :focus-visible { outline-color: #86d8a2; }
.tile--leaf { background: var(--leaf-soft); }
.tile--wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .tile--w2 { grid-column: span 2; } }
.tile__n { display: block; margin-bottom: 0.7rem; font-family: var(--disp); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--leaf-dark); }
.tile--slate .tile__n { color: #86d8a2; }
.tile--fig { padding: 0; }
.tile--fig img, .tile--fig .img-placeholder { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--paper { background: var(--paper); }
.sec--tint { background: var(--paper-2); }
.sec--slate { background: var(--slate); color: #aab6c1; }
.sec--slate h2, .sec--slate h3, .sec--slate b { color: #fff; }
.sec--slate a:not(.btn) { color: #fff; }
.sec--slate :focus-visible { outline-color: #86d8a2; }
.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--slate .plain li { border-bottom-color: rgba(255,255,255,0.22); }
.plain b { display: block; font-family: var(--disp); font-size: 1.04rem; }
.plain span { font-size: var(--f-sm); }
.figwide img, .figwide .img-placeholder { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--paper-2); }
.where { display: grid; gap: var(--gap); 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 Older houses (signature) */
.oh__set { padding: clamp(1.2rem, 1rem + 1vw, 1.7rem); background: var(--white); border-top: 4px solid var(--leaf); }
.oh__set legend { padding: 0; font-family: var(--disp); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.oh__set fieldset { margin: 0; padding: 0; border: 0; }
.ohopts { display: grid; gap: 0.4rem; margin-top: 0.9rem; }
@media (min-width: 700px) { .ohopts { grid-template-columns: repeat(2, 1fr); } }
.ohopts label { position: relative; }
.ohopts input { position: absolute; opacity: 0; }
.ohopts span { display: block; padding: 0.6rem 0.8rem; border: 1px solid var(--line); background: var(--paper); font-size: var(--f-sm); font-weight: 600; cursor: pointer; }
.ohopts input:checked + span { background: var(--slate); border-color: var(--slate); color: #fff; }
.ohopts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ohnotes { margin-top: var(--gap); }
.ohnotes > div { padding: 1rem 1.2rem; background: var(--leaf-soft); border-left: 4px solid var(--leaf); }
.ohnotes > div + div { margin-top: 2px; }
.ohnotes p { margin: 0; font-size: var(--f-sm); }
.ohnotes b { display: block; font-family: var(--disp); }
.tile.on { outline: 3px solid var(--leaf); outline-offset: -3px; }
.badge { display: inline-block; margin-bottom: 0.55rem; padding: 0.18rem 0.6rem; font-family: var(--disp); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.badge.fit { background: var(--leaf); color: #06230f; }
.badge.watch { background: #f3dcbb; color: #6d3f05; }
.badge + .badge { margin-left: 0.3rem; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; margin-top: 1.5rem; border-top: 2px solid var(--slate); }
.bhq { border-bottom: 1px solid var(--line); }
.bhq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--disp); font-weight: 800; font-size: 1.03rem; color: var(--ink); list-style: none; cursor: pointer; }
.bhq summary::after { content: "+"; flex: none; color: var(--leaf-dark); }
.bhq[open] summary::after { content: "\2013"; }
.bhq > 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 #b6bec6; 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='%23233140' 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(--slate); }
.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 #b6bec6; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--slate); border-color: var(--slate); 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(--gap); 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(--gap); }
.side__card { padding: 1.2rem 1.35rem; background: var(--white); }
.side__card h2 { font-size: 1.04rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.45rem; font-weight: 800; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #949ea7; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #86d8a2; }
.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.14rem; font-weight: 800; 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: #86d8a2; }
.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(--paper-2); border: 1px dashed #aab3bb; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
