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

/* ==========================================================================
   CrystalLayer Finishes & HVAC — crystallayerhvac.xyz
   A boxed site: every page sits in one rounded frame on a lavender-grey field.
   01 Tokens · 02 Base · 03 Frame & header · 04 Hero · 05 Page heads
   06 Buttons · 07 Facets, panels, timeline · 08 Outbuildings (signature)
   09 FAQ · 10 Form & contact · 11 Footer & call pill · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --plum: #2b2233; --text: #4a4152; --muted: #6a6172; --line: #ece4ee;
  --field: #efe9f0; --white: #ffffff; --blush: #fdf4f7; --lilac: #f4eff6;
  --rose: #c43d6f; --rose-dark: #a32d5a; --rose-soft: #fbe8ef; --rose-light: #f5b3ca;
  --focus: #a32d5a; --err: #b42318; --ok: #1f6f3a;
  --font: "M PLUS Rounded 1c", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-sm: 0.94rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --f2: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem); --f3: clamp(2.2rem, 1.7rem + 2.6vw, 3.7rem);
  --frame: 1240px; --pad-x: clamp(1rem, 0.5rem + 3vw, 3.5rem); --pad-y: clamp(3rem, 2.2rem + 3.5vw, 5.4rem); --r: 22px;
}

/* 02 Base */
body { background: var(--field); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 800; color: var(--plum); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
strong, b { color: var(--plum); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.frame { width: min(100% - 1.5rem, var(--frame)); margin: 0.75rem auto; background: var(--white); border-radius: 28px; box-shadow: 0 30px 80px -50px rgba(43,34,51,0.45); overflow: clip; }
@media (min-width: 700px) { .frame { width: min(100% - 3rem, var(--frame)); margin: 1.5rem auto; } }
.in { padding-inline: var(--pad-x); }
.gem-label { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-dark); }
.gem-label::before { content: ""; width: 10px; height: 10px; background: var(--rose); transform: rotate(45deg); border-radius: 2px; }

/* 03 Frame & header */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--plum); text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.logo small { display: block; margin-top: 0.2rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.links { display: none; }
.links a { padding: 0.45rem 0.95rem; border: 2px solid transparent; border-radius: 999px; color: var(--plum); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--rose-dark); }
.links a[aria-current="page"] { border-color: var(--rose); color: var(--rose-dark); font-weight: 700; }
.hdr__end { display: flex; align-items: center; gap: 0.6rem; }
.hdr__tel { display: none; font-weight: 700; color: var(--plum); 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: 14px; background: var(--lilac); color: var(--plum); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1059px) {
  .hdr { position: relative; flex-wrap: wrap; }
  .links { order: 3; flex-basis: 100%; flex-direction: column; gap: 0.2rem; padding: 0 0 1rem; }
  .links.is-open { display: flex; }
  .links a { border-radius: 14px; padding: 0.8rem 1rem; }
  .links a[aria-current="page"] { background: var(--rose-soft); border-color: transparent; }
}
@media (min-width: 1060px) {
  .links { display: flex; gap: 0.2rem; margin-left: auto; }
  .hdr__tel { display: inline; margin-left: 0.8rem; }
  .nav-toggle { display: none; }
}
@media (max-width: 430px) { .logo small { display: none; } .logo b { font-size: 1.15rem; } .logo svg { width: 32px; height: 32px; } .hdr__end .btn { padding: 0.6rem 0.9rem; font-size: 0.88rem; } }

/* 04 Hero */
.hero { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.4rem, 1.8rem + 3vw, 4.4rem); }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero > * { min-width: 0; }
.hero p.big { font-size: var(--f1); line-height: 1.5; }
.hero__art { position: relative; isolation: isolate; }
.hero__art figure img, .hero__art figure .img-placeholder { border-radius: 40% 12px 40% 12px / 30% 12px 30% 12px; }
.hero__art svg.facet { position: absolute; z-index: -1; width: 38%; right: -4%; top: -8%; }
.hero__art svg.facet--b { width: 22%; left: -6%; right: auto; top: auto; bottom: -6%; }

/* 05 Page heads */
.phead { padding-block: clamp(2.4rem, 1.8rem + 3vw, 4rem); background: linear-gradient(120deg, var(--blush), var(--lilac)); border-bottom: 1px solid var(--line); }
.phead h1 { font-size: clamp(2rem, 1.6rem + 2.2vw, 3.2rem); max-width: 20ch; }
.phead p { font-size: var(--f1); line-height: 1.5; max-width: 54ch; }
.crumbs { display: flex; gap: 0.5rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: var(--f-sm); color: var(--muted); }
.crumbs li + li::before { content: "◆"; margin-right: 0.5rem; font-size: 0.6em; color: var(--rose); vertical-align: middle; }

/* 06 Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn svg { width: 1em; height: 1em; }
.btn--rose { background: var(--rose); color: #fff; }
.btn--rose:hover { background: var(--rose-dark); color: #fff; }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: #000; color: #fff; }
.btn--outline { border-color: var(--plum); color: var(--plum); }
.btn--outline:hover { background: var(--plum); color: #fff; }

/* 07 Facets, panels, timeline */
.sec { padding-block: var(--pad-y); }
.sec--blush { background: var(--blush); }
.sec--lilac { background: var(--lilac); }
.head { max-width: 44rem; margin-bottom: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.facets { display: grid; gap: 1rem; }
@media (min-width: 820px) { .facets { grid-template-columns: repeat(3, 1fr); } }
.facet-card { position: relative; padding: 1.8rem 1.5rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.facet-card .ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; background: var(--rose-soft); color: var(--rose-dark); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.facet-card .ic svg { width: 22px; height: 22px; margin-top: 4px; }
.facet-card h3 { font-size: 1.2rem; }
.facet-card p { font-size: var(--f-sm); }
.duo { display: grid; gap: 1rem; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > * { min-width: 0; }
.panel { padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); border-radius: var(--r); }
.panel--rose { background: var(--rose-soft); }
.panel--plum { background: var(--plum); color: #d9cfe0; }
.panel--plum h2, .panel--plum h3 { color: #fff; }
.panel--plum a { color: var(--rose-light); }
.panel--plum .gem-label { color: var(--rose-light); }
.panel--plum :focus-visible { outline-color: var(--rose-light); }
.panel figure { margin-bottom: 1.2rem; }
.panel ul { padding-left: 1.1em; }
.timeline { position: relative; margin: 0; padding: 0 0 0 3rem; list-style: none; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 1.05rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--rose), var(--rose-light)); }
.timeline li { position: relative; margin: 0 0 1.6rem; counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; left: -3rem; top: 0; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--rose); color: #fff; font-weight: 800; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.timeline h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.timeline p { margin: 0; font-size: var(--f-sm); }
.addr-card { display: grid; gap: 1.2rem; padding: clamp(1.2rem, 1rem + 1.5vw, 2rem); background: var(--lilac); border-radius: var(--r); }
@media (min-width: 860px) { .addr-card { grid-template-columns: 0.8fr 1.2fr; align-items: center; } }
.addr-card > * { min-width: 0; }
.map-box { width: 100%; aspect-ratio: 16 / 10; min-height: 280px; border-radius: 18px; background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--white); font-size: var(--f-sm); font-weight: 500; color: var(--plum); }

/* 08 Outbuildings (signature) */
.sheds { display: grid; gap: 1rem; }
@media (min-width: 700px) { .sheds { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .sheds { grid-template-columns: repeat(4, 1fr); } }
.shed { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.shed svg { width: 100%; max-width: 180px; height: auto; margin: 0 auto 0.4rem; }
.shed h3 { margin: 0; font-size: 1.2rem; text-align: center; }
.shed dl { margin: 0; font-size: var(--f-sm); }
.shed dt { margin-top: 0.6rem; font-weight: 700; color: var(--rose-dark); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.shed dd { margin: 0.1rem 0 0; }
.vs { display: grid; gap: 1rem; }
@media (min-width: 860px) { .vs { grid-template-columns: repeat(3, 1fr); } }
.vs > div { padding: 1.5rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.vs > div.pick { border: 2px solid var(--rose); }
.vs h3 { font-size: 1.15rem; }
.vs .yes, .vs .no { margin: 0; padding: 0; list-style: none; font-size: var(--f-sm); }
.vs .yes li::before { content: "+ "; color: var(--ok); font-weight: 800; }
.vs .no li::before { content: "– "; color: var(--rose-dark); font-weight: 800; }
.rule-note { padding: 1.3rem 1.5rem; border-radius: var(--r); background: var(--plum); color: #e7dfee; }
.rule-note b { color: #fff; }
.rule-note p { margin: 0; }

/* 09 FAQ */
.faq-list { display: grid; gap: 0.7rem; max-width: 860px; }
.fx { background: var(--lilac); border-radius: 18px; }
.fx summary { display: flex; gap: 0.9rem; align-items: center; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--plum); list-style: none; }
.fx summary::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--rose); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform 0.2s; }
.fx[open] summary::before { transform: rotate(45deg) scale(0.9); }
.fx > div { padding: 0 1.3rem 1.2rem 3.2rem; font-size: var(--f-sm); }

/* 10 Form & contact */
.form { display: grid; gap: 1rem 1.2rem; margin-top: 1.4rem; }
@media (min-width: 680px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-weight: 700; font-size: var(--f-sm); color: var(--plum); }
.req { color: var(--rose-dark); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--plum); background: var(--lilac); border: 2px solid transparent; border-radius: 14px; }
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='%23a32d5a' stroke-width='2.5'%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(--rose); 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.5rem; padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--lilac); font-size: var(--f-sm); cursor: pointer; }
.pick input { accent-color: var(--rose); }
.pick:has(input:checked) { background: var(--rose-soft); box-shadow: inset 0 0 0 2px var(--rose); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact-top { display: grid; gap: 1rem; }
@media (min-width: 820px) { .contact-top { grid-template-columns: repeat(2, 1fr); } }
.cbox { padding: 1.6rem; border-radius: var(--r); background: var(--rose-soft); }
.cbox--plum { background: var(--plum); color: #d9cfe0; }
.cbox--plum h2 { color: #fff; }
.cbox h2 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cbox .num { display: block; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 800; color: #fff; text-decoration: none; }
.cbox--plum :focus-visible { outline-color: var(--rose-light); }

/* 11 Footer & call pill */
.ftr { padding-block: 2.6rem 1.6rem; background: var(--blush); border-top: 1px solid var(--line); font-size: var(--f-sm); }
.ftr__grid { display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr h2 { margin-bottom: 0.6rem; font-size: 1rem; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ftr a { color: var(--plum); }
.ftr__base { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.ftr__base p { margin: 0; max-width: none; }
.call-pill { position: fixed; left: 50%; bottom: 0.9rem; z-index: 95; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(43,34,51,0.7); }
.call-pill svg { width: 18px; height: 18px; color: var(--rose-light); }
.call-pill:hover { background: #000; color: #fff; }
.call-pill:focus-visible { outline-color: var(--rose); }
@media (min-width: 1060px) { .call-pill { display: none; } }
@media (max-width: 1059px) { body { padding-bottom: 76px; } }

/* 12 Images */
.img-placeholder { background: var(--lilac); border: 1px dashed #cdbfd3; color: var(--muted); }
.img-placeholder b { color: var(--plum); }
.panel--plum .img-placeholder { background: #3b3044; border-color: #5b4d66; color: #bfb3c8; }
.panel--plum .img-placeholder b { color: #fff; }
figure img, figure .img-placeholder { border-radius: 18px; }
figcaption { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }
.mt { margin-top: 2rem; }
.facets--stack { grid-template-columns: 1fr !important; }
@media (max-width: 430px) { .frame { width: calc(100% - 1rem); margin: 0.5rem auto; } .logo svg { display: none; } .hdr__end { gap: 0.4rem; } .hdr__end .btn { padding: 0.55rem 0.8rem; } .in { padding-inline: 1rem; } }
