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

/* ==========================================================================
   Westmark Coatings HVAC Solutions — westmarkhvac.xyz
   Large, calm type for a Sun City audience. Centred masthead, centred sections.
   01 Tokens · 02 Base · 03 Masthead · 04 Hero · 05 Page titles · 06 Buttons
   07 Sections · 08 Home · 09 Thermostat guide (signature) · 10 FAQ
   11 Contact & form · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --ink: #1b2230; --text: #343b48; --muted: #5b6270; --rule: #e3dccd; --rule-2: #cfc6b3;
  --cream: #fdfbf6; --white: #ffffff; --sand: #f5f0e4;
  --blue: #1f4e9c; --blue-dark: #173b77; --blue-soft: #e8eef8; --blue-light: #a9c1ea;
  --focus: #1f4e9c; --err: #a4161a; --ok: #1f6f3a;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --t-sm: 1.02rem; --t: clamp(1.14rem, 1.1rem + 0.2vw, 1.25rem); --t-lg: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
  --h3: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem); --h2: clamp(1.8rem, 1.5rem + 1.3vw, 2.6rem); --h1: clamp(2.2rem, 1.7rem + 2.6vw, 3.8rem);
  --wrap: 1120px; --narrow: 760px; --pad-y: clamp(3.4rem, 2.4rem + 4vw, 6rem);
}

/* 02 Base */
body { background: var(--cream); color: var(--text); font-family: var(--sans); font-size: var(--t); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.55em; font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.12; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); }
strong, b { color: var(--ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.4rem, var(--narrow)); margin-inline: auto; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.label { display: block; margin-bottom: 0.7rem; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }

/* 03 Masthead */
.mast { background: var(--white); border-bottom: 1px solid var(--rule); }
.mast__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.4rem; }
.mast__call { display: flex; flex-direction: column; justify-self: start; line-height: 1.25; color: var(--ink); text-decoration: none; }
.mast__call small { font-size: 0.9rem; color: var(--muted); }
.mast__call span { font-size: 1.35rem; font-weight: 700; }
.mast__call:hover span { color: var(--blue); }
.logo { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; text-align: center; }
.logo svg { width: 46px; height: 46px; margin-bottom: 0.3rem; }
.logo__name { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.logo__sub { margin-top: 0.3rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.mast__book { justify-self: end; }
.mast__nav { border-top: 1px solid var(--rule); }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.2rem 0.4rem; margin: 0 auto; padding: 0.35rem 0; }
.nav a { padding: 0.6rem 1rem; font-size: 1.08rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px double transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.mast__quick { display: none; }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .mast__top { grid-template-columns: 1fr auto; padding-block: 1rem 0.8rem; }
  .mast__top .mast__call, .mast__top .mast__book { display: none; }
  .logo { align-items: flex-start; text-align: left; }
  .logo svg { display: none; }
  .logo__name { font-size: 1.6rem; }
  .logo__sub { letter-spacing: 0.14em; font-size: 0.7rem; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); background: var(--cream); border: 1px solid var(--rule-2); border-radius: 6px; cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .mast__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding-bottom: 1rem; }
  .mast__quick a { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 54px; padding: 0.4rem; border-radius: 8px; font-size: 1rem; white-space: nowrap; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
  .mast__quick svg { width: 18px; height: 18px; flex: none; }
  .mast__quick a:first-child { background: var(--ink); color: #fff; }
  .mast__quick a:last-child { background: var(--blue); color: #fff; }
  .mast__nav { display: none; }
  .mast__nav.is-open { display: block; }
  .nav { flex-direction: column; align-items: stretch; padding: 0.3rem 0 0.8rem; }
  .nav a { padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--rule); box-shadow: inset 4px 0 0 var(--blue); padding-left: 0.9rem; }
}

/* 04 Hero */
.hero { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); text-align: center; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero p { margin-inline: auto; font-size: var(--t-lg); max-width: 46ch; }
.hero .btns { justify-content: center; margin-top: 2rem; }
.hero figure { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.hero figure img, .hero figure .img-placeholder { border-radius: 28px 28px 0 0; }

/* 05 Page titles */
.title { padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem) clamp(2rem, 1.6rem + 2vw, 3rem); text-align: center; border-bottom: 1px solid var(--rule); background: var(--white); }
.title h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(2rem, 1.6rem + 2vw, 3.2rem); }
.title p { margin-inline: auto; font-size: var(--t-lg); max-width: 50ch; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: 1rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "·"; margin-right: 0.6rem; }

/* 06 Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 56px; padding: 0.8rem 1.6rem; border: 2px solid transparent; border-radius: 8px; font-family: var(--sans); font-size: 1.12rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--plain { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--plain:hover { background: var(--ink); color: #fff; }

/* 07 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--sand { background: var(--sand); }
.sec--blue { background: var(--blue-dark); color: #dfe7f5; }
.sec--blue h2, .sec--blue h3, .sec--blue strong { color: #fff; }
.sec--blue .label { color: var(--blue-light); }
.sec--blue a { color: #fff; }
.sec--blue :focus-visible { outline-color: #fff; }
.sec-head { margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.2rem); max-width: 40rem; text-align: center; }
.sec-head p { margin-inline: auto; }
.rule-orn { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0 auto 1rem; color: var(--blue); }
.rule-orn::before, .rule-orn::after { content: ""; width: 48px; height: 1px; background: currentColor; }

/* 08 Home */
.pair { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1px 1fr; gap: 3.5rem; } .pair::before { content: ""; grid-column: 2; grid-row: 1; background: var(--rule-2); } .pair > :first-child { grid-column: 1; grid-row: 1; } .pair > :last-child { grid-column: 3; grid-row: 1; } }
.pair article { text-align: center; }
.pair article p { margin-inline: auto; }
.pair figure { width: 220px; margin: 0 auto 1.4rem; }
.pair figure img, .pair figure .img-placeholder { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.pair .img-placeholder { font-size: 0.62rem; }
.pair .img-placeholder b { font-size: 0.72rem; }
.pair ul { display: inline-block; text-align: left; margin: 0.4rem auto 1.2rem; }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.numbered li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); counter-increment: n; margin: 0; }
.numbered li:first-child { border-top: 1px solid var(--rule); }
.numbered li::before { content: counter(n); font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--blue); }
.numbered h3 { margin-bottom: 0.25em; }
.numbered p { margin: 0; }
.towns { margin: 1.4rem auto 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0; max-width: 44rem; font-weight: 700; color: var(--ink); }
.towns li { margin: 0; }
.towns li:not(:last-child)::after { content: "·"; margin: 0 0.7rem; color: var(--blue); }
.map-wide { display: block; width: 100%; height: clamp(320px, 40vw, 460px); background: var(--sand); }

/* 09 Thermostat guide (signature) */
.stat { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .stat { grid-template-columns: 1fr 1fr; } }
.stat > * { min-width: 0; }
.stat svg { width: 100%; max-width: 440px; margin-inline: auto; }
.stat__num { font-family: var(--sans); font-weight: 700; }
.keys { margin: 0; padding: 0; list-style: none; }
.keys li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.keys li > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.15rem; }
.keys b { display: block; font-size: 1.15rem; }
.settings { width: 100%; border-collapse: collapse; background: var(--white); font-size: 1.1rem; }
.settings caption { text-align: left; padding-bottom: 0.8rem; font-size: 1rem; color: var(--muted); }
.settings th, .settings td { padding: 1rem 1.1rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.settings thead th { background: var(--ink); color: #fff; font-family: var(--sans); }
.settings td.big { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.choose { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .choose { grid-template-columns: repeat(2, 1fr); } }
.choose > div { padding: 1.6rem; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.choose h3 { font-size: 1.3rem; }
.notice { padding: 1.5rem 1.6rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.notice h2, .notice h3 { font-size: 1.35rem; }

/* 10 FAQ */
.faq { border-top: 1px solid var(--rule-2); }
.faq-q { border-bottom: 1px solid var(--rule-2); }
.faq-q summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: 1.4rem 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); list-style: none; line-height: 1.35; }
.faq-q summary::after { content: "Open"; flex: none; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-q[open] summary::after { content: "Close"; }
.faq-q > div { padding-bottom: 1.4rem; }

/* 11 Contact & form */
.phone-panel { padding: clamp(1.8rem, 1.4rem + 2vw, 3rem); background: var(--ink); color: #d7dbe2; border-radius: 16px; text-align: center; }
.phone-panel h2 { color: #fff; font-size: 1.3rem; font-family: var(--sans); letter-spacing: 0.02em; }
.phone-panel a { display: inline-block; margin: 0.4rem 0 0.6rem; color: #fff; font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 2vw, 3rem); font-weight: 700; text-decoration: none; }
.phone-panel :focus-visible { outline-color: #fff; }
.form { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.field label, .picks legend { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; min-height: 56px; padding: 0.8rem 1rem; font: inherit; font-size: 1.12rem; color: var(--ink); background: var(--white); border: 2px solid var(--rule-2); border-radius: 8px; }
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='%231f4e9c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.picks { margin: 0; padding: 0; border: 0; display: grid; gap: 0.6rem; }
.picks legend { margin-bottom: 0.6rem; }
.pick { display: flex; align-items: center; gap: 0.8rem; min-height: 56px; padding: 0.6rem 1rem; background: var(--white); border: 2px solid var(--rule-2); border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.pick input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.pick:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.form-status { margin: 0.9rem 0 0; font-size: 1.1rem; }
.form-note { margin: 0.6rem 0 0; font-size: 1rem; color: var(--muted); }
.addr { display: grid; gap: 1.5rem; text-align: center; }
@media (min-width: 760px) { .addr { grid-template-columns: 1fr 1fr 1fr; } }
.addr h3 { font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.addr p { margin-inline: auto; }

/* 12 Footer */
.foot { padding-block: 3.2rem 2rem; background: var(--sand); border-top: 1px solid var(--rule); text-align: center; }
.foot .logo { margin-bottom: 1.2rem; }
.foot__tel { display: inline-block; margin-bottom: 0.6rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.foot p { margin-inline: auto; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.foot__links li { margin: 0; }
.foot__links a { color: var(--ink); font-weight: 700; }
.foot small { display: block; font-size: 0.92rem; color: var(--muted); }

/* 13 Images */
.img-placeholder { background: var(--sand); border: 1px dashed var(--rule-2); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: 12px; }
figcaption { margin-top: 0.6rem; font-size: 1rem; color: var(--muted); text-align: center; }
.mt { margin-top: 2rem; }
.duo { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.btns--center { justify-content: center; }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: var(--blue-soft); color: var(--blue-dark); }
.note-card { padding: 1.6rem; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.note-card h3 { font-size: 1.3rem; }
