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

/* ==========================================================================
   Lopez & Sons HVAC — lopezhvac.xyz
   Workshop sturdy: charcoal, bone, tomato red, slab type, work-order cards.
   01 Tokens · 02 Base · 03 Header · 04 Buttons · 05 Hero & tags
   06 Page heads · 07 Work orders & sections · 08 Floor-furnace helper (signature)
   09 FAQ · 10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --bone: #f4f1ea; --bone-2: #e9e3d6; --white: #fffefb; --char: #23262b; --char-2: #33373e; --steel: #6b7280;
  --red: #c23a28; --red-dark: #9e2e1f; --red-soft: #fbe9e5; --blue: #34587f;
  --ink: #1d1f23; --text: #3b3e44; --muted: #5f6269; --line: #d9d2c3;
  --focus: #c23a28; --err: #b3261e; --ok: #2e6b3a;
  --slab: "Roboto Slab", Rockwell, "Courier New", serif;
  --sans: 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: 1160px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem); --r: 4px;
}

/* 02 Base */
body { background: var(--bone); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--slab); color: var(--ink); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--f3); font-weight: 800; }
h2 { font-size: var(--f2); font-weight: 700; }
h3 { font-size: var(--f1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--red-dark); text-underline-offset: 3px; font-weight: 600; }
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; }
.stamp { display: inline-block; margin-bottom: 0.9rem; padding: 0.25rem 0.7rem; border: 2px solid currentColor; border-radius: var(--r); color: var(--red); font-family: var(--slab); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-1.5deg); }

/* 03 Header */
.hd { background: var(--char); color: #e8e6e1; border-bottom: 6px solid var(--red); }
.hd__top .wrap { position: relative; display: flex; align-items: center; gap: 0.8rem; min-height: 76px; }
.lz-logo { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; }
.lz-logo svg { width: 44px; height: 44px; flex: none; }
.lz-logo b { display: block; color: #fff; font-family: var(--slab); font-size: 1.45rem; font-weight: 800; line-height: 1; }
.lz-logo small { display: block; color: #b9bcc2; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lz-logo span { display: none; }
.hd__num { margin-left: auto; color: #fff; font-family: var(--slab); font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem); font-weight: 800; text-decoration: none; white-space: nowrap; letter-spacing: 0.01em; }
.hd__num:hover { color: #ffb4a8; }
.hd__cal { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--red); color: #fff; }
.hd__cal svg { width: 22px; height: 22px; }
.hd__cal:hover { background: var(--red-dark); color: #fff; }
.hd__cal span { display: none; }
.hd :focus-visible { outline-color: #ffb4a8; }
.nav-toggle { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid #4b5058; border-radius: var(--r); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.rownav { display: none; }
@media (min-width: 560px) { .lz-logo span { display: block; } }
@media (max-width: 959px) {
  .rownav { background: var(--char-2); }
  .rownav.is-open { display: block; }
  .rownav .wrap { display: flex; flex-direction: column; padding-block: 0.4rem 1rem; }
  .rownav a { padding: 0.8rem 0; border-bottom: 1px solid #454a52; color: #fff; text-decoration: none; font-family: var(--slab); font-size: 1.25rem; font-weight: 700; }
  .rownav a[aria-current="page"] { color: #ffb4a8; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .hd__cal { width: auto; padding: 0 1.1rem; gap: 0.5rem; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
  .hd__cal span { display: inline; }
  .hd__cal svg { width: 18px; height: 18px; }
  .rownav { display: block; background: var(--char-2); }
  .rownav .wrap { display: flex; gap: 0.2rem; }
  .rownav a { position: relative; padding: 0.75rem 1.1rem; color: #d7d8dc; text-decoration: none; font-family: var(--slab); font-weight: 700; font-size: 0.98rem; }
  .rownav a:hover { color: #fff; background: #3d424a; }
  .rownav a[aria-current="page"] { color: #fff; background: var(--bone); color: var(--ink); }
}

/* 04 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border: 2px solid transparent; border-radius: var(--r); font-family: var(--slab); font-size: 1rem; 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--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--char { background: var(--char); color: #fff; }
.btn--char:hover { background: var(--char-2); color: #fff; }
.btn--line { border-color: var(--char); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--char); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 05 Hero & tags */
.hero { padding-block: clamp(3rem, 2.4rem + 3vw, 5.4rem) clamp(2.2rem, 1.8rem + 2vw, 3.6rem); text-align: center; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; max-width: 44ch; margin-inline: auto; color: var(--ink); }
.hero .btns { justify-content: center; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.tags li { position: relative; padding: 0.55rem 1rem 0.55rem 1.8rem; border-radius: var(--r) 18px 18px var(--r); background: var(--white); border: 2px solid var(--char); font-family: var(--slab); font-weight: 700; color: var(--ink); }
.tags li::before { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 2px solid var(--char); background: var(--bone); }
.band img, .band .img-placeholder { width: 100%; height: clamp(220px, 32vw, 460px); object-fit: cover; border-radius: 0; }

/* 06 Page heads */
.phead { background: var(--bone-2); border-bottom: 2px 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.7rem); 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-family: var(--slab); font-size: 0.88rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--red); }

/* 07 Work orders & sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--char { background: var(--char); color: #d7d8dc; }
.sec--char h2, .sec--char h3 { color: #fff; }
.sec--char .stamp { color: #ffb4a8; }
.sec--char a:not(.btn) { color: #ffb4a8; }
.sec--char :focus-visible { outline-color: #ffb4a8; }
.orders { display: grid; gap: 1.6rem; }
@media (min-width: 880px) { .orders { grid-template-columns: 1fr 1fr; } }
.order { background: var(--white); border: 2px solid var(--char); border-radius: var(--r); box-shadow: 6px 6px 0 var(--char); }
.order__head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 1.1rem; background: var(--char); color: #fff; font-family: var(--slab); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.order__head span:last-child { color: #ffb4a8; }
.order__body { padding: 1.4rem 1.3rem 1.6rem; }
.order__body figure { margin-bottom: 1.2rem; }
.order ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.order li { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.order li::before { content: "☐"; color: var(--red); font-weight: 700; }
.order li.done::before { content: "☑"; }
.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; }
.numlist { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.numlist li { position: relative; padding: 1rem 0 1rem 3.4rem; border-top: 2px solid var(--line); counter-increment: n; }
.sec--char .numlist li { border-color: #454a52; }
.numlist li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.8rem; font-family: var(--slab); font-size: 1.6rem; font-weight: 800; color: var(--red); }
.sec--char .numlist li::before { color: #ffb4a8; }
.numlist h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.numlist p { margin: 0; font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 420px); border: 2px solid var(--char); border-radius: var(--r); background: var(--bone-2); }
.cities { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 1rem 0 0; padding: 0; list-style: none; font-family: var(--slab); font-weight: 700; color: var(--ink); }
.cities li + li::before { content: "·"; margin-right: 1rem; color: var(--red); }

/* 08 Floor-furnace helper (signature) */
.warn { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border: 2px solid var(--red); border-radius: var(--r); background: var(--red-soft); color: var(--ink); }
.warn svg { flex: none; width: 30px; height: 30px; color: var(--red); }
.warn p { margin: 0; }
.helper { background: var(--white); border: 2px solid var(--char); border-radius: var(--r); box-shadow: 6px 6px 0 var(--char); }
.helper .order__body fieldset { margin: 0; padding: 0; border: 0; }
.helper legend { margin-bottom: 0.6rem; font-family: var(--slab); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.helper label { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.helper input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex: none; accent-color: var(--red); }
.ranked { margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: rk; }
.ranked[hidden] { display: none; }
.ranked li { position: relative; padding: 0.9rem 1rem 0.9rem 3rem; border-radius: var(--r); background: var(--bone); margin-bottom: 0.5rem; counter-increment: rk; }
.ranked li:first-child { background: var(--char); color: #d7d8dc; }
.ranked li:first-child b { color: #fff; }
.ranked li::before { content: counter(rk); position: absolute; left: 0.9rem; top: 0.85rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--slab); font-weight: 800; font-size: 0.9rem; }
.ranked b { display: block; font-family: var(--slab); }
.ranked span { font-size: var(--f-sm); }

/* 09 FAQ */
.faq { display: grid; gap: 1.6rem 2.4rem; }
@media (min-width: 860px) { .faq { grid-template-columns: 1fr 1fr; } }
.lq { padding-top: 1rem; border-top: 3px solid var(--char); }
.lq h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.lq p { margin: 0; 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-family: var(--slab); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--red); }
.opt { font-family: var(--sans); font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--char); 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='%23c23a28' stroke-width='2.8'%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: 140px; resize: vertical; background-image: repeating-linear-gradient(transparent 0 27px, var(--bone-2) 27px 28px); line-height: 28px; }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.bignum { display: block; margin: 0.2rem 0 1rem; font-family: var(--slab); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; color: #fff; text-decoration: none; }
.infoblock { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r); background: var(--char); color: #d7d8dc; }
.infoblock h2 { color: #fff; font-size: 1.4rem; }
.infoblock a { color: #ffb4a8; }
.infoblock :focus-visible { outline-color: #ffb4a8; }

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

/* 12 Images */
.img-placeholder { background: var(--bone-2); border: 2px dashed #b8ae99; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
.mt { margin-top: 2rem; }
@media (max-width: 400px) { .hd__top .wrap { gap: 0.55rem; } .lz-logo svg { width: 40px; height: 40px; } }
