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

/* ==========================================================================
   Driftwood HVAC Solutions — driftwoodhvac.xyz
   THE DEVICE: the driftline. An irregular broken rule — long and short
   segments with gaps, like a tide line on sand — sits under every heading
   and runs full width between sections. Nothing else is decorated.
   01 Tokens · 02 Base · 03 Header · 04 Phone line · 05 Buttons
   06 Hero · 07 Page heads · 08 Driftlines (the device) · 09 Blocks
   10 Field dust (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #f4f1ea; --band: #e4e0d5; --white: #fdfcf9;
  --ink: #3f4a4a; --ink-2: #566464; --ink-l: #97a3a3;
  --sea: #3e6c82; --sea-d: #2f5566; --sea-l: #e3edf1;
  --text: #4f5757; --muted: #7f8888; --line: #d6d1c4;
  --focus: #2f5566; --err: #8f3030;
  --disp: "Neuton", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.93rem; --f-xs: 0.78rem; --f0: clamp(1rem, 0.96rem + 0.2vw, 1.07rem);
  --f1: clamp(1.14rem, 1.04rem + 0.46vw, 1.32rem);
  --f2: clamp(1.44rem, 1.2rem + 1.2vw, 2rem); --f3: clamp(1.9rem, 1.48rem + 2.2vw, 3rem);
  --r: 0px; --wrap: 1080px; --col: 62ch; --hd: 58px;
  --pad-y: clamp(2.6rem, 2.2rem + 2.6vw, 4.1rem);
}
@media (min-width: 900px) { :root { --hd: 66px; } }

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.79; }
h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.22; text-wrap: balance; }
h1 { font-size: var(--f3); font-weight: 400; }
h2 { font-size: var(--f2); font-weight: 400; }
h3 { font-size: var(--f1); font-weight: 700; }
p { margin: 0 0 0.95em; }
p:last-child { margin-bottom: 0; }
a { color: var(--sea-d); 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; }
li { margin-bottom: 0.38rem; }
.wrap { width: min(100% - 1.8rem, var(--wrap)); margin-inline: auto; }
.col { max-width: none; }
.col > * { max-width: var(--col); }
.colc { max-width: var(--col); margin-inline: auto; }
.mark { display: block; margin-bottom: 0.3rem; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sea-d); }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.hd::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--ink) 0 19%, transparent 19% 23%, var(--ink) 23% 31%, transparent 31% 37%, var(--sea) 37% 55%, transparent 55% 61%, var(--ink) 61% 69%, transparent 69% 77%, var(--ink) 77% 100%); }
.hd__bar .wrap { display: flex; align-items: center; gap: 0.6rem; min-height: var(--hd); }
.dw-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.dw-logo svg { width: 30px; height: 30px; flex: none; }
.dw-logo b { display: block; color: var(--ink); font-family: var(--disp); font-size: 1.16rem; font-weight: 700; line-height: 1.08; }
.dw-logo small { display: block; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sea-d); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.dwnav { display: none; }
@media (max-width: 899px) {
  .hd__bar .btn { display: none; }
  .dwnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.4rem 0.9rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .dwnav.is-open { display: flex; }
  .dwnav a { padding: 0.78rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.14rem; font-weight: 700; text-decoration: none; }
  .dwnav a[aria-current="page"] { color: var(--sea-d); }
}
@media (max-width: 400px) { .dw-logo small { display: none; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .dwnav { display: flex; gap: 1.5rem; }
  .dwnav a { position: relative; padding: 0.25rem 0 0.45rem; color: var(--text); font-family: var(--disp); font-size: 1.06rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .dwnav a:hover { color: var(--ink); }
  .dwnav a[aria-current="page"] { color: var(--ink); }
  .dwnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--sea) 0 38%, transparent 38% 48%, var(--sea) 48% 100%); }
}

/* 04 Phone line */
.dwph { padding: 0.5rem 0.9rem 0.7rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.dwph__in { display: grid; grid-template-columns: 1fr 1fr; }
.dwph a { display: block; padding: 0.2rem 0.6rem 0.42rem; color: var(--ink); font-family: var(--disp); font-size: 1.12rem; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.dwph a:first-child { border-image: linear-gradient(90deg, var(--ink) 0 46%, transparent 46% 56%, var(--ink) 56% 100%) 1; border-bottom-style: solid; }
.dwph a + a { color: var(--sea-d); border-image: linear-gradient(90deg, var(--sea) 0 30%, transparent 30% 40%, var(--sea) 40% 100%) 1; border-bottom-style: solid; }
.dwph .k { display: block; font-family: var(--sans); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .dwph { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.58rem 1.35rem 0.64rem; border: 0; border-radius: var(--r); background: var(--sea); color: #fff; font-family: var(--disp); font-size: 1.06rem; font-weight: 700; line-height: 1.38; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: var(--sea-d); color: #fff; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--paper, .sec--ink a.btn--paper, .phead a.btn--paper, .dl2--ink a.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover, .sec--ink a.btn--paper:hover, .phead a.btn--paper:hover, .dl2--ink a.btn--paper:hover { background: var(--white); color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* 08 The driftline */
.drift { height: 3px; margin: 0.45rem 0 1.05rem; background: linear-gradient(90deg, var(--ink) 0 19%, transparent 19% 23%, var(--ink) 23% 31%, transparent 31% 37%, var(--sea) 37% 55%, transparent 55% 61%, var(--ink) 61% 69%, transparent 69% 77%, var(--ink) 77% 100%); }
.drift--wide { margin: 0 0 2rem; }
.sec--ink .drift { background: linear-gradient(90deg, #fff 0 19%, transparent 19% 23%, #fff 23% 31%, transparent 31% 37%, #9cc4d4 37% 55%, transparent 55% 61%, #fff 61% 69%, transparent 69% 77%, #fff 77% 100%); }
.dl2 { padding: 0; background: transparent; }
.dl2--box { padding: 1.2rem 1.2rem 1.3rem; background: var(--white); border: 1px solid var(--line); }
.dl2--sea { padding: 1.2rem 1.2rem 1.3rem; background: var(--sea-l); border: 1px solid #c6dde6; }
.dl2--ink { padding: 1.3rem 1.25rem 1.35rem; background: var(--ink); border: 1px solid var(--ink); color: #d3d9d9; }
.dl2--ink h2, .dl2--ink h3, .dl2--ink b { color: #fff; }
.dl2--ink .mark { color: #9cc4d4; }
.dl2--ink a:not(.btn) { color: #fff; }
.dl2--ink :focus-visible { outline-color: #9cc4d4; }
.dl2 > *:last-child { margin-bottom: 0; }
.dl2s { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .dl2s--2 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.8rem; } }
@media (min-width: 940px) { .dl2s--3 { grid-template-columns: repeat(3, 1fr); } .dl2s--2b { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.dl2s > * { min-width: 0; }
.sec--ink .dl2--box { background: transparent; border-color: #566464; color: #d3d9d9; }
.sec--ink .dl2--box h2, .sec--ink .dl2--box h3, .sec--ink .dl2--box b { color: #fff; }

/* 06 Hero */
.hero { padding-block: clamp(2.6rem, 2.2rem + 2.6vw, 4.2rem); background: var(--band); }
.hero .lede { font-size: var(--f1); line-height: 1.66; }
.hero__grid { display: grid; gap: 1.9rem; align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 2.9rem; } }
.hero__grid > * { min-width: 0; }

/* 07 Page heads */
.phead { padding-block: clamp(2rem, 1.7rem + 1.9vw, 3rem); background: var(--ink); color: #d3d9d9; }
.phead h1 { color: #fff; }
.phead .mark { color: #9cc4d4; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #9cc4d4; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.7rem; padding: 0; list-style: none; font-size: 0.76rem; font-weight: 700; }
.crumbs li + li::before { content: "\2013"; margin-right: 0.45rem; color: var(--muted); }
.phead .crumbs li + li::before { color: #97a3a3; }

/* 09 Blocks */
.sec { padding-block: var(--pad-y); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--band { background: var(--band); }
.sec--ink { background: var(--ink); color: #d3d9d9; }
.sec--ink h2, .sec--ink h3, .sec--ink b { color: #fff; }
.sec--ink .mark { color: #9cc4d4; }
.sec--ink a:not(.btn) { color: #fff; }
.sec--ink :focus-visible { outline-color: #9cc4d4; }
.head { max-width: var(--col); margin-bottom: 1.9rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--f-sm); text-align: left; }
.tbl th, .tbl td { padding: 0.64rem 0.72rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 0.71rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.tbl td:first-child { font-weight: 700; color: var(--ink); }
.sec--ink .tbl th, .sec--ink .tbl td { border-bottom-color: #566464; }
.sec--ink .tbl td:first-child { color: #fff; }
.scroll { overflow-x: auto; }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figbox img, .figbox .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--band); }
.where { display: grid; gap: 2.1rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 2.9rem; } }
.where > * { min-width: 0; }

/* 10 Field dust (signature) */
.fd { display: grid; gap: 1.7rem; }
@media (min-width: 1000px) { .fd { grid-template-columns: 0.84fr 1.16fr; gap: 2.1rem; align-items: start; } .fd__set { position: sticky; top: calc(var(--hd) + 1rem); } }
.fd__set fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
.fd__set fieldset:last-of-type { margin-bottom: 0; }
.fd__set legend { display: block; margin-bottom: 0.5rem; padding: 0; font-family: var(--disp); font-size: 1.14rem; font-weight: 700; color: var(--ink); }
.opts { display: grid; gap: 0.3rem; }
.opts label { position: relative; display: block; }
.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(--paper); font-size: var(--f-sm); cursor: pointer; }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fd__out { min-width: 0; display: grid; gap: 1.7rem; align-content: start; }
.fd__flag { padding: 1.3rem 1.25rem 1.35rem; background: var(--sea); color: #fff; }
.fd__flag .drift { background: linear-gradient(90deg, #fff 0 19%, transparent 19% 23%, #fff 23% 31%, transparent 31% 37%, #cde3ea 37% 55%, transparent 55% 61%, #fff 61% 69%, transparent 69% 77%, #fff 77% 100%); }
.fd__flag b { display: block; margin-bottom: 0.2rem; color: #fff; }
.fd__flag p { font-size: var(--f-sm); }
.fd__out h2 { font-size: var(--f1); font-weight: 700; }
.fd__out .dl2 p, .fd__out .dl2 ul { font-size: var(--f-sm); }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 850px; margin-top: 1.5rem; }
.dwq { border-bottom: 1px solid var(--line); }
.dwq:first-child { border-top: 3px solid var(--ink); }
.dwq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.92rem 0; font-family: var(--disp); font-size: 1.14rem; font-weight: 700; line-height: 1.4; color: var(--ink); list-style: none; cursor: pointer; }
.dwq summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 400; color: var(--sea-d); }
.dwq[open] summary::after { content: "\2013"; }
.dwq[open] summary { color: var(--sea-d); }
.dwq > div { padding: 0 0 1.2rem; }

/* 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 #b8b2a4; 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='%233f4a4a' 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(--ink); }
.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.42rem 0.9rem; border: 1px solid #b8b2a4; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); 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: 2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1.7rem; }

/* 13 Footer */
.ft { background: var(--ink); color: #a4aeae; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #9cc4d4; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.7rem 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.16rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.71rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9cc4d4; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft__base { padding-block: 0.9rem; border-top: 1px solid #566464; font-size: 0.8rem; }

/* 14 Images */
.img-placeholder { background: var(--band); border: 1px solid var(--line); color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
