/* Direction 1: black-frame glass + LED under-glow
   Self-contained override for the Boheneck Builds home page.
   Load AFTER css/styles.css with this single HTML change:

     <link rel="stylesheet" href="css/direction1.css">

   No markup, copy, or photo changes are required. Hooks used already
   exist in the current tree: section#services h2.sec-title (one short
   blue tick), .card, .svc-card, .why-grid li, .faq details,
   .tile-img, .hero, .nav, .btn-blue, .footer, .cta-band.
   Blue (#0B6CD0 / glow #3E8BD6) is reserved for primary buttons and a
   soft under-glow. Frames and structure are matte black / deep navy.
*/

:root{
  --bg:#FAF6EE;
  --bg2:#FAF6EE;
  --bg-deep:#1C242E;
  --ink:#1C1915;
  --ink2:#3E3933;
  --ink3:#5A544C;
  --frame:#111111;
  --frame-soft:#1C242E;
  --navy:#1C242E;
  --hale:#434B56;
  --lacquer:#FFFFFF;
  --accent:#0B6CD0;
  --accent-h:#0958B0;
  --glow:#3E8BD6;
  --accent-on-deep:#8EC5F8;
  --limestone:#F4F2EC;
  --ink-on-deep:#F4EEE6;
  --ink2-on-deep:#C9C2B6;
  --r:2px;
  --r-sm:2px;
  --r-btn:4px;
  --line:color-mix(in srgb, #1C242E 22%, transparent);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 2px rgba(28,36,46,.06),
    0 10px 28px rgba(28,36,46,.08);
}

/* Cream field — the wall */
html,body{
  background-color:var(--bg);
  background-image:none;
  color:var(--ink);
}
.band,
.band-white,
.quote,
.page-head,
.legal-page,
.proof{
  background-color:var(--band-bg, var(--bg)) !important; /* --band-bg: per-band override token (V3.5 .bax) */
  background-image:none !important;
  box-shadow:inset 0 1px 0 var(--line) !important;
}

/* Body and footer text links are ink on cream or cream on navy.
   Blue stays on buttons, the heading tick, and the LED under-glow. */
main a:not(.btn):not(.btn-blue):not(.btn-ghost):not(.btn-light):not(.nav-estimate):not(.nav-phone){
  color:var(--ink);
  text-decoration-color:color-mix(in srgb, var(--ink) 40%, transparent);
}
main a:not(.btn):not(.btn-blue):not(.btn-ghost):not(.btn-light):not(.nav-estimate):not(.nav-phone):is(:hover,:focus-visible){
  color:var(--ink);
  text-decoration:underline solid currentColor max(1px,.08em);
  text-underline-offset:.18em;
}
.svc-card h3 a,
.svc-card h3 a:hover,
.fallback a,
.legal-back,
.faq a:not(.btn){
  color:var(--ink) !important;
}
.svc-card h3 a:is(:hover,:focus-visible),
.fallback a:is(:hover,:focus-visible),
.legal-back:is(:hover,:focus-visible),
.faq a:is(:hover,:focus-visible){
  text-decoration:underline solid currentColor max(1px,.08em);
  text-underline-offset:.18em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible{
  outline:2px solid var(--frame);
  outline-offset:3px;
}

/* ---------- Nav: cream glass with a thin dark rail ---------- */
.nav,
.nav.scrolled,
.nav-solid{
  background:color-mix(in srgb, #FAF6EE 90%, transparent) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid color-mix(in srgb, #1C242E 22%, transparent) !important;
  box-shadow:none !important;
}
.nav a,
.nav-menu a,
.brand{
  color:var(--ink);
}
.nav .nav-phone{
  color:var(--ink) !important; /* #1C1915: 16.24:1 on cream, >=9:1 on 90% cream over navy */
  font-weight:600;
}
/* If the number is placed on the navy CTA or footer plinth */
.cta-band .nav-phone,
.footer .nav-phone{
  color:#F4EEE6 !important; /* 13.58:1 on #1C242E */
}
.nav-menu a[aria-current="page"]{
  color:var(--ink);
  text-decoration-color:var(--frame);
}
.nav-toggle{
  border:1px solid var(--frame);
  border-radius:var(--r-btn);
  background:var(--lacquer);
  color:var(--ink);
}
@media (max-width:899px){
  .nav-menu{
    background:color-mix(in srgb, #FAF6EE 92%, transparent);
    border-top:1px solid color-mix(in srgb, #1C242E 18%, transparent);
    box-shadow:0 10px 24px rgba(28,36,46,.08);
  }
}

/* ---------- Buttons: lacquered brand blue, scarce ---------- */
.btn{
  border-radius:var(--r-btn);
}
.btn-blue,
.nav .nav-estimate{
  color:#fff !important;
  background-color:var(--accent) !important;
  background-image:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%) !important;
  border:1px solid var(--accent-h);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 1px 2px rgba(11,108,208,.25);
  text-decoration:none !important;
}
.btn-blue:hover,
.nav .nav-estimate:hover,
.btn-blue:is(:hover,:focus-visible){
  color:#fff !important;
  background-color:var(--accent-h) !important;
  background-image:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%) !important;
  border-color:#084a96;
  text-decoration:none !important;
}
.btn-ghost{
  background:transparent;
  color:var(--navy);
  border:1px solid var(--frame-soft);
  padding:13px 23px;
}
.btn-ghost:hover,
.btn-ghost:is(:hover,:focus-visible){
  background:rgba(28,36,46,.04);
  color:var(--ink);
  border-color:var(--frame);
}
.btn-light{
  background:var(--lacquer);
  color:var(--ink);
  border:1px solid color-mix(in srgb, #1C242E 18%, transparent);
}
.btn-light:hover{background:#F6F6F2;color:var(--ink)}

/* ---------- Hero: framed photo plane + toe-kick glow ---------- */
.hero{
  border:1px solid var(--frame);
  box-shadow:
    0 18px 36px -18px rgba(11,108,208,.45),
    0 32px 48px -24px rgba(62,139,214,.38);
}
/* Hero wash + brand tint, ONE layer: .hero-overlay (z-index 2) sits over the
   still and both video layers and under the text (z-index 3), so the poster,
   every clip and the reduced-motion / Save-Data / refused-play still all get
   the same treatment. Wash = the left-to-right #111 gradient from 3a0c446
   (darker left, lighter right). Tint = brand blue (--accent #0B6CD0) at low
   alpha, under the wash so it reads mostly on the lighter right. Tune here. */
.hero{
  --hero-wash-rgb:17,17,17;
  --hero-wash-l:.70;
  --hero-wash-m:.62;
  --hero-wash-mpos:max(68%,640px);
  --hero-wash-r:.12;
  --hero-tint-rgb:11,108,208;
  --hero-tint-a:.08;
}
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(var(--hero-wash-rgb),var(--hero-wash-l)),rgba(var(--hero-wash-rgb),var(--hero-wash-m)) var(--hero-wash-mpos),rgba(var(--hero-wash-rgb),var(--hero-wash-r))),
    linear-gradient(rgba(var(--hero-tint-rgb),var(--hero-tint-a)),rgba(var(--hero-tint-rgb),var(--hero-tint-a))) !important;
}
@media (max-width:768px){
  /* Text spans the full width on phones, so the right side stays dark enough for AA */
  .hero{--hero-wash-l:.80;--hero-wash-m:.74;--hero-wash-mpos:55%;--hero-wash-r:.64}
  .hero-img{object-position:50% 50%}
}

/* One short blue tick — used once, centered under the services heading */
#services .sec-title::after{
  content:"";
  display:block;
  width:4.5rem;
  height:2px;
  margin:14px auto 0;
  background:var(--accent);
}

/* ---------- Lacquered white cards (the vanity) ---------- */
.card,
.svc-card,
.why-grid li,
.faq details,
.fin-callout{
  background-color:var(--lacquer) !important;
  background-image:linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 42%) !important;
  border:1px solid color-mix(in srgb, #1C242E 16%, transparent) !important;
  border-radius:var(--r) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 2px rgba(28,36,46,.06),
    0 10px 28px rgba(28,36,46,.08) !important;
}
.svc-card .tile-img{
  border-radius:1px;
}

/* LED under-glow lives under key panels only (estimate card), not every tile. */
.card{
  position:relative;
  isolation:isolate;
  border-color:var(--frame-soft) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 1px 2px rgba(28,36,46,.06),
    0 12px 24px rgba(28,36,46,.07),
    0 18px 28px -18px rgba(11,108,208,.50),
    0 30px 44px -22px rgba(62,139,214,.38) !important;
}
.card::after{
  content:"";
  position:absolute;
  left:12%;
  right:12%;
  bottom:-7px;
  height:12px;
  background:radial-gradient(ellipse at center, rgba(62,139,214,.48) 0%, rgba(11,108,208,0) 72%);
  filter:blur(7px);
  pointer-events:none;
  z-index:-1;
}
.svc-card{
  border-color:color-mix(in srgb, #1C242E 18%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 2px rgba(28,36,46,.06),
    0 10px 24px rgba(28,36,46,.08) !important;
}
.why-grid li,
.faq details{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 2px rgba(28,36,46,.06),
    0 10px 24px rgba(28,36,46,.07) !important;
}
.svc-card:hover,
.svc-card:focus-within{
  transform:none;
}

/* ---------- Photo frames: matte black shower-profile + cream mat ---------- */
.tile-img,
.team-photo img,
.ba:not(.ba-js) .ba-before,
.ba:not(.ba-js) .ba-after img{
  background:var(--lacquer);
  border-radius:1px !important;
  outline:none;
  overflow:hidden;
}
.tile-img{
  padding:6px;
  background:var(--lacquer);
  border:1px solid var(--frame);
  box-shadow:
    inset 0 0 0 1px var(--frame),
    0 8px 22px rgba(28,36,46,.08) !important;
}
.tile-img picture{
  display:block;
  width:100%;
  height:100%;
}
.tile-img img,
.team-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0;
}
.team-photo img{
  border:1px solid var(--frame);
  box-shadow:
    inset 0 0 0 1px var(--frame),
    0 8px 22px rgba(28,36,46,.08) !important;
}
.proj-grid .tile-img,
.gal-grid .tile-img,
.svc-photos .tile-img{
  box-shadow:
    inset 0 0 0 1px var(--frame),
    0 6px 18px rgba(28,36,46,.07) !important;
}

/* ---------- Form fields, chips, lists ---------- */
select,
input[type=tel],
input[type=email],
input:not([type]),
.area-list a,
.filters button{
  border:1px solid color-mix(in srgb, #1C242E 28%, transparent);
  border-radius:var(--r-btn);
  background:var(--lacquer);
  color:var(--ink);
}
.filters button[aria-pressed="true"],
.area-list a:hover{
  border-color:var(--frame);
  color:var(--ink);
  background:var(--lacquer);
}
.filters button[aria-pressed="true"]{
  background:var(--navy);
  border-color:var(--navy);
  color:var(--ink-on-deep);
}
.num{
  background:var(--navy);
  color:var(--ink-on-deep);
}

/* ---------- CTA band + footer: slate / navy plinth ---------- */
.cta-band{
  background-color:var(--navy) !important;
  background-image:none !important;
  color:var(--ink-on-deep);
  box-shadow:
    0 -16px 32px -22px rgba(62,139,214,.35),
    inset 0 1px 0 rgb(255 255 255 / .06) !important;
  border-top:1px solid #111;
}
.cta-band h2{color:var(--ink-on-deep)}
.cta-band p{color:var(--ink2-on-deep)}
.cta-band a:not(.btn):not(.btn-blue):not(.btn-ghost):not(.btn-light){
  color:var(--ink-on-deep) !important; /* #F4EEE6 on #1C242E, 13.58:1; beats main a ink */
}
.cta-band a:not(.btn):not(.btn-blue):not(.btn-ghost):not(.btn-light):is(:hover,:focus-visible){
  color:#fff !important;
  text-decoration:underline solid currentColor max(1px,.08em);
  text-underline-offset:.18em;
}
.cta-band .btn-ghost{
  color:var(--ink-on-deep);
  border-color:color-mix(in srgb, var(--ink-on-deep) 55%, transparent);
  background:transparent;
}
.cta-band .btn-ghost:is(:hover,:focus-visible){
  background:rgb(255 255 255 / .08);
  color:var(--ink-on-deep);
}
.cta-band :is(a,button,.btn):focus-visible{
  outline:2px solid var(--accent-on-deep);
  outline-offset:3px;
}

.footer{
  background:var(--navy) !important;
  background-image:none !important;
  color:var(--ink2-on-deep) !important;
  border-top:1px solid color-mix(in srgb, #000 45%, #1C242E) !important;
  box-shadow:0 -10px 28px -16px rgba(11,108,208,.28) !important;
}
.footer p{color:var(--ink2-on-deep)}
.foot-brand,
.footer .foot-phone,
.fh{
  color:var(--ink-on-deep) !important;
}
.footer a{
  color:var(--ink-on-deep) !important; /* #F4EEE6 on #1C242E, 13.58:1 */
  text-decoration:none;
}
.footer a:is(:hover,:focus-visible){
  color:#fff !important;
  text-decoration:underline solid currentColor max(1px,.08em);
  text-underline-offset:.18em;
}
.foot-trust{
  border-top-color:color-mix(in srgb, #F4EEE6 16%, transparent) !important;
  color:var(--ink2-on-deep) !important;
}
.foot-trust a{color:var(--ink-on-deep) !important;text-decoration:underline}
.foot-address{color:#B7B6B2 !important} /* opaque: what the old 72% #F4EEE6 on #1C242E rendered as; 7.7:1. Some axe builds read the color-mix() alpha as 1.33:1 */
/* Footer tap targets at least 24px tall (WCAG 2.2 target size): column links and the phone are
   24px-tall inline-flex boxes, and the ROC link in the trust line gets a 24px line box. */
.footer .foot-cols a,
.footer .foot-phone{display:inline-flex;align-items:center;min-height:24px}
.footer .foot-cols li{margin:0 0 8px} /* §155: back to the original 8px gap (link pitch 32px) so a link half under the sticky nav still has 24px spacing */
.footer .foot-trust a{display:inline-block;line-height:24px}

/* ---------- Mobile action bar: glass + one blue CTA ---------- */
@media (max-width:768px){
  .mbar{
    background:color-mix(in srgb, #FAF6EE 88%, transparent);
    -webkit-backdrop-filter:blur(14px) saturate(1.1);
    backdrop-filter:blur(14px) saturate(1.1);
    border-top:1px solid color-mix(in srgb, #1C242E 20%, transparent);
  }
  .mbar a,
  .mbar a+a,
  .mbar a.mbar-sms{
    background:var(--lacquer);
    color:var(--ink);
    border:1px solid color-mix(in srgb, #1C242E 16%, transparent);
    border-radius:var(--r-btn);
  }
  .mbar a:last-child{
    color:#fff;
    background-color:var(--accent);
    background-image:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%);
    border-color:var(--accent-h);
  }
}

/* Subpage leftovers kept consistent if this file is also dropped site-wide */
.start-grid a{
  background:var(--lacquer);
  border:1px solid var(--frame);
  border-radius:var(--r);
  color:var(--ink);
}
.start-grid .go a{
  background-color:var(--accent);
  background-image:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%);
  color:#fff;
  border-color:var(--accent-h);
}

/* Three service cards under the centered "What we do" heading */
#services .svc-cards{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  justify-content:center;
  max-width:1080px;
  margin-inline:auto;
}
@media (max-width:900px){
  #services .svc-cards{grid-template-columns:repeat(3, minmax(0, 1fr))}
}
@media (max-width:560px){
  #services .svc-cards{grid-template-columns:1fr}
}

/* ---- commit I: home hero slider (gimbal clips, island still) ---- */
.hero-media,
.hero-video-slot,
.hero-layer{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hero-layer{
  width:100%;
  height:100%;
  will-change:transform,opacity;
  pointer-events:none;
}
.hero-img,
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
}
.hero-video{z-index:1}
/* Both video layers live in one stacking context BELOW the wash;
   the layers' z-index (1/2/3) only orders them inside this slot. */
.hero-video-slot{position:absolute;inset:0;z-index:1;isolation:isolate}
.hero-overlay{z-index:2}
.hero-content{z-index:3}
.hero-vbtn{
  display:inline-block;
  z-index:4;
  right:16px;
  bottom:16px;
  /* Same box for "Pause" and "Play" so the label swap never moves or resizes it */
  min-width:84px;
  text-align:center;
}
/* Phones show the pause control too — the slider is the default hero at 390. */
@media (max-width:1023px),(hover:none){
  .hero-vbtn{display:inline-block}
}
@media (max-width:768px){
  /* Keep the control in the lower-right corner (bottom:16px already),
     not bottom:72px — that overlapped the trust line at 390. */
}
/* styles.css hides .hero-video at <=768px (old build). The slider is the
   default hero on phones too, so show it; fallback and reduced motion still hide it. */
@media (max-width:768px){.hero .hero-video{display:block}}
/* Pause stays hidden until a clip is actually playing (JS removes [hidden] on 'playing'). */
.hero-vbtn[hidden]{display:none!important}
.hero.hero-fallback .hero-layer,
.hero.hero-fallback .hero-vbtn,
.hero.hero-fallback .hero-video{display:none}
@media (prefers-reduced-motion:reduce){
  .hero-layer,
  .hero-video,
  .hero-vbtn{display:none!important}
  .hero-layer{transform:none!important}
}

/* ---- before/after: Before | After toggle with a crossfade ----
   Both photos sit stacked in the frame; the Before photo fades over the After
   photo. JS sets data-show on .ba and inert + aria-hidden on whichever photo is
   hidden, so assistive tech only meets the visible one. Opens on After.
   No JS: .ba stays without .ba-js and styles.css shows the stacked fallback. */
.ba.ba-js{
  border:1px solid var(--frame);
  background:var(--lacquer);
  border-radius:1px;
  overflow:hidden;
}
.ba.ba-js .ba-before{opacity:0;transition:opacity .3s ease}
/* V3.3: with scripting on, show the toggle layout (After) from first paint,
   before the deferred ba.js adds .ba-js, so nothing shifts. */
@media (scripting:enabled){
  .ba:not(.ba-js){border:1px solid var(--frame);background:var(--lacquer);border-radius:1px;overflow:hidden}
  .ba:not(.ba-js) .ba-before{opacity:0}
}
.ba.ba-js[data-show="before"] .ba-before{opacity:1}
@media (prefers-reduced-motion:reduce){.ba.ba-js .ba-before{transition:none}}
.ba-toggle{
  display:flex;
  width:max-content;
  margin:12px auto 0;
  padding:3px;
  border:1px solid #111;
  border-radius:999px;
  background:#F4EEE6;
  gap:2px;
}
.ba-toggle button{
  min-width:96px;
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#111;
  font:600 15px/1 Inter,system-ui,sans-serif;
  cursor:pointer;
}
.ba-toggle button[aria-pressed="true"]{background:#111;color:#F4EEE6}
.ba-toggle button:focus{outline:none}
.ba-toggle button:focus-visible{outline:3px solid #111;outline-offset:2px;box-shadow:0 0 0 2px #F4EEE6}
.ba-toggle button[aria-pressed="true"]:focus-visible{box-shadow:inset 0 0 0 2px #F4EEE6}
/* Keeps its space while ba.js loads (no shift). With scripting off the toggle is
   removed entirely, so the stacked fallback has no empty gap. */
.ba-wrap:not(:has(.ba-js)) .ba-toggle{visibility:hidden}
@media (scripting:none){.ba-toggle{display:none}}
/* Kitchen page: the finished kitchens below the before/after, as project cards */
.more-title{margin:48px 0 16px}
.proj-grid.proj-grid-2{grid-template-columns:1fr 1fr;max-width:760px;margin:0 auto 32px}
.proj-grid-2 .tile-img{aspect-ratio:4/3}
/* Before & after hub: the three jobs side by side as project cards */
@media (min-width:700px){.ba-hub{grid-template-columns:repeat(3,1fr)}}
.ba-hub .tile-img{aspect-ratio:4/5}


/* Service anchors (services/#kitchen etc.) land below the sticky header, not under it. */
.svc-block[id]{scroll-margin-top:72px}
/* V3.8: in-page section links (/#reviews-title etc.) and FAQ links land below the sticky header.
   /#faq-3-a is the answer <p> inside details#faq-3: the browser opens the details itself (no script)
   and the margin also clears that question's summary row, so the question shows above the answer. */
.sec-title[id],.faq details[id]{scroll-margin-top:72px}
.faq details>p[id]{scroll-margin-top:132px}
@media (max-width:640px){.faq details>p[id]{scroll-margin-top:156px}}

/* V3.3: the skip link lands #main below the 57px sticky header, not under it. */
#main{scroll-margin-top:57px}
#main:focus{outline:none} /* tabindex=-1 target for the skip link; not a control */
/* V3.3 logo (Jake, 7:05 PM): the header link holds the blue house-B mark
   (inline SVG, aria-hidden) and the visible black name; ", home" is
   visually hidden, so the link reads "Boheneck Builds, home". The mark is
   40px tall in the 56px bar; the sticky header stays 57px.
   Motion is CSS only and transform only, and none of it changes layout:
   - scroll shrink: scale 1 -> .85 (40px -> 34px) over the first 70vh of
     page scroll, origin right center so the gap to the name stays the same;
   - roof lift on hover / focus-visible / tap (:active), eased back in 180ms.
   Neither runs under prefers-reduced-motion. Without scroll-timeline
   support the mark simply stays full size. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.nav,.nav.scrolled,.nav-solid{background:color-mix(in srgb, #FAF6EE 97%, transparent) !important}
.nav .brand{display:inline-flex;align-items:center;gap:9px;flex:none;color:var(--ink);line-height:1;white-space:nowrap}
.nav .brand:hover{opacity:1}
.nav .brand:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:4px}
.brand-mark{display:block;flex:none;width:32px;height:40px;overflow:visible;transform-origin:right center}
.brand-mark .roof{transition:transform .18s ease-out}
@media (prefers-reduced-motion:no-preference){
  /* SVG user units: the mark is 423 units for 40 CSS px, so -21 units is about -2 px */
  .brand:is(:hover,:focus-visible,:active) .brand-mark .roof{transform:translateY(-21px);transition-duration:.12s}
  @supports (animation-timeline: scroll()){
    @keyframes brand-shrink{from{transform:scale(1)}to{transform:scale(.85)}}
    .brand-mark{animation:brand-shrink linear both;animation-timeline:scroll(root);animation-range:0 70vh}
  }
}
@media (prefers-reduced-motion:reduce){.brand-mark .roof{transition:none}}
.foot-mark{display:block;width:39px;height:48px;margin:0 0 12px}
/* Small screens: mark + name + phone + Menu must fit on one line at 57px. */
@media (max-width:400px){
  .nav-inner{gap:8px}
  .nav .brand{gap:7px;font-size:1rem}
  .brand-mark{width:30px;height:38px}
}
@media (max-width:374px){
  .nav .brand{gap:6px;font-size:.92rem}
  .brand-mark{width:28px;height:35px}
  .nav .nav-phone{font-size:.85rem}
}
/* Under 360px the three items cannot share one line, so the header number is
   hidden there; Call stays one tap away in the bottom Quick contact bar. */
@media (max-width:359px){
  .nav .nav-phone{display:none}
  .nav-toggle{margin-left:auto}
  .nav .brand{gap:7px;font-size:1rem}
  .brand-mark{width:30px;height:38px}
}

/* Section 3 rotating Google reviews (V3.3). Cards stack in one grid cell,
   so the box is always as tall as the longest review: zero layout shift. */
.proof-reviews{position:relative;min-width:0}
.rv-list{display:grid;margin:0;padding:0;list-style:none}
.rv{grid-area:1/1;visibility:hidden;opacity:0;transition:opacity .6s ease,visibility 0s linear .6s}
.rv.is-active{visibility:visible;opacity:1;transition:opacity .6s ease,visibility 0s}
.rv-stars{margin:0 0 6px;color:#9A6700;letter-spacing:.12em;font-size:.95rem;line-height:1}
.rv .proof-quote figcaption a{white-space:nowrap}
.rv-pause{position:absolute;right:0;bottom:0;width:24px;height:24px;display:grid;place-items:center;padding:0;border:0;border-radius:4px;background:transparent;color:#857D73;cursor:pointer}
.rv-pause:hover{color:var(--ink3,#5A544C)}
.rv-pause:focus-visible{outline:3px solid #0B6CD0;outline-offset:2px}
.rv-pause svg{fill:currentColor}
.rv-pause .rv-i-play{display:none}
.rv-pause.is-paused .rv-i-play{display:inline}
.rv-pause.is-paused .rv-i-pause{display:none}
.proof-reviews figcaption{padding-right:30px}
@media (scripting:none){.rv:not(.is-active){display:none}}
@media (prefers-reduced-motion:reduce){.rv,.rv.is-active{transition:none}}

/* Reviews: fixed-height clamp with View more (Jake 8:29 PM). JS only, so
   no-JS visitors always get Penny's full text. */
.rv-js .rv blockquote p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden}
@media (min-width:761px){.rv-js .rv blockquote p{-webkit-line-clamp:4;line-clamp:4}}
.rv-js .rv.is-expanded blockquote p{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
.rv-more{display:inline-flex;align-items:center;min-height:24px;min-width:24px;margin:2px 0 4px;padding:0 2px;border:0;background:transparent;color:var(--ink,#1C1915);font:inherit;font-size:.92rem;font-weight:600;text-decoration:underline;text-underline-offset:.18em;cursor:pointer;border-radius:4px}
.rv-more:focus-visible{outline:3px solid #0B6CD0;outline-offset:2px}
.rv-more[hidden]{display:none}

/* V3.4 reviews nav + reserved height */
/* Clamp from first paint when JS can run, so .rv-js is not needed to reserve
   height. JS-off (scripting:none) keeps the existing full first-review layout.
   Nav space is reserved while hidden; View more keeps its row even with [hidden]
   so measure() cannot shift the grid. */
.rv-nav {
  display: none;
}
@media (scripting: enabled) {
  .proof-reviews .rv blockquote p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }
}
@media (scripting: enabled) and (min-width: 761px) {
  .proof-reviews .rv blockquote p {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}
@media (scripting: enabled) {
  .proof-reviews .rv.is-expanded blockquote p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
    overflow: visible;
  }
  /* Beat styles.css [hidden]{display:none!important} so the button row is
     reserved from first paint. Short reviews keep a silent spacer. */
  .proof-reviews .rv-more[hidden] {
    display: inline-flex !important;
    visibility: hidden;
    pointer-events: none;
  }
  .rv-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    min-height: 32px;
    padding-right: 32px;
    visibility: hidden;
    pointer-events: none;
  }
  .rv-js .rv-nav {
    visibility: visible;
    pointer-events: auto;
  }
}
@media (scripting: none) {
  .rv-nav { display: none !important; }
}
.rv-prev,
.rv-next {
  box-sizing: border-box;
  flex: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #857D73;
  cursor: pointer;
  touch-action: manipulation;
}
.rv-prev:hover,
.rv-next:hover {
  color: var(--ink3, #5A544C);
}
.rv-prev:focus-visible,
.rv-next:focus-visible {
  outline: 3px solid #0B6CD0;
  outline-offset: 2px;
}
.rv-prev svg,
.rv-next svg {
  display: block;
}
.rv-count {
  margin: 0;
  min-width: 7ch;
  color: var(--ink3, #5A544C);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .proof-reviews .rv,
  .proof-reviews .rv.is-active {
    transition: none;
  }
}

/* Ellipsis is painted with CSS so p.textContent stays the original quote
   (visible text + .rv-overflow remainder). The span is aria-hidden. */
.rv-ellipsis::before {
  content: "\2026";
}

/* v3.4 fixes */
/* Mobile #mbar is ~67px and fixed; body already has padding-bottom:72px, but
   scrollIntoView / in-page jumps still align to the viewport edge, so the
   in-section Get an Estimate button sits under the bar.
   v3.6.2 (§131): not on very short viewports (under 300px tall, e.g. a landscape phone with the
   keyboard open): there 72px of padding made the focused field jump 46-50px on the first keystroke
   and pushed the error message under the sticky header (640x200). */
@media (max-width:768px) and (min-height:300px){
  html{scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom, 0px))}
}
/* v3.6.4 (§141): on viewports under 300px tall (landscape phone, keyboard open; 640x200) the
   fixed quick-contact bar covers a third of the screen and the focused estimate field still jumped
   when it was typed in. The bar is hidden there (the header phone link is still on the page), and the
   72px/52px of body padding that only made room for it goes with it. */
@media (max-height:299px){
  .mbar{display:none !important}
  body{padding-bottom:0}
}
/* Under 375px wide, Call and Text size to their words and "Get an Estimate" takes the rest on one
   line, so the bar keeps its 67px height and the 72px scroll-padding clears it. */
@media (max-width:374px){
  .mbar{grid-template-columns:auto auto 1fr}
  .mbar a{white-space:nowrap;padding-inline:14px}
}

/* ---------- V3.6 estimate Step 1: tap-button radios (planner merged into the form) ----------
   Project type and start timing are native radios inside labels, so the same
   markup submits project_type / timeline with JS off. The look carries over the
   V3.4 option buttons: >=3:1 borders, navy fill plus a check mark when chosen
   (not colour alone), 3px focus ring. */
#lead-form .qgroup{margin:16px 0 0;min-width:0}
#lead-form .qlabel{font-weight:600;font-size:.95rem;color:var(--ink);margin:0 0 8px;padding:0;letter-spacing:0}
#lead-form .qchoices{display:flex;flex-wrap:wrap;gap:8px}
#lead-form .qchoice{position:relative;display:inline-flex;margin:0;font-weight:600;font-size:1rem}
#lead-form .qchoice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#lead-form .qchoice span{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border:1px solid var(--navy);border-radius:var(--r-btn);background:var(--lacquer);color:var(--ink)}
#lead-form .qchoice:hover span{background:#F6F6F2}
#lead-form .qchoice input:checked + span{background:var(--navy);color:var(--ink-on-deep)}
#lead-form .qchoice input:checked + span::before{content:"";display:inline-block;width:.42em;height:.7em;margin-inline-end:.55em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-.08em);flex:none}
/* V3.6 chip-check-wrap: a chip is equally wide checked or not, so checking one (tap or
   Continue) never re-wraps the row. Unchecked chips hold the check mark's .97em + 2px (.42em mark
   + its 2px border + .55em gap) as extra side padding, half each side so the label stays centred; checked chips
   keep their 16px padding plus the mark, exactly as before. */
#lead-form .qchoice input:not(:checked) + span{padding-inline:calc(17px + .485em)}
/* :focus fallback: WebKit can drop :focus-visible after arrow keys inside a radio group. */
#lead-form .qchoice input:focus + span,#lead-form .qchoice input:focus-visible + span{outline:3px solid var(--frame);outline-offset:3px}
#lead-form .qchoice input:checked:focus + span,#lead-form .qchoice input:checked:focus-visible + span{box-shadow:inset 0 0 0 2px var(--ink-on-deep)}
#lead-form .qopt{font-weight:400;color:var(--ink2)}
/* V3.6: an unanswered question is outlined after Next (the radios also get aria-invalid). */
#lead-form .qgroup.is-invalid{outline:2px solid #a40000;outline-offset:6px;border-radius:4px}
/* v3.6.2: a Step 2 field with an error (main.js sets aria-invalid="true", cleared on input) gets the error red border. */
#lead-form input[aria-invalid="true"]{border-color:#a40000}
/* v3.6.2: err2 now sits under the Step 2 legend, like err1: no gap while it is empty, and the Back/Request row keeps the 37.39px it had below the consent text (err2's 20.39px line + 17px margin), so the empty Step 2 is the same height as before. */
#lead-form #err2:empty{min-height:0;margin:0}
#lead-form #step2 > .row{margin-top:37.39px}
/* v3.6.2 §121b: #err2 gets focus after a failed send (tabindex=-1 set by main.js); a keyboard user sees a ring in the error red. */
#lead-form #err2:focus-visible{outline:3px solid #a40000;outline-offset:4px}
/* err1 now sits under the Step 1 legend: no gap while it is empty, and Next keeps the 37px it had below the location field. */
#lead-form #err1:empty{min-height:0;margin:0}
#lead-form #step1 #next{margin-top:37px}
/* Until main.js moves the location field (last in the HTML for the no-JS POST order) into Step 1, keep its 94.31px (48px input since v3.6.2) so Next and the card do not shift (CLS). */
@media (scripting:enabled){#lead-form #step1:not(:has(#plocation)) #next{margin-top:131.31px}}
/* The step containers get focus from script on arrival (tabindex=-1) so Tab goes into the questions;
   they are not controls, so no ring on the whole card. Every control inside keeps its focus-visible ring. */
#lead-form .step:focus{outline:none}
/* Thanks state: the card keeps its Step 2 height (CLS hold), so centre the message in it. */
#lead-form.is-done{display:flex;flex-direction:column;justify-content:center}
/* Continue-your-estimate notice (added by main.js only when Step 1 answers were saved).
   Step 1 stays in the layout under it (visibility only), so the card keeps exactly the
   height it has without the notice; no JS measurement is involved. */
#lead-form.is-resume #step1{visibility:hidden}
/* Top of the card, not centred: on a short phone (320x568) a visitor arriving at #quote sees both buttons without scrolling. */
#lead-form .resume{position:absolute;inset:0;z-index:1;display:flex;align-items:flex-start;justify-content:center;padding:inherit}
#lead-form .resume-box{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--limestone)}
#lead-form .resume-box p{flex:1 0 100%;margin:0}
/* 48px tap targets, the same as the Step 1 chips. */
/* Both buttons share one box: same 48px height, same 12px side padding, label centred on one line
   (both fit at 320). Each grows from 12.5rem, so in a narrow notice (phones, the 768 two-column
   card) they stack at full width, and where two fit (desktop) they sit side by side at equal width. */
#lead-form .resume .btn{flex:1 1 12.5rem;display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:0 12px;text-align:center}
#lead-form .resume:focus{outline:none}
@media (prefers-reduced-motion:no-preference){#lead-form .qchoice span{transition:background-color .15s ease,color .15s ease}}
@media (forced-colors:active){
  #lead-form .qchoice span{border-color:ButtonText;background:ButtonFace;color:ButtonText}
  #lead-form .qchoice input:checked + span{background:Highlight;color:HighlightText;border-color:CanvasText;forced-color-adjust:none}
  #lead-form .qchoice input:focus + span,#lead-form .qchoice input:focus-visible + span{outline-color:Highlight}
}

/* ---------- V3.5 home before-and-afters scroll section (.bax) ----------
   Was css/ba-scroll.css in the mock; kept in this file so the home page has no extra render-blocking request.
   Band colour: --band-bg feeds the shared .band rule near the top (no !important). */
.bax{--band-bg:var(--limestone);overflow-x:clip}
.bax-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.bax-head .sec-title,.bax-head .sec-sub{text-align:left;margin-left:0}
.bax-nav{display:flex;gap:8px;flex:none}
.bax-nav button{width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:600 20px/1 var(--font);cursor:pointer}
.bax-nav button:disabled{opacity:.35;cursor:default}
.bax-nav button:focus-visible,.bax-handle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.bax-track{list-style:none;margin:0;padding:4px 2px 12px;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3*20px)/3.4);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:2px;scrollbar-width:none;overscroll-behavior-x:contain}
.bax-track::-webkit-scrollbar{display:none}
.bax-card{scroll-snap-align:start;margin:0}
/* --bax-pos is a number 0-100. The line and handle move with transform (cqw of the frame), never left, so the drag and the intro wipe cause no layout shift. */
.bax-frame{position:relative;aspect-ratio:3/4;border-radius:var(--r);overflow:hidden;background:#E8E3D8;container-type:inline-size;--bax-pos:50}
.bax-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none;pointer-events:none}
.bax-frame .bax-before{clip-path:inset(0 calc(100% - var(--bax-pos) * 1%) 0 0)}
.bax-tag{position:absolute;top:12px;padding:4px 10px;border-radius:999px;background:rgba(28,36,46,.86);color:#fff;font:600 13px/1.4 var(--font);pointer-events:none}
.bax-tag.b{left:12px}.bax-tag.a{right:12px}
.bax-line{position:absolute;top:0;bottom:0;left:0;width:2px;transform:translateX(calc(var(--bax-pos) * 1cqw - 1px));background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.15);pointer-events:none}
.bax-handle{position:absolute;top:50%;left:0;width:48px;height:48px;margin-top:-24px;transform:translateX(calc(var(--bax-pos) * 1cqw - 24px));border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 2px 10px rgba(0,0,0,.25);cursor:ew-resize;touch-action:pan-y;display:grid;place-items:center;font:700 22px/1 var(--font);letter-spacing:2px}
.bax-card figcaption{margin-top:12px}
.bax-card figcaption strong{display:block;font-size:17px;color:var(--ink)}
.bax-card figcaption span{display:block;font-size:15px;color:var(--ink3);margin-top:2px}
.bax-card figcaption a{font-size:15px;font-weight:600;color:var(--accent);text-underline-offset:3px}
.bax-foot{margin-top:24px}
@media (max-width:1024px){.bax-track{grid-auto-columns:calc((100% - 20px)/2.3)}}
@media (max-width:640px){
  .bax-head{display:block}.bax-nav{display:none}
  .bax-track{grid-auto-columns:84%;gap:14px;margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}
}
/* One-time intro wipe; never under reduced motion (ba-scroll.js also skips it). */
@media (prefers-reduced-motion:no-preference){.bax-frame.is-intro{transition:--bax-pos .9s}}
/* JS off: static before/after pair side by side, no handle, no arrows. */
@media (scripting:none){
  .bax-nav,.bax-handle,.bax-line,.bax-js-only{display:none}
  .bax-frame{aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr;gap:2px}
  .bax-frame picture{display:block;aspect-ratio:3/4;position:relative}
  .bax-frame picture:has(.bax-before){order:-1}
  .bax-frame .bax-before{clip-path:none}
}

/* B&A drag fix: keep the whole handle and its 3px+3px focus ring inside the frame at 0 and 100
   (the frame clips with overflow:hidden). The line still marks the exact split; only the handle stops 6px from the edge. */
.bax-handle{transform:translateX(clamp(6px, calc(var(--bax-pos) * 1cqw - 24px), calc(100cqw - 54px)))}

/* v3.6.2 About: "Where we work" service-area map. Inline SVG drawn from U.S. Census TIGER/Line 2025 (UTM 12N). */
.area-map{margin:20px 0 0;max-width:440px}
.area-map svg{display:block;width:100%;height:auto}
.area-map .am-place{fill:color-mix(in srgb,var(--accent) 22%,#fff);stroke:var(--accent-h);stroke-width:1.2;stroke-linejoin:round}
.area-map .am-roads{fill:none;stroke:#6b7078;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.area-map text{font-family:inherit;font-size:18px;font-weight:600;fill:var(--navy);text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:3.5px;stroke-linejoin:round}
.area-map figcaption{margin-top:6px;font-size:.875rem;color:var(--ink2)}

/* v3.6.2 home (Jake, Nov 19): "How it works" as numbered step cards on a soft brand-blue tint. */
.hiw-steps{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:10px}
.hiw-steps li{display:flex;gap:14px;align-items:flex-start;margin:0;padding:14px 16px;background:color-mix(in srgb,var(--accent) 7%,#fff);border:1px solid color-mix(in srgb,var(--accent) 20%,transparent);border-radius:var(--r-btn)}
.hiw-num{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;font-size:1rem;line-height:1;font-variant-numeric:tabular-nums}
.hiw-steps h4{margin:3px 0 2px;font-size:1.05rem;line-height:1.3;color:var(--navy)}
.hiw-steps p{margin:0;color:var(--ink2);line-height:1.45}

/* v3.6.2 home: "Why homeowners call Boheneck" = three white cards, one line icon each (inline SVG, decorative). */
.why-grid.why-3{grid-template-columns:repeat(3,1fr);max-width:1080px}
.why-3 li{display:flex;flex-direction:column;align-items:flex-start}
.why-ico{display:block;width:44px;height:44px;margin:0 0 14px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:860px){.why-grid.why-3{grid-template-columns:1fr;max-width:560px}}

/* v3.6.2 home: small service-area map (same Census TIGER shapes as the About map, no labels) with the logo mark. */
.ha-lead{margin:0 0 20px}
/* v3.6.2 §124 home service-area map: light Census base (img) + inline overlay, labels, logo */
.home-area{margin:0 auto;max-width:680px}
.ha-map{position:relative;border-radius:14px;overflow:hidden;background:#F3F5F6;border:1px solid #E1E5E8;box-shadow:0 1px 2px rgba(28,36,46,.06),0 8px 24px rgba(28,36,46,.08)}
.ha-base{display:block;width:100%;height:auto}
.ha-over{position:absolute;inset:0;width:100%;height:100%}
.ha-shape{fill:var(--accent);fill-opacity:.24;stroke:var(--accent-h);stroke-width:1.6px;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#map-labels{font-family:inherit;font-weight:600;font-size:25px;letter-spacing:.01em;fill:var(--navy);stroke:#fff;stroke-width:5px;stroke-linejoin:round;paint-order:stroke;text-anchor:middle}
.ha-mark{position:absolute;left:54.97%;top:51.61%;width:26px;height:32px;transform:translate(-50%,-50%);fill:var(--navy);shape-rendering:geometricPrecision}
.home-area figcaption{margin-top:8px;font-size:.875rem;color:var(--ink2);text-align:center}
@media (min-width:768px){#map-labels{font-size:17px;stroke-width:3.5px}.ha-mark{width:36px;height:44px}}
