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

/* ==========================================================================
   Nelson HVAC Line — nelsonlinehvac.xyz
   Transit-map language: a purple line, stations for pages, dark header.
   01 Tokens · 02 Base · 03 Header & line nav · 04 Floating buttons
   05 Hero · 06 Page heads · 07 Sections · 08 Route list & stops
   09 Sights & sounds (signature) · 10 FAQ · 11 Form & contact
   12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --night: #17111f; --night-2: #231a2e; --ink: #1d1626; --text: #3d3547; --muted: #62596d;
  --paper: #ffffff; --mist: #f5f2f8; --line-c: #e4dcec;
  --purple: #7e22ce; --purple-dark: #6b1bb0; --purple-soft: #f1e6fb; --lilac: #c9a3ef;
  --go: #15803d; --go-soft: #e7f5ec; --stop: #b91c1c; --stop-soft: #fdecec;
  --focus: #7e22ce; --err: #b91c1c; --ok: #15803d;
  --font: "Pathway Extreme", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.95rem; --f0: clamp(1rem, 0.97rem + 0.18vw, 1.1rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --f2: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem); --f3: clamp(2.4rem, 1.7rem + 3.3vw, 4.6rem);
  --wrap: 1200px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem); --r: 8px;
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.65; font-variation-settings: "wdth" 100; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--f3); font-weight: 800; font-variation-settings: "wdth" 88; }
h2 { font-size: var(--f2); font-weight: 750; font-variation-settings: "wdth" 90; }
h3 { font-size: var(--f1); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--purple-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; }
.line-tag { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-dark); }
.line-tag::before { content: ""; width: 2.2rem; height: 6px; border-radius: 3px; background: var(--purple); }

/* 03 Header & line nav */
.hd { position: relative; background: var(--night); color: #fff; }
.hd .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; flex: none; }
.logo svg { width: 40px; height: 40px; }
.logo b { color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.05; font-variation-settings: "wdth" 85; }
.logo b span { display: block; color: var(--lilac); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hd :focus-visible { outline-color: var(--lilac); }
.stations { display: none; }
.hd__end { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.hd .hd__tel { display: none; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hd__tel:hover { color: var(--lilac); }
.hd .hd__cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--r); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1179px) {
  .stations { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; flex-direction: column; padding: 1rem 1.2rem 1.6rem 2.2rem; background: var(--night-2); box-shadow: 0 20px 30px -20px rgba(0,0,0,0.6); }
  .stations.is-open { display: flex; }
  .stations::before { content: ""; position: absolute; left: 2.9rem; top: 2rem; bottom: 2.6rem; width: 6px; border-radius: 3px; background: var(--purple); }
  .stations a { position: relative; display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
  .stations a::before { content: ""; position: relative; z-index: 1; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--night-2); border: 4px solid #fff; }
  .stations a[aria-current="page"]::before { background: var(--purple); border-color: #fff; box-shadow: 0 0 0 4px rgba(201,163,239,0.35); }
  .stations a[aria-current="page"] { color: var(--lilac); }
}
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .hd .hd__tel { display: inline; }
  .hd .hd__cta { display: inline-flex; }
  .stations { position: relative; display: flex; justify-content: space-between; flex: 1; max-width: 560px; margin-inline: auto; padding-top: 0.2rem; }
  .stations::before { content: ""; position: absolute; left: 2rem; right: 2rem; top: calc(0.2rem + 8px); height: 6px; border-radius: 3px; background: var(--purple); transform: translateY(-50%); }
  .stations a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; min-width: 4rem; color: #d9cfe6; text-decoration: none; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
  .stations a::before { content: ""; position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 3px solid #fff; transition: transform 0.15s; }
  .stations a:hover { color: #fff; }
  .stations a:hover::before { transform: scale(1.2); }
  .stations a[aria-current="page"] { color: #fff; }
  .stations a[aria-current="page"]::before { background: var(--purple); box-shadow: 0 0 0 4px rgba(201,163,239,0.4); transform: scale(1.25); }
}

/* 04 Floating buttons (under 1180px) */
.floaters { position: fixed; right: 14px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.floaters a { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 10px 22px -8px rgba(23,17,31,0.6); border: 3px solid #fff; }
.floaters a svg { width: 24px; height: 24px; }
.floaters .fl-call { background: var(--go); }
.floaters .fl-book { background: var(--purple); }
.floaters a:focus-visible { outline-offset: 3px; }
@media (min-width: 1180px) { .floaters { display: none; } }
@media (max-width: 1179px) { .ft { padding-bottom: 150px; } }

/* 05 Hero */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border: 2px solid transparent; border-radius: var(--r); font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--night); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero { position: relative; background: var(--night); color: #d9cfe6; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2.2rem; padding-block: clamp(2.6rem, 2rem + 3vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: end; } }
.hero .wrap > * { min-width: 0; }
.hero h1 { color: #fff; max-width: 12ch; }
.hero .line-tag { color: var(--lilac); }
.hero p.lede { font-size: var(--f1); line-height: 1.5; max-width: 38ch; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--purple); }
.hero figure img, .hero figure .img-placeholder { border-radius: var(--r); }
.hero .img-placeholder { background: var(--night-2); border-color: #4b3d5c; color: #b8aac9; }
.hero .img-placeholder b { color: #fff; }

/* 06 Page heads */
.phead { background: var(--night); color: #d9cfe6; border-bottom: 10px solid var(--purple); }
.phead .wrap { padding-block: clamp(2.4rem, 2rem + 2.4vw, 4rem); }
.phead h1 { color: #fff; font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); max-width: 20ch; }
.phead p { font-size: var(--f1); line-height: 1.5; max-width: 54ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: 0.9rem; }
.crumbs a { color: var(--lilac); }
.crumbs li + li::before { content: "—"; margin-right: 0.5rem; color: var(--purple); }
.phead :focus-visible { outline-color: var(--lilac); }

/* 07 Sections */
.sec { padding-block: var(--pad-y); }
.sec--mist { background: var(--mist); }
.head2 { display: grid; gap: 0.5rem 3rem; margin-bottom: 2.4rem; }
@media (min-width: 900px) { .head2 { grid-template-columns: 1fr 1fr; align-items: end; } }
.head2 h2 { margin: 0; }
.cols { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.cols > * { min-width: 0; }
.panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-c); border-top: 6px solid var(--purple); }
.panel--dark { background: var(--night); color: #d9cfe6; border-color: var(--night); border-top-color: var(--lilac); }
.panel--dark h2, .panel--dark h3 { color: #fff; }
.panel--dark a:not(.btn) { color: var(--lilac); }
.panel--dark :focus-visible { outline-color: var(--lilac); }
.panel h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.ticks { margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 1.7rem; border-bottom: 1px solid var(--line-c); }
.panel--dark .ticks li { border-color: rgba(255,255,255,0.12); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--purple); }
.panel--dark .ticks li::before { border-color: var(--lilac); }
.band { background: var(--purple); color: #f3e8ff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.4rem, 2rem + 2vw, 3.6rem); }
.band h2 { color: #fff; margin: 0; max-width: 24ch; }
.band :focus-visible { outline-color: #fff; }

/* 08 Route list & stops */
.route { position: relative; margin: 0; padding: 0; list-style: none; }
.route::before { content: ""; position: absolute; left: 11px; top: 0.8rem; bottom: 0.8rem; width: 6px; border-radius: 3px; background: var(--purple); }
.route > li { position: relative; margin: 0; padding: 0 0 2rem 3.2rem; }
.route > li:last-child { padding-bottom: 0; }
.route > li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); box-sizing: border-box; }
.sec--mist .route > li::before { background: var(--mist); }
.route > li:first-child::before, .route > li:last-child::before { background: var(--purple); border-color: var(--ink); }
.route h3 { margin-bottom: 0.3rem; }
.route p { margin: 0; }
.stops { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stops li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-c); font-weight: 600; color: var(--ink); }
.stops li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--purple); }
.stops li.hub::before { background: var(--purple); }
.map { width: 100%; height: clamp(300px, 40vw, 440px); border-radius: var(--r); border: 1px solid var(--line-c); background: var(--mist); }

/* 09 Sights & sounds (signature) */
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; padding: 0; border: 0; }
.filter[hidden] { display: none; }
.filter legend { width: 100%; margin-bottom: 0.6rem; font-weight: 700; color: var(--ink); }
.filter label { position: relative; cursor: pointer; }
.filter input { position: absolute; opacity: 0; }
.filter span { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px; border: 2px solid var(--line-c); background: var(--paper); font-weight: 700; color: var(--ink); }
.filter input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.signs { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .signs { grid-template-columns: 1fr 1fr; } }
.sign { display: grid; grid-template-columns: 4.6rem 1fr; align-content: start; gap: 0.3rem 1rem; padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-c); margin: 0; }
.sign[hidden] { display: none; }
.sign__badge { grid-row: span 3; align-self: start; display: grid; place-items: center; padding: 0.35rem 0; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; line-height: 1.05; }
.sign--ok .sign__badge { background: var(--go-soft); color: var(--go); border: 3px solid var(--go); }
.sign--call .sign__badge { background: var(--stop-soft); color: var(--stop); border: 3px solid var(--stop); }
.sign h3 { margin: 0; font-size: 1.12rem; }
.sign .when { margin: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sign p { margin: 0; font-size: var(--f-sm); }
.legend-row { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0 0 1.4rem; font-size: 0.92rem; font-weight: 600; }
.legend-row span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend-row i { width: 14px; height: 14px; border-radius: 50%; }
.legend-row .k-ok { border: 3px solid var(--go); background: var(--go-soft); }
.legend-row .k-call { border: 3px solid var(--stop); background: var(--stop-soft); }
.count { margin: 1rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* 10 FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-c); }
.fq { border-bottom: 1px solid var(--line-c); }
.fq summary { position: relative; padding: 1.1rem 2.6rem 1.1rem 0; font-weight: 700; font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; }
.fq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 4px solid var(--purple); box-sizing: border-box; }
.fq[open] summary::after { background: var(--purple); }
.fq > div { padding: 0 0 1.2rem; }

/* 11 Form & contact */
.form { display: grid; gap: 1rem 1.2rem; 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(--purple-dark); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line-c); 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='%237e22ce' 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.9rem center; background-size: 16px; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.info dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); padding-top: 0.2rem; }
.info dd { margin: 0; color: #fff; }
.info .big { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }

/* 12 Footer */
.ft { background: var(--night); color: #bfb3cf; font-size: var(--f-sm); border-top: 10px solid var(--purple); }
.ft .wrap { display: grid; gap: 2rem; padding-block: 3rem 1.6rem; }
@media (min-width: 820px) { .ft .wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft h2 { color: #fff; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--lilac); }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.ft__base p { margin: 0; max-width: none; }

/* 13 Images */
.img-placeholder { background: var(--mist); border: 2px dashed var(--lilac); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.mt { margin-top: 2rem; }
