/* Self-hosted variable fonts (SIL Open Font License 1.1). Licences in /assets/fonts/. */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/lexend-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   JBV Homes — design tokens
   Source: the house-and-leaves logo (greens) and the JBV order / refund forms
   (amber step circles, mint panels, dashed row rules, rounded panel boxes).
   Single light theme by design: the brand is a white page with green ink.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Colour: brand ---------------------------------------------------- */
  --pine-900: #143D24;   /* deepest green: footer, contact band          */
  --pine-700: #1F5935;   /* logo dark green: headings, primary buttons    */
  --pine-600: #2A6B43;   /* hover state for pine surfaces                 */
  --leaf-600: #4F7D2A;   /* leaf green, darkened for text on white (AA)   */
  --leaf-500: #5E8E33;   /* logo leaf green: icons, rules, accents        */
  --leaf-300: #9CCB63;   /* leaf green on dark backgrounds                */
  --amber-500: #E2A23B;  /* form step circles, emergency marker           */
  --amber-100: #FCF1DC;  /* form "refund requested" highlight row         */

  /* ---- Colour: neutrals (green-biased) ---------------------------------- */
  --ink: #17261C;        /* body text                                     */
  --ink-soft: #4A5A4F;   /* secondary text                                */
  --line: #CBD9C6;       /* rules and borders                             */
  --line-dash: #B7C9B1;  /* dashed row separators, as on the forms        */
  --mint-50: #F4F9F1;    /* page tint bands                               */
  --mint-100: #EAF3E5;   /* form panels ("Office use only" box)           */
  --paper: #FFFFFF;

  /* ---- Type -------------------------------------------------------------- */
  --font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Modular scale 1.25 from 17px body */
  --step--1: 0.875rem;   /* 14px  captions, legal lines   */
  --step-0: 1.0625rem;   /* 17px  body                    */
  --step-1: 1.3125rem;   /* 21px  lead, h4                */
  --step-2: 1.625rem;    /* 26px  h3                      */
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.125rem);  /* h2 */
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);    /* h1 / hero */

  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --measure: 64ch;

  /* ---- Space (8px base) -------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  /* ---- Shape ------------------------------------------------------------- */
  --radius-panel: 12px;  /* form panel boxes                              */
  --radius-btn: 8px;
  --radius-pill: 999px;
  --rule: 1px solid var(--line);
  --rule-dash: 1px dashed var(--line-dash);

  /* ---- Layout ------------------------------------------------------------ */
  --container: 72rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* ---- Motion ------------------------------------------------------------ */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;

}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

/* ==========================================================================
   JBV Homes — site styles
   Built on tokens.css. Layout concept: white page, green ink; the hero photo
   sits in the logo's house shape; the rest borrows the order form's structure
   (rule-headed sections, dashed rows, mint panels, amber step circles).
   ========================================================================== */

/* ---- Base ---------------------------------------------------------------- */
*, *::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-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--pine-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-600); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint-100); color: var(--pine-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine-700);
  line-height: var(--leading-tight);
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: var(--leading-snug); }
h4 { font-size: 1.0625rem; line-height: var(--leading-snug); }
.h3 { font-size: var(--step-1); line-height: var(--leading-snug); }
p { margin: 0; max-width: var(--measure); }
strong { font-weight: 600; }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.gap-top { margin-top: var(--space-5); }
.gap-top-lg { margin-top: var(--space-6); }
.gap-bottom { margin-bottom: var(--space-5); }
.gap-bottom-sm { margin-bottom: var(--space-3); }
.visually-hidden {
  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: var(--gutter); top: -100px; z-index: 100;
  background: var(--pine-900); color: var(--paper); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-btn); font-weight: 600;
}
.skip-link:focus { top: var(--space-3); color: var(--paper); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: var(--radius-btn);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--pine-700); color: var(--paper); }
.btn-primary:hover { background: var(--pine-600); color: var(--paper); }
.btn-ghost { border-color: var(--pine-700); color: var(--pine-700); background: transparent; }
.btn-ghost:hover { background: var(--mint-100); color: var(--pine-700); }
.btn-light { background: var(--paper); color: var(--pine-900); }
.btn-light:hover { background: var(--mint-100); color: var(--pine-900); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: var(--paper); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---- Utility bar ------------------------------------------------------------ */
.utility { background: var(--pine-900); color: #DCEBD3; font-size: var(--step--1); }
.utility .wrap {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  justify-content: space-between; align-items: center; padding-block: var(--space-2);
}
.utility a { color: var(--paper); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.utility a:hover { color: var(--paper); text-decoration: underline; }
.utility .em { display: inline-flex; align-items: center; gap: var(--space-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber-500); flex: none; }

/* ---- Header and navigation -------------------------------------------------- */
.site-header { border-bottom: var(--rule); background: var(--paper); position: relative; z-index: 20; }
.site-header > .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding-block: var(--space-3);
  position: relative;
}
.brand { flex: none; }
.brand img { height: 76px; width: auto; }
.nav-toggle { display: none; }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--space-5); margin: 0; padding: 0; }
.nav-list > li { display: flex; align-items: center; }
.nav-link {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  text-decoration: none; padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--pine-700); border-bottom-color: var(--leaf-500); text-decoration: none; }
.submenu-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 2px;
  border: 0; background: transparent; color: var(--pine-700); border-radius: 6px; cursor: pointer;
}
.submenu-toggle:hover { background: var(--mint-100); }
.submenu-toggle svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% - 4px); right: var(--gutter-r);
  width: min(640px, calc(100vw - 32px));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5);
  background: var(--paper); border: var(--rule); border-radius: var(--radius-panel);
  padding: var(--space-5); box-shadow: 0 18px 40px -18px rgba(20, 61, 36, .35);
}
.submenu-title { font-family: var(--font-display); font-size: .8125rem; font-weight: 600; color: var(--leaf-600); letter-spacing: .02em; margin-bottom: var(--space-2); }
html:not(.js) .submenu, html:not(.js) .submenu-toggle { display: none; }
.submenu[hidden] { display: none; }
.submenu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.submenu a {
  display: block; padding: var(--space-2) var(--space-2); margin-inline: calc(-1 * var(--space-2));
  border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9688rem; line-height: 1.35;
}
.submenu a:hover { background: var(--mint-50); color: var(--pine-700); }
.submenu .all-link { grid-column: 1 / -1; border-top: var(--rule-dash); padding-top: var(--space-3); }
.submenu .all-link a { font-weight: 600; color: var(--pine-700); display: inline-block; }

/* ---- Hero (home) ------------------------------------------------------------- */
.hero { padding-block: var(--space-8); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-7); align-items: center;
}
.hero-copy { display: grid; gap: var(--space-5); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.phone-line { font-size: var(--step--1); color: var(--ink-soft); }
.phone-line a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

.house { position: relative; }
.house svg { width: 100%; height: auto; overflow: visible; }
.house .roof { fill: var(--pine-700); }
.badge {
  position: absolute; left: 0; bottom: 8%;
  display: flex; gap: var(--space-3); align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-panel); padding: var(--space-3) var(--space-4);
  box-shadow: 0 10px 30px -12px rgba(20, 61, 36, .35);
  max-width: 17rem; font-size: var(--step--1); line-height: 1.4;
}
.badge strong { display: block; font-family: var(--font-display); color: var(--pine-700); font-size: 1rem; }
.ring-sm {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber-500); color: var(--pine-900);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}

/* ---- Page header (inner pages) ------------------------------------------------ */
.page-header { background: var(--mint-50); border-bottom: var(--rule); }
.page-header .wrap { padding-block: var(--space-6) var(--space-7); display: grid; gap: var(--space-4); }
.page-header .lead { max-width: 58ch; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--step--1); color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-dash); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---- Sections ----------------------------------------------------------------- */
.section { padding-block: var(--space-8); }
.section.tight-top { padding-top: 0; }
.tinted { background: var(--mint-50); border-block: var(--rule); }
.section-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-intro { margin-top: calc(-1 * var(--space-4)); margin-bottom: var(--space-6); color: var(--ink-soft); }

/* ---- Accreditation strip -------------------------------------------------------- */
.partners { border-block: var(--rule); background: var(--mint-50); }
.partners .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6);
  align-items: center; padding-block: var(--space-5);
}
.partners p { font-family: var(--font-display); font-weight: 500; color: var(--pine-700); max-width: 11rem; line-height: 1.35; }
.logo-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-5); align-items: center;
}
.logo-row li { display: grid; place-items: center; height: 44px; }
.logo-row img { max-height: 30px; width: auto; object-fit: contain; }
.logo-row img.tall { max-height: 40px; }

/* ---- Emergency panel ------------------------------------------------------------- */
.emergency {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-5); align-items: center;
  border: 1.5px dashed var(--line-dash); background: var(--mint-100);
  border-radius: var(--radius-panel); padding: var(--space-5) var(--space-6);
}
.ring { width: 56px; height: 56px; border-radius: 50%; background: var(--amber-500); display: grid; place-items: center; flex: none; }
.ring svg { width: 26px; height: 26px; }
.emergency h2 { font-size: var(--step-2); }
.emergency p { color: var(--ink-soft); margin-top: var(--space-1); }
.big-num {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--pine-700);
  white-space: nowrap; font-variant-numeric: tabular-nums; text-decoration: none;
}
.big-num:hover { text-decoration: underline; }

/* ---- Service rows (the forms' dashed item rows) ------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.svc-group > :first-child { margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-3); }
.svc-group > :first-child svg { width: 26px; height: 26px; flex: none; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--pine-700); }
.svc-list li { border-bottom: var(--rule-dash); }
.svc-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-1); text-decoration: none; color: var(--ink);
  transition: background var(--dur) var(--ease);
}
.svc-list a:hover { background: var(--mint-50); }
.svc-list .name { font-family: var(--font-display); font-weight: 500; color: var(--pine-700); }
.svc-list .desc { grid-column: 1; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; }
.svc-list .chev { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--leaf-500); }
.svc-list .chev svg { width: 18px; height: 18px; }

/* ---- Split feature --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-panel); }
.split-copy { display: grid; gap: var(--space-4); }
.photo-frame { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: var(--radius-panel); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 5px;
  border: 1.5px solid var(--leaf-500);
  background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%231F5935' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---- Steps (a real sequence: amber circles from the forms) ---------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
.steps.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: grid; gap: var(--space-3); align-content: start; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-500); color: var(--pine-900);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.steps:not(.cols-6) li:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--space-6) + 12px);
  border-top: var(--rule-dash);
}
.steps h3 { font-size: 1.125rem; }
.steps p { font-size: .975rem; color: var(--ink-soft); }

/* ---- Accreditation box (RICS / MCS) ----------------------------------------------- */
.accred-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: center;
  border: var(--rule); border-radius: var(--radius-panel); padding: var(--space-4) var(--space-5);
}
.accred-box img { height: 36px; width: auto; }
.accred-box p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---- Prose (pages rendered from Markdown) ------------------------------------------ */
.prose { display: grid; gap: var(--space-4); max-width: 46rem; }
.prose > h2 { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-4); }
.prose > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 2rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: var(--space-4); }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--space-2); max-width: var(--measure); }
.prose li::marker { color: var(--leaf-500); }
.prose hr { border: 0; border-top: var(--rule); margin-block: var(--space-6); width: 100%; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font-size: .975rem; }
.prose th, .prose td { text-align: left; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: var(--rule-dash); vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 600; color: var(--pine-700); border-bottom: 2px solid var(--pine-700); }

/* ---- Two-panel layout (About) ------------------------------------------------------- */
.panel-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.panel {
  background: var(--mint-100); border-radius: var(--radius-panel); padding: var(--space-6);
  display: grid; gap: var(--space-3); align-content: start;
}
.panel h3 { display: flex; align-items: center; gap: var(--space-3); }
.panel h3 svg { width: 26px; height: 26px; flex: none; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.logo-grid li { border: var(--rule); border-radius: var(--radius-panel); height: 88px; display: grid; place-items: center; padding: var(--space-4); }
.logo-grid img { max-height: 36px; width: auto; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; }
.facts div { border-top: var(--rule-dash); padding-top: var(--space-3); }
.facts dt { font-family: var(--font-display); font-weight: 600; color: var(--pine-700); }
.facts dd { margin: var(--space-1) 0 0; color: var(--ink-soft); }

/* ---- FAQ ------------------------------------------------------------------------------ */
.faq { border-top: 2px solid var(--pine-700); }
.faq details { border-bottom: var(--rule-dash); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-4) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
  font-family: var(--font-display); font-weight: 500; color: var(--pine-700);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231F5935' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' stroke='%231F5935' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq .answer { padding-bottom: var(--space-4); color: var(--ink-soft); }

/* ---- CTA band and contact card -------------------------------------------------------- */
.cta-band { background: var(--pine-700); color: #E3EEDD; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-7); padding-block: var(--space-8); align-items: center; }
.cta-band.simple .wrap { grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--space-7); }
.cta-band h2 { color: var(--paper); }
.cta-band p { margin-top: var(--space-3); }
.cta-band .btn-row { margin-top: var(--space-5); }
.contact-card { background: var(--pine-900); border-radius: var(--radius-panel); padding: var(--space-5) var(--space-6); }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-5); font-size: .975rem; }
.contact-card dt { color: var(--leaf-300); font-weight: 600; }
.contact-card dd { margin: 0; color: var(--paper); font-variant-numeric: tabular-nums; }
.contact-card a { color: var(--paper); }

/* ---- Contact page ---------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.contact-aside { display: grid; gap: var(--space-5); }
.info-panel { background: var(--mint-100); border-radius: var(--radius-panel); padding: var(--space-5) var(--space-6); display: grid; gap: var(--space-4); }
.info-panel dl { margin: 0; display: grid; gap: var(--space-3); }
.info-panel dt { font-family: var(--font-display); font-weight: 600; color: var(--pine-700); font-size: .9375rem; }
.info-panel dd { margin: 0; font-variant-numeric: tabular-nums; }
.emergency-note {
  border: 1.5px dashed var(--line-dash); border-radius: var(--radius-panel); padding: var(--space-5);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: center;
}
.emergency-note .ring { width: 48px; height: 48px; }
.emergency-note .ring svg { width: 22px; height: 22px; }
.downloads { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--pine-700); }
.downloads li { border-bottom: var(--rule-dash); padding: var(--space-3) 0; display: grid; gap: 2px; }
.downloads a { font-family: var(--font-display); font-weight: 500; }
.downloads span { font-size: var(--step--1); color: var(--ink-soft); }

/* Form: the order form's labelled fields */
.form { display: grid; gap: var(--space-5); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-display); font-weight: 500; color: var(--pine-700); font-size: .9688rem; }
.field .req { color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; font-size: .875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-dash); border-radius: var(--radius-btn);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231F5935' stroke-width='2'/%3E%3C/svg%3E") right .9rem center / 16px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine-700); box-shadow: 0 0 0 3px rgba(226, 162, 59, .45);
}
.field .error { display: none; color: #A3271B; font-size: .9063rem; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A3271B; }
.field.invalid .error { display: block; }
.field label.check { font-family: var(--font-body); font-weight: 400; color: var(--ink); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: .9688rem; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--pine-700); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); }
.form-status { border-radius: var(--radius-panel); padding: var(--space-4) var(--space-5); font-weight: 500; }
.form-status.ok { background: var(--mint-100); color: var(--pine-900); border: 1.5px solid var(--leaf-500); }
.form-status.err { background: #FBEAE7; color: #7A1D13; border: 1.5px solid #E2A49B; }

/* ---- Footer ------------------------------------------------------------------------------- */
.site-footer { background: var(--pine-900); color: #B9CDB2; font-size: var(--step--1); }
.site-footer .wrap { padding-block: var(--space-7) var(--space-6); display: grid; gap: var(--space-6); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.foot-brand { display: grid; gap: var(--space-4); align-content: start; }
.foot-brand img { height: 76px; width: auto; }
.foot-brand address { font-style: normal; line-height: 1.6; }
.site-footer h2 { color: var(--paper); font-size: .95rem; font-weight: 600; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: #DCEBD3; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.legal { border-top: 1px solid rgba(220, 235, 211, .18); padding-top: var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }

/* ---- Responsive ------------------------------------------------------------------------------ */
@media (max-width: 1060px) {
  .nav-list { gap: var(--space-4); }
  .site-nav { gap: var(--space-4); }
}
@media (max-width: 960px) {
  .hero .wrap, .split, .cta-band .wrap, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .cta-band.simple .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
  .house { max-width: 34rem; }
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps, .steps.cols-5, .steps.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-frame { max-width: 30rem; aspect-ratio: 4 / 3; }
}

/* Mobile navigation: below 900px the nav becomes a panel under the header. */
@media (max-width: 900px) {
  .brand img { height: 60px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 44px; padding: 0 var(--space-4);
    border: 1.5px solid var(--line); border-radius: var(--radius-btn);
    background: var(--paper); color: var(--pine-700);
    font-family: var(--font-display); font-weight: 500; font-size: 1rem; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .site-header > .wrap { flex-wrap: wrap; }
  .site-nav {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-4);
    border-top: var(--rule); padding-block: var(--space-4) var(--space-2);
  }
  .js .site-nav:not(.open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: var(--rule-dash); }
  .nav-link { padding-block: var(--space-3); border-bottom: 0; font-size: 1.0625rem; }
  .nav-link:hover, .nav-link[aria-current="page"] { border-bottom: 0; }
  .submenu-toggle { width: 44px; height: 44px; }
  .submenu {
    position: static; width: 100%; flex-basis: 100%; box-shadow: none; border: 0; border-radius: 0;
    grid-template-columns: minmax(0, 1fr); padding: 0 0 var(--space-4); gap: var(--space-4);
  }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 760px) {
  .svc-grid, .panel-pair, .form-grid, .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .partners .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .partners p { max-width: none; }
  .emergency { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); gap: var(--space-3); }
  .ring { width: 48px; height: 48px; }
  .hero { padding-block: var(--space-6) var(--space-7); }
  .section { padding-block: var(--space-7); }
  .badge { position: static; margin-top: var(--space-4); max-width: none; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { gap: var(--space-5); }
}
@media (max-width: 520px) {
  .steps, .steps.cols-5, .steps.cols-6 { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .utility .hours { display: none; }
  .contact-card { padding: var(--space-5); }
  .contact-card dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-card dd { margin-bottom: var(--space-3); }
  .btn-row .btn { flex: 1 1 100%; }
}

@media print {
  .utility, .site-nav, .nav-toggle, .cta-band, .site-footer .foot-top { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* ==========================================================================
   Service pages (Phase 2b)
   ========================================================================== */
.svc-hero { background: var(--mint-50); border-bottom: var(--rule); }
.svc-hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-7); align-items: center; padding-block: var(--space-6) var(--space-7);
}
.svc-hero-copy { display: grid; gap: var(--space-4); align-content: start; }
.svc-hero-copy .btn-row { margin-top: var(--space-2); }
.group-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--leaf-600);
}
.group-label svg { width: 22px; height: 22px; }
.svc-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-panel); overflow: hidden; background: var(--mint-100); max-width: 100%; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }

.em-card {
  background: var(--pine-700); color: #E3EEDD; border-radius: var(--radius-panel);
  padding: var(--space-6); display: grid; gap: var(--space-3); justify-items: start;
  border-top: 6px solid var(--amber-500);
}
.em-label { font-family: var(--font-display); font-weight: 500; color: var(--leaf-300); }
.em-number {
  font-family: var(--font-display); font-weight: 700; color: var(--paper);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.01em; line-height: 1.05;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.em-number:hover { color: var(--paper); text-decoration: underline; }
.em-card .btn { margin-top: var(--space-2); }

.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-8); align-items: start; }
.svc-body .prose { max-width: 44rem; }
.svc-aside { display: grid; gap: var(--space-5); position: sticky; top: var(--space-5); }
.quote-card {
  border: var(--rule); border-radius: var(--radius-panel); padding: var(--space-5);
  display: grid; gap: var(--space-3); background: var(--paper);
  box-shadow: 0 14px 36px -24px rgba(20, 61, 36, .45);
}
.quote-card p { color: var(--ink-soft); font-size: .9688rem; }
.quote-card dl { margin: var(--space-2) 0 0; display: grid; gap: var(--space-3); border-top: var(--rule-dash); padding-top: var(--space-3); }
.quote-card dt { font-size: .8438rem; font-weight: 600; color: var(--leaf-600); }
.quote-card dd { margin: 2px 0 0; font-size: .9375rem; }
.quote-card .big-num { font-size: 1.375rem; }
.related { border-top: 2px solid var(--pine-700); padding-top: var(--space-3); }
.related h2 { font-size: 1rem; margin-bottom: var(--space-2); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: var(--rule-dash); }
.related a { display: block; padding: var(--space-2) 0; text-decoration: none; color: var(--ink); font-size: .9375rem; }
.related a:hover { color: var(--pine-700); text-decoration: underline; }
.related a[aria-current="page"] { color: var(--pine-700); font-weight: 600; }

.safety {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start;
  background: var(--amber-100); border: 1.5px dashed var(--amber-500); border-radius: var(--radius-panel);
  padding: var(--space-5);
}
.safety .ring { width: 44px; height: 44px; }
.safety .ring svg { width: 20px; height: 20px; }
.safety ul { margin: 0; }
.wrap.narrow { max-width: calc(52rem + 32px); }

@media (max-width: 960px) {
  .svc-hero .wrap, .svc-body { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .svc-photo { max-width: 34rem; }
  .svc-aside { position: static; }
}

/* ==========================================================================
   Legal pages and 404 (Phase 2c)
   ========================================================================== */
.legal-body .prose { gap: var(--space-5); }
.legal-section { display: grid; gap: var(--space-4); scroll-margin-top: var(--space-5); }
.legal-section + .legal-section { border-top: var(--rule-dash); padding-top: var(--space-5); }
.legal-section h2 { font-size: var(--step-2); }
.legal-section h3 { margin-top: var(--space-2); }
.updated { font-size: var(--step--1); color: var(--ink-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 34rem); overflow-y: auto; }
.toc li { border-bottom: var(--rule-dash); }
.toc a { display: block; padding: var(--space-2) 0; font-size: .9063rem; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--pine-700); text-decoration: underline; }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--space-7); align-items: start; }
@media (max-width: 960px) {
  .legal-body .svc-aside { order: -1; }
  .legal-body .quote-card { display: none; }
  .toc ol { max-height: 16rem; }
  .nf-grid { grid-template-columns: minmax(0, 1fr); }
}

