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

/* ==========================================================================
   ColorNest Interiors & HVAC — colornesthvac.xyz
   Fresh, friendly, tile-based. Segmented nav in the middle of the bar.
   01 Tokens · 02 Base · 03 Header · 04 Split hero · 05 Page heads · 06 Buttons
   07 Tiles & panels · 08 ERV diagram (signature) · 09 FAQ · 10 Contact & form
   11 Footer & call button · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --ink: #1d2433; --text: #3d4556; --muted: #5f6878; --line: #e3e7e4;
  --white: #ffffff; --mist: #f4f7f5; --tint: #eaf5ed; --tint-2: #d9eedf;
  --leaf: #2f8f4e; --leaf-btn: #237a40; --leaf-dark: #1a5f31; --leaf-ink: #1f6e39; --leaf-light: #9fd8ad;
  --air: #3b82c4;
  --focus: #237a40; --err: #b42318; --ok: #1a5f31;
  --font: "Gabarito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.95rem; --f0: clamp(1.02rem, 0.99rem + 0.15vw, 1.1rem); --f1: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --f2: clamp(1.8rem, 1.45rem + 1.6vw, 2.8rem); --f3: clamp(2.4rem, 1.8rem + 3vw, 4.2rem);
  --wrap: 1220px; --pad-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); --r: 20px;
}

/* 02 Base */
body { background: var(--white); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.45em; font-weight: 700; color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--f3); font-weight: 800; }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--leaf-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.tag { display: inline-block; align-self: flex-start; margin-bottom: 0.9rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--tint-2); color: var(--leaf-dark); font-size: 0.85rem; font-weight: 600; }

/* 03 Header */
.bar { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.nestmark { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; white-space: nowrap; }
.nestmark svg { width: 38px; height: 38px; flex: none; }
.nestmark small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.seg { display: none; }
.bar__end { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.bar__tel { display: none; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1039px) {
  .seg { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0.3rem; padding: 0.8rem 1rem 1.2rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(29,36,51,0.3); }
  .seg.is-open { display: flex; }
  .seg a { padding: 0.85rem 1rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
  .seg a[aria-current="page"] { background: var(--tint); color: var(--leaf-dark); }
}
@media (min-width: 1040px) {
  .seg { display: flex; gap: 0.2rem; margin: 0 auto; padding: 0.3rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
  .seg a { padding: 0.5rem 1.05rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
  .seg a:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
  .seg a[aria-current="page"] { background: var(--white); color: var(--leaf-dark); box-shadow: 0 2px 8px rgba(29,36,51,0.14); }
  .bar__end { margin-left: 0; }
  .bar__tel { display: inline; }
  .nav-toggle { display: none; }
}
@media (max-width: 420px) { .nestmark small { display: none; } .nestmark { font-size: 1.2rem; } .nestmark svg { width: 32px; height: 32px; } .bar__end .btn { padding: 0.6rem 0.9rem; font-size: 0.9rem; } }

/* 04 Split hero */
.split-hero { display: grid; background: var(--tint); }
@media (min-width: 960px) { .split-hero { grid-template-columns: 1fr 1fr; min-height: min(80vh, 720px); } }
.split-hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.6rem, 2rem + 4vw, 5rem) max(1rem, calc((100vw - var(--wrap)) / 2)); }
@media (min-width: 960px) { .split-hero__text { padding-right: clamp(2rem, 1rem + 3vw, 4rem); } }
.split-hero h1 { max-width: 12ch; }
.split-hero p { font-size: var(--f1); line-height: 1.5; max-width: 34ch; }
.split-hero .btns { margin-top: 1.6rem; }
.split-hero figure { position: relative; min-height: 320px; }
.split-hero figure > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.split-hero .note { display: flex; align-items: center; gap: 0.7rem; margin-top: 2rem; font-size: var(--f-sm); color: var(--muted); }
.split-hero .note svg { width: 36px; height: 36px; flex: none; }

/* 05 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.2rem); background: var(--tint); }
.phead .wrap { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .phead .wrap { grid-template-columns: 1.2fr 0.8fr; } }
.phead h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem); max-width: 16ch; margin: 0; }
.phead p { font-size: var(--f1); line-height: 1.5; margin: 0; }
.crumbs { display: flex; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); grid-column: 1 / -1; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; }

/* 06 Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, transform 0.2s; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--leaf { background: var(--leaf-btn); color: #fff; }
.btn--leaf:hover { background: var(--leaf-dark); color: #fff; }
.btn--soft { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--soft:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.08rem; }

/* 07 Tiles & panels */
.sec { padding-block: var(--pad-y); }
.sec--mist { background: var(--mist); }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.8rem, 1.4rem + 2vw, 3rem); }
.sec-top h2 { margin: 0; max-width: 18ch; }
.sec-top p { margin: 0; max-width: 44ch; }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.5rem; border-radius: var(--r); background: var(--mist); color: var(--text); text-decoration: none; transition: transform 0.2s, background-color 0.2s; }
a.tile:hover { transform: translateY(-3px); background: var(--tint); }
.tile .ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 0.6rem; border-radius: 14px; background: var(--white); color: var(--leaf-ink); }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { margin: 0; font-size: 1.25rem; }
.tile p { margin: 0; font-size: var(--f-sm); }
.twin { display: grid; gap: 1rem; }
@media (min-width: 880px) { .twin { grid-template-columns: 1fr 1fr; } }
.panel { display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); border-radius: var(--r); background: var(--tint); }
.panel--ink { background: var(--ink); color: #c8cfda; }
.panel--ink h3, .panel--ink h2 { color: #fff; }
.panel--ink .tag { background: rgba(255,255,255,0.12); color: #fff; }
.panel--ink a { color: var(--leaf-light); }
.panel--ink :focus-visible { outline-color: var(--leaf-light); }
.panel figure img, .panel figure .img-placeholder { border-radius: 14px; }
.panel h3 { font-size: var(--f2); margin: 0.4rem 0 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--leaf-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feature { display: grid; gap: 2rem; align-items: center; padding: clamp(1.6rem, 1.2rem + 2vw, 3rem); border-radius: 28px; background: var(--ink); color: #c8cfda; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature > * { min-width: 0; }
.feature h2 { color: #fff; }
.feature .tag { background: rgba(255,255,255,0.12); color: #fff; }
.feature svg { width: 100%; height: auto; }
.feature :focus-visible { outline-color: var(--leaf-light); }
.area-card { display: grid; gap: 1.5rem; padding: clamp(1.2rem, 1rem + 1.5vw, 2.2rem); border-radius: 28px; background: var(--mist); }
@media (min-width: 900px) { .area-card { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
.area-card > * { min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pills li { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--white); font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.map-card { width: 100%; aspect-ratio: 4 / 3; min-height: 280px; border-radius: 18px; background: var(--white); }

/* 08 ERV diagram (signature) */
.erv { padding: clamp(1.2rem, 1rem + 2vw, 2.6rem); border-radius: 28px; background: var(--mist); }
.erv svg { width: 100%; max-width: 900px; height: auto; margin-inline: auto; }
.erv figcaption { max-width: 60ch; margin: 1.2rem auto 0; text-align: center; font-size: var(--f-sm); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: var(--f-sm); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.legend i { width: 28px; height: 6px; border-radius: 3px; }
.legend .l-fresh { background: var(--leaf); }
.legend .l-stale { background: #9a7b5b; }
.three { display: grid; gap: 1rem; }
@media (min-width: 860px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three .tile { background: var(--white); border: 1px solid var(--line); }
.three .tile.is-best { border: 2px solid var(--leaf-btn); background: var(--tint); }
.verdict { display: inline-block; margin-top: 0.6rem; font-weight: 700; color: var(--leaf-dark); }

/* 09 FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.6rem; }
.fq { border-radius: 16px; background: var(--mist); }
.fq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-size: 1.12rem; font-weight: 700; color: var(--ink); list-style: none; }
.fq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--leaf-ink); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.fq[open] summary::after { transform: rotate(45deg); background: var(--leaf-btn); color: #fff; }
.fq > div { padding: 0 1.3rem 1.2rem; }

/* 10 Contact & form */
.cards3 { display: grid; gap: 1rem; }
@media (min-width: 820px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.cards3 > div { padding: 1.5rem; border-radius: var(--r); background: var(--mist); }
.cards3 h2 { margin-bottom: 0.3rem; font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.cards3 .big { font-size: 1.7rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.form-panel { padding: clamp(1.4rem, 1rem + 2vw, 2.8rem); border-radius: 28px; background: var(--tint); }
.form { display: grid; gap: 1rem 1.2rem; margin-top: 1.4rem; }
@media (min-width: 700px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--ink); font-size: var(--f-sm); }
.req { color: var(--leaf-ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.85rem 1rem; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid transparent; border-radius: 12px; box-shadow: 0 1px 2px rgba(29,36,51,0.08); }
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='%23237a40' stroke-width='2.5'%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.5rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf-btn); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* 11 Footer & call button */
.foot { margin-top: var(--pad-y); background: var(--mist); border-top: 1px solid var(--line); font-size: var(--f-sm); }
.foot__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: 1rem; margin-bottom: 0.8rem; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--leaf-ink); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-block: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.foot__base p { margin: 0; max-width: none; }
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 95; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--leaf-btn); color: #fff; box-shadow: 0 10px 24px -8px rgba(26,95,49,0.6); }
.fab svg { width: 26px; height: 26px; }
.fab:hover { background: var(--leaf-dark); color: #fff; }
@media (min-width: 1040px) { .fab { display: none; } }

/* 12 Images */
.img-placeholder { background: var(--tint-2); border: 1px dashed #9fbfa8; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
.panel--ink .img-placeholder { background: #2c3447; border-color: #4a5468; color: #aab3c2; }
.panel--ink .img-placeholder b { color: #fff; }
.mt { margin-top: 2rem; }
