/* sm-site.css: the shared look for every page of Pittsburgh Spray Foam Co. (design-lead, 2026-11-22).
   Layout and components from the starting site's sm-site.css (MEMORY 2026-11-22, "Designs start from an existing site").
   Colors and type: Dan's pick, design/options/option-2.css, "Deep Violet and Cyan", Lexend + Noto Sans (MEMORY 2026-11-22,
   "Wave 1 colors"), folded in here as the tokens below. Every color on the site comes from these tokens.
   Every page loads this file; each page type adds its own file (sm-home.css, sm-service.css ...), loaded only there.

   Scope:
   - The header (.hdr), footer (.ftr), skip link and back-to-top button are styled by their own classes.
   - Base type and the shared components (.button, .form, .faq, .wrap, .band) are scoped to <body class="sm-page">
     (the kit's check-layout.js finds rebuilt pages by that class, so the sm- prefix stays).

   Colors: CTA buttons are warm orange (--btn). Cyan (--cta) is a fill and mark color only, never text on a light ground (dark violet text on it). Small
   accents on light (ticks, arrows, icons, numerals) use --accent, the deep teal. Links on light grounds are the brand violet.

   Photo slots (REWRITE-STANDARD 13.17): every photo renders at a ratio from one short list, 4:3, 3:2, 16:9, 3:1, 4:5 and 1:1,
   and every thumbnail at 3:2 in three sizes (180 x 120, 150 x 100, 96 x 64). The list lives in HTML Build/photo-slots.json. A
   new layout picks the nearest standard; it never invents a ratio a few pixels off one. */

:root {
  --brand: #2b2259;          /* headings, footer, feature sections */
  --brand-deep: #1d1742;     /* a deeper step of the brand, for a surface on a brand band */
  --brand-soft: #e5e2f3;     /* a pale tint of the brand, for chips and small fills on light */
  --bg: #f7f7fa;             /* main background, off-white */
  --alt: #ecebf4;            /* alternate sections, pale lavender gray */
  --card: #ffffff;
  --cta: #3cc8e4;            /* cyan: fills and marks only (dots, rules, the open FAQ sign); never a button since 2026-11-22 */
  --cta-hover: #22b4d2;
  --cta-ink: #1d1742;        /* dark violet text on a cyan fill */
  --btn: #ff7b1a;            /* every CTA button: the Lead Simplify form's Submit orange (Dan 2026-11-24: same orange as the submit button) */
  --btn-hover: #ff8f3c;      /* a touch brighter on hover (Dan 2026-11-24) */
  --btn-ink: #1d1742;        /* dark label: 6.46:1 on --btn, 7.38:1 on the hover (white would be 2.59:1, too faint) */
  --accent: #0a6a80;         /* ticks, arrows, icons, numerals ON LIGHT grounds (the cyan is too pale on off-white) */
  --accent-text: #0a6a80;    /* the accent when it is TEXT on light (a current menu item): AA at any size */
  --link: #2b2259;           /* links on light grounds */
  --ink: #1e1c2b;            /* body text */
  --muted: #555267;
  --line: #d9d7e6;           /* hairlines on light */
  --on-brand: #ffffff;
  --on-brand-muted: #c4bfde; /* body text on the brand color */
  --line-on-brand: #40367a;
  --brand-rgb: 43, 34, 89;   /* --brand as r, g, b: shadows tinted from the brand */
  --shade-rgb: 16, 8, 50;    /* the homepage hero wash, a near-black violet */
  --form-head: #FF7B1A;      /* the hero form heading on desktop: Lead Simplify's Submit button orange, sampled 2026-11-20 */

  --head: "Lexend", Georgia, "Times New Roman", serif;
  --body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --wrap: 1240px;
  --gutter: 20px;
  --band-pad: 56px;
  --h2: 28px;               /* phones: 28 (the starting site ran 30 in a narrower serif; Lexend at 28 matches its width, 2026-11-22) */
  /* No H1 on any page is bigger than the homepage H1 at the same width (Dan's rule): 36 / 48 / 52. */
  --h1-max: 36px;
  --hdr-h: 60px;             /* the floating bar's height */
  --hdr-top: 10px;           /* the gap above it */
}
@media (min-width: 768px) { :root { --h1-max: 48px; --gutter: 24px; --band-pad: 72px; --h2: 36px; --hdr-h: 68px; --hdr-top: 14px; } }
@media (min-width: 1024px) { :root { --h1-max: 52px; --band-pad: 96px; --h2: 42px; --hdr-top: 16px; } }

/* ---------- base (rebuilt pages only) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + var(--hdr-top) + 16px); }
body.sm-page { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.sm-page *, .sm-page *::before, .sm-page *::after { box-sizing: border-box; }
.sm-page img { display: block; max-width: 100%; height: auto; }
.sm-page h1, .sm-page h2, .sm-page h3, .sm-page h4 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em;
  margin: 0; color: var(--brand);  font-optical-sizing: auto; }
.sm-page h1 { font-size: var(--h1-max); line-height: 1.1; }
.sm-page h2 { font-size: var(--h2); }
/* the tail a no-widows pass holds together when it carries a hyphen (lp-kit/apply-no-widows.js); applies on every page */
.nw { white-space: nowrap; }
.sm-page p { margin: 0; }
.sm-page a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sm-page a:hover { text-decoration-thickness: 2px; }
.sm-page :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sm-page main { display: block; }
.sm-page main:focus { outline: none; }

/* shared helpers */
.sm-page .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sm-page .band { padding: var(--band-pad) 0; }
.sm-page .band-alt { background: var(--alt); }
.sm-page .band-brand { background: var(--brand); color: var(--on-brand-muted); --accent: var(--cta); --link: var(--on-brand); --line: var(--line-on-brand); }
.sm-page .band-brand h2, .sm-page .band-brand h3 { color: var(--on-brand); }
.sm-page .muted { color: var(--muted); }
.sm-page .band-brand .muted { color: var(--on-brand-muted); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* buttons: a full pill, warm orange (--btn) with dark text; never uppercase */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink) !important; font: 700 16px/1.1 var(--body); text-decoration: none !important; border: 0; cursor: pointer;
  transition: background-color .15s ease; text-align: center; }
.button:hover { background: var(--btn-hover); }
.button-ghost { background: transparent; color: var(--brand) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.button-ghost:hover { background: var(--card); }

/* the iframe takes focus when the form loads; Firefox then drew the focus ring around it as an orange border
   (Dan, 2026-11-19: "Eliminate the orange border around the form"). The fields inside show their own focus. */
.sm-page .form iframe:focus, .sm-page .form iframe:focus-visible { outline: none; }

/* the estimate form frame: the heading, then the Lead Simplify form, nothing between */
/* NO BOX (Dan, 2026-11-19: "Take the form OUT of the damned white box!!!!!!!!"): Lead Simplify draws its own panel and
   padding, so nothing here or in a page file puts a background, border or shadow around it. The heading is never
   bigger than 24 px, nor bigger than any H2 on the page ("it should NEVER outshine the H2s"). check-layout.js measures both. */
.sm-page .form { background: none; border: 0; box-shadow: none; padding: 0; color: var(--ink); }
.sm-page .form > h2, .sm-page .form > h3 { font-size: 22px; line-height: 1.2; text-align: center; margin: 0 0 12px; color: var(--brand); }
.sm-page .form iframe { display: block; width: 100%; border: 0; }
@media (min-width: 768px) { .sm-page .form > h2, .sm-page .form > h3 { font-size: 24px; } }

/* ---------- the FAQ: a look of its own (Dan 2026-11-29: "The FAQs get lost in the page. Do something to set them off;
   people look for those"; the boxed look "reads like the other blue boxes with unimportant info") ----------
   Every FAQ on the site (homepage, services, guides, a town if it ever has one) sits on .faq-zone: a pale cyan ground
   printed with open foam cells, a ground no other section uses. The questions are the homeowner's, drawn as speech
   bubbles (white, the violet question, a square lower-left corner as the bubble's tail); the open question turns violet
   and its answer hangs under it as an indented white reply. Nothing else on the site is a bubble. A question runs across
   its whole row, on one line where it fits (RULEBOOK 1). One open at a time via <details name="faq">.
   Answers at 18 px. Markup: <section id="faq" class="... faq-zone"> ... <div class="faq"><details name="faq"> */
.sm-page .faq-zone { --faq-ground: color-mix(in srgb, var(--cta) 13%, var(--card));
  background-color: var(--faq-ground);
  --faq-cells: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%233cc8e4' stroke-opacity='.38' stroke-width='1.25'%3E%3Ccircle cx='22' cy='26' r='15'/%3E%3Ccircle cx='58' cy='14' r='8'/%3E%3Ccircle cx='96' cy='34' r='22'/%3E%3Ccircle cx='146' cy='18' r='12'/%3E%3Ccircle cx='170' cy='58' r='9'/%3E%3Ccircle cx='40' cy='70' r='10'/%3E%3Ccircle cx='136' cy='82' r='17'/%3E%3Ccircle cx='16' cy='112' r='11'/%3E%3Ccircle cx='66' cy='112' r='19'/%3E%3Ccircle cx='108' cy='126' r='7'/%3E%3Ccircle cx='160' cy='132' r='14'/%3E%3Ccircle cx='34' cy='160' r='13'/%3E%3Ccircle cx='90' cy='166' r='10'/%3E%3Ccircle cx='128' cy='168' r='6'/%3E%3C/svg%3E");
  background-image: var(--faq-cells); background-size: 180px 180px; }
.sm-page .faq { display: grid; gap: 14px; margin-top: 28px; }
.sm-page .faq > details { margin: 0; padding: 0; background: none; border: 0; }
.sm-page .faq > details > summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 18px 16px 24px; border-radius: 24px 24px 24px 6px; background: var(--card);
  box-shadow: 0 1px 0 rgba(var(--brand-rgb), .06), 0 10px 24px -16px rgba(var(--brand-rgb), .55);
  font: 600 20px/1.35 var(--head); color: var(--brand); transition: background-color .15s, color .15s, box-shadow .15s; }
.sm-page .faq > details > summary::-webkit-details-marker { display: none; }
.sm-page .faq > details > summary::marker { content: ""; }
.sm-page .faq > details > summary h3 { display: block; margin: 0; font: inherit; color: inherit; }
.sm-page .faq > details > summary:hover { box-shadow: 0 0 0 2px var(--accent), 0 10px 24px -16px rgba(var(--brand-rgb), .55); }
.sm-page .faq > details > summary::after { content: "+"; flex: none; width: 30px; height: 30px; margin: -1px 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font: 500 20px/1 var(--body); color: var(--on-brand); background: var(--brand); }
.sm-page .faq > details[open] > summary { background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 26px -16px rgba(var(--brand-rgb), .8); }
.sm-page .faq > details[open] > summary::after { content: "\2212"; background: var(--cta); color: var(--cta-ink); }
.sm-page .faq > details > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sm-page .faq > details > :not(summary) { margin: 10px 0 0 clamp(18px, 4vw, 56px); padding: 18px 24px 20px; border-radius: 6px 24px 24px 24px;
  background: var(--card); font: 18px/1.65 var(--body); color: var(--ink); }
.sm-page .faq > details > :not(summary) + :not(summary) { margin-top: 0; border-radius: 0 0 24px 24px; padding-top: 0; }
.sm-page .faq > details a { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sm-page .faq-zone h2 { color: var(--brand); }
@media (max-width: 640px) {
  .sm-page .faq { gap: 12px; margin-top: 22px; }
  .sm-page .faq > details > summary { padding: 14px 14px 14px 18px; gap: 12px; font-size: 18px; border-radius: 20px 20px 20px 6px; }
  .sm-page .faq > details > :not(summary) { padding: 16px 18px 18px; border-radius: 6px 20px 20px 20px; }
}

/* ---------- skip link ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  font: 700 15px/1.2 var(--body); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- header: a floating rounded bar ---------- */
.hdr { position: sticky; top: 0; z-index: 60; padding: var(--hdr-top) var(--gutter) 0; pointer-events: none;
  font-family: var(--body); }
.hdr-bar { pointer-events: auto; position: relative; max-width: var(--wrap); margin: 0 auto; height: var(--hdr-h); padding: 0 8px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 18px -12px rgba(var(--brand-rgb), .35); }
.hdr-logo { display: block; flex: none; line-height: 0; }
.hdr-logo img { display: block; height: 36px; width: auto; max-width: none; }
/* LOGO PENDING: the brand in plain type in the logo spot (Dan sends the logo files; then an <img> replaces the span) */
.wordmark { display: inline-block; font: 700 19px/1 var(--head); letter-spacing: -0.01em; white-space: nowrap; color: var(--brand); }
.ftr .wordmark { font-size: 24px; color: var(--on-brand); }
.ftr .ph-pending { color: var(--cta); font-weight: 700; }   /* FOOTER BLURB PENDING marker: loud on purpose */
.hdr-nav { display: none; }
.hdr-cta { display: none; }
.hdr a.hdr-cta, .hdr-mobile a.hdr-cta { align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; background: var(--btn); color: var(--btn-ink);
  font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background-color .15s ease; }
.hdr a.hdr-cta:hover, .hdr-mobile a.hdr-cta:hover { background: var(--btn-hover); color: var(--btn-ink); }
.hdr-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); cursor: pointer; }
.hdr-toggle svg { width: 22px; height: 22px; display: block; }
.hdr-toggle .i-close { display: none; }
.hdr.is-open .hdr-toggle .i-open { display: none; }
.hdr.is-open .hdr-toggle .i-close { display: block; }

/* the phone and tablet menu: a rounded panel under the bar */
.hdr-mobile { pointer-events: auto; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--hdr-top) + var(--hdr-h) + 8px);
  max-width: var(--wrap); margin: 0 auto; max-height: calc(100vh - var(--hdr-h) - var(--hdr-top) - 24px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 12px 16px 18px; box-shadow: 0 18px 40px -18px rgba(var(--brand-rgb), .45); }
.hdr-mobile[hidden] { display: none; }
.hdr-mobile ul { list-style: none; margin: 0; padding: 0; }
.hdr-mobile li { margin: 0; }
.hdr-mobile .m-row { display: flex; align-items: center; border-bottom: 1px solid var(--alt); }
.hdr-mobile .m-link { flex: 1; display: block; padding: 13px 6px; color: var(--brand); font: 700 17px/1.3 var(--body); text-decoration: none; }
.hdr-mobile .m-link[aria-current="page"] { color: var(--accent-text); }
.hdr-mobile .m-sub-toggle { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--brand); cursor: pointer; border-radius: 50%; }
.hdr-mobile .m-sub-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.hdr-mobile .m-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr-mobile .m-sub { padding: 4px 0 10px 14px; border-bottom: 1px solid var(--alt); }
.hdr-mobile .m-sub[hidden] { display: none; }
.hdr-mobile .m-sub a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }
.hdr-mobile .m-sub a { display: block; padding: 8px 6px; color: var(--ink); font: 600 16px/1.35 var(--body); text-decoration: none; }
.hdr-mobile .m-cta { padding-top: 16px; }
.hdr-mobile .m-cta .hdr-cta { display: flex; width: 100%; padding: 15px 20px; font-size: 16px; }

@media (min-width: 600px) {
  .hdr-bar { padding: 0 10px 0 20px; }
  .hdr-logo img { height: 42px; }
  .wordmark { font-size: 22px; }
  .hdr a.hdr-cta { display: inline-flex; margin-left: auto; }
  .hdr-mobile .m-cta { display: none; }
}
@media (min-width: 1024px) {
  .hdr-bar { padding: 0 12px 0 22px; gap: 20px; }
  .hdr-logo img { height: 46px; }
  .hdr-toggle, .hdr-mobile { display: none !important; }
  .hdr a.hdr-cta { margin-left: 0; padding: 13px 22px; }
  .hdr-nav { display: flex; align-items: center; height: 100%; margin-left: auto; }
  .hdr-nav > ul { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); height: 100%; list-style: none; margin: 0; padding: 0; }
  .hdr-item { position: relative; height: 100%; display: flex; align-items: center; margin: 0; }
  .hdr-item > a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font: 600 15px/1 var(--body); text-decoration: none;
    padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .hdr-item > a:hover, .hdr-item > a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }
  .hdr-item > a svg { width: 15px; height: 15px; transition: transform .2s ease; }
  .hdr-item:hover > a svg, .hdr-item:focus-within > a svg { transform: rotate(180deg); }
  .hdr-drop { position: absolute; left: -18px; top: calc(100% - 6px); min-width: 250px; padding: 10px; list-style: none; margin: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(var(--brand-rgb), .45);
    visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
  .hdr-item:hover .hdr-drop, .hdr-item:focus-within .hdr-drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hdr-item.is-closed .hdr-drop { visibility: hidden; opacity: 0; }
  .hdr-drop li { margin: 0; }
  .hdr-drop a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); font: 600 15px/1.3 var(--body); text-decoration: none; white-space: nowrap; }
  .hdr-drop a:hover, .hdr-drop a:focus-visible { background: var(--alt); color: var(--brand); }
  .hdr-drop a[aria-current="page"] { color: var(--accent-text); }
}
/* the bar keeps its logo, menu and button on one line from 1024 up; below 1100 the gaps tighten */
@media (min-width: 1024px) and (max-width: 1099px) { .hdr-bar { gap: 14px; } .hdr a.hdr-cta { padding: 12px 16px; font-size: 14px; } .hdr-item > a { font-size: 14.5px; } }

/* ---------- footer: on the brand violet ---------- */
.ftr { background: var(--brand); color: var(--on-brand-muted); font: 16px/1.6 var(--body); }
.ftr .ftr-in { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 28px; }
.ftr .ftr-grid { display: grid; gap: 36px; }
.ftr .ftr-logo { display: inline-block; line-height: 0; }
.ftr .ftr-logo img { display: block; height: 46px; width: auto; max-width: 100%; }
.ftr .ftr-about p { margin: 18px 0 0; max-width: 400px; color: var(--on-brand-muted);  }
.ftr .ftr-about p[data-credential] { color: var(--on-brand); font-weight: 700; }
.ftr .ftr-head { margin: 0 0 14px; color: var(--on-brand); font: 600 19px/1.2 var(--head); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr li { margin: 0; }
.ftr a { color: var(--on-brand-muted); text-decoration: none; }
.ftr a:hover { color: var(--on-brand); text-decoration: underline; text-underline-offset: 3px; }
.ftr a:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
.ftr .ftr-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-on-brand); font-size: 14px; color: var(--on-brand-muted); }
.ftr .ftr-base p { margin: 0; }
@media (min-width: 640px) { .ftr .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr .ftr-about { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .ftr .ftr-in { padding: 72px var(--gutter) 32px; }
  .ftr .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 48px; }
  .ftr .ftr-about { grid-column: auto; }
}

/* ---------- back to top ---------- */
.back-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: var(--brand); color: var(--on-brand); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(var(--brand-rgb), .6); }
.back-top[hidden] { display: none; }
.back-top svg { width: 20px; height: 20px; }
.back-top:hover { background: var(--brand-deep); }
@media (min-width: 1024px) { .back-top { right: 24px; bottom: 24px; } }

/* H1 MATCH (Dan's rule, 2026-11-16 on an earlier site; REWRITE-STANDARD 7): every inner page's H1 is the service page's
   size, never bigger than the homepage H1 (--h1-max). One token, used by sm-service/town/guide/about/contact.css. */
:root { --h1-inner: 32px; }
@media (min-width: 768px) { :root { --h1-inner: 38px; } }
@media (min-width: 1024px) { :root { --h1-inner: 40px; } }

/* Dan's logo (2026-11-24) is wider than the type wordmark was: from 1024 to 1279 the menu and the button need the room,
   so the header logo steps down to 34 px tall there (it pushed the page 25 px wide at 1024). */
@media (min-width: 1024px) and (max-width: 1279px) { .hdr-logo img { height: 34px; } }

/* The page you're on, unmistakable (Dan, 2026-11-24: "just aren't strong enough. They need to be orange or orange
   underlined...some positive indicator"). In the bar: a thick orange underline under the page's own item, or under its
   menu (Services, Areas, Guides) when the page sits in that menu. In a dropdown: the page's item gets an orange bar and
   a light orange fill. Text stays dark for contrast; the orange is the button's own. */
@media (min-width: 1024px) {
  .hdr-item > a[aria-current="page"],
  .hdr-item:has(.hdr-drop a[aria-current="page"]) > a,
  .sm-page.guide .hdr-item > a[href="/guide/"] { color: var(--brand); border-bottom: 3px solid var(--btn); padding-bottom: 7px; }
  .hdr-drop a[aria-current="page"] { color: var(--brand); font-weight: 700; background: color-mix(in srgb, var(--btn) 14%, var(--card));
    box-shadow: inset 4px 0 0 var(--btn); }
}
.hdr-mobile .m-link[aria-current="page"], .hdr-mobile .m-sub a[aria-current="page"] { color: var(--brand); font-weight: 700;
  box-shadow: inset 4px 0 0 var(--btn); padding-left: 12px; background: color-mix(in srgb, var(--btn) 12%, transparent); }
/* Visible gradients on the violet grounds (Dan 2026-11-25: "pump those grads so we can SEE them"): a cyan glow from one
   corner and the button orange from the other, over the brand violet. */
.sm-page :is(.band-brand, .t-story, .a-rules) {
  background-image: radial-gradient(110% 95% at 0% 0%, rgba(60, 200, 228, .30) 0%, transparent 60%),
                    radial-gradient(90% 90% at 100% 100%, rgba(255, 123, 26, .26) 0%, transparent 60%); }
.ftr { background-image: radial-gradient(70% 120% at 100% 0%, rgba(60, 200, 228, .22) 0%, transparent 60%),
                         radial-gradient(60% 90% at 0% 100%, rgba(255, 123, 26, .16) 0%, transparent 60%); }
/* on a phone the Lead Simplify form runs taller than its 580 px frame and scrolled inside it (2026-11-25): give it the room */
@media (max-width: 599px) { .sm-page .form iframe { height: 680px; } }

/* Footer link lists set tight (Dan, 2026-11-25, on Raleigh: "Close the leading up... What does it serve??"). 4 px between
   lines on desktop; phones keep a little more so a thumb lands on one link. */
.ftr ul{gap:4px}.ftr li{line-height:1.45}
@media (max-width:899px){.ftr ul{gap:10px}}

/* Footer columns (Dan, 2026-11-25, on Raleigh: "You are crowding the company blurb. Close up the other three columns and
   make room."): each link column is as wide as its longest link; the blurb takes the rest. */
@media (min-width:1024px){.ftr .ftr-grid{grid-template-columns:minmax(0,1fr) repeat(3,max-content);column-gap:64px}}

/* ---------- the closing bar: ONE bar, the same markup and look on every page, homepage included (Dan 2026-11-30) ----------
   Markup (site-look.js closingBar): <section class="cta-bar"><div id="close" class="close-bar"><div class="wrap close-bar-in">
   h2, p.close-lead, a.button.close-btn. A full-width brand violet band with a visible gradient (a cyan glow from the top left,
   the button orange from the bottom right; Dan 2026-11-25 "pump those grads"). The heading, the lead and the one button are
   stacked at the left, so the heading and the lead each get the whole width and run on one line on a computer (RULEBOOK 1:
   "the closing bar's text runs on one line"; beside the button the heading wrapped). A cyan edge at its foot, so it never
   runs straight into the violet footer (RULEBOOK 1). No credentials in it. */
.sm-page .cta-bar { display: block; margin: 0; padding: 0; color: var(--on-brand-muted); border-bottom: 4px solid var(--cta);
  background-color: var(--brand);
  background-image: radial-gradient(80% 140% at 0% 0%, rgba(60, 200, 228, .38) 0%, transparent 60%),
                    radial-gradient(65% 140% at 100% 100%, rgba(255, 123, 26, .40) 0%, transparent 64%),
                    linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%); }
.sm-page .close-bar { padding: 52px 0 56px; }
.sm-page .close-bar-in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: 14px; }
.sm-page .close-bar-in > h2 { color: var(--on-brand); font-size: 26px; line-height: 1.15; }   /* phones: the town and About h2 size the builders measure tails at */
.sm-page .close-bar-in > .close-lead { margin: 0; color: var(--on-brand-muted); font-size: 18px; line-height: 1.6; }
.sm-page .close-bar-in > .close-btn { margin-top: 12px; }
@media (min-width: 768px) { .sm-page .close-bar { padding: 64px 0 68px; } .sm-page .close-bar-in > h2 { font-size: 32px; } }
@media (min-width: 1024px) { .sm-page .close-bar { padding: 72px 0 76px; } .sm-page .close-bar-in > h2 { font-size: 36px; } }

/* the form on its own band just before the closing bar, on the pages whose only form sits at the close (towns, Service Areas,
   About; site-look.js closeForm). The bar stays the last thing above the footer; its button jumps back up here. */
.sm-page .close-form { padding: 56px 0 72px; background: var(--bg); }
.sm-page .close-form .form { max-width: 560px; margin: 0 auto; }
.sm-page .close-form .t-steps + .form { margin-top: 44px; }
@media (min-width: 1024px) { .sm-page .close-form { padding: 72px 0 96px; } }

/* ---------- back to top, to the very bottom (Dan 2026-11-29: it "disappears near the bottom of the page where it's most
   needed"). sm-site.js shows it from about a screen down to the end of the page, footer included, and steps it aside only
   while the estimate form passes under it. The footer keeps a clear strip under its last line (the button is 46 px tall,
   16 to 24 px off the bottom), so it never sits over a footer link or the copyright line. ---------- */
.ftr .ftr-in { padding-bottom: 88px; }
.back-top { transition: opacity .15s ease, visibility .15s; border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .35), 0 6px 18px -8px rgba(var(--brand-rgb), .6); }   /* a light ring: it stays visible over the violet footer and bands */
.back-top.is-aside { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .back-top { transition: none; } }

/* the sticky header (Dan 2026-11-29): .hdr is position: sticky; top: 0 above, on every page; a jump to #estimate, #faq or
   #close lands below the floating bar (html scroll-padding-top above). Once the page has scrolled, the bar takes a
   deeper shadow so it reads as lifted over the page (sm-site.js adds .is-stuck). */
.hdr.is-stuck .hdr-bar { box-shadow: 0 12px 28px -14px rgba(var(--brand-rgb), .5); }
