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

/* ==========================================================================
   Bright N Leaf HVAC & Colorworks — hvacbright.xyz
   Fresh and friendly: leaf green, sunshine, mint, rounded everything.
   01 Tokens · 02 Base · 03 Header, badge & phone strip · 04 Leaf button
   05 Buttons · 06 Hero · 07 Page heads · 08 Sections & ideas carousel
   09 Return-air wizard (signature) · 10 FAQ bubbles · 11 Form & contact
   12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --mint: #effaf1; --mint-2: #dcf3e1; --white: #ffffff; --leaf: #2f9e44; --leaf-dark: #237a34; --forest: #123524;
  --sun: #ffd43b; --sun-soft: #fff6d1; --ink: #123524; --text: #2f4a3b; --muted: #54695d; --line: #cfe8d5;
  --focus: #237a34; --err: #c0262d; --ok: #237a34;
  --round: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.95rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem); --f1: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem);
  --f2: clamp(1.95rem, 1.5rem + 2vw, 3rem); --f3: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);
  --wrap: 1160px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem); --r: 24px;
  --leafshape: 0 60% 0 60%;
}

/* 02 Base */
body { background: var(--mint); color: var(--text); font-family: var(--body); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--round); color: var(--ink); font-weight: 600; line-height: 1.1; 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: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--leaf-dark); text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--forest); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.9rem; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--sun); color: var(--forest); font-family: var(--round); font-weight: 600; font-size: 0.95rem; }

/* 03 Header, badge & phone strip */
.hd { position: relative; z-index: 30; background: var(--white); box-shadow: 0 2px 0 var(--line); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 70px; padding-left: 96px; }
.badge { position: absolute; left: 0; top: 8px; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px var(--white), 0 10px 20px -8px rgba(18,53,36,0.45); }
.badge svg { width: 46px; height: 46px; }
.bn-name { color: var(--ink); text-decoration: none; font-family: var(--round); line-height: 1.05; }
.bn-name b { display: block; font-weight: 700; font-size: 1.35rem; color: var(--forest); }
.bn-name small { display: block; font-size: 0.8rem; color: var(--muted); font-family: var(--body); }
.lnav { display: none; }
.hd .hd__cta { display: none; }
.nav-toggle { flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--mint-2); color: var(--forest); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.strip { background: var(--leaf-dark); color: #fff; }
.strip .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-height: 38px; padding-left: 96px; font-size: 0.92rem; }
.strip a { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 700; text-decoration: none; }
.strip svg { width: 15px; height: 15px; }
.strip span { color: #d6f5dc; }
.strip :focus-visible { outline-color: var(--sun); }
@media (max-width: 1019px) {
  .lnav { position: absolute; top: 100%; left: -1rem; right: -1rem; flex-direction: column; gap: 0.3rem; padding: 3rem 1rem 1.2rem; background: var(--white); border-radius: 0 0 28px 28px; box-shadow: 0 24px 30px -24px rgba(18,53,36,0.45); }
  .lnav.is-open { display: flex; }
  .lnav a { padding: 0.8rem 1.1rem; border-radius: 999px; color: var(--forest); text-decoration: none; font-family: var(--round); font-size: 1.3rem; font-weight: 600; }
  .lnav a[aria-current="page"] { background: var(--sun); }
  .strip span { display: none; }
}
@media (max-width: 420px) { .bn-name small { display: none; } .hd .wrap, .strip .wrap { padding-left: 86px; } .badge { width: 74px; height: 74px; } }
@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .lnav { display: flex; gap: 0.3rem; margin-left: auto; }
  .lnav a { padding: 0.5rem 1rem; border-radius: 999px; color: var(--forest); text-decoration: none; font-family: var(--round); font-weight: 600; font-size: 1.05rem; }
  .lnav a:hover { background: var(--mint); }
  .lnav a[aria-current="page"] { background: var(--sun); }
  .hd .hd__cta { display: inline-flex; margin-left: 0.6rem; }
}

/* 04 Leaf button (under 1020px) */
.leafbtn { position: fixed; right: 14px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 70px; height: 70px; border-radius: var(--leafshape); background: var(--sun); color: var(--forest); font-family: var(--round); font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 12px 24px -10px rgba(18,53,36,0.6); border: 3px solid var(--white); }
.leafbtn:hover { background: #ffe066; color: var(--forest); }
.leafbtn:focus-visible { outline-offset: 3px; }
@media (min-width: 1020px) { .leafbtn { display: none; } }
@media (max-width: 1019px) { .ft { padding-bottom: 100px; } }

/* 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-family: var(--round); font-size: 1.05rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.15s, background-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1em; height: 1em; }
.btn--leaf { background: var(--leaf-dark); color: #fff; }
.btn--leaf:hover { background: var(--forest); color: #fff; }
.btn--sun { background: var(--sun); color: var(--forest); }
.btn--sun:hover { background: #ffe066; color: var(--forest); }
.btn--white { background: var(--white); color: var(--forest); border-color: var(--line); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero */
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; padding-block: clamp(3.2rem, 2.6rem + 3vw, 5.6rem) clamp(2.6rem, 2rem + 3vw, 4.6rem); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero .wrap > * { min-width: 0; }
.hero p.lede { font-size: var(--f1); line-height: 1.45; color: var(--forest); max-width: 36ch; }
.leafpic img, .leafpic .img-placeholder { border-radius: 0 50% 0 50%; }
.hero .leafpic { position: relative; }
.hero .leafpic::before { content: ""; position: absolute; inset: 8% -4% -4% 8%; z-index: -1; border-radius: 0 50% 0 50%; background: var(--sun); }

/* 07 Page heads */
.phead .wrap { padding-block: clamp(2.8rem, 2.2rem + 2.6vw, 4.6rem) clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.phead h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.7rem); max-width: 18ch; }
.phead p { font-size: 1.15rem; max-width: 54ch; color: var(--forest); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--leaf); }

/* 08 Sections & ideas carousel */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--leaf { background: var(--leaf-dark); color: #e3f6e7; }
.sec--leaf h2, .sec--leaf h3 { color: #fff; }
.sec--leaf a:not(.btn) { color: var(--sun); }
.sec--leaf :focus-visible { outline-color: var(--sun); }
.ideas { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 300px); gap: 1rem; margin: 1.6rem -1rem 0; padding: 0.4rem 1rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; }
.ideas li { scroll-snap-align: start; padding: 1.6rem 1.4rem; border-radius: var(--r); background: var(--white); border: 2px solid var(--line); margin: 0; }
.ideas li:nth-child(3n+2) { background: var(--sun-soft); border-color: #ffe99a; }
.ideas .n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.9rem; border-radius: var(--leafshape); background: var(--leaf); color: #fff; font-family: var(--round); font-weight: 700; }
.ideas h3 { font-size: 1.2rem; }
.ideas p { margin: 0; font-size: var(--f-sm); }
.ideas:focus-visible { outline-offset: 4px; }
@media (min-width: 1100px) { .ideas { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.blobs { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .blobs { grid-template-columns: 1fr 1fr; } }
.blob { padding: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); border-radius: 40px 40px 40px 8px; background: var(--white); }
.blob:nth-child(2) { border-radius: 40px 40px 8px 40px; background: var(--forest); color: #d9efe0; }
.blob:nth-child(2) h2, .blob:nth-child(2) h3 { color: #fff; }
.blob:nth-child(2) a:not(.btn) { color: var(--sun); }
.blob:nth-child(2) :focus-visible { outline-color: var(--sun); }
.blob .ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: var(--leafshape); background: var(--mint-2); color: var(--leaf-dark); }
.blob:nth-child(2) .ico { background: var(--sun); color: var(--forest); }
.blob .ico svg { width: 30px; height: 30px; }
.blob ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.blob li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; }
.blob li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 12px; height: 12px; border-radius: var(--leafshape); background: var(--leaf); }
.blob:nth-child(2) li::before { background: var(--sun); }
.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; }
.leaflist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }
.leaflist li { padding: 1.1rem 1.3rem; border-radius: 20px; background: var(--white); border: 2px solid var(--line); }
.leaflist h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.leaflist p { margin: 0; font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 420px); border: 0; border-radius: 40px 8px 40px 8px; background: var(--mint-2); }

/* 09 Return-air wizard (signature) */
.wiz { padding: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); border-radius: var(--r); background: var(--white); border: 3px solid var(--leaf); }
.wiz__bar { display: flex; gap: 6px; margin-bottom: 1.2rem; }
.wiz__bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--mint-2); }
.wiz__bar i.is-done { background: var(--leaf); }
.wiz__q { font-family: var(--round); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 600; color: var(--ink); line-height: 1.25; }
.wiz__hint { color: var(--muted); font-size: var(--f-sm); }
.wiz__yn { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.wiz__yn button { flex: 1; padding: 0.9rem; border: 2px solid var(--leaf); border-radius: 999px; background: var(--white); color: var(--forest); font-family: var(--round); font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.wiz__yn button:hover { background: var(--mint); }
.wiz__yn button:first-child { background: var(--leaf-dark); border-color: var(--leaf-dark); color: #fff; }
.wiz__res h3 { color: var(--leaf-dark); }
.wiz__res ul { margin: 0.8rem 0 1.2rem; padding-left: 1.2rem; }
.wiz__res li::marker { color: var(--leaf); }
.wiz__again { padding: 0.5rem 1rem; border: 0; border-radius: 999px; background: var(--mint-2); color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.wiz[hidden], .wiz [hidden] { display: none; }

/* 10 FAQ bubbles */
.bubbles { display: grid; gap: 1.2rem; max-width: 860px; }
.bq { display: grid; gap: 0.5rem; }
.bq h3 { justify-self: start; max-width: 90%; margin: 0; padding: 0.9rem 1.2rem; border-radius: 22px 22px 22px 4px; background: var(--white); font-size: 1.1rem; border: 2px solid var(--line); }
.bq p { justify-self: end; max-width: 90%; margin: 0; padding: 0.9rem 1.2rem; border-radius: 22px 22px 4px 22px; background: var(--leaf-dark); color: #fff; font-size: var(--f-sm); }

/* 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: 700; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--leaf-dark); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.85rem 1.1rem; font: inherit; color: var(--ink); background: var(--mint); border: 2px solid var(--line); border-radius: 18px; }
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='%23237a34' stroke-width='2.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.6rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); background: #fff; }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.roundbox { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); border-radius: 36px; background: var(--white); }
.sunbox { padding: 1.6rem; border-radius: 36px 36px 36px 8px; background: var(--sun); color: var(--forest); }
.sunbox h2 { font-size: 1.4rem; }
.sunbox .num { display: block; margin: 0.2rem 0 0.6rem; font-family: var(--round); font-size: 2.1rem; font-weight: 700; color: var(--forest); text-decoration: none; }
.sunbox a { color: var(--forest); }
.sunbox + .sunbox { margin-top: 1rem; background: var(--mint-2); border-radius: 36px 36px 8px 36px; }

/* 12 Footer */
.ft { background: var(--forest); color: #c6e3cf; font-size: var(--f-sm); border-radius: 48px 48px 0 0; }
.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.3rem; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft a { color: var(--sun); }
.ft :focus-visible { outline-color: var(--sun); }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #2a5a40; font-size: 0.85rem; }
.ft__base p { margin: 0; max-width: none; }

/* 13 Images */
.img-placeholder { background: var(--mint-2); border: 2px dashed #9fd6ab; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
.mt { margin-top: 2rem; }
.wiz__res h2 { font-size: 1.5rem; color: var(--leaf-dark); }
