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

/* ==========================================================================
   Everline HVAC — everlinehvac.xyz
   One continuous line: cream, aubergine, a saffron line that runs through it all.
   01 Tokens · 02 Base · 03 Header · 04 Corner pills · 05 Buttons · 06 Hero
   07 Page heads · 08 Sections & line list · 09 Two-floor gap (signature)
   10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --cream: #fffaf2; --cream-2: #f6eddf; --white: #ffffff; --aub: #3b1f3f; --aub-2: #54305a; --lav: #efe4f1;
  --saffron: #f4a300; --saffron-ink: #8a5c00; --ink: #2a1630; --text: #4a3d4d; --muted: #6d6070; --rule: #e6d9e8;
  --focus: #54305a; --err: #b3261e; --ok: #2e6b3a;
  --font: "Prompt", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.94rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.07rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --f2: clamp(1.85rem, 1.45rem + 1.8vw, 2.8rem); --f3: clamp(2.4rem, 1.7rem + 3.3vw, 4.4rem);
  --wrap: 1140px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem); --r: 16px; --line: 3px;
}

/* 02 Base */
body { background: var(--cream); color: var(--text); font-family: var(--font); font-size: var(--f0); font-weight: 300; line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--f3); font-weight: 700; }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 500; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--aub-2); text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 500; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.lead-in { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; color: var(--saffron-ink); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.lead-in::before { content: ""; width: 3rem; height: var(--line); border-radius: 2px; background: var(--saffron); }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,250,242,0.96); backdrop-filter: blur(6px); }
.hd::after { content: ""; position: absolute; left: 0; bottom: 0; height: var(--line); width: 100%; background: linear-gradient(90deg, var(--saffron) 0 30%, var(--rule) 30%); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.ev-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.ev-logo svg { width: 48px; height: 26px; flex: none; }
.ev-logo b { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.ev-logo span { font-weight: 300; color: var(--muted); }
.enav { display: none; }
.hd__end { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.hd .hd__tel, .hd .hd__cta { display: none; }
.hd__tel { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border: 0; border-radius: 999px; background: var(--lav); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 1099px) {
  .enav { position: absolute; top: calc(100% + var(--line)); left: -1rem; right: -1rem; flex-direction: column; padding: 0.4rem 1.4rem 1.4rem 2.6rem; background: var(--cream); box-shadow: 0 20px 30px -24px rgba(42,22,48,0.5); }
  .enav::before { content: ""; position: absolute; left: 1.4rem; top: 1.2rem; bottom: 1.8rem; width: var(--line); background: var(--saffron); border-radius: 2px; }
  .enav.is-open { display: flex; }
  .enav a { position: relative; padding: 0.75rem 0; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 500; }
  .enav a[aria-current="page"]::before { content: ""; position: absolute; left: -1.55rem; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--aub); box-shadow: 0 0 0 3px var(--saffron); }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .hd .hd__tel { display: inline; }
  .hd .hd__cta { display: inline-flex; }
  .enav { display: flex; gap: 1.4rem; margin-left: 2.4rem; }
  .enav a { position: relative; padding: 0.4rem 0; color: var(--text); text-decoration: none; font-weight: 400; }
  .enav a:hover { color: var(--ink); }
  .enav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .enav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.2rem; height: var(--line); border-radius: 2px; background: var(--saffron); }
}

/* 04 Corner pills (under 1001px) */
.cpill { position: fixed; bottom: 14px; z-index: 40; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.85rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(42,22,48,0.6); }
.cpill svg { width: 18px; height: 18px; }
.cpill--call { left: 14px; background: var(--aub); color: #fff; }
.cpill--book { right: 14px; background: var(--saffron); color: var(--ink); }
.cpill:focus-visible { outline-offset: 3px; }
@media (min-width: 1100px) { .cpill { display: none; } }
@media (max-width: 1099px) { .ft { padding-bottom: 80px; } }

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

/* 06 Hero */
.hero .wrap { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.8rem, 2.2rem + 3vw, 5.2rem); }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1fr 1fr; } }
.hero .wrap > * { min-width: 0; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); max-width: 36ch; }
.lineart { position: relative; }
.lineart svg { position: absolute; inset: -6% -4% auto auto; width: 70%; height: auto; z-index: 2; pointer-events: none; }
.lineart figure img, .lineart figure .img-placeholder { border-radius: var(--r) var(--r) var(--r) 120px; }

/* 07 Page heads */
.phead .wrap { position: relative; padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem) clamp(1.8rem, 1.4rem + 2vw, 3rem); padding-left: 2rem; }
.phead .wrap::before { content: ""; position: absolute; left: 0; top: 2.6rem; bottom: 1.4rem; width: var(--line); border-radius: 2px; background: var(--saffron); }
.phead h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); max-width: 20ch; }
.phead p { font-size: 1.12rem; max-width: 54ch; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.88rem; }
.crumbs li + li::before { content: "—"; margin-right: 0.5rem; color: var(--saffron-ink); }

/* 08 Sections & line list */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--aub { background: var(--aub); color: #e7dbe9; }
.sec--aub h2, .sec--aub h3, .sec--aub b { color: #fff; }
.sec--aub .lead-in { color: var(--saffron); }
.sec--aub a:not(.btn) { color: #fff; }
.sec--aub :focus-visible { outline-color: var(--saffron); }
.linelist { position: relative; margin: 0; padding: 0 0 0 2.2rem; list-style: none; }
.linelist::before { content: ""; position: absolute; left: 0.55rem; top: 0.6rem; bottom: 0.6rem; width: var(--line); border-radius: 2px; background: var(--saffron); }
.linelist li { position: relative; padding: 0 0 1.6rem; margin: 0; }
.linelist li:last-child { padding-bottom: 0; }
.linelist li::before { content: ""; position: absolute; left: -2.05rem; top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); border: var(--line) solid var(--aub); }
.sec--white .linelist li::before { background: var(--white); }
.sec--aub .linelist li::before { background: var(--aub); border-color: #fff; }
.linelist h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.linelist p { margin: 0; font-size: var(--f-sm); }
.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; }
.panel { padding: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); }
.panel--aub { background: var(--aub); color: #e7dbe9; border-color: var(--aub); }
.panel--aub h2, .panel--aub h3 { color: #fff; }
.panel--aub a:not(.btn) { color: var(--saffron); }
.panel--aub :focus-visible { outline-color: var(--saffron); }
.duo { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 420px); border: 0; border-radius: var(--r); background: var(--cream-2); }
.towns { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towns li { padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); font-size: 0.95rem; }

/* 09 Two-floor gap (signature) */
.gap-tool { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); }
.gap-tool__in { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gap-tool label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.house { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.house[hidden] { display: none; }
.house__floors { display: grid; gap: 4px; }
.house__floors div { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; border-radius: 10px; color: #fff; font-weight: 600; }
.house__floors .up { background: #c2410c; }
.house__floors .down { background: #3b6ea8; }
.house__gap { display: grid; place-items: center; width: 5.6rem; height: 5.6rem; border-radius: 50%; border: var(--line) solid var(--saffron); text-align: center; line-height: 1.05; }
.house__gap b { display: block; font-size: 1.7rem; }
.house__gap span { font-size: 0.72rem; color: var(--muted); }
.gap-out { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: var(--lav); color: var(--ink); }
.gap-out[hidden] { display: none; }
.gap-out b { display: block; font-size: 1.15rem; }
.gap-out ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.gap-out li::marker { color: var(--saffron-ink); }

/* 10 FAQ */
.faq { max-width: 860px; }
.eq { position: relative; padding-left: 2rem; }
.eq::before { content: ""; position: absolute; left: 0.55rem; top: 0; bottom: 0; width: var(--line); background: var(--rule); }
.eq[open]::before { background: var(--saffron); }
.eq summary { position: relative; padding: 1rem 0; font-weight: 500; font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; }
.eq summary::before { content: ""; position: absolute; left: -1.95rem; top: 1.4rem; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); border: var(--line) solid var(--aub); }
.eq[open] summary::before { background: var(--saffron); border-color: var(--saffron); }
.eq > div { padding: 0 0 1.2rem; }

/* 11 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-weight: 500; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--saffron-ink); }
.opt { font-weight: 300; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.8rem 1rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--cream); border: 1px solid #cdb9d0; border-radius: 12px; }
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='%2354305a' stroke-width='2.4'%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: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--aub-2); background: #fff; }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.phone-big { display: block; margin: 0.2rem 0 0.8rem; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 700; color: #fff; text-decoration: none; }

/* 12 Footer */
.ft { position: relative; background: var(--ink); color: #cbbccd; font-size: var(--f-sm); }
.ft::before { content: ""; position: absolute; left: 0; top: 0; height: var(--line); width: 100%; background: linear-gradient(90deg, var(--rule) 70%, var(--saffron) 70%); }
.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.1rem; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--saffron); }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #45304a; font-size: 0.85rem; }
.ft__base p { margin: 0; max-width: none; }

/* 13 Images */
.img-placeholder { background: var(--cream-2); border: 1px dashed #cdb9d0; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
figcaption { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }
.mt { margin-top: 2rem; }

.ev-logo b, .enav a, .hd__cta { white-space: nowrap; }
