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

/* ==========================================================================
   PrimeStone HVAC & Finishes — primestonehvac.xyz
   Limestone, basalt and sandstone gold; a sturdy slab serif for headings.
   01 Tokens · 02 Base · 03 Masthead · 04 Stone badge (mobile) · 05 Buttons
   06 Hero · 07 Page heads · 08 Sections · 09 Condensate finder (signature)
   10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --lime: #efebe4; --lime-2: #e4ded3; --paper: #fbfaf7; --basalt: #2b2d2f; --basalt-2: #3b3e41;
  --sand: #c9b28a; --gold: #7d6230; --gold-soft: #f3ecdf;
  --ink: #222426; --text: #45484b; --muted: #62666a; --line: #dcd5c8;
  --focus: #7d6230; --err: #a3261d; --ok: #2d6a3c;
  --serif: "Domine", "Rockwell", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem); --f1: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --f2: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem); --f3: clamp(2.2rem, 1.5rem + 3vw, 3.9rem);
  --r: 6px; --wrap: 1160px; --pad-y: clamp(3.2rem, 2.4rem + 4vw, 6rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.16; 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(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.over { display: block; margin-bottom: 0.8rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.mt { margin-top: 2rem; }

/* 03 Masthead — logo centred, nav centred beneath on desktop */
.hd { position: sticky; top: 0; z-index: 30; background: var(--lime); border-bottom: 1px solid var(--line); }
.hd__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 66px; }
.px-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.px-logo svg { width: 36px; height: 36px; flex: none; }
.px-logo b { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.px-logo small { display: block; margin-top: 0.2rem; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.hd__tel { display: none; }
.hd__right { display: flex; align-items: center; gap: 0.5rem; }
.hd__cta { padding: 0.6rem 0.9rem; font-size: 0.9rem; line-height: 1.2; }
.nav-toggle { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.pnav { display: none; }
@media (max-width: 1019px) {
  .pnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.4rem 1rem 1.2rem; background: var(--paper); border-bottom: 4px solid var(--sand); }
  .pnav.is-open { display: flex; }
  .pnav a { padding: 0.8rem 0.3rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--serif); font-size: 1.15rem; text-decoration: none; }
  .pnav a[aria-current="page"] { color: var(--gold); }
}
@media (max-width: 420px) { .px-logo svg, .px-logo small { display: none; } .px-logo b { font-size: 1.08rem; } .hd__right { gap: 0.35rem; } .hd__cta { padding: 0.55rem 0.6rem; font-size: 0.84rem; } .nav-toggle { width: 40px; height: 40px; } }
@media (min-width: 1020px) {
  .hd__top { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 76px; }
  .hd__tel { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; color: var(--ink); font-family: var(--serif); font-weight: 700; text-decoration: none; }
  .hd__tel svg { width: 18px; height: 18px; color: var(--gold); }
  .px-logo { justify-self: center; }
  .hd__right { justify-self: end; }
  .hd__cta { padding: 0.8rem 1.3rem; font-size: 0.95rem; }
  .nav-toggle { display: none; }
  .pnav { display: flex; justify-content: center; gap: 2.2rem; padding: 0.55rem 0 0.7rem; border-top: 1px solid var(--line); }
  .pnav a { color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
  .pnav a:hover { color: var(--ink); }
  .pnav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 3px; text-underline-offset: 8px; }
}

/* 04 Stone badge (mobile) — phone, fixed bottom-left */
.stone { position: fixed; left: 14px; bottom: 14px; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 70px; height: 64px; background: var(--basalt); color: #fff; text-decoration: none; border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; box-shadow: 0 8px 18px -8px rgba(0,0,0,0.55); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; }
.stone svg { width: 20px; height: 20px; color: var(--sand); }
.stone:hover { background: var(--ink); color: #fff; }
.stone:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (min-width: 1020px) { .stone { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.9rem 1.5rem; border: 2px solid var(--basalt); border-radius: var(--r); background: var(--basalt); color: #fff; font: inherit; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--basalt); border-color: var(--basalt); }
.btn--sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--sand:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero — wide photo with a limestone slab overlapping its foot */
.hero__img img, .hero__img .img-placeholder { width: 100%; aspect-ratio: 2 / 1; max-height: 560px; object-fit: cover; }
@media (max-width: 700px) { .hero__img img, .hero__img .img-placeholder { aspect-ratio: 4 / 3; } }
.slab { position: relative; margin-top: clamp(-7rem, -4rem - 4vw, -3rem); padding: clamp(1.6rem, 1.2rem + 2vw, 3rem); background: var(--paper); border-top: 5px solid var(--sand); box-shadow: 0 20px 40px -30px rgba(0,0,0,0.5); }
@media (max-width: 700px) { .slab { margin-top: -2rem; } }
.slab__grid { display: grid; gap: 1.2rem 3rem; }
@media (min-width: 900px) { .slab__grid { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.slab h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.slab p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); }

/* 07 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem); background: var(--lime-2); text-align: center; }
.phead h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.3rem); max-width: 22ch; margin-inline: auto; }
.phead p { font-size: 1.1rem; max-width: 56ch; margin-inline: auto; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: "·"; margin-right: 0.5rem; color: var(--gold); font-weight: 700; }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--lime { background: var(--lime); }
.sec--basalt { background: var(--basalt); color: #d2d0cb; }
.sec--basalt h2, .sec--basalt h3, .sec--basalt b { color: #fff; }
.sec--basalt .over { color: var(--sand); }
.sec--basalt a:not(.btn) { color: #fff; }
.sec--basalt :focus-visible { outline-color: var(--sand); }
.intro { display: grid; gap: 1rem 3rem; margin-bottom: 2.6rem; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; align-items: end; } }
.tiles { display: grid; gap: 6px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 1.6rem 1.5rem; background: var(--lime); border-radius: 2px; }
.tile:nth-child(3n+2) { background: var(--lime-2); }
.tile h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.tile p { margin: 0; font-size: var(--f-sm); }
.tile::before { content: ""; display: block; width: 26px; height: 18px; margin-bottom: 1rem; background: var(--sand); border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; }
.homes { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .homes { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.homes > * { min-width: 0; }
.homes img, .homes .img-placeholder { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.plain { margin: 1rem 0 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: 2rem; }
.plain li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.wheres { display: grid; gap: 0.6rem; margin-top: 1.8rem; }
@media (min-width: 700px) { .wheres { grid-template-columns: repeat(3, 1fr); } }
.wheres a { display: block; padding: 1rem 1.2rem; border: 1px solid #55595d; border-radius: var(--r); color: #fff; text-decoration: none; font-weight: 600; }
.wheres a:hover { background: var(--basalt-2); border-color: var(--sand); }
.wheres span { display: block; font-size: 0.85rem; font-weight: 400; color: #bdbab3; }
.duo { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.duo > * { min-width: 0; }
.duo img, .duo .img-placeholder { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; gap: 0.2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.rows b { font-family: var(--serif); font-size: 1.12rem; }
.note { margin-top: 1.6rem; padding: 1.3rem 1.5rem; background: var(--gold-soft); border-radius: var(--r); }
.note h2 { font-size: 1.3rem; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 420px); background: var(--lime-2); }
.address-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.address-strip h2 { margin: 0; font-size: 1.4rem; }
.address-strip p { margin: 0; }

/* 09 Condensate finder (signature) */
.finder { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .finder { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; } }
.finder__q { padding: 1.6rem; background: var(--basalt); color: #d2d0cb; border-radius: var(--r); }
.finder__q label { display: block; margin-bottom: 0.6rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: #fff; }
.finder__q select { border-color: var(--sand); }
.finder__q p { margin-top: 1rem; font-size: var(--f-sm); }
.finder__q :focus-visible { outline-color: var(--sand); }
.places { display: grid; gap: 1.2rem; }
.is-js .place:not(.is-on) { display: none; }
.place { padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.place h3 { font-size: 1.35rem; }
.grades { display: grid; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.grades li { padding: 0.8rem 1rem 0.8rem 1.1rem; border-left: 5px solid var(--line); background: var(--lime); border-radius: 0 var(--r) var(--r) 0; font-size: var(--f-sm); }
.grades b { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.g-ok { border-left-color: var(--ok) !important; }
.g-ok b { color: var(--ok); }
.g-you { border-left-color: var(--sand) !important; }
.g-you b { color: var(--gold); }
.g-call { border-left-color: var(--err) !important; }
.g-call b { color: var(--err); }
.first { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); background: var(--gold-soft); border-radius: var(--r); }
.first h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.first ol { margin: 0; padding-left: 1.3em; }
.first li { margin-bottom: 0.4rem; }

/* 10 FAQ */
.faq { display: grid; gap: 0 2.4rem; }
@media (min-width: 860px) { .faq { grid-template-columns: 1fr 1fr; } }
.pq { border-bottom: 1px solid var(--line); }
.pq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); list-style: none; }
.pq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); margin-top: -4px; transition: transform 0.2s; }
.pq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pq > div { padding: 0 0 1.2rem; }

/* 11 Form & contact */
.form { display: grid; gap: 1.1rem 1.4rem; 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 { font-weight: 650; 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"], select, textarea { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #bdb5a6; 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='%237d6230' 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: 15px; padding-right: 2.4rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--basalt); }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.cgrid { display: grid; gap: 2rem; }
@media (min-width: 920px) { .cgrid { grid-template-columns: 0.75fr 1.25fr; gap: 3.4rem; align-items: start; } }
.cgrid > * { min-width: 0; }
.cpanel { padding: 2rem; background: var(--basalt); color: #d2d0cb; border-radius: var(--r); }
.cpanel h2 { color: #fff; font-size: 1.4rem; }
.cpanel .big { display: block; margin: 0.2rem 0 1.2rem; color: #fff; font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); font-weight: 700; text-decoration: none; }
.cpanel a { color: #fff; }
.cpanel dl { margin: 0; }
.cpanel dt { margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); }
.cpanel dd { margin: 0.2rem 0 0; }
.cpanel :focus-visible { outline-color: var(--sand); }
.cpanel + figure { margin-top: 1rem; }
.cpanel + figure img, .cpanel + figure .img-placeholder { border-radius: var(--r); }

/* 12 Footer */
.ft { background: var(--basalt); color: #c9c6bf; font-size: var(--f-sm); text-align: center; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--sand); }
.ft__in { display: grid; justify-items: center; gap: 1.2rem; padding-block: 3.2rem 1.6rem; }
.ft__name { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; }
.ft nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; }
.ft p { margin-inline: auto; }
.ft__base { padding-block: 1rem 5.6rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; }
@media (min-width: 1020px) { .ft__base { padding-bottom: 1rem; } }

/* 13 Images */
.img-placeholder { background: var(--lime-2); border: 1px dashed #b9ae99; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
