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

/* ==========================================================================
   FreshLine HVAC - freshlinehvac.xyz
   Appended to b11-core.css. Every visual decision for this site lives here.

   01 Tokens
   02 Base and typography
   03 Header: two-row bar with the phone block pinned right
   04 Layout primitives and the stack
   05 Buttons, lists, figures
   06 Home page
   07 Inner pages and the package-unit device
   08 Contact
   09 Footer
   10 Navigation breakpoint (960px)
   ========================================================================== */

/* 01 Tokens ---------------------------------------------------------------- */

:root {
  --paper: #f4f3ef; --panel: #ffffff; --band: #e6e4dd;
  --ink: #28302b; --ink-2: #39423c; --ink-l: #8b938c;
  --wine: #8e2f5a; --wine-d: #74244a; --wine-l: #fbeef4;
  --text: #4a524c; --muted: #5e665f; --line: #d5d3cb;
  --focus: #8e2f5a; --err: #9c2f27;
  --disp: "Red Hat Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-xs: 0.78rem; --f-sm: 0.92rem;
  --f0: clamp(1rem, 0.97rem + 0.17vw, 1.07rem);
  --f1: clamp(1.13rem, 1.04rem + 0.42vw, 1.32rem);
  --f2: clamp(1.42rem, 1.17rem + 1.12vw, 2rem);
  --f3: clamp(1.86rem, 1.36rem + 2.4vw, 3rem);
  --r: 0px; --lh: 1.76; --wrap: 1140px; --col: 64ch;
  --pad: clamp(1.25rem, 1rem + 1.3vw, 2rem);
  --pad-y: clamp(2.7rem, 2.2rem + 2.6vw, 4.3rem);
}

/* 02 Base and typography --------------------------------------------------- */

body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: var(--f0); line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .wordmark b, .stat b, .btn, .hd__tel, .fact b { font-family: var(--disp); color: var(--ink); }
h1, h2, h3 { line-height: 1.16; margin: 0 0 0.5em; letter-spacing: -0.018em; font-weight: 700; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); letter-spacing: -0.008em; }
p { margin: 0 0 1em; max-width: var(--col); }
p:last-child { margin-bottom: 0; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--wine-d); }
strong, b { color: var(--ink); font-weight: 700; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.skip-link { background: var(--ink); color: #fff; font-family: var(--disp); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  display: block; margin: 0 0 0.6rem; font-family: var(--disp); font-size: var(--f-xs);
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--wine);
}
.lede { font-size: var(--f1); color: var(--ink-2); }

/* 03 Header ---------------------------------------------------------------- */
/* Two rows on the left - the wordmark above the links - with one tall phone
   block pinned to the right across both of them. On phones the phone block
   becomes a full-width wine bar, so the number is above the fold everywhere. */

.hd { position: sticky; top: 0; z-index: 40; background: var(--panel); border-bottom: 2px solid var(--ink); }
.hd .wrap { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.hd__left { display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; padding: 0.65rem 0; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; flex: none; }
.wordmark b { display: block; font-size: 1.14rem; line-height: 1.1; letter-spacing: -0.02em; }
.wordmark small {
  display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

.qbnav { display: flex; align-items: center; gap: 1.3rem; }
.qbnav a {
  padding: 0.15rem 0; font-family: var(--disp); font-size: 0.95rem; font-weight: 600;
  color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent;
}
.qbnav a:hover { color: var(--wine); }
.qbnav a[aria-current="page"] { color: var(--wine); border-bottom-color: var(--wine); }

.hd__tel {
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  padding: 0 0 0 1.4rem; margin-left: 1.4rem; border-left: 1px solid var(--line);
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.hd__tel span { font-size: var(--f-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hd__tel b { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1.22rem; font-weight: 700; }
.hd__tel b svg { width: 18px; height: 18px; flex: none; color: var(--wine); }
.hd__tel:hover b { color: var(--wine); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; background: none;
  border: 2px solid var(--ink); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: 0 auto; }
.hd__call { display: none; }

/* 04 Layout primitives and the stack --------------------------------------- */
/* The stack is this site's mark: three short wine bars of falling width,
   drawn as background gradients. It opens every panel and every section head,
   carries no content, and disappears cleanly without the stylesheet. */

.sec { padding: var(--pad-y) 0; }
.sec--panel { background: var(--panel); }
.sec--band { background: var(--band); }
.sec--ink { background: var(--ink); color: #d4d9d5; }
.sec--ink :where(h1, h2, h3) { color: #fff; }
.sec--ink p { color: #c3cac5; }
.sec--ink strong, .sec--ink b { color: #fff; }
.sec--ink a:not(.btn) { color: #f0a6c4; }
.sec--ink .eyebrow, .pn--ink .eyebrow { color: #f0a6c4; }

.stk { position: relative; padding-top: 1.9rem; }
.stk::before {
  content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 17px;
  background:
    linear-gradient(var(--wine), var(--wine)) 0 0 / 30px 3px no-repeat,
    linear-gradient(var(--wine), var(--wine)) 0 7px / 19px 3px no-repeat,
    linear-gradient(var(--wine), var(--wine)) 0 14px / 10px 3px no-repeat;
}
.sec--ink .stk::before, .pn--ink .stk::before {
  background:
    linear-gradient(#f0a6c4, #f0a6c4) 0 0 / 30px 3px no-repeat,
    linear-gradient(#f0a6c4, #f0a6c4) 0 7px / 19px 3px no-repeat,
    linear-gradient(#f0a6c4, #f0a6c4) 0 14px / 10px 3px no-repeat;
}

.pn {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: clamp(1.2rem, 1rem + 1.1vw, 1.9rem);
}
.pn > :last-child { margin-bottom: 0; }
.pn--band { background: var(--paper); }
.pn--ink { background: var(--ink); border-color: var(--ink); color: #c3cac5; }
.pn--ink :where(h2, h3) { color: #fff; }
.pn--ink strong, .pn--ink b { color: #fff; }
.pn--flag { background: var(--wine-l); border-color: #e7c2d4; }

.grid { display: grid; gap: clamp(1rem, 0.8rem + 1vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }

[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
  [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* 05 Buttons, lists, figures ----------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.82rem 1.45rem;
  border: 2px solid var(--wine); background: var(--wine); color: #fff;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--wine-d); border-color: var(--wine-d); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: none; color: var(--wine); }
.btn--ghost:hover { background: var(--wine-l); color: var(--wine-d); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.ul { margin: 0 0 1em; padding: 0; list-style: none; max-width: var(--col); }
.ul li { position: relative; padding-left: 1.35rem; margin-bottom: 0.5rem; }
.ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 9px; height: 3px; background: var(--wine); }
.ul li:last-child { margin-bottom: 0; }
.sec--ink .ul li::before, .pn--ink .ul li::before { background: #f0a6c4; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 1.3rem; }
.stat { border-top: 3px solid var(--wine); padding-top: 0.8rem; }
.stat b { display: block; font-size: var(--f2); line-height: 1.1; }
.stat span { display: block; font-size: var(--f-sm); color: var(--muted); }
.sec--ink .stat { border-top-color: #f0a6c4; }
.sec--ink .stat span { color: #aab2ac; }

figure { margin: 0; }
figure img, .ph { display: block; width: 100%; height: auto; }
.img-placeholder {
  min-height: 180px; aspect-ratio: 4 / 3; background: var(--band);
  border: 1px dashed var(--line); color: var(--muted);
}
figcaption { margin-top: 0.6rem; font-size: var(--f-sm); color: var(--muted); max-width: 48ch; }

.map { width: 100%; height: 340px; border: 1px solid var(--line); }

/* 06 Home page ------------------------------------------------------------- */
/* Type-only hero, then one full-bleed panorama. The first photograph on the
   site is the thing the site is about, at full width, with nothing beside it. */

.hero { background: var(--panel); padding: clamp(2.4rem, 2rem + 2.6vw, 4.4rem) 0 clamp(2rem, 1.7rem + 1.8vw, 3.2rem); }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 54ch; }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1.2rem; margin-top: clamp(1.8rem, 1.5rem + 1.4vw, 2.8rem); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.fact b { display: block; font-size: 1.1rem; line-height: 1.2; margin-bottom: 0.2rem; }
.fact span { display: block; font-size: var(--f-sm); color: var(--muted); }

.bleed { background: var(--ink); }
.bleed img, .bleed .img-placeholder { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border: 0; }
.bleed figcaption { max-width: var(--wrap); margin: 0 auto; padding: 0.7rem var(--pad) 0.9rem; color: #aab2ac; }

.thread { display: grid; gap: clamp(1rem, 0.8rem + 1vw, 1.7rem); }
@media (min-width: 840px) { .thread { grid-template-columns: 1.08fr 0.92fr; align-items: start; } }

/* Alternating full-width rows for the two audiences: image one side, argument
   the other, swapping over. Neither audience is a card beside the other. */
.aud { display: grid; gap: clamp(1.2rem, 1rem + 1.4vw, 2.4rem); align-items: center; }
.aud + .aud { margin-top: clamp(2rem, 1.6rem + 2vw, 3.4rem); padding-top: clamp(2rem, 1.6rem + 2vw, 3.4rem); border-top: 1px solid var(--line); }
@media (min-width: 840px) {
  .aud { grid-template-columns: 1fr 1fr; }
  .aud--flip > figure { order: 2; }
}

.callband { background: var(--wine); color: #fbe9f1; padding: var(--pad-y) 0; }
.callband .wrap { display: grid; gap: 1.4rem; align-items: center; }
.callband :where(h2, h3) { color: #fff; }
.callband p { color: #f5dbe7; }
.callband__tel {
  display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--disp);
  font-size: clamp(1.5rem, 1.2rem + 1.35vw, 2.15rem); font-weight: 700; color: #fff; text-decoration: none;
}
.callband__tel:hover { color: #fff; text-decoration: underline; }
.callband__tel svg { width: 26px; height: 26px; flex: none; }
.callband .stk::before {
  background:
    linear-gradient(#fff, #fff) 0 0 / 30px 3px no-repeat,
    linear-gradient(#fff, #fff) 0 7px / 19px 3px no-repeat,
    linear-gradient(#fff, #fff) 0 14px / 10px 3px no-repeat;
}
@media (min-width: 840px) { .callband .wrap { grid-template-columns: 1.3fr 0.7fr; } }

/* 07 Inner pages and the device -------------------------------------------- */

.ph-hd { background: var(--panel); border-bottom: 1px solid var(--line); padding: clamp(2rem, 1.7rem + 1.7vw, 3.3rem) 0; }
.ph-hd p { max-width: 58ch; }
.crumbs { margin: 0 0 0.9rem; font-size: var(--f-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--wine); }

.qbq { border-bottom: 1px solid var(--line); padding: 0.95rem 0; max-width: 78ch; }
.qbq:first-of-type { border-top: 1px solid var(--line); }
.qbq summary { font-family: var(--disp); font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; padding-right: 2rem; position: relative; }
.qbq summary::after { content: "+"; position: absolute; right: 0; top: -0.1em; font-size: 1.3rem; color: var(--wine); line-height: 1; }
.qbq[open] summary::after { content: "\2212"; }
.qbq > div { padding-top: 0.7rem; }

/* The device. Both pickers ship as ordinary radios in a plain fieldset and
   every answer block ships visible, so with JS off the page reads as a
   complete article. Only the filtering is scripted. */
.dev { margin-top: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); }
.dev__pick { background: var(--panel); border: 1px solid var(--line); padding: clamp(1.1rem, 0.9rem + 0.9vw, 1.6rem); }
.dev__sets { display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .dev__sets { grid-template-columns: 1fr 1fr; } }
.dev fieldset { margin: 0; padding: 0; border: 0; }
.dev legend {
  padding: 0; margin-bottom: 0.7rem; font-family: var(--disp); font-size: var(--f-xs);
  font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--wine);
}
.opts { display: grid; gap: 0.4rem; }
.opts label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.4rem 0.5rem; cursor: pointer; font-size: var(--f-sm); }
.opts label:hover { background: var(--wine-l); }
.opts input { margin: 0.35rem 0 0; accent-color: var(--wine); flex: none; }
.dev__out { display: grid; gap: clamp(1rem, 0.8rem + 1vw, 1.6rem); margin-top: clamp(1.1rem, 0.9rem + 1vw, 1.7rem); }

/* 08 Contact --------------------------------------------------------------- */

.ct { display: grid; gap: clamp(1.2rem, 1rem + 1.4vw, 2rem); }
@media (min-width: 840px) { .ct { grid-template-columns: 1fr 1fr; align-items: start; } }
.ct__tel {
  display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--disp);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); font-weight: 700; color: var(--ink); text-decoration: none;
}
.ct__tel svg { width: 26px; height: 26px; flex: none; color: var(--wine); }
.ct dl { margin: 0; }
.ct dt { font-family: var(--disp); font-weight: 700; color: var(--ink); margin-top: 1rem; }
.ct dt:first-child { margin-top: 0; }
.ct dd { margin: 0.2rem 0 0; }

/* 09 Footer ---------------------------------------------------------------- */

.ft { background: var(--ink); color: #a9b1ab; padding: var(--pad-y) 0 1.6rem; font-size: var(--f-sm); }
.ft__row { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .ft__row { grid-template-columns: 1.6fr 0.7fr 1fr; } }
.ft h2 { font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: #fff; margin-bottom: 0.7rem; }
.ft__name { font-family: var(--disp); font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.ft p { color: #a9b1ab; max-width: 50ch; }
.ft ul { margin: 0; padding: 0; list-style: none; }
.ft li { margin-bottom: 0.35rem; }
.ft a { color: #dfe4e0; }
.ft a:hover { color: #fff; }
.ft__base { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid #3c453f; font-size: var(--f-xs); color: #98a09a; }

/* 10 Navigation breakpoint ------------------------------------------------- */
/* Matches NAV_BREAKPOINT in assets/js/main.js. */

@media (max-width: 959px) {
  .hd { position: relative; }
  .hd .wrap { grid-template-columns: 1fr auto; }
  .hd__left { padding: 0.7rem 0; }
  .hd__tel { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; align-self: center; }
  .wordmark small { display: none; }
  .qbnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; padding: 0.3rem var(--pad) 1rem; background: var(--panel);
    border-bottom: 2px solid var(--ink); box-shadow: 0 14px 28px rgba(40, 48, 43, 0.14); z-index: 41;
  }
  .qbnav.is-open { display: flex; }
  .qbnav a { padding: 0.78rem 0; border-bottom: 1px solid var(--line); border-top: 0; font-size: 1.02rem; }
  .qbnav a[aria-current="page"] { border-bottom-color: var(--line); }
  .qbnav a:last-child { border-bottom: 0; }
  .hd__call {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.62rem 1rem; background: var(--wine); color: #fff; font-family: var(--disp);
    font-size: 1.1rem; font-weight: 700; text-decoration: none;
  }
  .hd__call svg { width: 19px; height: 19px; flex: none; }
  .hd__call:hover { background: var(--wine-d); color: #fff; }
  .bleed img, .bleed .img-placeholder { aspect-ratio: 16 / 9; }
}

@media (max-width: 380px) {
  .wordmark b { font-size: 1rem; }
  .hd__call { font-size: 1rem; }
}
