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

/* ==========================================================================
   BrightArc HVAC Studio — brightarchvac.xyz
   Santa Barbara mission tones; arches as the recurring shape.
   01 Tokens · 02 Base · 03 Header · 04 Hero with quote form · 05 Page heads
   06 Buttons · 07 Arches & bands · 08 Cellar chart (signature) · 09 FAQ
   10 Forms & contact · 11 Footer & call bar · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --ink: #2a211c; --text: #4a3f37; --muted: #6e6259; --line: #eadfce;
  --paper: #fbf7f1; --white: #ffffff; --sand: #f3e9dc; --stucco: #fffdf9;
  --clay: #b4532a; --clay-dark: #97421f; --clay-soft: #f8e6db; --clay-light: #f0b894;
  --cellar: #3b1d22; --cellar-2: #52282f; --cork: #e9c9a6;
  --focus: #97421f; --err: #a4161a; --ok: #1f6f3a;
  --head: "Alata", "Trebuchet MS", system-ui, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --f2: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem); --f3: clamp(2.3rem, 1.8rem + 2.6vw, 3.8rem);
  --wrap: 1180px; --pad-y: clamp(3.5rem, 2.5rem + 4vw, 6.2rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--body); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--head); font-weight: 400; color: var(--ink); line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); line-height: 1.22; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--clay-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
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; }
.lead-in { display: block; margin-bottom: 0.8rem; font-family: var(--head); font-size: 1rem; color: var(--clay-dark); letter-spacing: 0.02em; }

/* 03 Header */
.hdr { background: var(--stucco); border-bottom: 1px solid var(--line); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.arcmark { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.arcmark svg { width: 44px; height: 44px; flex: none; }
.arcmark b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.arcmark small { display: block; margin-top: 0.2rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.callblock { display: none; flex-direction: column; align-items: flex-end; line-height: 1.15; color: var(--ink); text-decoration: none; }
.callblock small { font-size: 0.82rem; color: var(--muted); }
.callblock span { font-family: var(--head); font-size: 1.6rem; }
.callblock:hover span { color: var(--clay-dark); }
.hdr__acts { display: flex; align-items: center; gap: 1.2rem; }
.hdr__acts > .btn { display: none; }
.nav-row { display: none; border-top: 1px solid var(--line); }
.nav-row nav { display: flex; gap: 0.2rem; }
.nav-row a { position: relative; display: block; padding: 0.95rem 1rem 0.85rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-row a:first-child { padding-left: 0; }
.nav-row a:hover { color: var(--clay-dark); }
.nav-row a[aria-current="page"] { color: var(--clay-dark); }
.nav-row a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; top: -1px; width: 22px; height: 11px; margin-left: -11px; border-radius: 0 0 11px 11px; background: var(--clay); }
.nav-row a:first-child[aria-current="page"]::before { left: calc(50% - 0.5rem); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 23px 23px 6px 6px; background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 959px) {
  .hdr { position: relative; }
  .nav-row.is-open { display: block; }
  .nav-row { position: absolute; left: 0; right: 0; top: 100%; z-index: 80; background: var(--stucco); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(42,33,28,0.4); }
  .nav-row nav { flex-direction: column; padding: 0.4rem 0 1rem; }
  .nav-row a, .nav-row a:first-child { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav-row a[aria-current="page"]::before { display: none; }
  .nav-row a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--clay); padding-left: 0.8rem; }
}
@media (min-width: 960px) {
  .callblock { display: flex; }
  .hdr__acts > .btn { display: inline-flex; }
  .nav-row { display: block; }
  .nav-toggle { display: none; }
}

/* 04 Hero with quote form */
.hero { padding-block: clamp(2.8rem, 2rem + 3.5vw, 5rem); background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.hero .wrap { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero .wrap > * { min-width: 0; }
.hero p.big { font-size: var(--f1); line-height: 1.5; }
.reasons { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.reasons li { display: flex; gap: 0.7rem; align-items: baseline; }
.reasons li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 6px 6px 0 0; background: var(--clay); transform: translateY(-1px); }
.quote { padding: clamp(1.4rem, 1rem + 1.8vw, 2.2rem); background: var(--white); border-radius: 160px 160px 18px 18px; box-shadow: 0 30px 60px -40px rgba(42,33,28,0.55); border: 1px solid var(--line); }
.quote__in { padding-top: clamp(2.6rem, 2rem + 2vw, 3.6rem); }
.quote h2 { font-size: 1.6rem; text-align: center; }
.quote p.small { text-align: center; margin-inline: auto; font-size: var(--f-sm); color: var(--muted); }
.quote .qf { display: grid; gap: 0.9rem; margin-top: 1.2rem; }

/* 05 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem); background: var(--sand); text-align: center; }
.phead h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem); }
.phead p { margin-inline: auto; font-size: var(--f1); line-height: 1.5; max-width: 52ch; }
.phead .arch-rule { display: block; width: 60px; height: 30px; margin: 0 auto 1.2rem; border: 3px solid var(--clay); border-bottom: 0; border-radius: 30px 30px 0 0; }
.crumbs { display: flex; justify-content: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: var(--f-sm); color: var(--muted); }
.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.45rem; border: 2px solid transparent; border-radius: 22px 22px 8px 8px; font-family: var(--head); font-size: 1.02rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn svg { width: 1em; height: 1em; }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-dark); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--cork { background: var(--cork); color: var(--cellar); }
.btn--cork:hover { background: #fff; color: var(--cellar); }
.btn--full { width: 100%; }
.go { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--clay-dark); text-decoration: none; }
.go svg { width: 1em; height: 1em; }

/* 07 Arches & bands */
.sec { padding-block: var(--pad-y); }
.sec--sand { background: var(--sand); }
.sec--white { background: var(--white); }
.center-head { max-width: 40rem; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.center-head p { margin-inline: auto; }
.arches { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .arches { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }
.arches a { display: block; color: var(--ink); text-decoration: none; text-align: center; }
.arches figure img, .arches figure .img-placeholder { border-radius: 999px 999px 12px 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.arches .img-placeholder { font-size: 0.6rem; }
.arches .img-placeholder b { font-size: 0.7rem; }
.arches h3 { margin: 0.9rem 0 0.2rem; font-size: 1.25rem; }
.arches p { margin: 0 auto; font-size: var(--f-sm); color: var(--muted); }
.arches a:hover h3 { color: var(--clay-dark); }
.band { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.band + .band { margin-top: var(--pad-y); }
@media (min-width: 900px) { .band { grid-template-columns: 1fr 1fr; } .band--rev > figure { order: 2; } }
.band > * { min-width: 0; }
.band figure img, .band figure .img-placeholder { border-radius: 260px 260px 16px 16px; }
.dots { margin: 1rem 0 1.4rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.dots li { position: relative; padding-left: 1.4rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.wine { background: var(--cellar); color: #e8d6cf; }
.wine h2, .wine h3 { color: #fff; }
.wine .lead-in { color: var(--cork); }
.wine a { color: var(--cork); }
.wine :focus-visible { outline-color: var(--cork); }
.wine .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .wine .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.wine .wrap > * { min-width: 0; }
.target { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.target > div { padding: 1.4rem 1.2rem; border-radius: 120px 120px 14px 14px; background: var(--cellar-2); text-align: center; }
.target b { display: block; margin-top: 1.4rem; font-family: var(--head); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); color: #fff; }
.target span { font-size: var(--f-sm); color: var(--cork); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.chips li { padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: var(--f-sm); color: var(--ink); }
.map-arch { width: 100%; aspect-ratio: 4 / 3.4; min-height: 300px; border-radius: 220px 220px 16px 16px; background: var(--sand); }

/* 08 Cellar chart (signature) */
.chart-card { padding: clamp(1.2rem, 1rem + 2vw, 2.4rem); background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.chart-card svg { width: 100%; max-width: 820px; height: auto; margin-inline: auto; }
.chart-card figcaption { max-width: 60ch; margin: 1rem auto 0; text-align: center; font-size: var(--f-sm); color: var(--muted); }
.systems { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--f-sm); background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.systems th, .systems td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.systems tr:last-child > * { border-bottom: 0; }
.systems thead th { background: var(--cellar); color: #fff; font-family: var(--head); font-weight: 400; font-size: 1.05rem; }
.systems tbody th { color: var(--ink); width: 22%; }
.scroll { overflow-x: auto; }
.first { padding: 1.5rem 1.6rem; border-radius: 16px; background: var(--clay-soft); border-left: 5px solid var(--clay); }
.first h2, .first h3 { font-size: 1.4rem; }

/* 09 FAQ */
.faq { display: grid; gap: 0 3rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--head); font-size: 1.15rem; color: var(--ink); list-style: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.45rem; border-right: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(45deg); transition: transform 0.2s; }
.qa[open] summary::after { transform: rotate(-135deg); }
.qa > div { padding-bottom: 1.2rem; font-size: var(--f-sm); }

/* 10 Forms & 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 { font-weight: 700; font-size: var(--f-sm); color: var(--ink); }
.req { color: var(--clay-dark); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #dccdb8; border-radius: 10px; }
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='%2397421f' 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: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--clay); background: var(--white); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.contact-grid > * { min-width: 0; }
.form-card { padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.side-list li { padding: 1.3rem 1.4rem; background: var(--sand); border-radius: 60px 60px 14px 14px; text-align: center; }
.side-list h2 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--clay-dark); }
.side-list .num { font-family: var(--head); font-size: 1.7rem; color: var(--ink); text-decoration: none; }
.side-list p { margin-inline: auto; }

/* 11 Footer & call bar */
.callpanel { background: var(--clay); color: #fff; text-align: center; }
.callpanel .wrap { padding-block: clamp(2.6rem, 2rem + 2.5vw, 4rem); }
.callpanel p { margin-inline: auto; color: #fde9dd; }
.callpanel a.num { display: inline-block; margin: 0.3rem 0 0.6rem; font-family: var(--head); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); color: #fff; text-decoration: none; line-height: 1.1; }
.callpanel :focus-visible { outline-color: #fff; }
.ftr { background: var(--ink); color: #cbbfb5; font-size: var(--f-sm); }
.ftr__grid { display: grid; gap: 2rem; padding-block: 2.8rem 1.8rem; }
@media (min-width: 820px) { .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.ftr h2 { margin-bottom: 0.7rem; font-size: 1.05rem; color: #fff; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.ftr a { color: #f3e9dc; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr :focus-visible { outline-color: var(--clay-light); }
.ftr__base { padding-block: 1.2rem; border-top: 1px solid #45382f; font-size: 0.82rem; }
.ftr__base p { margin: 0; max-width: none; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 20px -12px rgba(42,33,28,0.4); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.95rem 0.5rem; font-family: var(--head); font-size: 1rem; text-decoration: none; }
.callbar a:first-child { background: var(--white); color: var(--ink); }
.callbar a:last-child { background: var(--clay); color: #fff; }
.callbar svg { width: 17px; height: 17px; }
@media (min-width: 960px) { .callbar { display: none; } }
@media (max-width: 959px) { body { padding-bottom: 56px; } }

/* 12 Images */
.img-placeholder { background: var(--sand); border: 1px dashed #d4c1a8; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: 16px; }
figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.mt { margin-top: 2rem; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--clay-dark); }
.arches--text > div { padding: 2.4rem 1.3rem 1.5rem; background: var(--sand); border-radius: 140px 140px 14px 14px; text-align: center; }
.sec--sand .arches--text > div { background: var(--white); }
.arches--text h2, .arches--text h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.arches--text p { font-size: var(--f-sm); color: var(--text); }
