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

/* ==========================================================================
   Horizon Gate Coatings & HVAC — hvachorizongate.xyz
   THE DEVICE: the horizon line. Every section is split by one full-bleed rule
   with a marker straddling it — a pale sky field above carrying the heading,
   a warm ground field below carrying the detail. The line recurs at the same
   weight down every page, so the site reads as a landscape rather than a stack.
   01 Tokens · 02 Base · 03 Header · 04 Contact line · 05 Buttons
   06 Hero · 07 Page heads · 08 The horizon · 09 Blocks
   10 Zoning (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --sky: #e9edf5; --sky-2: #f4f6fa; --ground: #f4efe6; --ground-2: #e8e0d2;
  --white: #ffffff; --ink: #1b2430; --ink-2: #33404f;
  --indigo: #3b3a7a; --indigo-d: #2e2d63; --indigo-l: #e2e1f0;
  --text: #46505c; --muted: #6f7986; --line: #cdd3dd; --line-w: #ddd5c6;
  --focus: #2e2d63; --err: #9a2f26;
  --disp: "Yrsa", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f-xs: 0.78rem; --f0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --f1: clamp(1.12rem, 1.02rem + 0.48vw, 1.3rem);
  --f2: clamp(1.45rem, 1.2rem + 1.25vw, 2.05rem); --f3: clamp(1.85rem, 1.4rem + 2.3vw, 3rem);
  --r: 2px; --wrap: 1120px; --hd: 56px;
  --pad-y: clamp(2.2rem, 1.8rem + 2.4vw, 3.4rem);
}
@media (min-width: 900px) { :root { --hd: 68px; } }

/* 02 Base */
body { background: var(--ground); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.72; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--disp); color: var(--ink); font-weight: 600; line-height: 1.22; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 0.95em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--indigo-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.35rem; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.mark { display: block; margin-bottom: 0.5rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo-d); }
.mt { margin-top: 1.5rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 40; background: var(--sky-2); border-bottom: 2px solid var(--ink); }
.hd__bar .wrap { display: flex; align-items: center; gap: 0.6rem; min-height: var(--hd); }
.hz-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.hz-logo svg { width: 28px; height: 28px; flex: none; }
.hz-logo b { display: block; font-family: var(--disp); font-size: 1.12rem; font-weight: 600; line-height: 1.1; }
.hz-logo small { display: block; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo-d); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.hznav { display: none; }
@media (max-width: 899px) {
  .hd__bar .btn { display: none; }
  .hznav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.1rem; background: var(--sky-2); border-bottom: 2px solid var(--ink); }
  .hznav.is-open { display: flex; }
  .hznav a { padding: 0.78rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
  .hznav a[aria-current="page"] { color: var(--indigo-d); }
}
@media (max-width: 400px) { .hz-logo small { display: none; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .hznav { display: flex; gap: 1.5rem; }
  .hznav a { padding: 0.25rem 0; color: var(--text); font-family: var(--disp); font-size: 1.02rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .hznav a:hover { color: var(--ink); }
  .hznav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--indigo); }
}

/* 04 Contact line — phones only; the device applied to the furniture */
.cline { background: var(--white); border-bottom: 2px solid var(--ink); }
.cline__in { display: flex; align-items: stretch; }
.cline a { flex: 1 1 0; min-width: 0; display: block; padding: 0.42rem 0.8rem; color: var(--ink); font-family: var(--disp); font-size: 1.02rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cline a + a { border-left: 2px solid var(--ink); background: var(--indigo); color: #fff; }
.cline .k { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo-d); }
.cline a + a .k { color: #c6c5e4; }
.cline a + a:focus-visible { outline-color: #fff; }
@media (min-width: 900px) { .cline { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border: 0; border-radius: var(--r); background: var(--indigo); color: #fff; font-family: var(--disp); font-size: 1.02rem; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: var(--indigo-d); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sky, .sec--ink a.btn--sky, .zn__out a.btn--sky { background: var(--sky); color: var(--ink); }
.btn--sky:hover, .sec--ink a.btn--sky:hover, .zn__out a.btn--sky:hover { background: #fff; color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* 06/08 The horizon — hero, page heads and sections all use it */
.hz { background: var(--ground); }
.hz__sky { padding-block: clamp(2rem, 1.6rem + 2.2vw, 3.2rem) clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem); background: var(--sky); }
.hz__sky--pale { background: var(--sky-2); }
.hz__sky--ink { background: var(--ink); color: #aeb8c4; }
.hz__sky--ink h1, .hz__sky--ink h2, .hz__sky--ink b { color: #fff; }
.hz__sky--ink .mark { color: #a9a8dd; }
.hz__sky--ink a:not(.btn) { color: #fff; }
.hz__sky--ink :focus-visible { outline-color: #fff; }
.hz__line { height: 2px; background: var(--ink); }
.hz__line .wrap { position: relative; height: 100%; }
.hz__line i { position: absolute; top: -5px; left: 0; display: block; width: 3.2rem; height: 12px; background: var(--indigo); }
.hz__line--acc i { background: var(--ink); }
.hz__ground { padding-block: clamp(1.7rem, 1.4rem + 1.8vw, 2.6rem) clamp(2.2rem, 1.8rem + 2.4vw, 3.4rem); background: var(--ground); }
.hz__ground--warm { background: var(--ground-2); }
.hz__ground--white { background: var(--white); }
.hero h1 { max-width: 19ch; }
.hero .lede { font-size: var(--f1); line-height: 1.62; max-width: 54ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.8rem; padding: 0; list-style: none; font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; }
.crumbs li + li::before { content: "\2014"; margin-right: 0.45rem; color: var(--muted); }

/* 09 Blocks */
.sec { padding-block: var(--pad-y); }
.sec--sky { background: var(--sky); }
.sec--white { background: var(--white); }
.sec--ground { background: var(--ground); }
.sec--ink { background: var(--ink); color: #aeb8c4; }
.sec--ink h2, .sec--ink h3, .sec--ink b { color: #fff; }
.sec--ink .mark { color: #a9a8dd; }
.sec--ink a:not(.btn) { color: #fff; }
.sec--ink :focus-visible { outline-color: #fff; }
.head { max-width: 640px; }
.grid { display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid > * { min-width: 0; }
.card { padding-top: 1rem; border-top: 2px solid var(--ink); }
.card h3 { margin-bottom: 0.3rem; }
.card--acc { border-top-color: var(--indigo); }
.sec--ink .card, .hz__sky--ink .card { border-top-color: #4c5766; }
.note { padding: 1.1rem 1.2rem; background: var(--white); border-left: 4px solid var(--indigo); border-radius: var(--r); }
.note--ink { background: var(--ink); color: #aeb8c4; border-left-color: var(--indigo); }
.note--ink h3, .note--ink b { color: #fff; }
.sec--white .note { background: var(--sky-2); }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figbox img, .figbox .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--ground-2); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.twin { display: grid; gap: 1.8rem; }
@media (min-width: 900px) { .twin { grid-template-columns: 1fr 1fr; gap: 2.6rem; } }
.twin > * { min-width: 0; }

/* 10 Zoning (signature) — the output is an ORDER, not a swap */
.zn { display: grid; gap: 1.6rem; }
@media (min-width: 980px) { .zn { grid-template-columns: 0.8fr 1.2fr; gap: 2.4rem; align-items: start; } .zn__set { position: sticky; top: calc(var(--hd) + 1rem); } }
.zn__set { padding: 1.2rem 1.3rem 1.4rem; background: var(--white); border-top: 3px solid var(--ink); }
.zn__set fieldset { margin: 0; padding: 0; border: 0; }
.zn__set legend { display: block; margin-bottom: 0.7rem; padding: 0; font-family: var(--disp); font-size: 1.22rem; font-weight: 600; color: var(--ink); }
.opts { display: grid; gap: 0.35rem; }
.opts label { position: relative; display: block; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--sky-2); font-size: var(--f-sm); cursor: pointer; }
.opts input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.zn__out { min-width: 0; }
.zn__verdict { padding: 1.2rem 1.3rem; margin-bottom: 1.4rem; background: var(--ink); color: #aeb8c4; border-radius: var(--r); }
.zn__verdict h2 { margin-bottom: 0.3rem; color: #fff; font-size: var(--f1); }
.zn__verdict b { color: #fff; }
.zn__verdict p { max-width: none; font-size: var(--f-sm); }
.zn__tag { display: inline-block; margin-bottom: 0.5rem; padding: 0.12rem 0.55rem; border-radius: var(--r); background: var(--indigo); font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.zn__tag--no { background: #7a3f2a; }
.zn__steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.zn__steps > li { display: grid; gap: 0.2rem 1rem; padding: 1rem 0 1.05rem; border-top: 2px solid var(--ink); }
@media (min-width: 620px) { .zn__steps > li { grid-template-columns: 2.6rem 1fr; } }
.zn__n { font-family: var(--disp); font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--indigo-d); }
.zn__steps h3 { margin-bottom: 0.25rem; }
.zn__steps p { font-size: var(--f-sm); }
.zn__steps .why { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.zn__note { margin-top: 1.4rem; padding: 1rem 1.15rem; background: var(--white); border-left: 4px solid var(--indigo); border-radius: var(--r); font-size: var(--f-sm); }
.zn__note b { display: block; margin-bottom: 0.2rem; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 860px; margin-top: 1.2rem; border-top: 2px solid var(--ink); }
.hzq { border-bottom: 1px solid var(--line-w); }
.hzq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; font-family: var(--disp); font-weight: 600; font-size: 1.12rem; line-height: 1.45; color: var(--ink); list-style: none; cursor: pointer; }
.hzq summary::after { content: "+"; flex: none; font-family: var(--sans); color: var(--indigo-d); }
.hzq[open] summary::after { content: "\2013"; }
.hzq > div { padding: 0 0 1.1rem; }

/* 12 Form & contact */
.form { display: grid; gap: 1rem 1.3rem; 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-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 #b4bcc7; 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='%231b2430' 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-direction: row; 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; border: 1px solid #b4bcc7; border-radius: var(--r); background: var(--white); 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: 1.4rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1.2rem; }
.side__card { padding-top: 0.9rem; border-top: 2px solid var(--ink); }
.side__card h2 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.side__card .big { display: block; margin: 0.05rem 0 0.3rem; font-family: var(--disp); font-size: 1.32rem; font-weight: 600; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #8f99a6; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #fff; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.6rem 1.6rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.45rem; font-family: var(--disp); font-size: 1.16rem; font-weight: 600; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #a9a8dd; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft p { max-width: none; }
.ft__base { padding-block: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; }

/* 14 Images */
.img-placeholder { background: var(--ground-2); border: 1px dashed #b7ae9c; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
