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

/* ==========================================================================
   ClearPeak Coatings HVAC — clearpeakhvac.xyz
   A service-desk site: graphite and cyan, a bento home page, a bottom
   action bar on phones with the menu as a bottom sheet.
   01 Tokens · 02 Base · 03 Desk bar & header · 04 Bento · 05 Page heads
   06 Buttons · 07 Blocks · 08 Economizer states (signature) · 09 FAQ
   10 Form & contact · 11 Footer & action bar · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --graphite: #1b1f24; --g2: #2a3037; --g3: #3d454e; --text: #3a4149; --muted: #5a626b; --line: #dde2e5;
  --paper: #f2f4f5; --white: #ffffff; --mist: #e8edef;
  --cyan: #0aa2c0; --cyan-hover: #34bdd8; --cyan-ink: #07748a; --cyan-soft: #dff4f8; --cyan-light: #7fd8ea;
  --focus: #07748a; --err: #b42318; --ok: #1f6f3a;
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --f2: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem); --f3: clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);
  --wrap: 1240px; --pad-y: clamp(3rem, 2.2rem + 3.5vw, 5.2rem); --r: 14px; --gap: 14px;
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.45em; font-weight: 700; color: var(--graphite); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); line-height: 1.22; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--cyan-ink); text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
strong, b { color: var(--graphite); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 1.6rem, var(--wrap)); margin-inline: auto; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.8rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-ink); }
.tag::before { content: ""; width: 8px; height: 8px; background: var(--cyan); }

/* 03 Desk bar & header */
.desk { background: var(--graphite); color: #b9c1c8; font-size: 0.85rem; }
.desk .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.desk b { color: #fff; font-weight: 500; }
.desk a { color: var(--cyan-light); font-weight: 700; text-decoration: none; white-space: nowrap; }
.desk :focus-visible { outline-color: var(--cyan-light); }
.desk__hours, .desk__sub { display: none; }
@media (min-width: 760px) { .desk__hours, .desk__sub { display: inline; } }
.top { position: sticky; top: 0; z-index: 90; background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.peak { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--graphite); text-decoration: none; }
.peak svg { width: 36px; height: 36px; flex: none; }
.peak b { font-size: 1.3rem; font-weight: 700; }
.peak small { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.menu { display: none; }
.menu a { padding: 0.5rem 0.85rem; color: var(--graphite); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--cyan-ink); }
.menu a[aria-current="page"] { font-weight: 700; text-decoration: underline dotted var(--cyan); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.top .top__cta { display: none; }
@media (min-width: 1020px) {
  .menu { display: flex; margin-left: auto; }
  .top .top__cta { display: inline-flex; margin-left: 0.6rem; }
}
@media (max-width: 1019px) {
  .menu { position: fixed; left: 0; right: 0; bottom: 60px; z-index: 96; flex-direction: column; padding: 1rem 1rem 1.4rem; background: var(--white); border-top: 3px solid var(--cyan); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 40px -20px rgba(27,31,36,0.45); }
  .menu.is-open { display: flex; }
  .menu a { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .menu a[aria-current="page"] { text-underline-offset: 6px; }
}

/* 04 Bento */
.bento { display: grid; gap: var(--gap); padding-block: var(--gap) clamp(2rem, 1.5rem + 2vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); min-width: 0; }
.tile--hero { background: var(--white); }
@media (min-width: 720px) { .tile--hero { grid-column: span 2; } }
@media (min-width: 1020px) { .tile--hero { grid-row: span 2; justify-content: center; } .tile--img { grid-column: span 2; } .tile--eco { grid-column: span 2; } }
.tile--hero h1 { max-width: 14ch; }
.tile--hero p { font-size: var(--f1); line-height: 1.45; }
.tile--img { padding: 0; overflow: hidden; }
.tile--img figure, .tile--img figure > * { height: 100%; }
.tile--img img, .tile--img .img-placeholder { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 0; }
.tile--dark { background: var(--graphite); border-color: var(--graphite); color: #c3cad0; }
.tile--dark h2, .tile--dark h3 { color: #fff; }
.tile--dark .tag { color: var(--cyan-light); }
.tile--dark a { color: var(--cyan-light); }
.tile--dark :focus-visible { outline-color: var(--cyan-light); }
.tile--cyan { background: var(--cyan); border-color: var(--cyan); color: var(--graphite); }
.tile--cyan .tag { color: var(--graphite); }
.tile--cyan .tag::before { background: var(--graphite); }
.tile--cyan a { color: var(--graphite); font-weight: 700; }
.tile--cyan :focus-visible { outline-color: var(--graphite); }
.tile h2 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.tile p { font-size: var(--f-sm); }
.tile .go { margin-top: auto; font-weight: 700; text-decoration: none; }
.tile .go::after { content: " →"; }
.tile--call .num { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); font-weight: 700; color: var(--graphite); text-decoration: none; }

/* 05 Page heads */
.phead { padding-block: clamp(2.2rem, 1.8rem + 2.4vw, 3.8rem); background: var(--graphite); color: #c3cad0; }
.phead h1 { color: #fff; font-size: clamp(2rem, 1.6rem + 2.2vw, 3.2rem); max-width: 20ch; }
.phead p { font-size: var(--f1); line-height: 1.45; max-width: 54ch; }
.phead .tag { color: var(--cyan-light); }
.crumbs { display: flex; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: var(--f-sm); }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--cyan-light); }
.crumbs a { color: #fff; }
.phead :focus-visible { outline-color: var(--cyan-light); }

/* 06 Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border: 2px solid transparent; border-radius: 6px; font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 1em; height: 1em; }
.btn--cyan { background: var(--cyan); color: var(--graphite); }
.btn--cyan:hover { background: var(--cyan-hover); color: var(--graphite); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: var(--g3); color: #fff; }
.btn--line { border-color: var(--graphite); color: var(--graphite); }
.btn--line:hover { background: var(--graphite); color: #fff; }

/* 07 Blocks */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.lede-row { display: grid; gap: 0.6rem 3rem; margin-bottom: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
@media (min-width: 900px) { .lede-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.lede-row h2 { margin: 0; }
.cells { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .cells { grid-template-columns: repeat(3, 1fr); } }
.cell { padding: 1.4rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.sec--white .cell { background: var(--paper); }
.cell .n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 0.8rem; border-radius: 6px; background: var(--graphite); color: var(--cyan-light); font-weight: 700; }
.cell h3 { font-size: 1.15rem; }
.cell p { font-size: var(--f-sm); }
.split { display: grid; gap: clamp(1.6rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }
.spec { margin: 0; border-top: 2px solid var(--graphite); }
.spec div { display: grid; gap: 0.2rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .spec div { grid-template-columns: 12rem 1fr; } }
.spec dt { font-weight: 700; color: var(--graphite); }
.spec dd { margin: 0; font-size: var(--f-sm); }
.map-tile { width: 100%; aspect-ratio: 16 / 10; min-height: 260px; border-radius: var(--r); background: var(--mist); }

/* 08 Economizer states (signature) */
.states { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .states { grid-template-columns: repeat(3, 1fr); } }
.state { padding: 1.3rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.state svg { width: 100%; height: auto; margin-bottom: 0.8rem; background: var(--paper); border-radius: 10px; }
.state h3 { font-size: 1.15rem; }
.state p { font-size: var(--f-sm); }
.state .when { display: inline-block; margin-bottom: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--cyan-soft); color: var(--cyan-ink); font-size: 0.8rem; font-weight: 700; }
.faults { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; font-size: var(--f-sm); }
.faults th, .faults td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.faults thead th { background: var(--graphite); color: #fff; font-weight: 500; }
.faults tbody th { color: var(--graphite); width: 24%; }
.scroll { overflow-x: auto; }
.note-dark { padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--graphite); color: #c3cad0; }
.note-dark h2, .note-dark h3 { color: #fff; font-size: 1.3rem; }
.note-dark a { color: var(--cyan-light); }
.note-dark :focus-visible { outline-color: var(--cyan-light); }

/* 09 FAQ */
.faq { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }
.cqa { border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.cqa summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 700; color: var(--graphite); list-style: none; }
.cqa summary::after { content: "+"; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 4px; background: var(--graphite); color: var(--cyan-light); line-height: 1; }
.cqa[open] summary::after { content: "−"; }
.cqa > div { padding: 0 1.2rem 1.1rem; font-size: var(--f-sm); }

/* 10 Form & contact */
.form { display: grid; gap: 0.9rem 1.1rem; margin-top: 1.2rem; }
@media (min-width: 680px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: var(--f-sm); color: var(--graphite); }
.req { color: var(--cyan-ink); }
.opt { color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.75rem 0.85rem; font: inherit; color: var(--graphite); background: var(--paper); border: 1px solid #c3cbd0; border-radius: 6px; }
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='%2307748a' 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.8rem center; background-size: 15px; padding-right: 2.3rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan-ink); background: var(--white); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.ticket { padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--cyan); }

/* 11 Footer & action bar */
.ftr { background: var(--graphite); color: #aab3ba; font-size: var(--f-sm); }
.ftr__grid { display: grid; gap: 1.8rem; padding-block: 2.6rem 1.6rem; }
@media (min-width: 820px) { .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.ftr h2 { margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-light); }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr :focus-visible { outline-color: var(--cyan-light); }
.ftr__base { padding-block: 1rem; border-top: 1px solid var(--g2); font-size: 0.8rem; }
.ftr__base p { margin: 0; max-width: none; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 97; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--graphite); padding-bottom: env(safe-area-inset-bottom); }
.actionbar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: 60px; padding: 0.3rem; border: 0; background: none; color: #fff; font: inherit; font-size: 0.78rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.actionbar svg { width: 20px; height: 20px; }
.actionbar > :nth-child(2) { background: var(--cyan); color: var(--graphite); }
.actionbar :focus-visible { outline-color: var(--cyan-light); outline-offset: -4px; }
@media (min-width: 1020px) { .actionbar { display: none; } }
@media (max-width: 1019px) { body { padding-bottom: 60px; } }

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