/* Shipshape Handyman
   Colors, type and spacing are set in :root. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 87.5%;
  font-display: swap;
  src: url("../fonts/archivo-condensed-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
}

:root {
  --navy: #001329;          /* logo navy */
  --navy-2: #0b2343;
  --navy-3: #1e3b60;
  --ink: #0d1b2e;
  --muted: #4a5869;
  --line: #dce2e9;
  --line-strong: #a9b5c3;
  --paper: #ffffff;
  --sand: #f7f3ea;          /* warm, coastal off-white */
  --yellow: #f0ab02;        /* logo yellow: accents and fills, never small text on white */
  --yellow-hover: #ffbd24;
  --on-navy: #dbe3ec;
  --error: #b42318;
  --error-bg: #fdeeec;
  --ok: #136c42;
  --ok-bg: #e8f4ed;
  --focus: #001329;

  --font-head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale. Use these for every gap, margin and padding. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Type scale. Headings use the clamp() sizes on h1, h2 and .h-display. */
  --text-xs: 0.8125rem;   /* 13px: eyebrows, labels */
  --text-sm: 0.9375rem;   /* 15px: hints, captions, meta */
  --text-base: 1rem;      /* 16px: dense UI text */
  --text-md: 1.0625rem;   /* 17px: body on phones, form fields */
  --text-lg: 1.25rem;     /* 20px: h3 */
  --text-xl: 1.375rem;    /* 22px: card titles */
  --text-2xl: 1.75rem;    /* 28px: display numbers */

  --radius-sm: 3px;       /* alerts, focus */
  --radius: 6px;          /* buttons, fields, cards */
  --radius-lg: 8px;       /* the form panel */
  --radius-pill: 999px;   /* chips */

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  overflow-wrap: break-word;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, .h-display {
  font-family: var(--font-head);
  font-stretch: 87.5%;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.875rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.005em; }
h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.section--navy, .site-footer, .on-dark { --focus: var(--yellow); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; --focus: var(--yellow); }

main:focus { outline: none; }

/* ---------- small shared pieces ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-3);
}
/* The level vial: a small pill with the bubble sitting centered */
.eyebrow::before, .vial {
  content: ""; flex: none;
  width: 32px; height: 12px; border: 2px solid currentColor; border-radius: 7px;
  background: radial-gradient(ellipse 5px 3.5px at center, var(--yellow) 0 100%, transparent 105%);
}
.eyebrow--light { color: var(--yellow); }
.eyebrow--light::before { border-color: var(--yellow); background: radial-gradient(ellipse 5px 3.5px at center, #fff 0 100%, transparent 105%); }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 40em; }

.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: var(--on-navy); }
.section--navy a:not(.btn) { color: #fff; }
.section--tight { padding-block: clamp(var(--space-7), 5vw, var(--space-8)); }

.section-head { max-width: 46rem; margin-bottom: clamp(var(--space-6), 4vw, var(--space-7)); }
.section-head h2 + .lede, .section-head h2 + p { margin-top: var(--space-4); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4) var(--space-6); }
.section-head--row > div { max-width: 46rem; }

.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: var(--space-2); }
.text-link::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 48px; padding: var(--space-3) var(--space-5);
  border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-lg { min-height: 56px; padding: var(--space-3) var(--space-5); font-size: var(--text-md); }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.on-dark .btn-navy { background: #fff; color: var(--navy); }
.on-dark .btn-navy:hover { background: var(--sand); color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.contact-block { max-width: 40rem; }
.btn-row { display: grid; gap: var(--space-3); }
@media (min-width: 560px) { .btn-row { grid-template-columns: 1fr 1fr; } }
.contact-meta { display: flex; gap: var(--space-3); align-items: flex-start; margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--muted); }
.contact-meta .icon { margin-top: 0.2em; color: var(--navy-3); }
.on-dark .contact-meta, .on-dark .contact-meta .icon { color: var(--on-navy); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); position: relative; }
.brand { margin-right: auto; display: flex; align-items: center; min-height: 44px; padding: var(--space-2) 0; border-radius: var(--radius-sm); }
.brand img { height: 28px; width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-3);
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav-list a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.nav-list a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.header-phone {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; justify-content: center;
  color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm);
}
.header-phone:hover { text-decoration: underline; }
.header-estimate { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 44px; min-height: 44px; padding: 0 var(--space-3);
  background: transparent; color: var(--navy); border: 2px solid var(--line); border-radius: var(--radius);
  font: 700 0.9375rem var(--font-body); cursor: pointer;
}
.menu-icon { width: 22px; height: 22px; }
.menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 400px) { .menu-label { position: static; width: auto; height: auto; clip: auto; } }
html:not(.js) .menu-btn { display: none; }

.nav-contact { display: none; }

/* Phones and tablets: menu drops down under the bar */
@media (max-width: 1079.98px) {
  .site-nav { order: 10; width: 100%; padding: var(--space-1) 0 var(--space-3); }
  .header-bar { flex-wrap: wrap; }
  html:not(.js) .nav-list { display: flex; flex-wrap: wrap; }
  html:not(.js) .nav-estimate { display: none; }
  .js .header-bar { flex-wrap: nowrap; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--gutter) var(--space-5); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-list a { min-height: 52px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-estimate { display: flex; width: 100%; margin-top: var(--space-4); min-height: 52px; }
  .js .nav-contact { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
  .nav-contact .btn { min-height: 52px; }
  .nav-contact-meta { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--muted); }
  .header-phone-num { display: none; }
}
@media (min-width: 360px) and (max-width: 1079.98px) { .header-phone-num { display: inline; } }
@media (max-width: 359.98px) { .brand img { height: 24px; } }

@media (min-width: 1080px) {
  :root { --header-h: 80px; }
  .brand img { height: 36px; }
  .site-nav { display: flex; align-items: center; }
  .nav-list { display: flex; gap: var(--space-1); }
  .nav-estimate { display: none; }
  .menu-btn { display: none; }
  .header-phone { margin-left: var(--space-3); }
  .header-estimate { display: inline-flex; margin-left: var(--space-2); }
}

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: var(--wrap); margin-inline: auto; padding: var(--space-5) var(--gutter) 0; font-size: var(--text-sm); color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 var(--space-3); color: var(--line-strong); }
.crumbs a { color: var(--muted); display: inline-block; padding: var(--space-2) 0; }
.crumbs li[aria-current] { padding: var(--space-2) 0; }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(var(--space-6), 6vw, var(--space-9)) clamp(var(--space-7), 7vw, var(--space-9)); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(var(--space-7), 6vw, var(--space-9)); } }
.hero h1 { max-width: 12ch; }
.hero-kicker { font-family: var(--font-head); font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.625rem); color: var(--navy-3); margin: var(--space-5) 0 0; }
.hero .lede { margin: var(--space-5) 0 var(--space-6); color: var(--ink); }
.hero-form-link { margin: var(--space-3) 0 0; font-size: var(--text-sm); }
.mark { background: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 90%, transparent 90%); padding-inline: 2px; }

.portrait { margin: 0; position: relative; }
.portrait img, .portrait-art { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.portrait figcaption { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--muted); padding-left: var(--space-4); border-left: 3px solid var(--yellow); }
@media (max-width: 899.98px) { .hero .portrait { max-width: 420px; } }

@media (prefers-reduced-motion: no-preference) {
  .portrait-level .bubble { transform-box: fill-box; transform-origin: center; animation: settle 1.6s cubic-bezier(.2, .8, .2, 1) .4s both; }
}
@keyframes settle {
  0% { transform: translateX(-26px); }
  60% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ---------- inner page hero ---------- */
.page-hero { padding-block: clamp(var(--space-5), 4vw, var(--space-7)) clamp(var(--space-7), 6vw, var(--space-9)); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8); } }
.page-hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 16ch; }
.page-hero .lede { margin: var(--space-5) 0 var(--space-6); color: var(--ink); }

.glance { background: var(--sand); border-radius: var(--radius); padding: var(--space-6); border-top: 4px solid var(--navy); }
.glance h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.glance li { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-base); }
.glance li .vial { width: 28px; height: 11px; margin-top: 0.45em; color: var(--navy); }

/* ---------- services index ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .svc-grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-7); border-top: 0; } .svc-card:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.svc-card { border-bottom: 1px solid var(--line); }
.svc-card a {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 20px; column-gap: var(--space-3); row-gap: var(--space-1); align-items: baseline;
  padding: var(--space-5) var(--space-1); text-decoration: none; color: var(--ink); height: 100%;
}
.svc-num { grid-row: 1 / span 2; font-family: var(--font-head); font-stretch: 87.5%; font-weight: 700; font-size: var(--text-base); color: var(--muted); letter-spacing: 0.04em; }
.svc-name { font-family: var(--font-head); font-stretch: 87.5%; font-weight: 700; font-size: var(--text-xl); color: var(--navy); line-height: 1.15; }
.svc-sum { grid-column: 2; color: var(--muted); font-size: var(--text-base); line-height: 1.5; }
.svc-go { grid-column: 3; grid-row: 1; align-self: center; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-top: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease; }
.svc-card a:hover .svc-name { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.svc-card a:hover .svc-go { transform: translateX(4px) rotate(45deg); }

.scope-note { margin-top: var(--space-6); padding: var(--space-5) var(--space-5); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); background: #fff; max-width: 52rem; font-size: var(--text-base); }
.section--sand .scope-note { background: #fff; }

/* ---------- pillars ---------- */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6) var(--space-7); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding-top: var(--space-5); border-top: 2px solid var(--navy); position: relative; }
.pillar::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 4px; background: var(--yellow); }
.pillar h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.pillar p { color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); position: relative; }
  .steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: rgba(255, 255, 255, .22); }
}
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; } }
.step-num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--navy);
  font-family: var(--font-head); font-stretch: 87.5%; font-weight: 800; font-size: var(--text-lg); position: relative;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: var(--space-2); }
.step p { font-size: var(--text-base); }

/* ---------- pricing summary ---------- */
.split { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-8); } }
.ceiling { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: clamp(var(--space-6), 4vw, 44px); }
.ceiling-figure { font-family: var(--font-head); font-stretch: 87.5%; font-weight: 800; font-size: clamp(3.5rem, 9vw, 5.5rem); line-height: 1; color: #fff; margin: 0 0 var(--space-2); }
.ceiling-figure span { color: var(--yellow); }
.ceiling p { margin-top: var(--space-3); }
.ceiling .vial { color: var(--yellow); display: block; margin-bottom: var(--space-5); background: radial-gradient(ellipse 5px 3.5px at center, #fff 0 100%, transparent 105%); }
.checks { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.checks li { position: relative; padding-left: var(--space-6); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 14px; height: 8px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.section--navy .checks li::before, .ceiling .checks li::before { border-color: var(--yellow); }

/* ---------- areas ---------- */
.area-list { margin: 0; padding: 0; list-style: none; counter-reset: area; columns: 2; column-gap: var(--space-6); }
@media (min-width: 760px) { .area-list { columns: 4; } }
.area-list li { counter-increment: area; break-inside: avoid; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); display: flex; gap: var(--space-3); align-items: baseline; font-weight: 600; }
.area-list li::before { content: counter(area, decimal-leading-zero); font-family: var(--font-head); font-stretch: 87.5%; font-size: var(--text-sm); color: var(--muted); font-weight: 700; min-width: 1.6em; }
.area-list a { color: var(--navy); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.area-note { margin-top: var(--space-5); color: var(--muted); max-width: 44rem; }

.area-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .area-cards { grid-template-columns: 1fr 1fr; } }
.area-card a { display: block; height: 100%; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s ease; }
.area-card a:hover { border-color: var(--navy); }
.area-card h3 { margin-bottom: var(--space-2); display: flex; justify-content: space-between; gap: var(--space-3); }
.area-card p { color: var(--muted); font-size: var(--text-base); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: var(--space-5) 0; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(1.125rem, 2vw, 1.3125rem); }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) center / 14px 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 2px 14px no-repeat; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 var(--space-5); max-width: 44rem; color: var(--ink); }

/* ---------- content pages ---------- */
.page-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-9); } .page-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); margin: var(--space-8) 0 var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--space-6) 0 var(--space-3); }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.25em; margin: 0 0 1.25em; }
.prose ul:not([class]) li, .prose ol:not([class]) li { margin-bottom: 0.4em; padding-left: var(--space-1); }
.prose ul:not([class]) li::marker { color: var(--navy-3); }

.job-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .job-list { grid-template-columns: 1fr 1fr; } }
.job-pick {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  min-height: 56px; height: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35;
  transition: border-color .15s ease, background-color .15s ease;
}
.job-pick::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-top: 2px solid var(--navy); transform: rotate(45deg); }
.job-pick:hover { border-color: var(--navy); background: var(--sand); color: var(--ink); }
.job-hint { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-3); }

.not-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: var(--space-2); }
.not-list li { position: relative; padding-left: var(--space-6); }
.not-list li::before, .not-list li::after { content: ""; position: absolute; left: 4px; top: 0.75em; width: 13px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.not-list li::after { transform: rotate(-45deg); }

.related { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.related a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; color: var(--navy); font-weight: 600; font-size: var(--text-sm); }
.related a:hover { border-color: var(--navy); }

.callout { background: var(--sand); border-radius: var(--radius); padding: var(--space-5) var(--space-6); margin: var(--space-6) 0; }
.callout h2, .callout h3 { margin-top: 0 !important; }
.promise-line { padding-left: var(--space-4); border-left: 3px solid var(--yellow); }

/* ---------- estimate ---------- */
.estimate-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1000px) { .estimate-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); } }
.estimate-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 4vw, var(--space-7)); color: var(--ink); }
.estimate-form { --focus: var(--navy); }
.section--navy .estimate-form a { color: var(--navy-2); }
.section--navy .estimate-form h3 { color: var(--navy); }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-grid { display: grid; gap: 0 var(--space-5); }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 var(--space-5); border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: var(--space-2); color: var(--navy); padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: var(--text-sm); color: var(--muted); margin: -2px 0 var(--space-2); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4);
  font: 400 1.0625rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
input[type="file"] { font: inherit; font-size: var(--text-base); max-width: 100%; padding: var(--space-3) 0; }
input[type="file"]::file-selector-button { font: 700 0.9375rem var(--font-body); min-height: 44px; padding: var(--space-2) var(--space-4); margin-right: var(--space-3); border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: var(--text-sm); font-weight: 600; margin: var(--space-2) 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.choice { display: inline-flex !important; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-weight: 600 !important; cursor: pointer; margin: 0 !important; }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--sand); }
.photo-list { font-size: var(--text-sm); color: var(--muted); margin: var(--space-2) 0 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--text-sm); color: var(--muted); margin: var(--space-4) 0 0; }
.form-errors { background: var(--error-bg); border-left: 4px solid var(--error); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); border-radius: var(--radius-sm); }
.form-errors ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.form-errors a { color: var(--error); font-weight: 600; }
.form-offline { background: #fff6dc; border-left: 4px solid var(--yellow); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); border-radius: var(--radius-sm); font-size: var(--text-base); }
.send-result { margin-top: var(--space-5); padding: var(--space-5) var(--space-5); border-radius: var(--radius-sm); }
.send-result h3 { margin-bottom: var(--space-2); }
.send-fail { background: var(--error-bg); border-left: 4px solid var(--error); }
.send-ok { background: var(--ok-bg); border-left: 4px solid var(--ok); margin-top: 0; }
.send-ok .btn { margin-top: var(--space-2); }
.just-filled { animation: filled 1.4s ease; }
@keyframes filled { from { background-color: #fff3cc; } to { background-color: #fff; } }
@media (prefers-reduced-motion: reduce) { .just-filled { animation: none; } }

.next-steps { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); counter-increment: ns; }
.next-steps li::before { content: counter(ns); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 1rem var(--font-head); font-stretch: 87.5%; }

/* ---------- final call to action ---------- */
.final-cta-inner { display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 900px) { .final-cta-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.final-cta .lede { margin-top: var(--space-4); }
.final-cta-form { margin: var(--space-4) 0 0; font-weight: 600; }

/* ---------- recent work, reviews ---------- */
.work-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.work-grid figure { margin: 0; }
.work-grid img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.work-grid figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-3); }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { background: #fff; border-radius: var(--radius); padding: var(--space-5); border: 1px solid var(--line); }
.review blockquote { margin: 0 0 var(--space-4); }
.review-by { font-size: var(--text-sm); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: clamp(var(--space-7), 6vw, var(--space-9)) 0 var(--space-5); font-size: var(--text-base); }
.site-footer a:not(.btn) { color: #fff; }
.footer-top { display: grid; gap: var(--space-7); }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-7); } }
.footer-brand img { width: 220px; height: auto; margin-bottom: var(--space-5); }
.footer-scope { font-size: var(--text-sm); padding-left: var(--space-4); border-left: 3px solid var(--yellow); }
.footer-h { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 var(--space-4); }
.footer-h--gap { margin-top: var(--space-6); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-block; padding: var(--space-2) 0; text-decoration: none; }
.footer-col li a:hover { text-decoration: underline; }
.footer-phone { font-family: var(--font-head); font-stretch: 87.5%; font-weight: 800; font-size: var(--text-2xl); line-height: 1.1; }
.footer-phone a { text-decoration: none; }
.footer-contact p { margin-bottom: var(--space-3); }
.footer-contact .btn-yellow { color: var(--navy); margin-top: var(--space-1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--text-sm); }
.footer-bottom p { margin: 0; }

/* ---------- phone sticky bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 719.98px) {
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding: var(--space-2) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom));
    transition: transform .25s ease;
  }
  .js .mobile-bar { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .js .mobile-bar.is-shown { transform: none; visibility: visible; transition: transform .25s ease; }
  .mobile-bar-meta { margin: 0 0 var(--space-2); text-align: center; font-size: var(--text-xs); color: var(--muted); }
  .mobile-bar-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .mobile-bar .btn { min-height: 48px; }
  body { padding-bottom: calc(var(--space-9) + var(--space-2)); } /* clears the Text/Call bar */
}
@media (prefers-reduced-motion: reduce) { .mobile-bar, .js .mobile-bar, .js .mobile-bar.is-shown { transition: none; } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(var(--space-7), 10vw, var(--space-10)); }
.notfound .vial { width: 120px; height: 40px; border-width: 4px; border-radius: 20px; color: var(--navy); margin-bottom: var(--space-6); background: radial-gradient(ellipse 14px 10px at 78% 50%, var(--yellow) 0 100%, transparent 105%); }

/* ---------- gentle reveal (skipped when reduced motion is on) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- preview build only ---------- */
.preview-banner { background: var(--navy); color: #fff; text-align: center; font-size: var(--text-sm); font-weight: 700; padding: var(--space-2) var(--space-4); border-bottom: 3px dashed var(--yellow); }
.preview-only { outline: 3px dashed #b77d00; outline-offset: -3px; position: relative; }
.preview-label { margin: 0; background: #fff2c4; color: #5c3d00; font-size: var(--text-sm); font-weight: 700; padding: var(--space-2) var(--space-4); }
.ph-tag { display: block; width: fit-content; background: #fff2c4; color: #5c3d00; border: 1.5px dashed #b77d00; font-size: var(--text-xs); font-weight: 700; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.portrait .ph-tag { position: absolute; top: 12px; left: 12px; right: 12px; width: auto; z-index: 1; }
.ph-block { background: #fffaf0; border: 1.5px dashed #b77d00; padding: var(--space-4) var(--space-4); border-radius: var(--radius-sm); font-size: var(--text-sm); }
.ph-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #f1ece0 0 12px, #e9e2d2 12px 24px); color: #5c3d00; font-weight: 700; border: 1.5px dashed #b77d00; }
.ph-text { color: var(--muted); font-style: italic; }

@media print {
  .site-header, .mobile-bar, .site-footer .btn, .skip-link { display: none !important; }
  body { padding: 0; }
}

/* ---------- small-screen fixes ---------- */
.estimate-grid > *, .split > *, .hero-grid > *, .page-hero-grid > *, .final-cta-inner > * { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.text-link { min-height: 44px; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-1) 0; }
/* Buttons sit side by side only when each has room for its full label */
.btn-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
h2 + .lede { margin-top: var(--space-4); }
.field .choice { padding: var(--space-2) var(--space-4) var(--space-2) var(--space-4); }
.section--navy + .site-footer, main:has(> .section--navy:last-child) + .site-footer { border-top: 1px solid rgba(255, 255, 255, .14); }
/* The ceiling figure scales with its panel, not the screen, so it never overflows */
.ceiling { container-type: inline-size; }
.ceiling-figure { font-size: clamp(2.5rem, 24cqi, 5.5rem); }
/* Text columns line up with the page edge, not centered */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44rem; }
.callout h3 { margin-bottom: var(--space-2); }
/* Shown on computers after tapping a Text button */
.text-help { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); background: var(--sand); border-left: 3px solid var(--yellow); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--ink); }
.on-dark .text-help, .site-footer .text-help { background: rgba(255, 255, 255, .08); color: var(--on-navy); }
/* Contact details as selectable text */
.contact-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.contact-list a { font-weight: 700; }
.on-dark .contact-list, .section--navy .contact-list { color: var(--on-navy); }
/* Phone bar: keep "Text a photo" on one line down to 320px */
@media (max-width: 719.98px) { .mobile-bar .btn { padding: var(--space-2) var(--space-3); gap: var(--space-2); font-size: var(--text-sm); white-space: nowrap; } }
/* Service areas grouped by direction */
.area-groups { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .area-groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .area-groups { grid-template-columns: repeat(4, 1fr); } }
.area-groups h3 { font-size: var(--text-lg); padding-bottom: var(--space-3); border-bottom: 2px solid var(--navy); margin-bottom: var(--space-2); }
.area-groups ul { list-style: none; margin: 0; padding: 0; }
.area-groups li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.area-groups a { color: var(--navy); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
/* Homepage: four facts right after the hero */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: var(--space-6); }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-6); }
@media (min-width: 700px) { .facts-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .facts-list { grid-template-columns: repeat(4, 1fr); } }
.facts-list li { padding-left: var(--space-4); border-left: 3px solid var(--yellow); font-size: var(--text-base); color: var(--muted); }
.facts-list strong { display: block; color: var(--navy); font-family: var(--font-head); font-stretch: 87.5%; font-size: var(--text-lg); margin-bottom: var(--space-1); }
.section--navy .contact-list a { color: #fff; }
/* Services overview: full catalog */
.catalog { display: grid; gap: var(--space-6) var(--space-7); }
@media (min-width: 640px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
.catalog h3 { font-size: var(--text-lg); padding-bottom: var(--space-2); border-bottom: 2px solid var(--navy); margin-bottom: var(--space-3); }
.catalog ul { margin: 0; padding-left: 1.1em; font-size: var(--text-base); }
.catalog li { margin-bottom: var(--space-1); }
.catalog li::marker { color: var(--navy-3); }
.area-groups li:has(> a) { padding: 0; }
.area-groups li > a { display: flex; align-items: center; min-height: 44px; }
