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

/* ==========================================================================
   Cooper HVAC Group — cooperhvac.xyz
   THE DEVICE: the scale rule. A hairline with regular ticks hanging beneath
   it, like the edge of a measuring rule, opens every block, sits under every
   section heading and divides the service rows. Nothing else is decorated.
   01 Tokens · 02 Base · 03 Header · 04 Phone bar · 05 Buttons
   06 Scale rules & blocks · 07 Hero · 08 Page heads · 09 Sections
   10 After hours (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #f7f6f3; --band: #e8e6df; --white: #ffffff;
  --ink: #0f3557; --ink-2: #1a4b78; --ink-l: #8ba3ba;
  --bg2: #e07a1f; --bg-t: #241a10; --bg-d: #a35310; --bg-l: #fdefdf;
  --text: #3f4752; --muted: #5f6772; --line: #d3d0c6;
  --focus: #a35310; --err: #9b2335;
  --disp: "Buenard", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.93rem; --f-xs: 0.78rem; --f0: clamp(1rem, 0.96rem + 0.2vw, 1.07rem);
  --f1: clamp(1.1rem, 1.01rem + 0.4vw, 1.26rem);
  --f2: clamp(1.34rem, 1.14rem + 0.95vw, 1.85rem); --f3: clamp(1.74rem, 1.36rem + 1.9vw, 2.7rem);
  --r: 0px; --lh: 1.74; --wrap: 1100px; --col: 62ch; --hd: 58px;
  --pad-y: clamp(2.7rem, 2.2rem + 2.7vw, 4.3rem);
}
@media (min-width: 900px) { :root { --hd: 68px; } }

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: var(--lh); }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.28; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--bg-d); 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; }
li { margin-bottom: 0.32rem; }
.wrap { width: min(100% - 1.8rem, var(--wrap)); margin-inline: auto; }
.col > * { max-width: var(--col); }
.colc { max-width: var(--col); }
.mark { display: block; margin-bottom: 0.45rem; font-family: var(--sans); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bg-d); }

/* The scale rule */
.scl { height: 13px; margin: 0 0 1.5rem; background-image: linear-gradient(to right, var(--ink) 0 100%), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 13px); background-size: 100% 2px, 100% 8px; background-position: 0 0, 0 2px; background-repeat: no-repeat, repeat-x; }
.scl--bg { background-image: linear-gradient(to right, var(--bg2) 0 100%), repeating-linear-gradient(90deg, var(--bg2) 0 2px, transparent 2px 13px); }
.sec--ink .scl, .hero .scl, .phead .scl { background-image: linear-gradient(to right, var(--bg2) 0 100%), repeating-linear-gradient(90deg, var(--bg2) 0 2px, transparent 2px 13px); }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 2px solid var(--ink); }
.hd__bar .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: var(--hd); }
.cp-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.cp-logo svg { width: 30px; height: 26px; flex: none; }
.cp-logo b { display: block; color: var(--ink); font-family: var(--disp); font-size: 1.12rem; font-weight: 700; line-height: 1.16; }
.cp-logo small { display: block; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bg-d); font-family: var(--sans); }
.hd__tel { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.cpnav { display: none; }
@media (max-width: 899px) {
  .hd__bar .btn { display: none; }
  .cpnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 0.9rem 1rem; background: var(--white); border-bottom: 2px solid var(--ink); }
  .cpnav.is-open { display: flex; }
  .cpnav a { padding: 0.78rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.08rem; font-weight: 700; text-decoration: none; }
  .cpnav a[aria-current="page"] { color: var(--bg-d); }
}
@media (max-width: 400px) { .cp-logo small { display: none; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .cpnav { display: flex; gap: 1.3rem; }
  .cpnav a { position: relative; padding: 0.3rem 0 0.5rem; color: var(--text); font-family: var(--disp); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .cpnav a:hover { color: var(--ink); }
  .cpnav a[aria-current="page"] { color: var(--ink); }
  .cpnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background-image: linear-gradient(to right, var(--bg2) 0 100%), repeating-linear-gradient(90deg, var(--bg2) 0 2px, transparent 2px 9px); background-size: 100% 2px, 100% 6px; background-position: 0 0, 0 2px; background-repeat: no-repeat, repeat-x; }
  .hd__tel { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font-family: var(--disp); font-size: 1.08rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .hd__tel:hover { color: var(--bg-d); }
  .hd__tel svg { width: 0.85em; height: 0.85em; flex: none; }
}

/* 04 Phone bar — one wide gold bar, phones only */
.cpph { display: grid; grid-template-columns: 1fr auto; align-items: stretch; background: var(--bg2); border-bottom: 2px solid var(--ink); }
.cpph a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.55rem 0.9rem 0.6rem; color: var(--bg-t); font-family: var(--disp); font-size: 1.1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cpph a + a { border-left: 2px solid var(--ink); background: var(--ink); color: #fff; }
.cpph svg { width: 0.9em; height: 0.9em; flex: none; }
.cpph :focus-visible { outline-color: var(--ink); outline-offset: -4px; }
.cpph a + a:focus-visible { outline-color: var(--bg2); }
@media (min-width: 900px) { .cpph { display: none; } }
@media (max-width: 360px) { .cpph a { padding-inline: 0.6rem; font-size: 1rem; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.3rem 0.64rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--bg2); color: var(--bg-t); font-family: var(--disp); font-size: 1rem; font-weight: 700; line-height: 1.44; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: #f19040; color: var(--bg-t); }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--paper, .sec--ink a.btn--paper, .hero a.btn--paper, .phead a.btn--paper { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--paper:hover, .sec--ink a.btn--paper:hover, .hero a.btn--paper:hover, .phead a.btn--paper:hover { background: var(--bg-l); border-color: var(--bg-l); color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* 06 Blocks */
.bx { padding: 1.35rem 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); }
.bx > *:last-child { margin-bottom: 0; }
.bx > .scl { margin: -0.35rem 0 1.1rem; }
.bx--ink { background: var(--ink); border-color: var(--ink); color: #c4d2df; }
.bx--ink h2, .bx--ink h3, .bx--ink b { color: #fff; }
.bx--ink .mark { color: #f5b877; }
.bx--ink a:not(.btn) { color: #fff; }
.bx--ink :focus-visible { outline-color: #f5b877; }
.bx--tint { background: var(--bg-l); border-color: #f0d4b0; }
.bxs { display: grid; gap: 1.4rem; }
.bxs > * { min-width: 0; }
@media (min-width: 700px) { .bxs--2 { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }
@media (min-width: 980px) { .bxs--3 { grid-template-columns: repeat(3, 1fr); } .bxs--2b { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.figwide img, .figwide .img-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.figbox img, .figbox .img-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }

/* 07 Hero */
.hero { padding-block: clamp(2.6rem, 2.1rem + 2.7vw, 4.3rem); background: var(--ink); color: #c4d2df; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lede { max-width: 62ch; font-size: var(--f1); line-height: 1.76; }
.hero .mark { color: #f5b877; }
.hero b { color: #fff; }
.hero a:not(.btn) { color: #fff; }
.hero :focus-visible { outline-color: #f5b877; }
.figband { padding-block: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); }

/* 08 Page heads */
.phead { padding-block: clamp(2.1rem, 1.7rem + 1.9vw, 3.2rem); background: var(--ink); color: #c4d2df; }
.phead h1 { color: #fff; }
.phead .mark { color: #f5b877; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #f5b877; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.85rem; padding: 0; list-style: none; font-size: 0.75rem; font-weight: 700; }
.crumbs li + li::before { content: "\2192"; margin-right: 0.45rem; color: #f5b877; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--band { background: var(--band); }
.sec--ink { background: var(--ink); color: #c4d2df; }
.sec--ink h2, .sec--ink h3, .sec--ink b { color: #fff; }
.sec--ink .mark { color: #f5b877; }
.sec--ink a:not(.btn) { color: #fff; }
.sec--ink :focus-visible { outline-color: #f5b877; }
.sec--white .bx { background: var(--paper); }
.head { max-width: var(--col); margin-bottom: 2rem; }
.rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rows > li { display: grid; gap: 0.15rem 1.5rem; margin: 0; padding: 1rem 0 1.05rem; min-width: 0; }
.rows > li + li { background-image: linear-gradient(to right, var(--line) 0 100%), repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 13px); background-size: 100% 1px, 100% 6px; background-position: 0 0, 0 1px; background-repeat: no-repeat, repeat-x; }
@media (min-width: 780px) { .rows > li { grid-template-columns: 16rem 1fr; } }
.rows b { display: block; color: var(--ink); font-family: var(--disp); font-size: var(--f1); }
.rows p { margin: 0; font-size: var(--f-sm); }
.sec--ink .rows b { color: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--f-sm); text-align: left; background: var(--white); border: 1px solid var(--line); }
.tbl th, .tbl td { padding: 0.68rem 0.8rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--ink); color: #fff; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tbl tbody th { font-weight: 700; color: var(--ink); width: 32%; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--band); border: 1px solid var(--line); }
.where { display: grid; gap: 2.3rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.where > * { min-width: 0; }

/* 10 After hours (signature) */
.ah__set { padding: 1.35rem 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); }
.ah__cols { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .ah__cols { grid-template-columns: 1.08fr 0.92fr; gap: 1.9rem; } }
.ah__set fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ah__set legend { display: block; margin-bottom: 0.55rem; padding: 0; font-family: var(--disp); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.opts { display: grid; gap: 0.32rem; }
.opts label { position: relative; display: block; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; padding: 0.5rem 0.8rem; background: var(--paper); border: 1px solid var(--line); font-size: var(--f-sm); cursor: pointer; }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ah__out { display: grid; gap: 1.5rem; margin-top: 1.8rem; }
.ah__out > * { min-width: 0; }
.ah__flag { padding: 1.25rem 1.3rem 1.3rem; background: var(--bg2); border: 2px solid var(--ink); color: var(--bg-t); }
.ah__flag b { display: block; margin-bottom: 0.25rem; font-family: var(--disp); font-weight: 700; font-size: var(--f1); color: var(--bg-t); }
.ah__flag p { font-size: var(--f-sm); }
.ah__flag :focus-visible { outline-color: var(--ink); }
.ah__out .bx h2 { font-size: var(--f2); }
.ah__out .bx p, .ah__out .bx ul { font-size: var(--f-sm); }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; margin-top: 1.8rem; border-top: 2px solid var(--ink); }
.cpq { border-bottom: 1px solid var(--line); background: var(--white); }
.cpq summary { display: flex; justify-content: space-between; gap: 1.2rem; padding: 0.95rem 1rem; font-family: var(--disp); font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: var(--ink); list-style: none; cursor: pointer; }
.cpq summary::after { content: "+"; flex: none; font-family: var(--sans); color: var(--bg-d); }
.cpq[open] summary::after { content: "\2212"; }
.cpq[open] summary { color: var(--bg-d); }
.cpq > div { padding: 0 1rem 1.15rem; }

/* 12 Form & contact */
.form { display: grid; gap: 1rem 1.3rem; margin-top: 1.3rem; }
@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.94rem; }
.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.72rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #bcb9ae; 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='%230f3557' 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(--ink); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.42rem 0.9rem; background: var(--white); border: 1px solid #bcb9ae; font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); 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.84rem; color: var(--muted); }
.contact { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.08fr 0.92fr; gap: 2.6rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1.4rem; }

/* 13 Footer */
.ft { background: var(--ink); color: #98adc0; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #f5b877; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.8rem 1.7rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.5rem; font-family: var(--disp); font-size: 1.14rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; color: #f5b877; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft__base { padding-block: 0.95rem; border-top: 1px solid #1a4b78; font-size: 0.8rem; }

/* 14 Images */
.img-placeholder { background: var(--band); color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
