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

/* ==========================================================================
   Bradley HVAC Associates — bradleyhvac.xyz
   THE DEVICE: an almanac. A twelve-month band runs across the top of the home
   page, a temperature scale rules the header, and the signature page is a
   sun-path diagram. West Texas, organised by the calendar rather than by service.
   01 Tokens · 02 Base · 03 Header · 04 Call tab · 05 Buttons · 06 Almanac
   07 Hero · 08 Page heads · 09 Sections · 10 Sun path (signature)
   11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --mesq: #2a2018; --mesq-2: #3d3025; --mesq-soft: #e4ddd2; --dust: #f2ece1; --dust-2: #e9e1d2; --white: #ffffff;
  --turq: #2a9d8f; --turq-dark: #1e7268; --turq-soft: #ddf0ec;
  --ink: #1e1710; --text: #4e463b; --muted: #726858; --line: #d8cfbe;
  --focus: #1e7268; --err: #a02820; --ok: #1e7268;
  --disp: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.07rem);
  --f1: clamp(1.18rem, 1.05rem + 0.55vw, 1.44rem);
  --f2: clamp(1.75rem, 1.35rem + 1.8vw, 2.6rem); --f3: clamp(2.15rem, 1.5rem + 3.1vw, 3.7rem);
  --r: 3px; --wrap: 1160px; --pad-y: clamp(3rem, 2.3rem + 3.6vw, 5.2rem);
}

/* 02 Base */
body { background: var(--dust); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.14; letter-spacing: -0.015em; 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: 66ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--turq-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; }
.mark { display: block; margin-bottom: 0.6rem; font-family: var(--disp); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--turq-dark); }
.sec--mesq .mark, .phead .mark { color: #7fd8cd; }
.mt { margin-top: 2rem; }

/* 03 Header — dust bar over a temperature scale rule */
.hd { position: sticky; top: 0; z-index: 30; background: var(--dust); }
.hd .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: 62px; }
.br-logo { display: inline-flex; align-items: baseline; gap: 0.45rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.br-logo b { font-family: var(--disp); font-size: 1.42rem; font-weight: 700; letter-spacing: -0.03em; }
.br-logo small { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--turq-dark); }
/* The scale reads cool to hot, left to right — a West Texas year in one rule. */
.hd__scale { display: flex; height: 6px; }
.hd__scale span { flex: 1 1 0; }
.hd__scale span:nth-child(1) { background: #3d6fa8; }
.hd__scale span:nth-child(2) { background: #5b93bd; }
.hd__scale span:nth-child(3) { background: #8fb9c4; }
.hd__scale span:nth-child(4) { background: #cbc3a3; }
.hd__scale span:nth-child(5) { background: #e0b46a; }
.hd__scale span:nth-child(6) { background: #dd9440; }
.hd__scale span:nth-child(7) { background: #cf6f2c; }
.hd__scale span:nth-child(8) { background: #c14f22; }
.hd__tel { display: none; align-items: center; gap: 0.4rem; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hd__tel svg { width: 16px; height: 16px; color: var(--turq-dark); flex: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--mesq); cursor: pointer; }
.nav-toggle svg { width: 19px; height: 19px; }
.brnav { display: none; }
@media (max-width: 1019px) {
  .brnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--dust); border-bottom: 1px solid var(--line); }
  .brnav.is-open { display: flex; }
  .brnav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.18rem; font-weight: 700; text-decoration: none; }
  .brnav a[aria-current="page"] { color: var(--turq-dark); }
}
@media (max-width: 460px) { .br-logo small { display: none; } .hd .btn { padding: 0.6rem 0.85rem; font-size: 0.9rem; } }
@media (min-width: 1020px) {
  .hd .wrap { min-height: 74px; gap: 1.4rem; }
  .nav-toggle { display: none; }
  .hd__tel { display: inline-flex; }
  .brnav { display: flex; gap: 1.4rem; }
  .brnav a { padding: 0.3rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .brnav a:hover { color: var(--ink); }
  .brnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--turq); }
}

/* 04 Call tab — phones only, a vertical tab on the right edge */
.calltab { position: fixed; right: 0; top: 50%; z-index: 40; display: flex; align-items: center; gap: 0.45rem; padding: 0.9rem 0.5rem; transform: translateY(-50%); background: var(--turq-dark); color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; writing-mode: vertical-rl; border-radius: var(--r) 0 0 var(--r); box-shadow: -3px 0 14px rgba(42,32,24,0.28); }
.calltab svg { width: 15px; height: 15px; }
.calltab:hover { background: var(--mesq); color: #fff; }
.calltab:focus-visible { outline-color: #7fd8cd; }
@media (min-width: 1020px) { .calltab { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.76rem 1.35rem; border: 0; border-radius: var(--r); background: var(--mesq); color: #fff; font-family: var(--disp); font-size: 1.06rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s; }
.btn:hover { background: var(--turq-dark); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--turq { background: var(--turq-dark); }
.btn--turq:hover { background: var(--mesq); }
.btn--line { background: transparent; color: var(--mesq); box-shadow: inset 0 0 0 2px var(--mesq); }
.btn--line:hover { background: var(--mesq); color: #fff; }
.btn--dust, .phead a.btn--dust, .sec--mesq a.btn--dust, .sun__note a.btn--dust { background: var(--dust); color: var(--ink); }
.btn--dust:hover, .phead a.btn--dust:hover, .sec--mesq a.btn--dust:hover, .sun__note a.btn--dust:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* 06 The almanac band */
.almanac { background: var(--mesq); color: #cdc3b6; padding-block: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem); }
.almanac h2 { color: #fff; font-size: 1.24rem; }
.almanac__intro { font-size: var(--f-sm); max-width: 62ch; margin-bottom: 1.3rem; }
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.18); }
@media (min-width: 560px) { .months { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .months { grid-template-columns: repeat(6, 1fr); } }
.months li { padding: 0.7rem 0.75rem; background: var(--mesq); font-size: 0.83rem; line-height: 1.45; }
.months b { display: block; margin-bottom: 0.1rem; font-family: var(--disp); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7fd8cd; }
.months li.pk { background: var(--mesq-2); }
.months li.pk b { color: #ffd9a3; }

/* 07 Hero */
.hero { padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 3.2rem; } }
.hero h1 { max-width: 16ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.hero img, .hero .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* 08 Page heads */
.phead { padding-block: clamp(2.2rem, 1.8rem + 2.4vw, 3.4rem); background: var(--mesq); color: #cdc3b6; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.05rem; max-width: 58ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #7fd8cd; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.84rem; }
.crumbs li + li::before { content: "\2192"; margin-right: 0.5rem; color: #7fd8cd; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--dust { background: var(--dust-2); }
.sec--mesq { background: var(--mesq); color: #cdc3b6; }
.sec--mesq h2, .sec--mesq h3, .sec--mesq b { color: #fff; }
.sec--mesq a:not(.btn) { color: #fff; }
.sec--mesq :focus-visible { outline-color: #7fd8cd; }
.head { max-width: 640px; margin-bottom: 2.2rem; }

.entries { margin: 0; padding: 0; list-style: none; }
.entries li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.entries li:first-child { border-top: 2px solid var(--mesq); }
.sec--mesq .entries li { border-color: rgba(255,255,255,0.22); }
@media (min-width: 840px) { .entries li { display: grid; grid-template-columns: 13rem 1fr; gap: 2.4rem; align-items: baseline; } }
.entries b { font-family: var(--disp); font-size: 1.2rem; color: var(--ink); }
.sec--mesq .entries b { color: #fff; }
.entries p { margin: 0; font-size: var(--f-sm); }
.twoup { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .twoup { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; } }
.twoup article { padding: clamp(1.3rem, 1.1rem + 1.2vw, 1.9rem); background: var(--white); border-radius: var(--r); border-top: 4px solid var(--turq); }
.twoup h3 { font-size: 1.3rem; }
.twoup ul { margin: 0.8rem 0 0; padding-left: 1.1em; font-size: var(--f-sm); }
.twoup li { margin-bottom: 0.3rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } .split--flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split img, .split .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.plainlist { margin: 0; padding: 0; list-style: none; }
.plainlist li { display: grid; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.sec--mesq .plainlist li { border-bottom-color: rgba(255,255,255,0.22); }
.plainlist b { font-family: var(--disp); font-size: 1.1rem; }
.plainlist span { font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 400px); border-radius: var(--r); background: var(--mesq-soft); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; } }

/* 10 Sun path (signature) */
.sun { display: grid; gap: 1.8rem; }
@media (min-width: 980px) { .sun { grid-template-columns: 1.1fr 0.9fr; gap: 2.6rem; align-items: start; } }
.sun__stage { padding: clamp(1.2rem, 1rem + 1.4vw, 1.8rem); background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.sun__svg { width: 100%; height: auto; }
.sun__svg .sky { fill: #fbf7ef; }
.sun__svg .arc { fill: none; stroke: #d8cfbe; stroke-width: 2; stroke-dasharray: 5 6; }
.sun__svg .ground { stroke: #2a2018; stroke-width: 3; }
.sun__svg .house { fill: #efe7d8; stroke: #2a2018; stroke-width: 3; }
.sun__svg .face { fill: #efe7d8; stroke: #2a2018; stroke-width: 3; transition: fill 0.25s; }
.sun__svg .disc { fill: #e8a33d; }
.sun__svg .lbl { font-family: system-ui, sans-serif; font-size: 13px; fill: #726858; }
.sun__svg .lbl--w { fill: #ffffff; font-weight: 700; }
[data-face~="east"] #f-east, [data-face~="south"] #f-south, [data-face~="west"] #f-west, [data-face~="roof"] #f-roof { fill: #e8a33d; }
.sun__ctl { margin-top: 1.2rem; }
.sun__ctl label { display: block; margin-bottom: 0.35rem; font-family: var(--disp); font-weight: 700; color: var(--ink); }
.sun__ctl output { display: block; margin-top: 0.4rem; font-family: var(--disp); font-size: 1.5rem; font-weight: 700; color: var(--turq-dark); }
input[type="range"] { width: 100%; accent-color: #2a9d8f; }
.sun__note { padding: clamp(1.3rem, 1.1rem + 1.4vw, 1.9rem); background: var(--mesq); color: #cdc3b6; border-radius: var(--r); }
.sun__note h2 { color: #fff; font-size: 1.05rem; }
.sun__note b { color: #fff; }
.sun__note .title { display: block; margin: 0.2rem 0 0.8rem; font-family: var(--disp); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 700; color: #ffd9a3; line-height: 1.2; }
.sun__note ul { margin: 0.9rem 0 0; padding-left: 1.15em; font-size: var(--f-sm); }
.sun__note li { margin-bottom: 0.45rem; }
.sun__note .caveat { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.24); font-size: 0.86rem; color: #a99d8d; }
.sun__note :focus-visible { outline-color: #7fd8cd; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; border-top: 2px solid var(--mesq); }
.brq { border-bottom: 1px solid var(--line); }
.brq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--disp); font-weight: 700; font-size: 1.16rem; color: var(--ink); list-style: none; cursor: pointer; }
.brq summary::after { content: "+"; flex: none; color: var(--turq-dark); font-family: var(--sans); }
.brq[open] summary::after { content: "\2013"; }
.brq > div { padding: 0 0 1.1rem; }

/* 12 Form & contact */
.form { display: grid; gap: 1.05rem 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.95rem; }
.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.76rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c9bfab; 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='%232a2018' 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(--mesq); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.45rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid #c9bfab; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--mesq); border-color: var(--mesq); 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.85rem; color: var(--muted); }
.contact { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.3rem 1.4rem; background: var(--white); border-radius: var(--r); border-left: 4px solid var(--turq); }
.side__card h2 { font-size: 1.14rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.55rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #a89c8c; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #7fd8cd; }
.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.35rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7fd8cd; }
.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.81rem; }

/* 14 Images */
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.img-placeholder { background: var(--mesq-soft); border: 1px dashed #bfb3a1; border-radius: var(--r); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
