/* =========================================================================
   site.css — Midland Solar (www.midlandsolar.com.au)
   Token layer consumed VERBATIM from the client styleguide
   (Midland Solar/assets/tokens.css — do not edit values here without
   mirroring there). Component layouts are a visual 1:1 of the LIVE site
   (verified against www.midlandsolar.com.au side-by-side, 13 Jul 2026):
   floating rounded header, video hero, overlapping stat cards, white footer.
   Poppins self-hosted (OFL).
   ========================================================================= */

/* ---------- fonts (self-hosted, CSP font-src 'self') ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

/* ---------- tokens (styleguide contract) ---------- */
:root {
  --tomato-50:  #FFF1F1;
  --tomato-100: #FFE2E2;
  --tomato-200: #FFC9C9;
  --tomato-300: #FFA6A6;
  --tomato-400: #FF8181;
  --tomato-500: #FF5B5B;
  --tomato-600: #E64A4A;
  --tomato-700: #C93838;
  --tomato-800: #A02C2C;
  --tomato-900: #7A2222;

  --tide-900: #141414;
  --tide-950: #0A0A0A;

  --accent:      #FF5B5B;
  --accent-text: #C93838;
  --accent-soft: #FFF1F1;

  --bone:  #FFFFFF;
  --paper: #FFFFFF;
  --shell: #F8F8F8;
  --sand:  #F6F7F9;
  --line:  #EDEFF3;

  --ink:      #141414;
  --ink-soft: #333333;
  --ink-mute: #6E6E6E;

  --ok:    #1E7B45;
  --error: #B42318;
  --warn:  #B54708;

  --font-display: 'Poppins', sans-serif;
  --font-text:    'Poppins', sans-serif;
  --font-mono:    'Poppins', sans-serif;

  /* live scale: H1 56 · category H1 ~44 · H2 32 · body 14 */
  --t-display: clamp(2.1rem, 1.2rem + 3.4vw, 3.5rem);
  --t-h1:      clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  --t-h2:      clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --t-h3:      clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --t-lead:    .875rem; /* live hero/lead paragraphs: 14px */

  --r-sm:  6px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill: 999px;
  --r-btn: 8px;

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1280px;

  --e-1: 0 1px 2px rgba(20,20,20, .05);
  --e-2: 0 10px 30px rgba(20,20,20, .08);
  --e-3: 0 24px 60px rgba(20,20,20, .13);

  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 160ms;
  --dur:      320ms;
  --dur-slow: 600ms;

  --bg:      var(--bone);
  --surface: var(--paper);
  --text:    var(--ink);
  --text-2:  var(--ink-soft);
  --text-3:  var(--ink-mute);
  --border:  var(--line);

  --header-clear: 142px; /* fixed floating header clearance */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: .75rem; /* live body: 12px/18px */
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Live heading character: Poppins 400, tight tracking, capitalised */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--ink); text-transform: capitalize; }
h1 { font-size: var(--t-h1); letter-spacing: -2px; }
h2 { font-size: var(--t-h2); letter-spacing: -1px; }
h3 { font-size: var(--t-h3); letter-spacing: -0.25px; }
h4 { font-size: 1.05rem; }
p  { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
ul, ol { padding-left: 1.2em; }
.eyebrow { font-size: .72rem; font-weight: 400; color: var(--ink-mute); }
.lead { font-size: var(--t-lead); font-weight: 300; color: var(--ink-soft); line-height: 1.6; max-width: 64ch; }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main { display: block; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-text); font-weight: 400; font-size: .875rem; /* live: 14px */
  border-radius: var(--r-btn); padding: 12px 22px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; transition: var(--dur) var(--ease-out);
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(.94); transform: translateY(-2px); }
.btn-dark { background: var(--tide-900); color: #fff; }
.btn-dark:hover { background: var(--tide-950); transform: translateY(-2px); }

/* ---------- floating fixed header (live: rounded cards inset over content) ---------- */
.sitehead { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 16px 0; pointer-events: none; }
.sitehead > * { pointer-events: auto; }
.topbar { max-width: 1410px; margin: 0 auto; background: #333333; color: #fff; border-radius: var(--r-md); }
.topbar .bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; }
.topbar .stars { width: 100px; height: auto; }
.topbar .icons { display: flex; gap: 18px; }
.topbar .icons img { display: block; width: 17px; height: 17px; filter: brightness(0) invert(1); }
.topnav { max-width: 1410px; margin: 6px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--e-2); }
.topnav .bar { display: flex; align-items: center; gap: 20px; padding: 12px 18px; }
.topnav .logo img { height: 40px; width: auto; display: block; }
.topnav nav { display: flex; gap: 2px; align-items: center; font-size: .75rem; /* live: 12px */ }
.topnav nav > a { color: var(--ink-soft); text-decoration: none; font-weight: 400; padding: 5px 12px; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.topnav nav > a:hover, .topnav nav > a[aria-current="page"] { color: var(--ink); }
.topnav .cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topnav .cta .btn { font-size: .875rem; padding: 12px 22px; white-space: nowrap; box-shadow: none; }
.navtoggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
@media (max-width: 1180px) {
  .topnav nav, .topnav .cta { display: none; }
  .navtoggle { display: block; }
  .topnav.open .bar { flex-wrap: wrap; }
  .topnav.open nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0 6px; width: 100%; }
  .topnav.open nav > a { max-width: none; }
  .topnav.open .cta { display: flex; width: 100%; padding-bottom: 14px; margin-left: 0; flex-wrap: wrap; }
}
/* nav contact block (inside expanded menu, as on live) */
.nav-contact { display: none; font-size: .8rem; color: var(--ink-mute); }
.nav-contact a { color: var(--ink); font-weight: 500; text-decoration: none; }
.topnav.open .nav-contact { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; width: 100%; }

/* pages whose first section is white need clearance below the fixed header */
main > .section:first-child { padding-top: calc(var(--header-clear) + clamp(32px, 5vw, 64px)); }

/* ---------- dark page hero (interior pages) ----------
   Left-aligned (Michael, 29 Jul 2026 — was centred like the old Webflow site).
   Same dark slab and red H1, laid out from the left margin like the home hero,
   with a short tomato rule anchoring the block. Applies to every interior hero:
   static pages, posts, service areas (product hero was already left). */
.pagehero { padding: calc(var(--header-clear) + clamp(28px, 4vw, 48px)) 0 clamp(40px, 6vw, 64px); }
.pagehero.dark { background: var(--tide-900); text-align: left; }
.pagehero.dark:not(.producthero) .container::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 22px; }
.pagehero.dark h1 { color: var(--accent); margin: 10px 0 14px; max-width: 24ch; }
.pagehero.dark .kicker { font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.pagehero.dark .lead { color: rgba(255,255,255,.92); font-size: 1.05rem; margin: 0; max-width: 56ch; }
.pagehero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* home hero: left-aligned over the background video, staggered checklist pills */
.hero-video { position: relative; background: var(--tide-900); overflow: hidden; }
.hero-video > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* live: linear-gradient(transparent, black) laid over the cover image */
.hero-video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0), #000); z-index: 1; }
.hero-video .inner { position: relative; z-index: 2; padding-top: calc(var(--header-clear) + clamp(32px, 5vw, 64px)); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-video .split-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero-video .split-hero { grid-template-columns: 1fr; } }
.hero-video h1 { color: #fff; font-size: var(--t-display); letter-spacing: -2px; max-width: 18ch; }
.hero-video .kicker { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .875rem; margin-bottom: 18px; }
.hero-video .kicker img { width: 28px; height: 28px; }
.hero-video .kicker img { filter: brightness(0) invert(1); }
.hero-video p.lead { color: rgba(255,255,255,.9); margin-top: 18px; max-width: 56ch; }
.hero-video .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
/* hero quick-enquiry card (replaced the desktop-only service checklist, 29 Jul 2026) */
.hero-quote { background: #fff; border-radius: var(--r-lg); box-shadow: var(--e-3); padding: clamp(20px, 2.4vw, 28px); }
.hero-quote .hq-head { margin-bottom: 18px; }
.hero-quote .hq-eyebrow {
  display: inline-block; font-size: .6875rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft);
  padding: 5px 10px; border-radius: var(--r-pill); margin-bottom: 12px;
}
.hero-quote h2 { font-size: var(--t-h3); letter-spacing: -.5px; color: var(--ink); margin: 0; }
.hero-quote .hq-head p { font-size: .8125rem; color: var(--ink-mute); margin-top: 6px; }
.hero-quote .hq-body { display: flex; flex-direction: column; gap: 10px; }
.hero-quote input, .hero-quote textarea {
  width: 100%; font-family: var(--font-text); font-size: .875rem; font-weight: 300;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); outline: none; transition: var(--dur);
}
.hero-quote textarea { resize: vertical; min-height: 74px; }
.hero-quote input::placeholder, .hero-quote textarea::placeholder { color: var(--ink-mute); }
.hero-quote input:focus, .hero-quote textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.hero-quote button[type="submit"] { width: 100%; justify-content: center; margin-top: 2px; }
.hero-quote .hq-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 2px; }
.hero-quote .hq-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ink-mute); }
.hero-quote .hq-trust svg { width: 12px; height: 12px; flex: none; color: var(--accent); }
.hero-quote .form-status { margin-top: 0; }
@media (max-width: 860px) { .hero-quote { margin-top: 8px; } }

/* ---------- video + stats band (rounded video panel, cards overlap bottom) ---------- */
.videoband { padding: clamp(40px, 5.5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.videoband .panel { position: relative; border-radius: var(--r-xl); overflow: hidden; height: clamp(320px, 48vw, 560px); background: var(--tide-900); }
.videoband .panel video { width: 100%; height: 100%; object-fit: cover; }
.videoband .stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -52px; padding: 0 8px; }
@media (max-width: 760px) { .videoband .stats { display: none; } }
.videoband .stat { background: #fff; border-radius: var(--r-md); box-shadow: var(--e-2); padding: 16px 12px; text-align: center; }
.videoband .stat .l { font-size: .74rem; color: var(--ink-soft); }
.videoband .stat .n { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 300; color: var(--ink); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 5.5vw, 72px) 0; }
.section-header { margin-bottom: 32px; }
.section-header h2 { max-width: 30ch; }
.section-header p { margin-top: 12px; max-width: 62ch; }
/* live pattern: paragraph left, red button right on the same row */
.headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* Let the copy claim the row and settle at a readable measure. Without this the
   text div only takes its content width, so on the many sections that have no
   button it collapsed to roughly a third of the container and left the rest of
   the row empty. */
.headrow > div:first-child { flex: 1 1 32ch; min-width: 0; max-width: 62ch; }
.headrow .cta { margin-left: auto; flex: none; }
@media (max-width: 700px) { .headrow .cta { margin-left: 0; } }
.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* two-card split (live "Energy prices" block: image card + text card) */
.cardsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 760px) { .cardsplit { grid-template-columns: 1fr; } }
.cardsplit .card { border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 40px); }
.cardsplit .imgcard { display: grid; place-items: center; }
.cardsplit .imgcard img { max-height: 300px; width: auto; }
.cardsplit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cardsplit .btn { margin-top: 20px; align-self: flex-start; }
/* explainer + photo variant: copy stays plain on white (matches the old text-only
   look), photo sits in a rounded card filling the previously empty right column */
.cardsplit.aside { align-items: center; }
.cardsplit.aside .asidecopy p { max-width: 62ch; }
.cardsplit.aside .asidecopy p + p { margin-top: 12px; }
.cardsplit.aside .imgcard { background: var(--shell); overflow: hidden; padding: 0; }
.cardsplit.aside .imgcard img { max-height: 360px; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- grids / cards ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--e-1); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: .75rem; }

/* product tiles (live: centered, brand logo under name, plain dark link) */
.svcgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .svcgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svcgrid { grid-template-columns: 1fr; } }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 18px; text-align: center; transition: var(--dur) var(--ease-out); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.svc:hover { border-color: var(--tomato-300); box-shadow: var(--e-2); transform: translateY(-3px); }
.svc .ph { height: 150px; display: grid; place-items: center; }
.svc .ph img { max-height: 150px; max-width: 100%; width: auto; object-fit: contain; }
/* Reserve two lines for the name so the brand logo and "Details" line up across a
   row regardless of whether a product name wraps. */
.svc h3 { font-size: .95rem; letter-spacing: 0; min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.svc p { font-size: .75rem; color: var(--ink-soft); }
/* The logo box is computed per mark by brandBox() in chrome.js — constant optical
   area, so a 1.65:1 and a 14.3:1 wordmark carry the same visual weight and both
   stay readable. The width/height attributes ARE the design here, so CSS must not
   re-cap them; it only stops overflow in a narrow tile. The slot fits the tallest
   result (BYD, 40px). */
.svc .brandwrap { height: 42px; display: grid; place-items: center; width: 100%; }
.svc .brand { max-width: 100%; height: auto; object-fit: contain; }
.svc .more { font-size: .8rem; color: var(--ink-soft); text-decoration: none; margin-top: auto; }
a.svc-link { text-decoration: none; color: inherit; }

/* ---------- videos (live: iframe inside a white card, grey kW chip) ---------- */
.videos { gap: 24px; }
.videotile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.videotile .frame { position: relative; padding-top: 56.17%; border-radius: var(--r-md); overflow: hidden; background: var(--tide-900); }
.videotile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videotile figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 2px; font-size: .875rem; color: var(--ink); }
.videotile .kw { background: var(--shell); border: 1px solid var(--line); color: var(--ink-soft); font-size: .75rem; padding: 6px 16px; border-radius: var(--r-md); }

/* ---------- stat-bar example cards (live: centered head, track + fill bars) ---------- */
.examples { gap: 24px; }
.example { position: relative; overflow: visible; border-radius: var(--r-lg); padding: 26px 22px; }
.example .badge { position: absolute; top: -18px; right: 16px; background: var(--accent); color: #fff; border-radius: 50%; width: 56px; height: 56px; display: grid; place-items: center; font-weight: 500; font-size: .85rem; box-shadow: var(--e-2); }
.example h3 { text-align: center; font-size: 1.1rem; }
.example .sub { text-align: center; color: var(--ink-mute); font-size: .78rem; margin: 2px 0 14px; }
.example .line { font-size: .85rem; padding: 2px 0; text-align: center; }
.example .line.strong { font-weight: 600; color: var(--ink); }
.statbar { margin-top: 12px; }
.statbar .lbl { display: block; text-align: center; font-size: .74rem; margin-bottom: 6px; }
.statbar.red .lbl { color: var(--accent); }
.statbar.green .lbl { color: #6FCF6F; }
.statbar .track { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); height: 30px; overflow: hidden; }
.statbar .fill { height: 100%; border-radius: var(--r-pill); color: #fff; font-size: .74rem; display: flex; align-items: center; padding: 0 12px; white-space: nowrap; width: 0; transition: width var(--dur-slow) var(--ease-out); }
.statbar.red .fill { background: var(--accent); }
.statbar.green .fill { background: #6FCF6F; }
.statbar.in .fill { width: var(--w, 55%); }
@media (prefers-reduced-motion: reduce) { .statbar .fill { width: var(--w, 55%) !important; } }

/* ---------- rebates band (live: centered heading/outro, white panels) ---------- */
/* commercial trust strip: named installs with kW badges */
.trustbar { background: var(--shell); border-block: 1px solid var(--line); padding: 28px 0; }
.trustbar .tb-heading { font-size: .875rem; color: var(--ink-soft); margin-bottom: 14px; }
.trustbar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.trustbar li { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 16px; font-size: .875rem; color: var(--ink); }
.trustbar li .kw { background: var(--shell); border: 1px solid var(--line); color: var(--ink-soft); font-size: .75rem; padding: 4px 10px; border-radius: var(--r-md); white-space: nowrap; }
.trustbar .tb-note { margin-top: 14px; font-size: .875rem; color: var(--ink-soft); }

/* mid-page conversion band */
.band.ctaband { text-align: center; }
.band.ctaband h2 { color: #fff; margin-bottom: 12px; }
.band.ctaband p { max-width: 62ch; margin: 0 auto; }
.band.ctaband .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.band { background: var(--tide-900); color: rgba(255,255,255,.85); padding: clamp(40px, 5vw, 64px) 0; }
/* Several pages stack a CTA band straight onto the rebates band. Same background,
   no boundary, so ~128px of dark read as one confusing section. A hairline keeps
   the palette but restores the edge. */
.band + .band { border-top: 1px solid rgba(255,255,255,.10); }
.band.rebates h2 { color: #fff; text-align: center; margin-bottom: 30px; }
.band.rebates .panels { margin-bottom: 26px; }
.band.rebates .panel { background: #fff; border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; }
.band.rebates .panel h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: 0; }
.band.rebates .panel p { font-size: .82rem; color: var(--ink-soft); }
.band.rebates .outro { max-width: 74ch; margin: 0 auto; text-align: center; color: rgba(255,255,255,.85); font-size: .85rem; }
.band.rebates .fn { margin: 10px auto 0; max-width: 74ch; text-align: center; font-size: .68rem; color: rgba(255,255,255,.55); }
.band.rebates a { color: rgba(255,255,255,.8); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; font-size: .92rem; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 18px; color: var(--ink-soft); font-size: .85rem; }
.faq .a > * + * { margin-top: 10px; }

/* ---------- contact section (live: grey card + white form card, side by side) ---------- */
.contactcard .contactgrid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contactcard .contactgrid { grid-template-columns: 1fr; } }
.contactcard .left { background: var(--shell); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.contactcard .right { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.contactcard .appt { font-weight: 600; font-style: italic; margin: 12px 0 8px; color: var(--ink); font-size: .9rem; }
.contactcard .left > p { margin-bottom: 10px; }
.checks-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.cstep { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.cstep h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; letter-spacing: 0; }
.cstep p { font-size: .8rem; color: var(--ink-soft); }

/* form internals (live: plain dark group labels, bordered checkbox pills) */
form[data-contact-form] h3 { margin-bottom: 14px; font-size: 1.15rem; }
form[data-contact-form] fieldset { border: none; margin: 0 0 20px; }
form[data-contact-form] legend { font-size: .85rem; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-text); font-size: .875rem; font-weight: 300;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); outline: none; transition: var(--dur);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field.wide { grid-column: 1 / -1; }
form[data-contact-form] .checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 640px) { form[data-contact-form] .checks { grid-template-columns: 1fr 1fr; } }
form[data-contact-form] .check { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; }
form[data-contact-form] .check input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
form[data-contact-form] .q { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin: 4px 0 16px; }
form[data-contact-form] button { margin-top: 2px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); font-size: .85rem; border: 1px solid; margin-top: 16px; }
.alert.ok { background: color-mix(in srgb, var(--ok) 10%, #fff); border-color: color-mix(in srgb, var(--ok) 30%, #fff); color: var(--ok); }
.alert.err { background: color-mix(in srgb, var(--error) 10%, #fff); border-color: color-mix(in srgb, var(--error) 30%, #fff); color: var(--error); }

/* ---------- Areas We Serve (live: links left in 2 cols, map right) ---------- */
.areasplit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .areasplit { grid-template-columns: 1fr; } }
.areas { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 22px; }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }
.areas a { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); text-decoration: none; font-size: .85rem; padding: 5px 0; }
.areas a:hover { color: var(--accent-text); }
.mapbox { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--e-1); background: var(--sand); }
.mapbox iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- blog (live: 2-col white cards, image inset, grey category) ---------- */
.articles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .articles { grid-template-columns: 1fr; } }
.articlecard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e-1); text-decoration: none; display: block; transition: var(--dur) var(--ease-out); color: var(--ink-soft); padding: 16px; }
.articlecard:hover { border-color: var(--tomato-300); box-shadow: var(--e-2); transform: translateY(-3px); }
.articlecard .img { aspect-ratio: 16/9; overflow: hidden; background: var(--sand); border-radius: var(--r-md); }
.articlecard .img img { width: 100%; height: 100%; object-fit: cover; }
.articlecard .pad { padding: 16px 6px 6px; }
.articlecard h3 { font-size: 1rem; margin: 4px 0 8px; letter-spacing: 0; }
.articlecard p { color: var(--ink-soft); font-size: .82rem; }
.articlecard small { display: inline-block; margin-top: 12px; color: var(--accent); font-size: .82rem; }

/* article body (posts, privacy) */
.article { max-width: 760px; }
.article > * + *, .article .rich > * + * { margin-top: 14px; }
.article h2 { margin-top: 34px; }
.article h3 { margin-top: 26px; }
.article img { border-radius: var(--r-md); }
.article ul, .article ol { display: grid; gap: 6px; }
.article blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; color: var(--ink); font-weight: 400; }

/* ---------- product detail (live: white image card, WHITE h1, dark hero) ---------- */
.pagehero.dark.producthero { padding-bottom: clamp(40px, 6vw, 64px); text-align: left; }
.product-hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 760px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero .ph { background: #fff; border-radius: var(--r-md); padding: clamp(20px, 3vw, 44px); display: grid; place-items: center; }
.product-hero .ph img { max-height: 380px; width: auto; object-fit: contain; }
.producthero h1 { color: #fff !important; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); letter-spacing: -1px; margin: 0 0 14px !important; max-width: none; }
.producthero .rich { color: rgba(255,255,255,.92); font-size: .85rem; }
.producthero .rich > * + * { margin-top: 12px; }
.producthero .btn { margin-top: 24px; }

/* ---------- footer (live: WHITE footer, dark text) ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); color: var(--ink-soft); padding: clamp(40px, 6vw, 64px) 0 0; font-size: .85rem; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 960px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }
.footer img.flogo { height: 52px; width: auto; }
.footer .blurb { margin: 16px 0 14px; max-width: 40ch; font-size: .82rem; }
.footer .blurb a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer h6 { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; text-transform: none; letter-spacing: 0; }
.footer .col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: .82rem; padding: 4px 0; transition: color var(--dur-fast); }
.footer .col a:hover { color: var(--ink); }
.footer a.social { display: flex; align-items: center; gap: 10px; }
.footer .plain { padding: 4px 0; font-size: .82rem; color: var(--ink-soft); }
.footer address { font-style: normal; line-height: 1.8; font-size: .82rem; }
.footer address a { color: var(--ink-soft); text-decoration: none; display: inline; padding: 0; }
.footer .badges { display: flex; gap: 14px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.footer .badges img { height: 44px; width: auto; }
.footer .legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .76rem; color: var(--ink-mute); border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0; }
.footer .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .legal-links a { color: var(--ink-soft); text-decoration: underline; }
.footer .credit { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 0 18px; }
.footer .credit img { height: 18px; width: auto; filter: brightness(0); }
.footer .credit a { color: var(--ink-soft); text-decoration: none; font-size: .78rem; }
.footer .credit .sep { color: var(--line); }

/* ---------- 404 ---------- */
.err404 { text-align: center; padding: calc(var(--header-clear) + 40px) 0 clamp(64px, 10vw, 120px); }
.err404 .big { font-family: var(--font-display); font-weight: 400; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--ink); letter-spacing: -3px; }
.err404 p { margin: 18px 0 28px; }

/* ---------- misc ---------- */
.reviews-embed { padding-top: 0; }
.divider { height: 1px; background: var(--line); margin: 36px 0; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* red-circle check icon wrapper (live wraps the white check.svg in a red disc) */
.ico { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.ico img { width: 13px !important; height: auto !important; display: block; }
.cstep .ico { width: 30px; height: 30px; }
.cstep .ico img { width: 14px !important; }
.ico.green { background: #6FCF6F; }
.ico.green img { filter: brightness(0) invert(1); width: 12px !important; }
.areas .ico { width: 24px; height: 24px; }
