/* Palette: poured-concrete greys, charcoal ink, one hi-vis orange reserved for call buttons. */
:root {
  --paper: #f3f1ec;
  --slab: #e3e0d8;
  --ink: #1d1e1b;
  --muted: #4f504a;
  --line-dark: #c4c0b6;
  --line-light: #fbfaf7;
  --accent: #b9400e;
  --accent-ink: #ffffff;
  --link: #1d1e1b;
  --focus: #1d4ed8;
  --heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --measure: 42rem;
  --space: clamp(2.5rem, 6vw, 4.5rem);
  --radius: 4px;
  --callbar: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  /* Doubled selector outranks the per-site light colors build.js injects inline. */
  :root:root {
    --paper: #191a18;
    --slab: #252623;
    --ink: #ecebe6;
    --muted: #b9b8b0;
    --line-dark: #0d0d0c;
    --line-light: #34352f;
    --accent: #f08a4b;
    --accent-ink: #1a1a18;
    --link: #ecebe6;
    --focus: #8ab4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--body);
  padding-bottom: calc(var(--callbar) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong { font-weight: 650; }
code { font-size: 0.9em; overflow-wrap: anywhere; }
p, li, dd { overflow-wrap: break-word; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

.draft-bar { background: #fde68a; color: #3b2f00; font-size: 0.875rem; padding: 0.5rem 1rem; text-align: center; }

h1, h2, h3, .wordmark, .cta-title, .footer-head {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); margin: 0 0 1rem; max-width: 16ch; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* Buttons: call is the only orange element on the page. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.25rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; white-space: nowrap;
}
.btn-call { background: var(--accent); color: var(--accent-ink); }
.btn-call:hover { filter: brightness(1.08); }
.btn-call:active { filter: brightness(0.92); }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--slab); }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Header: phone hidden on narrow screens because the bottom call bar carries it. */
.site-header { border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.wordmark { font-size: clamp(1.2rem, 5vw, 1.5rem); text-decoration: none; color: var(--ink); margin: 0; }
.header-inner > .wordmark { flex: 1 1 0; min-width: 0; padding: 0.5rem 0; }
.wordmark span { color: var(--muted); }
.menu-toggle {
  margin-left: auto; min-height: 44px; padding: 0 1rem;
  background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  font: 600 1rem var(--body); cursor: pointer;
}
.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 0.75rem; }
.site-nav li { margin: 0; border-top: 1px solid var(--line-dark); }
.site-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.header-call { display: none; }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4rem) 0 var(--space); }
.hero-inner { display: grid; gap: 2rem; }
.hero-copy { min-width: 0; }
.lead { font-size: 1.15rem; max-width: var(--measure); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0; margin: 0 0 1rem; font-size: 0.9375rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }

/* Control joint: the saw-cut groove in a slab, used as the section divider motif. */
.content > section, .site-footer {
  border-top: 2px solid var(--line-dark);
  box-shadow: inset 0 1px 0 var(--line-light);
}
.content > section { padding: var(--space) 0; }
.content > section > * { max-width: var(--measure); }
.content > section > .service-list, .content > section > .area-list,
.content > section > .lead-form, .content > section > .cta-panel { max-width: none; }

.service-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; }
.service-list li { margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--line-dark); min-width: 0; }
.service-list h3 { margin: 0 0 0.35rem; }
.service-list p { margin: 0; color: var(--muted); }

.area-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem; }
.area-list li { margin: 0; padding: 0.75rem 0.9rem; background: var(--slab); border-radius: var(--radius); font-weight: 600; }
.area-list li span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.area-list li.primary { outline: 2px solid var(--ink); outline-offset: -2px; }

.note { background: var(--slab); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-dark); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.75rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.3rem; }
.faq summary::after { content: "+"; font: 700 1.5rem/1 var(--body); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 0.75rem; }

.cta-panel { background: var(--slab); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.cta-title { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 0.75rem; }
.cta-panel .actions { margin-top: 1.25rem; }

.photo { margin: 1.5rem 0; }
.photo .frame { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--slab); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--muted); max-width: var(--measure); }
.photo-missing { aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--slab); display: grid; place-items: center; border: 2px dashed var(--line-dark); padding: 1rem; text-align: center; color: var(--muted); font-size: 0.9375rem; }
.photo-missing strong, .photo-missing code { display: block; color: var(--ink); }
.photo-missing code { margin-top: 0.5rem; }
.placeholder { border: 2px dashed var(--line-dark); padding: 1rem 1.25rem; border-radius: var(--radius); color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; }

/* Sidebar only exists from 64em; below that the hero buttons and call bar carry the same links. */
.side { display: none; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li { margin: 0; border-top: 1px solid var(--line-dark); }
.side li a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.side li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.aside-head { font-family: var(--heading); font-weight: 700; font-size: 1.25rem; margin: 0 0 0.75rem; }
.aside-call { display: grid; gap: 0.6rem; background: var(--slab); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem; }

/* Form */
.lead-form { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 44rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.75rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--muted); border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b42318; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0.75rem 0 0; font-weight: 600; }
.form-status.error { color: #b42318; }
.form-status.sending { color: var(--muted); }

/* Footer */
.site-footer { margin-top: var(--space); padding: 2.5rem 0 1.5rem; font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer-head { font-size: 1.2rem; margin: 0 0 0.25rem; }
.footer-phone { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 700; font-size: 1.15rem; }
.legal { margin-top: 1.5rem; color: var(--muted); }
.legal p { margin: 0 0 0.5rem; max-width: var(--measure); }

/* Bottom call bar for phones: thumb reach, always one tap from a call. */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line-dark);
}
.callbar .btn { width: 100%; }
.callbar .btn-quiet { background: var(--paper); }

@media (min-width: 40em) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .lead-form { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Nav fits in one row with the phone button from about 860px. */
@media (min-width: 54em) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .menu-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { display: block; width: auto; margin-left: auto; }
  .site-nav ul { display: flex; gap: 1.25rem; padding: 0; }
  .site-nav li { border: 0; }
  .site-nav a { min-height: 44px; }
  .header-call { display: inline-flex; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 64em) {
  .hero.has-photo .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .hero .photo { margin: 0; }
  .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; align-items: start; }
  .side { display: block; position: sticky; top: 1.5rem; padding-top: var(--space); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-quiet { transition: background-color 0.15s, filter 0.15s; }
}
