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

/* ==========================================================================
   GoldenLeaf Finishes & HVAC — goldenleafhvac.xyz
   Temecula wine country: cream, gold leaf, vine green, a classical display face.
   01 Tokens · 02 Base · 03 Header · 04 Side tab · 05 Buttons · 06 Hero fan
   07 Page heads · 08 Sections · 09 Warranty timeline (signature) · 10 FAQ
   11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --cream: #fbf6ea; --cream-2: #f3ead4; --white: #fffdf8; --ink: #2f2a1f; --text: #4a4336; --muted: #6b6252; --rule: #e2d6b8;
  --gold: #b8860b; --gold-dark: #8a6408; --gold-soft: #f6e7c1; --vine: #4a5d23; --vine-dark: #36451a; --wine: #6d2233;
  --focus: #8a6408; --err: #a61b1b; --ok: #3f6212;
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem); --f1: clamp(1.25rem, 1.13rem + 0.55vw, 1.6rem);
  --f2: clamp(1.9rem, 1.45rem + 2vw, 3rem); --f3: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);
  --wrap: 1160px; --pad-y: clamp(3.4rem, 2.4rem + 4.2vw, 6.4rem); --r: 6px;
}

/* 02 Base */
body { background: var(--cream); color: var(--text); font-family: var(--body); font-size: var(--f0); line-height: 1.7; }
h1, h2 { margin: 0 0 0.45em; font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.12; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { margin: 0 0 0.4em; font-size: 1.12rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--vine); }
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; }
.leafline { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0 0 1rem; color: var(--gold-dark); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.leafline::before, .leafline::after { content: ""; width: 2.4rem; height: 1px; background: var(--gold); }
.leafline--left { justify-content: flex-start; }
.leafline--left::before { display: none; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* 03 Header */
.hd { position: relative; background: var(--cream); border-bottom: 1px solid var(--rule); }
.hd::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: var(--cream); border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 84px; }
.gl-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.gl-logo svg { width: 34px; height: 40px; flex: none; }
.gl-logo b { display: block; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.gl-logo small { display: block; margin-top: 0.2rem; color: var(--gold-dark); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vnav { display: none; }
.hd__end { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.hd__tel { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); }
.hd__tel svg { width: 20px; height: 20px; }
.hd__tel span { display: none; }
.hd .hd__cta { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1059px) {
  .vnav { position: absolute; top: 100%; left: -1rem; right: -1rem; z-index: 30; flex-direction: column; align-items: center; padding: 1.4rem 1rem 1.8rem; background: var(--cream); border-bottom: 1px solid var(--gold); }
  .vnav.is-open { display: flex; }
  .vnav a { padding: 0.65rem 0; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.6rem; }
  .vnav a[aria-current="page"] { color: var(--gold-dark); }
  .vnav a[aria-current="page"]::before, .vnav a[aria-current="page"]::after { content: " ❧ "; font-size: 0.9rem; color: var(--gold); }
}
@media (min-width: 1060px) {
  .nav-toggle { display: none; }
  .vnav { display: flex; align-items: center; margin-inline: auto; }
  .vnav a { position: relative; padding: 0.5rem 0.95rem; color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .vnav a + a::before { content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 0 50%; background: var(--gold); transform: rotate(45deg); }
  .vnav a:hover { color: var(--gold-dark); }
  .vnav a[aria-current="page"] { color: var(--gold-dark); }
  .vnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.15rem; height: 1px; background: var(--gold-dark); }
  .hd__tel { width: auto; height: auto; border: 0; border-radius: 0; color: var(--ink); font-weight: 650; text-decoration: none; }
  .hd__tel svg { display: none; }
  .hd__tel span { display: inline; }
  .hd .hd__cta { display: inline-flex; }
}
.hd :focus-visible { outline-color: var(--gold-dark); }

/* 04 Side tab (under 1060px): vertical CTA on the right edge */
.sidetab { position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%); writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.5rem; padding: 1.1rem 0.7rem; background: var(--vine); color: #fff; border-radius: 10px 0 0 10px; box-shadow: -6px 8px 20px -10px rgba(47,42,31,0.6); font-weight: 650; font-size: 0.92rem; letter-spacing: 0.04em; text-decoration: none; }
.sidetab:hover { background: var(--vine-dark); color: #fff; }
.sidetab::before { content: ""; width: 8px; height: 8px; border-radius: 0 50%; background: var(--gold-soft); transform: rotate(45deg); }
.sidetab:focus-visible { outline-offset: -5px; outline-color: #fff; }
@media (min-width: 1060px) { .sidetab { display: none; } }
@media (max-width: 1059px) { main .wrap, .ft .wrap { width: calc(100% - 4.6rem); margin-left: 1rem; margin-right: 3.6rem; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border: 1px solid transparent; border-radius: var(--r); 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 svg { width: 1em; height: 1em; }
.btn--gold { background: var(--gold-dark); color: #fff; }
.btn--gold:hover { background: #6e5006; color: #fff; }
.btn--vine { background: var(--vine); color: #fff; }
.btn--vine:hover { background: var(--vine-dark); color: #fff; }
.btn--line { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--gold-soft); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btns--center { justify-content: center; }

/* 06 Hero fan */
.hero { padding-block: clamp(2.8rem, 2rem + 3.4vw, 5.4rem) clamp(2.4rem, 1.8rem + 3vw, 4.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: 42ch; margin-inline: auto; color: var(--ink); }
.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.fan figure { width: min(34%, 320px); flex: none; background: var(--white); padding: 0.6rem 0.6rem 0.8rem; box-shadow: 0 24px 40px -28px rgba(47,42,31,0.55); }
.fan figure:nth-child(1) { transform: rotate(-6deg) translate(18%, 6%); }
.fan figure:nth-child(2) { position: relative; z-index: 2; width: min(40%, 380px); }
.fan figure:nth-child(3) { transform: rotate(6deg) translate(-18%, 6%); }
.fan figure img, .fan figure .img-placeholder { border-radius: 2px; }
@media (max-width: 560px) { .fan figure:nth-child(1), .fan figure:nth-child(3) { width: 30%; } .fan figure:nth-child(2) { width: 46%; } }

/* 07 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem); text-align: center; border-bottom: 1px solid var(--rule); background: linear-gradient(var(--cream), var(--cream-2)); }
.phead h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem); max-width: 20ch; margin-inline: auto; }
.phead p { font-size: 1.12rem; max-width: 54ch; margin-inline: auto; color: var(--ink); }
.crumbs { display: flex; justify-content: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.86rem; }
.crumbs li + li::before { content: "❧"; margin-right: 0.5rem; color: var(--gold); }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--vine { background: var(--vine-dark); color: #e3e7d4; }
.sec--vine h2, .sec--vine h3 { color: #fff; }
.sec--vine .leafline { color: var(--gold-soft); }
.sec--vine .leafline::before, .sec--vine .leafline::after { background: var(--gold-soft); }
.sec--vine a:not(.btn) { color: var(--gold-soft); }
.sec--vine :focus-visible { outline-color: var(--gold-soft); }
.seasons { display: grid; gap: 1px; margin: 2.4rem 0 0; padding: 0; list-style: none; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 760px) { .seasons { grid-template-columns: repeat(4, 1fr); } }
.seasons li { padding: 1.6rem 1.4rem; background: var(--white); margin: 0; }
.seasons .when { display: block; margin-bottom: 0.4rem; font-family: var(--display); font-size: 1.5rem; color: var(--gold-dark); }
.seasons p { margin: 0; font-size: var(--f-sm); }
.duo { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); outline: 1px solid var(--gold); outline-offset: -10px; padding: 1.4rem; }
.card figure { margin-bottom: 1.2rem; }
.card h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.card ul { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.card li { padding: 0.4rem 0 0.4rem 1.4rem; position: relative; border-bottom: 1px dotted var(--rule); }
.card li::before { content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 7px; height: 7px; border-radius: 0 50%; background: var(--vine); transform: rotate(45deg); }
.card .btn { align-self: flex-start; margin-top: auto; }
.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; }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.plain h3 { margin-bottom: 0.2rem; }
.plain p { margin: 0; font-size: var(--f-sm); }
.mapcard { position: relative; }
.map { display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0; background: var(--cream-2); filter: sepia(0.25); }
.mapcard__note { margin-top: 1rem; padding: 1.4rem; background: var(--white); border: 1px solid var(--rule); }
@media (min-width: 900px) { .mapcard__note { position: absolute; left: 2rem; bottom: 2rem; max-width: 340px; margin: 0; box-shadow: 0 20px 30px -24px rgba(47,42,31,0.6); } }

/* 09 Warranty timeline (signature) */
.wt { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); background: var(--white); border: 1px solid var(--rule); }
.wt label { display: block; margin-bottom: 0.4rem; font-weight: 650; color: var(--ink); }
.wt input { max-width: 260px; }
.dates { position: relative; margin: 1.6rem 0 0; padding: 0 0 0 1.8rem; list-style: none; }
.dates[hidden] { display: none; }
.dates::before { content: ""; position: absolute; left: 0.45rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--gold), var(--vine)); }
.dates li { position: relative; padding: 0 0 1.3rem; margin: 0; }
.dates li::before { content: ""; position: absolute; left: -1.62rem; top: 0.35rem; width: 12px; height: 12px; border-radius: 0 50%; background: var(--gold); transform: rotate(45deg); }
.dates li.is-past::before { background: var(--rule); }
.dates b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.dates span { font-size: var(--f-sm); }
.dates .d { color: var(--gold-dark); font-weight: 650; }
.keep { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .keep { grid-template-columns: repeat(3, 1fr); } }
.keep li { padding: 1.4rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(246,231,193,0.35); margin: 0; }
.keep p { margin: 0; font-size: var(--f-sm); }

/* 10 FAQ */
.faq { display: grid; gap: 0 2.4rem; }
@media (min-width: 880px) { .faq { grid-template-columns: 1fr 1fr; } }
.lq { border-bottom: 1px solid var(--rule); }
.lq summary { display: flex; gap: 0.8rem; padding: 1.1rem 0; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; }
.lq summary::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 0.5rem; border-radius: 0 50%; background: var(--gold); transform: rotate(45deg); transition: transform 0.2s; }
.lq[open] summary::before { background: var(--vine); transform: rotate(135deg); }
.lq > div { padding: 0 0 1.2rem 1.5rem; font-size: var(--f-sm); }

/* 11 Form & contact */
.letter { max-width: 720px; margin-inline: auto; padding: clamp(1.6rem, 1rem + 3vw, 3.2rem); background: var(--white); border: 1px solid var(--rule); outline: 1px solid var(--gold); outline-offset: -12px; }
.form { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-weight: 650; color: var(--ink); font-size: 0.94rem; }
.req { color: var(--gold-dark); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--rule); 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='%238a6408' 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(--gold-dark); background: var(--white); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.picks legend { margin-bottom: 0.5rem; }
.pick { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--cream); cursor: pointer; font-size: 0.94rem; }
.pick input { accent-color: var(--vine); }
.pick:has(input:checked) { border-color: var(--vine); background: #eef2e2; }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.trio { display: grid; gap: 1.4rem; margin-top: 2.4rem; text-align: center; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.trio .num { font-family: var(--display); font-size: 1.8rem; color: var(--ink); text-decoration: none; }

/* 12 Footer */
.ft { background: var(--ink); color: #d9d0bb; font-size: var(--f-sm); text-align: center; }
.ft .wrap { padding-block: 3.2rem 1.6rem; }
.ft__leaf { width: 40px; height: 46px; margin: 0 auto 0.8rem; }
.ft__name { margin: 0 0 0.6rem; font-family: var(--display); font-size: 1.9rem; color: #fff; }
.ft p { margin-inline: auto; }
.ft nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin: 1.4rem 0; }
.ft a { color: #f6e7c1; }
.ft :focus-visible { outline-color: #f6e7c1; }
.ft__base { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(246,231,193,0.2); font-size: 0.84rem; }

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