/* base.css: the shared floor from the new-site starter. Same on every site.

   It holds the reset, the ground system, buttons, focus, forms, dialog, tabs,
   FAQ, breadcrumbs, the post layout, the photo band and the mobile bar, plus a
   plain default layout for every starter component so a fresh project
   renders. Every colour is a custom property from theme.css. The look lives
   in theme.css; change this file only to fix the floor for every site (and
   then change it in the skill's starter too).

   Rules this file enforces for the gates (references/markup-contract.md):
   - every section, the header, the footer, the mobile bar and every box that
     paints its own background declares data-ground, and its text, link,
     rule and button colours come from that attribute only;
   - button colours are custom properties on each ground, so the nearest
     ground wins (P-217);
   - focus rings show for keyboard use only;
   - nothing moves by itself. */

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.08; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p, li { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

/* ---------------------------------------------------------------- grounds */
/* white and light are pale grounds (dark text), dark is a dark ground (light
   text), accent is the brand colour used as a ground. A theme may redefine
   any of these properties on a ground; the names are the contract. */
[data-ground] { background-color: var(--g-bg); color: var(--g-fg); }
[data-ground="white"], [data-ground="light"] {
  --g-bg: var(--paper); --g-fg: var(--ink);
  --muted: var(--ink-muted); --link: var(--accent); --rule: var(--line);
  --field-bd: var(--field-line); --field-bg: var(--paper); --tick: var(--accent); --error: var(--alert);
  --btn-bg: var(--accent); --btn-fg: var(--paper); --btn-bd: var(--accent);
  --btn2-fg: var(--accent); --btn2-bd: var(--accent);
  --focus: var(--ink);
}
[data-ground="light"] { --g-bg: var(--mist); }
[data-ground="dark"] {
  --g-bg: var(--night); --g-fg: var(--paper);
  --muted: var(--paper-muted); --link: var(--accent-soft); --rule: var(--line-on-dark);
  --field-bd: var(--paper-muted); --field-bg: var(--night); --tick: var(--accent-soft); --error: var(--paper);
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper);
  --btn2-fg: var(--paper); --btn2-bd: var(--paper);
  --focus: var(--accent-soft);
}
[data-ground="accent"] {
  --g-bg: var(--accent); --g-fg: var(--paper);
  --muted: var(--paper-muted); --link: var(--paper); --rule: var(--line-on-dark);
  --field-bd: var(--paper-muted); --field-bg: var(--accent); --tick: var(--paper); --error: var(--paper);
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper);
  --btn2-fg: var(--paper); --btn2-bd: var(--paper);
  --focus: var(--paper);
}
.muted { color: var(--muted); }

/* Body links look clickable; chrome links (header, nav, footer, bar,
   breadcrumbs, cards) are never underlined (P-205). */
main a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
main a:not(.btn):hover { text-decoration-thickness: 2.5px; }
a[aria-disabled="true"] { cursor: default; }

/* ---------------------------------------------------------------- focus */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--ink); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.band { padding-block: var(--band); }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-tight { display: grid; gap: 10px; align-content: start; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
.measure { max-width: var(--measure); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: var(--step--1); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-text); font-size: var(--step-0); font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bd); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--btn-fg)); }
.btn-secondary { background: transparent; color: var(--btn2-fg); border-color: var(--btn2-bd); }
.btn-secondary:hover { background: color-mix(in srgb, var(--btn2-fg) 10%, transparent); }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: var(--step--1); }
.btn-large { min-height: 54px; padding: 12px 24px; font-size: var(--step-1); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn .icon { width: 20px; height: 20px; flex: none; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- header */
/* Wordmark, Services and Service areas (each with a panel), About, Blog,
   Contact and the Call button. Every menu link has one face and one size.
   Under 1100px the links fold into the phone menu and the panels become
   accordions. */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--rule); }
.header-row { position: relative; display: flex; align-items: center; gap: 12px 28px; min-height: 72px; }
.wordmark { margin-right: auto; min-width: 0; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); line-height: 1.15; }
.nav-list { display: flex; align-items: center; gap: 4px 22px; list-style: none; }
.nav-list > li { display: flex; align-items: center; }
.nav-group { position: relative; }
.site-nav a { color: inherit; text-decoration: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-text); font-size: var(--step-0); font-weight: 600; line-height: 1.3; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-group.open > .nav-link { color: var(--link); }
.nav-sub-toggle { display: inline-grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: inherit; cursor: pointer; }
.nav-sub-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-group.open .nav-sub-toggle svg { transform: scaleY(-1); }
.nav-panel { display: none; position: absolute; top: 100%; left: -18px; z-index: 45; padding: 8px 0; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 16px 32px var(--shadow); }
.nav-group.open > .nav-panel { display: block; }
.nav-services { width: min(420px, 90vw); list-style: none; }
.nav-services li { display: grid; gap: 2px; padding: 8px 20px; }
.nav-services li + li { border-top: 1px solid var(--rule); }
.nav-services .nav-link { min-height: 32px; }
.nav-note { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.nav-towns { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 0 8px; padding: 4px 10px; list-style: none; }
.nav-towns .nav-link { display: flex; padding: 0 10px; white-space: nowrap; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 2px solid var(--rule); border-radius: var(--radius); background: transparent; color: inherit; font-weight: 700; cursor: pointer;
}
@media (max-width: 1100px) {
  .header-row { gap: 10px; min-height: 64px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .site-nav {
    display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    max-height: calc(100dvh - 64px); overflow-y: auto;
    background: var(--g-bg); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px var(--shadow);
  }
  .nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 16px; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
  .nav-list > li > .nav-link { flex: 1; min-height: 48px; }
  .nav-sub-toggle { width: 48px; height: 48px; }
  .nav-panel { position: static; width: 100%; padding: 0 0 10px; border: 0; box-shadow: none; }
  .nav-services { width: auto; }
  .nav-services li { padding: 6px 0 6px 14px; }
  .nav-services li + li { border-top: 0; }
  .nav-towns { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 0 0 0 4px; }
  .nav-towns .nav-link { min-height: 44px; }
  body.nav-open { overflow: hidden; }
}
.header-call { white-space: nowrap; }
@media (max-width: 520px) {
  .header-call .call-word { display: none; }
  .wordmark { font-size: var(--step-0); }
  .header-call, .nav-toggle { padding-inline: 10px; }
  .nav-toggle-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle { min-width: 44px; justify-content: center; }
}

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 16px; list-style: none; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { display: inline-block; padding-block: 3px; color: inherit; text-decoration: none; }
main .breadcrumbs a:not(.btn) { color: var(--link); text-decoration: none; }
.breadcrumbs + section.band { padding-top: clamp(24px, 4vw, 48px); }

/* ---------------------------------------------------------------- hero and boxes */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.photo { width: 100%; border-radius: var(--radius); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
/* Full hairline border, never a left accent stripe (rules/design-floor.md: it reads as AI-generated). */
.answer-box { padding: 18px 22px; border: 1px solid var(--rule); border-radius: var(--radius); }
.panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }

/* ---------------------------------------------------------------- cards and lists */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; list-style: none; }
.card { position: relative; display: grid; align-content: start; overflow: hidden; border-radius: var(--radius); }
/* The whole card is the tap target: the heading link stretches over the photo and the text
   (Vazul, Nov 17 2026: on a phone people tap the photo, and only the small title was a link). */
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: grid; gap: 10px; padding: 20px 22px 24px; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
main .card h2 a:not(.btn), main .card h3 a:not(.btn) { color: inherit; text-decoration: none; }
main .card h2 a:hover, main .card h3 a:hover { text-decoration: underline; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 28px; list-style: none; }
.check-list { display: grid; gap: 10px; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--tick); border-bottom: 3px solid var(--tick); transform: rotate(-45deg);
}
.steps { display: grid; gap: 18px; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 4px; padding-left: 48px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  display: grid; place-items: center; border: 2px solid var(--tick); border-radius: 50%; font-weight: 700;
}
.facts { display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.facts div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); }
.price-table { width: 100%; }
.price-table caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.price-table th, .price-table td { padding: 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.price-table td { padding-left: 16px; font-weight: 700; }

/* ---------------------------------------------------------------- photos */
.photo-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.photo-band figure, .work-grid figure { display: grid; gap: 8px; align-content: start; }
.photo-band img, .work-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-band figcaption, .work-grid figcaption { color: var(--muted); font-size: var(--step--1); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; list-style: none; }
.work-grid a { display: block; border-radius: var(--radius); }

/* Before and after slider: two stacked photos, the before clipped to the
   handle. script.js moves --pos (CSSOM, allowed by the CSP). */
.compare-figure { max-width: 760px; }
.compare { --pos: 50%; position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); isolation: isolate; touch-action: pan-y; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare input[type="range"] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 3px; margin-left: -1.5px; background: var(--paper); pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); }
.compare-tag { position: absolute; top: 12px; z-index: 2; padding: 3px 10px; border-radius: 3px; font-size: var(--step--1); font-weight: 700; pointer-events: none; }
.compare-tag-before { left: 12px; }
.compare-tag-after { right: 12px; }
.compare:focus-within { outline: var(--focus-width) solid var(--focus); outline-offset: 3px; }

/* ---------------------------------------------------------------- reviews */
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; list-style: none; }
.review-card { display: grid; gap: 12px; align-content: start; padding: 22px 24px; border-radius: var(--radius); }
.review-by { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--tick); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------------------------------------------- FAQ */
/* A plus that becomes a minus when open: no X, no rotation (P-195). */
.faq-list { display: grid; max-width: 860px; border-top: 1px solid var(--rule); }
details[data-faq] { border-bottom: 1px solid var(--rule); }
details[data-faq] > summary {
  position: relative; display: block; padding: 18px 44px 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); line-height: 1.3;
}
details[data-faq] > summary::-webkit-details-marker { display: none; }
details[data-faq] > summary::before,
details[data-faq] > summary::after { content: ""; position: absolute; top: 50%; background: currentColor; border-radius: 1px; }
details[data-faq] > summary::before { right: 4px; width: 18px; height: 2px; margin-top: -1px; }
details[data-faq] > summary::after { right: 12px; width: 2px; height: 18px; margin-top: -9px; }
details[data-faq][open] > summary::after { opacity: 0; }
.faq-a { display: grid; gap: 10px; max-width: var(--measure); padding-bottom: 22px; }

/* ---------------------------------------------------------------- tabs */
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--rule); }
[role="tab"] { min-height: 44px; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: inherit; font-weight: 700; cursor: pointer; }
[role="tab"][aria-selected="true"] { border-bottom-color: var(--tick); }
[role="tabpanel"] { padding-top: 24px; }

/* ---------------------------------------------------------------- forms */
.estimate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .estimate-grid { grid-template-columns: 1fr; } }
.estimate-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .chips legend { font-weight: 700; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 2px solid var(--field-bd); border-radius: var(--radius); background: var(--field-bg); color: inherit;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input[type="file"] { min-height: 0; padding: 8px; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.field-hint { color: var(--muted); font-size: var(--step--1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; }
.chip {
  min-height: 44px; padding: 8px 14px; border: 2px solid var(--field-bd); border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bd); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-fineprint { color: var(--muted); font-size: var(--step--1); }
.quick-card { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); }
.quick-title { font-weight: 700; }
.quick-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .quick-fields { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- dialog (photo viewer) */
.viewer { width: min(1100px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); }
.viewer::backdrop { background: color-mix(in srgb, var(--night) 88%, transparent); }
.viewer-frame img { width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; }
.viewer-caption { flex: 1 1 280px; }
.viewer-count { color: var(--muted); font-size: var(--step--1); }
.viewer-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- blog and posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; list-style: none; }
.post-card { overflow: hidden; border-radius: var(--radius); }
.post-card a { display: grid; height: 100%; align-content: start; color: inherit; text-decoration: none; }
main .post-card a:not(.btn) { color: inherit; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.post-card-title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); line-height: 1.25; }
.post-card a:hover .post-card-title { text-decoration: underline; }
.post-card-date, .post-card-text { color: var(--muted); font-size: var(--step--1); }
.post-wrap { max-width: 780px; }
.post-meta { color: var(--muted); font-size: var(--step--1); }
.post-figure { display: grid; gap: 8px; }
.post-figure img { width: 100%; border-radius: var(--radius); }
.post-figure figcaption { color: var(--muted); font-size: var(--step--1); }
.post-toc { padding: 18px 22px; border-radius: var(--radius); }
.post-toc ol { display: grid; gap: 6px; padding-left: 1.2em; margin-top: 8px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.post-cta { display: grid; gap: 10px; margin-top: 2em; padding: 22px 24px; border-radius: var(--radius); }

/* ---------------------------------------------------------------- footer */
.site-footer { padding-block: clamp(40px, 6vw, 72px) 28px; }
.site-footer a { display: inline-block; padding-block: 3px; color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--link); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.footer-head { margin-bottom: 10px; font-weight: 700; }
.footer-links { display: grid; gap: 2px; list-style: none; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--step--1);
}
.footer-base ul { display: flex; flex-wrap: wrap; gap: 2px 18px; list-style: none; }

/* ---------------------------------------------------------------- mobile bar */
/* Call and Free estimate, two buttons across the full width. The body is
   padded by the bar's height so the bar never hides the end of the footer
   (P-067). */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px var(--shadow);
  }
  .mobile-bar .btn { width: 100%; min-height: 48px; }
  /* Keyboard focus never lands under the bar (WCAG 2.4.11): scrolling to a focused element stops short of it. */
  html { scroll-padding-bottom: calc(var(--bar-h) + 24px); }
  /* script.js sets this while a [data-hero-actions] row is on screen, so the bar never covers
     or doubles the hero's own two buttons. */
  body.hero-actions-on .mobile-bar { display: none; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- motion */
/* Nothing on the site moves by itself: no autoplay, loops, marquees or
   scroll-triggered animation (P-183). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
