/* Sedona Concrete — FORMWORK design system (from design-system.json / kit style guide)
   Plain token CSS, no Tailwind build (HFW pattern). One motif element per section max. */

/* ── self-hosted fonts ──────────────────────────────────────────────────────
   Was a render-blocking <link> to fonts.googleapis.com, which cost a DNS +
   TLS + round trip before the CSS even arrived, then a second trip to
   fonts.gstatic.com for the files. On throttled mobile that was most of a
   7s First Contentful Paint. Same files, same licence (both OFL), served from
   our own origin and preloaded in header.php.

   The swap also caused the site's entire CLS: Anton is far narrower than the
   sans-serif fallback, so the h1 rewrapped and pulled the page up ~145px on
   arrival — one 0.1398 shift. The size-adjust/ascent-override fallbacks below
   match the fallback's metrics to the real face so that reflow is ~nil, and
   preloading means the real face usually wins the race anyway.
   Metric values come from measuring each face against its fallback. */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/worksans-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks: these stand in for the split second before the
   real face paints, sized so the line boxes match and nothing reflows. */
@font-face {
  font-family: 'Anton Fallback';
  src: local('Arial Narrow'), local('Arial');
  size-adjust: 62%;
  ascent-override: 145%;
  descent-override: 32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Work Sans Fallback';
  src: local('Arial');
  size-adjust: 96%;
  ascent-override: 99%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  /* Brand — sampled from the logo artwork. #B95B1F is 60.7% of the mark's ink
     and 100% of the wordmark; #CFB692 is the second fill at 30.2%. Every other
     value here is a lightness move on one of those two hues, or a neutral
     rotated onto the same warm axis (~28deg) that the logo sits on.
     --orange is the logo terracotta. It splits three ways because no single
     value clears AA on both white and charcoal:
       --orange        fills   — buttons, tags, rules, focus rings
       --orange-ink    text on LIGHT grounds  (6.83:1 white, 5.73:1 concrete)
       --orange-lit    text on DARK grounds   (5.73:1 charcoal, 6.58:1 ink) */
  --orange: #B95B1F;
  --orange-ink: #904618;
  --orange-lit: #DD854B;
  --orange-hover: #A04F1B;
  --sand: #CFB692;
  --sand-lit: #DDC4A2;
  --charcoal: #25211D;
  --ink: #171412;
  --concrete: #edebe6;
  --clay: #FAF1EB;
  --white: #ffffff;
  --slate: #6F645A;
  --elev-1: #322D29;
  --elev-2: #403A35;
  --elev-3: #4A433D;
  --gray-mid: #9C948B;
  --gray-soft: #D3CDC5;
  --line: #E3E1DC;
  --line-soft: #EEECE7;
  --font-display: 'Anton', 'Anton Fallback', sans-serif;
  --font-body: 'Work Sans', 'Work Sans Fallback', sans-serif;
  --chamfer: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--slate); background: var(--white); }

/* ── type ── */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--charcoal); line-height: 1.2; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 23px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--orange-ink); }
/* eyebrows sit on dark grounds far more often than light — the lit tone is the
   one that clears AA there (base terracotta is only 3.39:1 on charcoal) */
.dark .eyebrow, .darkest .eyebrow, .side-card.cta .eyebrow, .cta-form .eyebrow,
.sc-drawer .eyebrow, .site-footer .eyebrow { color: var(--orange-lit); }
/* Section header spacing: one value for every eyebrow sitting directly above a
   section title. Scoped by the adjacent combinator rather than set on .eyebrow
   itself, so it reaches only that pairing — page heroes (h1) keep their own
   spacing, and a standalone eyebrow (the CTA form panel label, the contact
   sidebar's "Call us") keeps its own.

   Section eyebrows must be <p class="eyebrow">, never a <span>. An inline span
   sits in an anonymous block whose line box is at least the PARENT's strut
   (15px x 1.7 = 25.5px), while a block <p> uses its own (13px x 1.7 = 22.1px).
   The 12px below is honoured either way, but the span version drops its text
   ~3.4px lower, so the two shapes do not line up. */
.eyebrow + h2 { margin-top: 12px; }
.caption { font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
p + p { margin-top: 1em; }
a { color: var(--orange-ink); text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* dark sections */
.dark { background: var(--charcoal); color: var(--gray-soft); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.darkest { background: var(--ink); color: var(--gray-soft); }
.darkest h1, .darkest h2, .darkest h3 { color: var(--white); }

/* ── layout ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; position: relative; }
/* Promoted out of front-page.php's page-local <style>: sc_faq_section() emits
   .sec-head/.bg-concrete/.faq-wrap too, so About and Services were rendering
   the shared FAQ block with no heading gap, no background and no column width. */
.sec-head { max-width: 760px; margin-bottom: 44px; }
/* eyebrow→h2 gap is the sitewide `.eyebrow + h2` rule below */
.sec-head h2 { margin-bottom: 16px; }
.bg-concrete { background: var(--concrete); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* form-line motif: 4px orange vertical rule anchoring dark sections
   (pseudo-element so the rule can draw itself in on reveal) */
.form-line { position: relative; padding-left: 28px; }
.form-line::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); transform-origin: top; }

/* ── buttons / components ── */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 13px 26px; cursor: pointer; border: 0; transition: transform .22s ease, background .22s ease, color .22s ease; }
.btn:hover { transform: scale(1.03); }
.btn-primary { background: var(--orange); color: var(--white); clip-path: var(--chamfer); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--gray-mid); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost.on-light { color: var(--charcoal); border-color: var(--gray-soft); }
/* Standing-off gap for a CTA button closing a block of copy. Promoted here from
   front-page.php's <style> once About and the shared service grid started using
   it — scoped to the home page it silently did nothing elsewhere, leaving those
   buttons on the 1em that `p + p` gives them. */
.area-cta { margin-top: 26px; }
.tag { display: inline-block; background: var(--orange); color: var(--white); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; }
.card { background: var(--white); border: 1px solid var(--line); clip-path: var(--chamfer); padding: 34px 30px; transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(23, 20, 18, .1); }
.dark .card { background: var(--elev-1); border-color: var(--elev-3); }

/* duotone imagery treatment (charcoal + orange overlay) */
.duo { position: relative; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.duo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(37, 33, 29, .55), rgba(185, 91, 31, .2)); mix-blend-mode: multiply; pointer-events: none; }
.card:hover .duo img { transform: scale(1.05); }

/* service card w/ media slot (shared: index + services) */
.svc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc-card .duo { height: 190px; flex: none; }
.svc-card .body { padding: 24px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-card .body h3 { margin-bottom: 10px; }
.svc-card .more { margin-top: auto; padding-top: 14px; font-weight: 600; }

/* Whole-card link. The .more anchor is stretched over the card with an empty
   ::after rather than wrapping the card in an <a>: the card stays clickable
   everywhere, but the link's accessible name is just the .more text instead of
   the title + blurb + label read as one run-on label. No nested anchors either,
   which is why the card title is plain text and not its own link.
   Position on the card is what the overlay resolves against; the overlay is
   painted, not laid out, so nothing in the card shifts. */
.svc-card { position: relative; }

/* Hover: shadow + image zoom + title accent, and the card stays put.
   .card:hover lifts by -6px, which the Services page cards never actually did:
   they carry .reveal, and .reveal.in { transform: none } is declared later at
   equal specificity, so it silently cancelled the lift there while the
   front-page cards (no .reveal) kept it. Stated outright here so both grids
   match on purpose rather than by source order. */
.svc-card:hover { transform: none; }

/* The chamfer is a clip-path, so it CUTS the 1px border instead of stroking the
   diagonal — the outline stops dead at the corner. This lays a 1px line along
   the cut, in the card's own border colour, so the corner reads as a deliberate
   angle like the .btn-primary chamfer does.

   Painted as the card's own background rather than a pseudo-element, and that
   is load-bearing twice over. clip-path cuts the BORDER box, but an absolutely
   positioned child resolves right/bottom against the PADDING box, so a pseudo
   lands 1px in from the real diagonal and leaves a notch at both junctions.
   Nudging it back out with -1px does not help either: .svc-card is
   overflow:hidden, which re-clips descendants to that same padding box. A
   background has neither problem — overflow does not touch it, and
   background-origin:border-box puts the 14px tile exactly on the clipped corner.

   The band sits just inside the diagonal (50% - 1px to 50%) rather than centred
   on it, since clip-path would otherwise trim away its outer half. */
.svc-card {
  background-image: linear-gradient(135deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 14px 14px;
  background-origin: border-box;
}
.svc-card .more a::after { content: ''; position: absolute; inset: 0; }
/* Title picks up the accent on card hover — the cue the title's own :hover used
   to give, now driven by the whole card. Colour only: no layout effect. */
.svc-card h3 { transition: color .22s ease; }
.svc-card:hover h3 { color: var(--orange-ink); }
/* The real anchor is the small .more text, so its focus ring would be easy to
   miss — promote it to the card the keyboard user is actually on. */
.svc-card:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.svc-card .more a:focus-visible { outline: none; }

/* ── utility bar + header ── */
.util { background: var(--ink); color: var(--gray-soft); font-size: 13px; padding: 8px 0; }
.util .wrap { display: flex; justify-content: center; gap: 18px; align-items: center; }
.util a { color: var(--orange-lit); font-weight: 600; }
/* Short tagline swaps in at the drawer breakpoint, so the util bar stays a
   single centred line beside the phone instead of the long desktop line
   wrapping to two or three. nowrap keeps the phone from breaking at its space
   on narrow phones. Desktop (>980px) is untouched. */
.util-tagline-sm { display: none; }
@media (max-width: 980px) {
  .util-tagline { display: none; }
  .util-tagline-sm { display: inline; }
  .util .wrap { gap: 12px; }
  .util .wrap > * { white-space: nowrap; }
}
.site-header { background: var(--charcoal); position: sticky; top: 0; z-index: 60; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.wordmark { font-family: var(--font-display); font-size: 22px; color: var(--white); letter-spacing: .02em; text-transform: uppercase; }
.wordmark em { font-style: normal; color: var(--orange-lit); }
/* Logo image (Site Options > Logo). Height-capped with width:auto so the
   supplied file keeps its own aspect ratio — never both dimensions, which
   would squash it. The header row is 82px at every width; 64px leaves 9px of
   clearance above and below on desktop, 46px leaves 18px on mobile. */
.wordmark:has(.wordmark-img) { display: flex; align-items: center; }
.wordmark-img { height: 64px; width: auto; max-width: 260px; object-fit: contain; }
.site-footer .wordmark-img { height: 58px; max-width: 240px; }
.sc-drawer__head .wordmark-img { height: 40px; max-width: 170px; }
@media (max-width: 980px) { .wordmark-img { height: 46px; max-width: 190px; } }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--gray-soft); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a[aria-current] { color: var(--white); }
.nav .phone { color: var(--white); }
/* The header CTA is an <a> inside .nav, so `.nav a` (0,1,1) was beating
   `.btn-primary` (0,1,0) and painting the label --gray-soft on the terracotta
   fill — 2.91:1. Long-standing, and the old orange was worse at ~2.5:1. */
.nav .btn-primary { color: var(--white); }
.has-drop { position: relative; }
.drop { display: none; position: absolute; top: 100%; left: -14px; background: var(--elev-1); min-width: 250px; padding: 10px 0; box-shadow: 0 18px 38px rgba(0,0,0,.35); }
.has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.drop a { display: block; padding: 9px 18px; font-weight: 500; }
.drop a:hover { background: var(--elev-2); color: var(--white); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); font-size: 26px; }
/* Below 980px the desktop nav is replaced outright by .sc-drawer, rather than
   being re-dressed as a dropdown panel the way it used to be. */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ── mobile drawer ──
   Off-canvas dialog: scrim + right-hand panel, with focus trap, Esc, and body
   scroll lock handled in site.js. Sits above the header (60), mobile CTA bar
   (70) and scroll progress (80). */
.sc-drawer[hidden] { display: none; }
.sc-drawer { position: fixed; inset: 0; z-index: 90; }
.sc-drawer__scrim { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: default; background: rgba(23, 20, 18, .62); opacity: 0; transition: opacity .3s ease; }
.sc-drawer.is-open .sc-drawer__scrim { opacity: 1; }
.sc-drawer__panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: 86%; max-width: 380px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--charcoal); padding: 18px 24px 32px;
  box-shadow: -14px 0 40px rgba(0, 0, 0, .45);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.sc-drawer.is-open .sc-drawer__panel { transform: none; }
.sc-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-drawer__close { background: none; border: 0; color: var(--white); font-size: 30px; line-height: 1; padding: 4px 2px; cursor: pointer; transition: color .22s ease; }
.sc-drawer__close:hover { color: var(--orange-lit); }
.sc-drawer__nav { display: flex; flex-direction: column; }
/* A group is one accordion: the row (label + toggle) plus its panel, sharing a
   single rule so the divider sits under the children when the panel is open. */
.sc-drawer__nav > a, .sc-drawer__group { border-bottom: 1px solid var(--elev-2); }
.sc-drawer__nav > a, .sc-drawer__row > a { color: var(--white); font-weight: 600; font-size: 15px; padding: 13px 0; }
.sc-drawer__nav > a:hover, .sc-drawer__nav > a[aria-current],
.sc-drawer__row > a:hover, .sc-drawer__row > a[aria-current] { color: var(--orange-lit); }
.sc-drawer__row { display: flex; align-items: center; gap: 8px; }
.sc-drawer__row > a { flex: 1; }
/* 44px square, pulled into the panel's padding so the glyph stays optically
   flush with the right edge while the tap target keeps its full size. */
.sc-drawer__toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: var(--orange-lit); cursor: pointer; }
.sc-drawer__toggle svg { width: 18px; height: 18px; }
.sc-drawer__toggle-v { transform-origin: center; transition: opacity .22s ease, transform .22s ease; }
.sc-drawer__toggle[aria-expanded="true"] .sc-drawer__toggle-v { opacity: 0; transform: rotate(90deg); }
.sc-drawer__sub[hidden] { display: none; }
.sc-drawer__sub { list-style: none; padding: 2px 0 12px 14px; }
.sc-drawer__sub a { display: block; color: var(--gray-soft); font-size: 14px; padding: 7px 0; }
.sc-drawer__sub a:hover, .sc-drawer__sub a[aria-current] { color: var(--orange-lit); }
.sc-drawer__cta { text-align: center; }
.sc-drawer__meta { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--elev-2); padding-top: 16px; font-size: 14px; color: var(--gray-soft); }
.sc-drawer__meta a { color: var(--gray-soft); }
.sc-drawer__meta a:hover { color: var(--orange-lit); }
.sc-drawer__meta .tel { color: var(--white); font-weight: 600; }
@media (min-width: 981px) { .sc-drawer { display: none; } }

/* hero — form-line spans the hero's full height at the container's left edge,
   copy inset 48px from it; gentle near-vertical clip on the media (kit) */
/* Top padding on the SECTION, matching .page-hero's 72px, so the media panel
   and the orange rule clear the header the way they do on subpages — both sat
   flush at the section's top edge before, since only .hero-copy had padding.
   .hero-copy drops 96px -> 24px to absorb it, keeping the headline exactly
   where it was (72 + 24 = the same 96px from the header). */
.hero { position: relative; overflow: hidden; padding-top: 72px; }
.hero .grid-2 { align-items: stretch; gap: 0; grid-template-columns: 1.2fr 1fr; }
.hero .wrap { position: relative; }
.hero .wrap::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 4px; background: var(--orange); }
.hero-copy { padding: 24px 32px 96px 48px; }
.hero-copy h1 { font-size: clamp(40px, 4.2vw, 62px); }
.h1-line { display: block; }
.hero-media { clip-path: polygon(5.5% 0, 100% 0, 100% 100%, 0 100%); min-height: 420px; }
.h1-outline { color: transparent; -webkit-text-stroke: 2px var(--orange); }
@media (max-width: 900px) {
  /* kit mobile hero is TEXT ONLY; rule spans only the actual content */
  .hero-media, .page-hero .grid-2 > .duo { display: none; }
  .hero .wrap::before { display: none; }
  .hero .grid-2, .page-hero .grid-2 { grid-template-columns: 1fr; }
  /* top margin drops to 0 — the section's 72px now supplies the gap, and grid
     items do not collapse margins, so 56px here would stack to 128px */
  .hero-copy { margin: 0 0 56px; padding: 0 0 0 22px; border-left: 4px solid var(--orange); }
}

/* page hero (inner pages) */
.page-hero { padding: 72px 0 64px; }
.page-hero .crumbs { font-size: 13px; color: var(--gray-mid); margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--gray-soft); }
.page-hero .crumbs .here { color: var(--orange-lit); }

/* article shell (house standard): main + sticky sidebar */
.shell { display: grid; grid-template-columns: 1fr 350px; gap: 48px; align-items: start; }
/* Sticky offset tracks the sticky header (82px) + the 24px gap it always had. */
.sidebar { position: sticky; top: 106px; display: grid; gap: 22px; }
.side-card { border: 1px solid var(--line); padding: 26px 24px; background: var(--white); }
.side-card h3 { font-size: 17px; margin-bottom: 12px; }
.side-card ul { list-style: none; }
.side-card li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.side-card li:last-child { border-bottom: 0; }
.side-card.cta { background: var(--charcoal); border: 0; }
.side-card.cta h3 { color: var(--white); }
/* Phone link in the dark side card. Colour and weight live here rather than in
   an inline style purely so the link can carry a :hover state. */
.card-tel { color: var(--white); font-weight: 600; transition: color .22s ease; }
.card-tel:hover, .card-tel:focus-visible { color: var(--orange-lit); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .shell { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* media rows (never stacked images) */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin: 40px 0; }
.media-row:nth-of-type(even) .duo { order: -1; }
@media (max-width: 800px) { .media-row { grid-template-columns: 1fr; } .media-row .duo { order: -1; } }

/* FAQ accordion */
.faq-wrap { max-width: 820px; }
.faq details { border: 1px solid var(--line); margin-bottom: 10px; background: var(--white); transition: border-color .25s ease; }
/* Right padding clears the +, so a question that wraps never runs under it. */
.faq summary { cursor: pointer; font-weight: 600; color: var(--charcoal); padding: 16px 46px 16px 20px; list-style: none; position: relative; }
/* Centred against the whole summary box rather than left at its static position
   on the first line — the two differ as soon as a question wraps, which on a
   narrow viewport is most of them. */
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--orange-ink); font-weight: 700; transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] { border-color: var(--orange); }
.faq .a { padding: 0 20px 18px; }

/* stat band — 00+ placeholders stay static per kit discipline */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stats .n { font-family: var(--font-display); font-size: 44px; color: var(--sand); }
.stats .l { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-soft); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* footer */
.site-footer { background: var(--ink); color: var(--gray-soft); padding: 64px 0 0; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 44px; }
/* h3, not h4: the page outline runs h1 > h2 > h3, so an h4 down here skipped a
   level. Same visual treatment, correct document structure. .col-head-spacer
   keeps the second services column aligned with the first without an empty
   <h4>&nbsp;</h4> standing in as a heading with no text. */
.site-footer h3, .site-footer .col-head-spacer {
  color: var(--orange-lit); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 14px;
  /* Shared metrics so the spacer's 1lh below resolves to the same box the
     heading occupies — inheriting body's 1.7 instead put the second services
     column 7px lower than the first. */
  font-family: var(--font-body); font-weight: 700; line-height: normal;
}
.site-footer .col-head-spacer { height: 1lh; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--gray-soft); }
/* Same collision the header CTA had: `.site-footer a` (0,2,0) beat
   `.btn-primary` (0,1,0) and painted the label --gray-soft on the terracotta
   fill — 2.91:1, the one contrast failure Lighthouse reported. White restores
   it to 4.59:1, matching every other .btn-primary on the site. */
.site-footer .btn-primary { color: var(--white); }
/* :not(.btn) because the "Request a Quote" button is also an <a> in here — it
   already carries white-on-orange, and this rule would repaint its label orange
   on an orange fill, i.e. invisible. Text links only. */
.site-footer a:not(.btn):hover { color: var(--orange-lit); }
/* the button keeps the white hover the old blanket rule gave it */
.site-footer a.btn:hover { color: var(--white); }
.site-footer .legal { border-top: 1px solid var(--elev-2); padding: 18px 0; display: flex; justify-content: space-between; font-size: 12px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
/* Phones: one vertical column, everything left-aligned (NovEx footer pattern).
   Two columns at 375px left each one barely 20 characters wide. */
@media (max-width: 700px) {
  .site-footer .cols { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .site-footer .legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* mobile sticky CTA bar */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; }
  .mobile-cta a { text-align: center; padding: 15px 0; font-weight: 700; font-size: 14px; }
  /* flex so the SVG sits on the text's optical centre — vertical-align on an
     inline svg rides the baseline and reads low next to the digits */
  .mobile-cta .call { background: var(--charcoal); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 8px; }
  .mobile-cta .call .ico { flex: none; }
  .mobile-cta .quote { background: var(--orange); color: var(--white); }
  body { padding-bottom: 52px; }
}

/* ── kit motion spec + motif overlays (2026-08 visual pass) ── */

/* scroll progress: 3px orange bar, width = scroll % */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--orange); z-index: 80; pointer-events: none; }

/* capability marquee: translateX 0→-50% · 22s linear infinite · duplicated track */
.marquee { background: var(--orange); overflow: hidden; padding: 13px 0; }
.marquee .track { display: flex; align-items: center; width: max-content; animation: marquee 22s linear infinite; }
.marquee .track span { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-size: 20px; letter-spacing: .05em; white-space: nowrap; padding: 0 20px; }
/* separator stays white: --sand-lit on the terracotta band is only 2.73:1.
   The labels are 20px Anton and the separator a 14px diamond, so they stay
   distinguishable by size and shape without leaning on colour. */
.marquee .track .sep { color: var(--white); font-family: var(--font-body); font-size: 14px; padding: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* faint vertical formwork striping — dark sections without another motif only */
.striped { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 96px); }

/* concrete texture accents w/ duotone overlay (depth, not motif) */
.tex-dark { background: linear-gradient(115deg, rgba(37, 33, 29, .96) 0%, rgba(37, 33, 29, .9) 55%, rgba(90, 58, 33, .88) 100%), url('../img/texture-dark.webp') center/cover no-repeat; }
.darkest.tex-dark { background: linear-gradient(115deg, rgba(23, 20, 18, .96) 0%, rgba(23, 20, 18, .9) 55%, rgba(74, 49, 28, .9) 100%), url('../img/texture-dark.webp') center/cover no-repeat; }
.tex-light { background: linear-gradient(rgba(237, 235, 230, .94), rgba(237, 235, 230, .9)), url('../img/texture-light.webp') center/cover no-repeat; }

/* Photographic section background. Same charcoal-to-warm wash as .tex-dark so
   it reads as one family, but heavier (.95 -> .88) because a photograph
   carries far more tonal noise than the flat texture tile — this is what keeps
   the white heading and --gray-soft body copy legible over it. The image URL
   arrives per-element via --sc-photo (see sc_bg_photo()) rather than being
   hardcoded here, since it lives in uploads/, not the theme.
   background-image only, so .dark's charcoal stays as the fallback fill if the
   photo 404s or is still loading. */
.tex-photo {
  background-image:
    linear-gradient(115deg, rgba(37, 33, 29, .95) 0%, rgba(37, 33, 29, .9) 45%, rgba(74, 49, 28, .88) 100%),
    var(--sc-photo, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* section reveal (+ form-line rules draw in on reveal)
   Scoped to .js (set in header.php before first paint): only hide what JS can
   bring back. No JS, no hiding — these sections carry the page's real content,
   so failing visible is the only safe direction. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal .form-line::before { transform: scaleY(0); transition: transform .9s cubic-bezier(.19, 1, .22, 1) .15s; }
  .js .reveal.in .form-line::before { transform: scaleY(1); }
}

/* reduced motion: ALL animation/transition disabled (kit spec) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   INNER PAGE SCALE (wiring pass) — shared heading proportions for
   the 9 inner article-template pages (8 service pages + contact),
   marked by .page-hero-article on their hero section. Promoted
   here from per-page <style> blocks so every inner page shares one
   scale. Scale only — do not add other styling to this section.
   ================================================================ */
.page-hero-article h1 { font-size: clamp(38px, 4.5vw, 60px); margin-top: 10px; }
.page-hero-article .lede { margin-top: 16px; max-width: 56ch; }
.shell article h2 { font-size: 26px; margin: 38px 0 12px; }
.shell article h2:first-child { margin-top: 0; }

/* ================================================================
   ESTIMATE FORM — .quote-form
   One form, two placements: the contact page (light) and the panel
   in every pre-footer CTA band (dark). Promoted here from a <style>
   block in page-contact.php when the CTA bands started sharing it.
   Field NAMES are identical in both placements on purpose — the
   Gravity/HighLevel wiring at deploy is then one mapping, not two.
   ================================================================ */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { display: block; font-weight: 600; font-size: 13px; color: var(--charcoal); margin-bottom: 6px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; font: inherit; color: var(--charcoal); padding: 12px 14px; border: 1px solid var(--gray-soft); background: var(--white); outline: none; transition: border-color .2s ease; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--orange); }
.quote-form textarea { min-height: 140px; resize: vertical; }
@media (max-width: 700px) { .quote-form { grid-template-columns: 1fr; } }

/* Inline submit result — replaces the old navigate-away behaviour. Left rule
   rather than a filled panel so it reads the same on the white contact page
   and inside the dark CTA band. */
.form-alert { padding: 12px 16px; border-left: 3px solid var(--orange); background: var(--concrete); color: var(--charcoal); font-size: 14px; }
.form-alert.is-ok { border-left-color: #1e6b3a; }
.form-alert.is-error { border-left-color: #b3261e; }
.cta-form .form-alert { background: var(--ink); color: var(--gray-soft); }
.form-alert[hidden] { display: none; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Map card on /contact/. Not .duo — that class multiplies an orange gradient
   over its contents, which would tint the map. */
.map-embed { position: relative; overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* CTA band panel — fields sit on --ink inside an --elev-1 panel so the
   form reads as recessed into the dark section rather than pasted onto it. */
.cta-form { background: var(--elev-1); border: 1px solid var(--elev-3); clip-path: var(--chamfer); padding: 30px 28px 32px; }
.cta-form > .eyebrow { display: block; margin-bottom: 20px; }
.cta-form .quote-form { margin-top: 0; gap: 14px; }
.cta-form .quote-form label { color: var(--gray-soft); }
.cta-form .quote-form :is(input, select, textarea) { color: var(--white); background: var(--ink); border-color: var(--elev-3); }
.cta-form .quote-form ::placeholder { color: var(--gray-mid); opacity: 1; }
.cta-form .quote-form :is(input, select, textarea):hover { border-color: var(--gray-mid); }
.cta-form .quote-form :is(input, select, textarea):focus { border-color: var(--orange); }
.cta-form .quote-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cta-form .quote-form textarea { min-height: 104px; }
/* Dark panel only: the OS-drawn select arrow renders near-black on --ink,
   so the control is swapped for the kit's own chevron. The contact page
   keeps its native select. */
.cta-form .quote-form select {
  -webkit-appearance: none; appearance: none; border-radius: 0; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23DD854B' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.cta-form .quote-form select option { background: var(--ink); color: var(--white); }
.cta-form .quote-form button[type="submit"] { width: 100%; }
.cta-form .quote-consent { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--gray-soft); }
.cta-form .quote-consent a { color: var(--gray-soft); text-decoration: underline; text-underline-offset: 2px; }
.cta-form .quote-consent a:hover { color: var(--orange-lit); }

/* CTA band: copy left, form right. Top-aligned rather than centred — the
   panel is much taller than the copy, and centring floats the orange
   form-line rule away from the section's top edge. */
.cta-grid { align-items: start; }
@media (max-width: 900px) { .cta-form { margin-top: 40px; } }

/* reCAPTCHA badge. Shown rather than suppressed, which is what satisfies
   Google's attribution requirement — see sc_recaptcha_notice(). Nudged clear
   of the sticky mobile CTA bar, which takes over the bottom of the viewport at
   the same 700px breakpoint the bar itself uses. */
@media (max-width: 700px) {
  .grecaptcha-badge { bottom: 78px !important; }
}
