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

/* ==========================================================================
   Inland Empire HVAC — inlandhvac.xyz
   Circle City clockwork: steel blue, tangerine, dials and circles.
   01 Tokens · 02 Base · 03 Header & contact block · 04 Buttons · 05 Hero dial
   06 Page heads · 07 Sections · 08 Time-of-use planner (signature) · 09 FAQ
   10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --steel: #2d3e50; --steel-2: #3b5068; --steel-3: #8aa0b6; --mist: #eef2f5; --white: #ffffff;
  --tang: #ff8a00; --tang-ink: #9a4d00; --tang-soft: #fff0dc; --cool: #2f7fbf;
  --ink: #1b2733; --text: #3a4755; --muted: #5d6b79; --line: #d6dee6;
  --focus: #2d3e50; --err: #b3261e; --ok: #2e6b3a;
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.94rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --f2: clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem); --f3: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);
  --wrap: 1180px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem); --r: 12px;
}

/* 02 Base */
body { background: var(--mist); color: var(--text); font-family: var(--body); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--display); color: var(--ink); font-weight: 700; line-height: 1.08; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--steel-2); text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--tang-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; }
.tick { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; font-family: var(--display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tang-ink); }
.tick::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--tang); }

/* 03 Header & contact block */
.hd { position: sticky; top: 0; z-index: 30; background: var(--steel); color: #dce4ec; }
.hd .wrap { position: relative; display: flex; align-items: stretch; gap: 1rem; min-height: 70px; }
.ie-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.ie-logo svg { width: 42px; height: 42px; flex: none; }
.ie-logo b { display: block; color: #fff; font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.ie-logo small { display: block; color: var(--steel-3); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.inav { display: none; }
.block { display: grid; margin-left: 0.8rem; margin-right: -1rem; background: var(--tang); }
.block a { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0 1rem; color: var(--ink); font-family: var(--display); font-weight: 700; text-decoration: none; white-space: nowrap; }
.block a + a { border-top: 2px solid rgba(27,39,51,0.25); }
.block svg { width: 15px; height: 15px; }
.block a:hover { background: #ffa033; color: var(--ink); }
.block a:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }
.block .b-num { display: none; }
.nav-toggle { flex: none; align-self: center; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 2px solid var(--steel-3); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.hd :focus-visible { outline-color: var(--tang); }
@media (max-width: 1079px) {
  .inav { position: absolute; top: 100%; left: -1rem; right: -1rem; flex-direction: column; padding: 0.6rem 1.2rem 1.4rem; background: var(--steel-2); }
  .inav.is-open { display: flex; }
  .inav a { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
  .inav a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--steel-3); }
  .inav a[aria-current="page"]::before { background: var(--tang); border-color: var(--tang); }
}
@media (max-width: 420px) { .ie-logo small { display: none; } .ie-logo b { font-size: 1.1rem; } .ie-logo svg { width: 36px; height: 36px; } .block a { padding: 0 0.8rem; font-size: 0.95rem; } }
@media (min-width: 560px) { .block .b-num { display: inline; } .block .b-word { display: none; } }
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .inav { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
  .inav a { position: relative; padding: 0.5rem 0.9rem; color: #dce4ec; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1rem; }
  .inav a:hover { color: #fff; }
  .inav a[aria-current="page"] { color: #fff; }
  .inav a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -0.1rem; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--tang); }
  .block { margin-left: 1.4rem; margin-right: 0; }
}

/* 04 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border: 2px solid transparent; border-radius: 999px; font-family: var(--display); font-size: 1.02rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn svg { width: 1em; height: 1em; }
.btn--tang { background: var(--tang); color: var(--ink); }
.btn--tang:hover { background: #ffa033; color: var(--ink); }
.btn--steel { background: var(--steel); color: #fff; }
.btn--steel:hover { background: var(--steel-2); color: #fff; }
.btn--line { border-color: var(--steel); color: var(--steel); background: transparent; }
.btn--line:hover { background: var(--steel); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 05 Hero dial */
.hero { background: var(--white); }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; padding-block: clamp(2.8rem, 2.2rem + 3vw, 5rem); }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero .wrap > * { min-width: 0; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); max-width: 38ch; }
.dial { width: min(100%, 420px); margin-inline: auto; }
.dial svg { display: block; width: 100%; height: auto; }
.dial figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.88rem; color: var(--muted); }
.band img, .band .img-placeholder { width: 100%; height: clamp(220px, 30vw, 420px); object-fit: cover; border-radius: 0; }

/* 06 Page heads */
.phead { background: var(--white); border-bottom: 1px solid var(--line); }
.phead .wrap { padding-block: clamp(2.4rem, 2rem + 2.4vw, 4rem); }
.phead h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); max-width: 20ch; }
.phead p { font-size: 1.12rem; max-width: 56ch; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.88rem; }
.crumbs li + li::before { content: "○"; margin-right: 0.5rem; color: var(--tang-ink); font-size: 0.7rem; vertical-align: 1px; }

/* 07 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--steel { background: var(--steel); color: #dce4ec; }
.sec--steel h2, .sec--steel h3 { color: #fff; }
.sec--steel .tick { color: var(--tang); }
.sec--steel a:not(.btn) { color: var(--tang); }
.sec--steel :focus-visible { outline-color: var(--tang); }
.circles { display: grid; gap: 1.2rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .circles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .circles { grid-template-columns: repeat(4, 1fr); } }
.circles li { display: grid; justify-items: center; text-align: center; gap: 0.6rem; margin: 0; }
.circles .c { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--steel); background: var(--white); color: var(--steel); }
.circles li:nth-child(2) .c { border-color: var(--tang); color: var(--tang-ink); }
.circles li:nth-child(3) .c { border-color: var(--cool); color: var(--cool); }
.circles .c svg { width: 44px; height: 44px; }
.circles h3 { margin: 0; font-size: 1.15rem; }
.circles p { margin: 0; font-size: var(--f-sm); max-width: 28ch; }
.pair { display: grid; gap: 1.4rem; }
@media (min-width: 880px) { .pair { grid-template-columns: 1fr 1fr; } }
.card { position: relative; overflow: hidden; padding: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--mist); pointer-events: none; }
.card--steel { background: var(--steel); color: #dce4ec; border-color: var(--steel); }
.card--steel::after { border-color: rgba(255,255,255,0.06); }
.card--steel h2, .card--steel h3 { color: #fff; }
.card--steel :focus-visible { outline-color: var(--tang); }
.card figure { margin-bottom: 1.2rem; }
.card ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.card li { display: flex; gap: 0.6rem; padding: 0.4rem 0; }
.card li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.55rem; border-radius: 50%; background: var(--tang); }
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }
.split--top { align-items: start; }
.dots { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }
.dots li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; margin: 0; }
.dots li::before { content: ""; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 3px solid var(--tang); background: var(--tang-soft); }
.sec--steel .dots li::before { background: transparent; }
.dots h3 { font-size: 1.12rem; margin-bottom: 0.15rem; }
.dots p { margin: 0; font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 440px); border: 0; border-radius: var(--r); background: var(--white); }
.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.towns li { padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--white); border: 2px solid var(--line); font-family: var(--display); font-weight: 600; color: var(--ink); }

/* 08 Time-of-use planner (signature) */
.plan { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.plan__in { display: grid; gap: 1rem; }
@media (min-width: 620px) { .plan__in { grid-template-columns: 1fr 1fr 1fr; } }
.plan label { display: block; margin-bottom: 0.35rem; font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.day { margin-top: 1.4rem; }
.day[hidden] { display: none; }
.day__bar { display: flex; height: 38px; border-radius: 19px; overflow: hidden; border: 2px solid var(--steel); }
.day__bar span { display: grid; place-items: center; min-width: 0; font-size: 0.72rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.day__bar .s-norm { background: var(--steel-3); color: var(--ink); }
.day__bar .s-pre { background: var(--cool); }
.day__bar .s-peak { background: var(--tang); color: var(--ink); }
.day__hours { display: flex; justify-content: space-between; margin-top: 0.3rem; font-size: 0.75rem; color: var(--muted); }
.sched { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.sched li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--mist); margin: 0; }
.sched b { font-family: var(--display); }
@media (max-width: 440px) { .sched li { grid-template-columns: 1fr; gap: 0.1rem; } }

/* 09 FAQ */
.faq { max-width: 880px; display: grid; gap: 0.6rem; }
.iq { border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.iq summary { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.iq summary::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--steel-3); transition: all 0.2s; }
.iq[open] summary::before { border-color: var(--tang); background: var(--tang); box-shadow: inset 0 0 0 3px var(--white); }
.iq > div { padding: 0 1.2rem 1.1rem 3.3rem; font-size: var(--f-sm); }

/* 10 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(--tang-ink); }
.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.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 10px; }
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='%232d3e50' 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(--steel); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.clock { display: grid; place-items: center; text-align: center; aspect-ratio: 1; max-width: 340px; margin-inline: auto; padding: 2rem; border-radius: 50%; background: var(--steel); color: #dce4ec; box-shadow: 0 0 0 12px var(--white), 0 0 0 14px var(--line); }
.clock h2 { color: #fff; font-size: 1.3rem; margin-bottom: 0.2rem; }
.clock .big { display: block; margin: 0.2rem 0 0.6rem; color: var(--tang); font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; text-decoration: none; }
.clock a { color: var(--tang); }
.clock p { margin: 0; font-size: 0.92rem; }
.clock :focus-visible { outline-color: var(--tang); }

/* 11 Footer */
.ft { background: var(--steel); color: #b9c7d4; 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; } }
.ft h2 { color: #fff; font-size: 1.15rem; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--tang); }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--steel-2); font-size: 0.85rem; }
.ft__base p { margin: 0; max-width: none; }

/* 12 Images */
.img-placeholder { background: #dfe6ec; border: 1px dashed var(--steel-3); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
figcaption { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }
.mt { margin-top: 2rem; }
