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

/* ==========================================================================
   Franklin HVAC Group — hvacfranklin.xyz
   Corporate and orderly: slate, emerald, a residential/commercial switch.
   01 Tokens · 02 Base · 03 Audience strip & header · 04 Dock · 05 Buttons
   06 Hero & route panel · 07 Page heads · 08 Sections · 09 Triage (signature)
   10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --slate-900: #0f172a; --slate-800: #1e293b; --slate: #334155; --slate-500: #64748b; --slate-300: #cbd5e1;
  --slate-200: #e2e8f0; --slate-100: #f1f5f9; --slate-50: #f8fafc; --white: #ffffff;
  --emerald: #047857; --emerald-600: #059669; --emerald-50: #ecfdf5; --emerald-200: #a7f3d0;
  --red: #b91c1c; --red-50: #fef2f2; --amber: #a16207; --amber-50: #fefce8; --blue: #1d4ed8; --blue-50: #eff6ff;
  --ink: var(--slate-900); --text: #334155; --muted: #5b6b80;
  --focus: #047857; --err: #b91c1c; --ok: #047857;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem); --f1: clamp(1.18rem, 1.1rem + 0.4vw, 1.45rem);
  --f2: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem); --f3: clamp(2.2rem, 1.6rem + 2.7vw, 3.9rem);
  --wrap: 1200px; --pad-y: clamp(3rem, 2.2rem + 3.8vw, 5.6rem); --r: 10px;
}

/* 02 Base */
body { background: var(--white); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); font-weight: 650; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.label { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; color: var(--emerald); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--emerald-600); }

/* 03 Audience strip & header */
.strip { background: var(--slate-900); color: var(--slate-300); font-size: 0.88rem; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.switch { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--slate-800); }
.switch a { padding: 0.3rem 0.9rem; border-radius: 6px; color: var(--slate-300); text-decoration: none; font-weight: 500; }
.switch a:hover { color: #fff; }
.switch a[aria-current="page"] { background: var(--white); color: var(--ink); }
.strip p { margin: 0; }
.strip__info { display: none; }
@media (min-width: 700px) { .strip__info { display: block; } }
.strip :focus-visible { outline-color: var(--emerald-200); }
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--slate-200); backdrop-filter: saturate(1.4) blur(6px); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1.2rem; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.logo span { color: var(--slate-500); font-weight: 500; }
.gnav { display: none; }
.hd__end { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
.hd .hd__tel, .hd .hd__cta { display: none; }
.hd__tel { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hd__tel:hover { color: var(--emerald); }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--slate-200); border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 939px) {
  .gnav { position: absolute; top: 100%; left: -1rem; right: -1rem; flex-direction: column; padding: 0.6rem 1rem 1.2rem; background: var(--white); border-bottom: 1px solid var(--slate-200); box-shadow: 0 20px 30px -24px rgba(15,23,42,0.4); }
  .gnav.is-open { display: flex; }
  .gnav a { display: flex; justify-content: space-between; padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--slate-100); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.08rem; }
  .gnav a::after { content: "→"; color: var(--slate-500); }
  .gnav a[aria-current="page"] { color: var(--emerald); }
}
@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .hd .hd__tel { display: inline; }
  .hd .hd__cta { display: inline-flex; }
  .gnav { display: flex; gap: 0.2rem; margin-left: 1.6rem; }
  .gnav a { padding: 0.5rem 0.8rem; border-radius: 8px; color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
  .gnav a:hover { background: var(--slate-100); color: var(--ink); }
  .gnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--emerald-600); border-radius: 8px 8px 0 0; }
}

/* 04 Dock (under 940px): split rounded call / request */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: 1fr 1.25fr; overflow: hidden; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(15,23,42,0.55); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 54px; text-decoration: none; font-weight: 600; }
.dock svg { width: 18px; height: 18px; }
.dock .dk-call { background: var(--slate-900); color: #fff; }
.dock .dk-req { background: var(--emerald); color: #fff; }
.dock a:focus-visible { outline: 3px solid var(--emerald-200); outline-offset: -5px; }
@media (min-width: 940px) { .dock { display: none; } }
@media (max-width: 939px) { .ft { padding-bottom: 84px; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn svg { width: 1em; height: 1em; }
.btn--em { background: var(--emerald); color: #fff; }
.btn--em:hover { background: #065f46; color: #fff; }
.btn--slate { background: var(--slate-900); color: #fff; }
.btn--slate:hover { background: var(--slate); color: #fff; }
.btn--line { border-color: var(--slate-300); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--emerald-50); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero & route panel */
.hero { background: linear-gradient(180deg, var(--slate-50), var(--white)); border-bottom: 1px solid var(--slate-200); }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; padding-block: clamp(2.6rem, 2rem + 3vw, 5rem); }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero .wrap > * { min-width: 0; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; max-width: 40ch; color: var(--slate); }
.routes { padding: 1.4rem; border-radius: 16px; background: var(--white); border: 1px solid var(--slate-200); box-shadow: 0 30px 50px -40px rgba(15,23,42,0.6); }
.routes h2 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.routes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.routes a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem; padding: 0.95rem 1rem; border-radius: var(--r); border: 1px solid var(--slate-200); color: var(--ink); text-decoration: none; transition: border-color 0.2s, background-color 0.2s; }
.routes a:hover { border-color: var(--emerald-600); background: var(--emerald-50); }
.routes a::after { content: "→"; color: var(--slate-500); }
.routes i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--slate-100); color: var(--slate); font-style: normal; }
.routes li:first-child i { background: var(--red-50); color: var(--red); }
.routes i svg { width: 20px; height: 20px; }
.routes b { display: block; font-weight: 600; }
.routes small { display: block; color: var(--muted); font-size: 0.86rem; }

/* 07 Page heads */
.phead { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.phead .wrap { padding-block: clamp(2.2rem, 1.8rem + 2.2vw, 3.8rem); }
.phead h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.3rem); max-width: 22ch; }
.phead p { font-size: 1.12rem; max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--slate-300); }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--slate { background: var(--slate-50); }
.sec--dark { background: var(--slate-900); color: var(--slate-300); }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .label { color: var(--emerald-200); }
.sec--dark a:not(.btn) { color: var(--emerald-200); }
.sec--dark :focus-visible { outline-color: var(--emerald-200); }
.head { display: grid; gap: 0.6rem 3rem; margin-bottom: 2.4rem; }
@media (min-width: 900px) { .head { grid-template-columns: 1fr 1fr; align-items: end; } }
.head h2 { margin: 0; }
.zig { display: grid; gap: 2rem; align-items: center; padding-block: 2.4rem; border-top: 1px solid var(--slate-200); }
.zig:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .zig { grid-template-columns: 1fr 1fr; gap: 4rem; } .zig--flip > figure { order: 2; } }
.zig > * { min-width: 0; }
.zig ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
@media (min-width: 560px) { .zig ul { grid-template-columns: 1fr 1fr; } }
.zig li { position: relative; padding-left: 1.5rem; font-size: var(--f-sm); }
.zig li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--emerald-600); border-bottom: 2px solid var(--emerald-600); transform: rotate(-45deg); }
.grid4 { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.grid4 li { padding: 1.4rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--slate-200); margin: 0; }
.sec--dark .grid4 li { background: var(--slate-800); border-color: var(--slate); }
.grid4 h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.grid4 p { margin: 0; font-size: var(--f-sm); }
.band { background: var(--emerald); color: #d1fae5; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: clamp(2.2rem, 1.8rem + 2vw, 3.2rem); }
.band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.band :focus-visible { outline-color: #fff; }
.two { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }
.two > * { min-width: 0; }
.area { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.area li { padding: 0.35rem 0.8rem; border-radius: 6px; background: var(--slate-100); font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.map-frame { display: block; width: 100%; height: clamp(300px, 36vw, 420px); border: 1px solid var(--slate-200); border-radius: var(--r); }

/* 09 Triage (signature) */
.triage-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.triage-tools[hidden] { display: none; }
.triage-tools label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.triage-tools input { width: min(100%, 360px); }
.triage-tools output { font-size: 0.9rem; color: var(--muted); }
.legend { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
@media (min-width: 860px) { .legend { grid-template-columns: repeat(3, 1fr); } }
.legend > div { padding: 1.1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--slate-200); border-top: 4px solid var(--red); }
.legend > div:nth-child(2) { border-top-color: var(--amber); }
.legend > div:nth-child(3) { border-top-color: var(--blue); }
.legend h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.legend p { margin: 0; font-size: var(--f-sm); }
.scroll { overflow-x: auto; }
.triage { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--f-sm); }
.triage caption { text-align: left; }
.triage th, .triage td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-200); }
.triage thead th { background: var(--slate-900); color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.triage thead th:first-child { border-radius: var(--r) 0 0 0; }
.triage thead th:last-child { border-radius: 0 var(--r) 0 0; }
.triage .grp th { padding-top: 1.2rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--white); }
.triage .grp--now th { color: var(--red); }
.triage .grp--day th { color: var(--amber); }
.triage .grp--wait th { color: var(--blue); }
.triage tbody th[scope="row"] { font-weight: 600; color: var(--ink); width: 34%; }
.triage tr[hidden] { display: none; }
.pill { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--slate-100); font-size: 0.78rem; font-weight: 600; color: var(--slate); white-space: nowrap; }
.safety { padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--red-50); border: 1px solid #fecaca; color: var(--ink); }
.safety h2 { font-size: 1.2rem; color: var(--red); margin-bottom: 0.3rem; }

/* 10 FAQ */
.faq { display: grid; gap: 0.6rem; }
.fq { border: 1px solid var(--slate-200); border-radius: var(--r); background: var(--white); }
.fq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.fq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--slate-100); color: var(--slate); font-weight: 500; }
.fq[open] summary::after { content: "–"; background: var(--emerald-50); color: var(--emerald); }
.fq > div { padding: 0 1.2rem 1.1rem; font-size: var(--f-sm); }

/* 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: 600; color: var(--ink); font-size: 0.93rem; }
.req { color: var(--emerald); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], select, textarea { width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--slate-300); border-radius: 8px; }
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='%23334155' stroke-width='2.4'%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: 16px; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--emerald-600); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.card { padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border-radius: 16px; background: var(--white); border: 1px solid var(--slate-200); }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--slate-200); }
.kv dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); padding-top: 0.15rem; }
.kv dd { margin: 0; color: var(--ink); }
.kv .big { font-size: 1.5rem; font-weight: 650; color: var(--ink); text-decoration: none; }

/* 12 Footer */
.ft { background: var(--slate-900); color: var(--slate-300); font-size: var(--f-sm); }
.ft .wrap { display: grid; gap: 2rem; padding-block: 3rem 1.6rem; }
@media (min-width: 820px) { .ft .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ft h2 { color: #fff; font-size: 0.95rem; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--emerald-200); }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--slate-800); font-size: 0.84rem; }
.ft__base p { margin: 0; max-width: none; }

/* 13 Images */
.img-placeholder { background: var(--slate-100); border: 1px dashed var(--slate-300); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: 14px; }
figcaption { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }
.mt { margin-top: 2rem; }
.triage td:nth-child(2) { width: 11rem; white-space: nowrap; }
