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

/* ==========================================================================
   RadiantPath HVAC Studio — radianthvac.xyz
   A reading site: one serif family, a narrow text column, a sticky side card
   on the home page and a sticky contents list on inner pages.
   01 Tokens · 02 Base · 03 Header & call strip · 04 Layout columns
   05 Aside card & contents · 06 Blocks · 07 Power ladder (signature)
   08 FAQ · 09 Form · 10 Footer · 11 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --ink: #1d1f24; --text: #33363d; --muted: #5d616b; --rule: #e4e1d8; --rule-2: #cfcabc;
  --paper: #fbfaf6; --white: #ffffff; --cream: #f3f0e7;
  --indigo: #4b3fa0; --indigo-dark: #372d7e; --indigo-soft: #ecebf7; --indigo-light: #c3bdf0;
  --focus: #4b3fa0; --err: #a4161a; --ok: #1f6f3a;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --f-sm: 0.95rem; --f0: clamp(1.06rem, 1.02rem + 0.2vw, 1.16rem); --f1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --f2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem); --f3: clamp(2.2rem, 1.7rem + 2.4vw, 3.5rem);
  --wrap: 1120px; --col: 680px;
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--serif); font-size: var(--f0); line-height: 1.75; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.18; text-wrap: balance; }
h1 { font-size: var(--f3); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--f2); margin-top: 2.6rem; }
h3 { font-size: var(--f1); margin-top: 1.8rem; }
p { margin: 0 0 1.1em; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-dark); text-decoration-thickness: 2px; }
strong, b { color: var(--ink); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.lede { font-size: var(--f1); line-height: 1.55; color: var(--ink); }
.meta { font-size: var(--f-sm); color: var(--muted); font-style: italic; }
.small { font-size: var(--f-sm); color: var(--muted); }

/* 03 Header & call strip */
.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.title-mark { color: var(--ink); text-decoration: none; line-height: 1.1; }
.title-mark b { display: block; font-size: 1.5rem; font-style: italic; }
.title-mark span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc-nav { display: none; }
.toc-nav a { white-space: nowrap; padding: 0.4rem 0.2rem; margin: 0 0.6rem; color: var(--ink); text-decoration: none; font-size: 1rem; }
.toc-nav a:hover { color: var(--indigo); }
.toc-nav a[aria-current="page"] { color: var(--indigo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.masthead__tel { display: none; margin-left: 0.8rem; padding-left: 1.2rem; border-left: 1px solid var(--rule); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; font: inherit; font-size: 1rem; color: var(--ink); background: none; border: 1px solid var(--rule-2); border-radius: 4px; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.strip { background: var(--indigo); color: #fff; font-size: 1rem; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 46px; }
.strip a { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.strip svg { width: 16px; height: 16px; }
.strip :focus-visible { outline-color: #fff; }
@media (max-width: 1099px) {
  .toc-nav { position: absolute; left: 0; right: 0; flex-direction: column; padding: 0.5rem 1.2rem 1.2rem; background: var(--white); border-bottom: 1px solid var(--rule); z-index: 80; }
  .masthead { position: relative; }
  .toc-nav { top: 100%; }
  .toc-nav.is-open { display: flex; }
  .toc-nav a { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
}
@media (min-width: 1100px) {
  .toc-nav { display: flex; align-items: center; margin-left: auto; }
  .masthead__tel { display: inline; }
  .nav-toggle, .strip { display: none; }
  .masthead__cta { margin-left: 1rem; }
}
.masthead .masthead__cta { display: none; }
@media (min-width: 1100px) { .masthead .masthead__cta { display: inline-flex; } }
.actions .button { white-space: normal; }

/* 04 Layout columns */
.page { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.with-aside { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .with-aside { grid-template-columns: minmax(0, var(--col)) 1fr; gap: 4rem; } }
.with-toc { display: grid; gap: 2rem; }
@media (min-width: 980px) { .with-toc { grid-template-columns: 220px minmax(0, var(--col)); gap: 4rem; } }
.doc { min-width: 0; max-width: var(--col); }
.doc > h1 { margin-top: 0; }
.doc > h2:first-child { margin-top: 0; }
.crumbs { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; gap: 0.5rem; font-size: var(--f-sm); color: var(--muted); font-style: italic; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }

/* 05 Aside card & contents */
.glance { align-self: start; padding: 1.5rem; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--indigo); }
@media (min-width: 980px) { .glance { position: sticky; top: 1.5rem; } }
.glance h2 { margin: 0 0 0.8rem; font-size: 1.15rem; }
.glance dl { margin: 0; }
.glance dt { margin-top: 0.8rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 0.1rem 0 0; }
.glance .tel { font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.contents { align-self: start; font-size: var(--f-sm); }
@media (min-width: 980px) { .contents { position: sticky; top: 1.5rem; } }
.contents__title { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contents ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.contents li { margin: 0; }
.contents a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.contents a:hover { border-left-color: var(--indigo); color: var(--indigo); }

/* 06 Blocks */
.button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.3rem; border: 2px solid var(--indigo); border-radius: 4px; background: var(--indigo); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: #fff; }
.button--line { background: transparent; color: var(--indigo); }
.button--line:hover { background: var(--indigo-soft); color: var(--indigo-dark); }
.button svg { width: 1em; height: 1em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0; }
.defs { margin: 1rem 0 1.6rem; border-top: 1px solid var(--rule); }
.defs div { display: grid; gap: 0.2rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .defs div { grid-template-columns: 11rem 1fr; } }
.defs dt { font-weight: 700; color: var(--ink); }
.defs dd { margin: 0; }
.aside-note { margin: 1.8rem 0; padding: 1.1rem 1.3rem; background: var(--indigo-soft); border-left: 4px solid var(--indigo); }
.aside-note p:last-child { margin: 0; }
.warn { margin: 1.8rem 0; padding: 1.1rem 1.3rem; background: #fff4e5; border-left: 4px solid #b45309; }
.warn b { color: #7c2d12; }
.warn p:last-child { margin: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--indigo); border-radius: 2px; }
.towns { font-style: italic; }

/* 07 Power ladder (signature) */
.ladder { margin: 1.4rem 0 0.6rem; padding: 0; list-style: none; }
.ladder li { display: grid; gap: 0.4rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
@media (min-width: 640px) { .ladder li { grid-template-columns: 13rem 1fr; align-items: center; } }
.ladder b { font-size: 1.05rem; }
.ladder .bar { position: relative; height: 22px; background: var(--cream); border-radius: 2px; }
.ladder .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--indigo); }
.ladder .bar i.w1 { width: 12%; } .ladder .bar i.w2 { width: 30%; } .ladder .bar i.w3 { width: 55%; } .ladder .bar i.w4 { width: 100%; }
.ladder .bar span { position: absolute; left: calc(100% + 0px); }
.ladder small { grid-column: 1 / -1; color: var(--muted); font-size: var(--f-sm); }
@media (min-width: 640px) { .ladder small { grid-column: 2; } }
.phase { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 3px double var(--rule-2); }
.phase h2 { margin-top: 0; }
.phase__tag { display: inline-block; margin-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); font-weight: 700; }

/* 08 FAQ */
.faq-plain { margin-top: 1rem; }
.faq-item h3 { margin-top: 1.6rem; font-size: 1.2rem; }
.faq-item p { margin-bottom: 0; }

/* 09 Form */
.form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.field--full, .form__end { grid-column: 1 / -1; }
@media (min-width: 640px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; color: var(--ink); font-size: 1rem; }
.req { color: var(--indigo); }
.opt { font-weight: 400; font-style: italic; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--rule-2); border-radius: 3px; }
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='%234b3fa0' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 15px; padding-right: 2.3rem; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--muted); font-style: italic; }
.map-doc { display: block; width: 100%; aspect-ratio: 16 / 10; min-height: 280px; margin: 1rem 0; border: 1px solid var(--rule); background: var(--cream); }

/* 10 Footer */
.colophon { border-top: 1px solid var(--rule); background: var(--white); font-size: var(--f-sm); }
.colophon .wrap { padding-block: 2rem 2.4rem; }
.colophon p { margin: 0 0 0.4rem; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.8rem 0; }
.colophon a { color: var(--ink); }

/* 11 Images */
figure { margin: 1.6rem 0; }
.img-placeholder { background: var(--cream); border: 1px dashed var(--rule-2); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); font-style: italic; }
