/* ==========================================================================
   Oakstead Garage Doors: site styles
   1. Tokens  2. Base  3. Tone system  4. Layout  5. Header + mega menu
   6. Shared components  7. Home  8. Service page compositions  9. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand palette (fixed by the client) */
  --forest: #173d32;
  --forest-deep: #102d25;
  --ivory: #f4f0e7;
  --copper: #b87345;
  --charcoal: #252525;
  --white: #ffffff;
  --sage: #e5eae3;
  --beige: #d8d0c3;

  /* Text tints derived for contrast (WCAG AA on their grounds) */
  --muted-light: #50544e;
  --muted-dark: #c6d1ca;
  --copper-text: #8a5130;

  /* Tone variables: components read these, so a dark section can never
     end up with dark text. Dark tones redefine them below. */
  --fg: var(--charcoal);
  --heading: var(--forest-deep);
  --muted: var(--muted-light);
  --line: var(--beige);
  --surface: var(--white);
  --accent-text: var(--copper-text);
  --section-bg: var(--ivory);

  --serif: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.375rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.875rem, 1.3rem + 1.7vw, 2.875rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 2.8vw, 4.25rem);
  --fs-hero: clamp(2.25rem, 1.45rem + 2.1vw, 3.5rem);

  --section: clamp(88px, 9vw, 144px);
  --section-sm: clamp(56px, 6vw, 88px);
  --head-gap: clamp(40px, 4.5vw, 72px);
  --gap: clamp(24px, 3vw, 40px);
  --gap-lg: clamp(40px, 6vw, 112px);

  --wrap: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --header-h: 80px;
  --radius: 2px;
  --shadow: 0 30px 60px -30px rgba(16, 45, 37, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--ivory); color: var(--fg); font: 400 var(--fs-base)/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--copper); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--heading); text-wrap: balance; }
h1, h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.032em; }
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3, .h3 { font: 600 var(--fs-h3)/1.3 var(--sans); letter-spacing: -0.012em; }
h2.h3 { font: 600 var(--fs-lg)/1.3 var(--sans); }
h4 { font: 600 var(--fs-base)/1.4 var(--sans); }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
::selection { background: var(--forest); color: var(--ivory); }

.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.fineprint { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--gap); max-width: 46rem; }
.prose { max-width: 40rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.prose ul { padding-left: 1.1em; margin-bottom: 1em; }
.prose li + li { margin-top: 0.4em; }
.hero-kicker { font: 600 var(--fs-sm)/1.3 var(--sans); color: var(--accent-text); margin-bottom: 18px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--forest); color: var(--ivory); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* 3. Tone system ----------------------------------------------------------- */
.tone-white { background: var(--white); --section-bg: var(--white); }
.tone-sage { background: var(--sage); --surface: var(--white); --line: #cbd3c8; --section-bg: var(--sage); }
.tone-forest, .tone-deep {
  background: var(--forest);
  --fg: var(--ivory);
  --heading: var(--ivory);
  --muted: var(--muted-dark);
  --line: rgba(244, 240, 231, 0.16);
  --surface: rgba(244, 240, 231, 0.05);
  --accent-text: #e3b591;
  --section-bg: var(--forest);
  color: var(--fg);
}
.tone-deep { background: var(--forest-deep); --section-bg: var(--forest-deep); }

/* 4. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: var(--section-sm); }
/* Two adjacent sections on the same ground share one gap instead of two. */
.section:not([class*='tone-']) + .section:not([class*='tone-']),
.tone-white + .tone-white, .tone-sage + .tone-sage { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px var(--gap-lg); align-items: end; margin-bottom: var(--head-gap); }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-lg); align-items: center; }
.split-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-top { align-items: start; }
.rounded { border-radius: var(--radius); }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ratio-3-2 { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* 5. Header + mega menu ---------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ivory); border-bottom: 1px solid var(--beige); transition: box-shadow 0.2s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(16, 45, 37, 0.5); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 42px; height: 36px; color: var(--forest); }
.brand-mark .slat { fill: var(--copper); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 800 1.375rem/1 var(--sans); letter-spacing: 0.01em; text-transform: uppercase; color: var(--forest); }
.brand-sub { font: 600 0.6rem/1 var(--sans); letter-spacing: 0.36em; text-transform: uppercase; color: var(--charcoal); margin-top: 6px; }
.brand-light .brand-mark, .brand-light .brand-name { color: var(--ivory); }
.brand-light .brand-sub { color: var(--muted-dark); }

.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; }
.nav-trigger, .nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: var(--header-h); padding: 0 14px; font: 500 var(--fs-sm)/1 var(--sans); color: var(--charcoal); white-space: nowrap; background: none; border: 0; cursor: pointer; text-decoration: none; }
.nav-trigger::after, .nav-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease); }
.nav-trigger:hover::after, .nav-link:hover::after, .nav-item.is-open .nav-trigger::after, .nav-trigger.is-current::after, .nav-link.is-current::after { transform: scaleX(1); }
.chev { width: 10px; height: 7px; opacity: 0.7; transition: transform 0.2s var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-sm)/1 var(--sans); color: var(--forest); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--copper); }
.header-cta { min-height: 46px; white-space: nowrap; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--beige); box-shadow: 0 40px 70px -40px rgba(16, 45, 37, 0.45); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s; }
.nav-item.is-open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; gap: 56px; padding-block: 48px 40px; }
.mega-cols-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.mega-cols-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr); }
.mega-heading { font: 600 var(--fs-xs)/1.3 var(--sans); color: var(--copper-text); padding-bottom: 14px; margin: 0 0 8px; border-bottom: 1px solid var(--beige); }
.mega-col ul { list-style: none; }
.mega-cols-1 .mega-col ul { columns: 2; column-gap: 40px; }
.mega-col li { break-inside: avoid; }
.mega-col a { display: block; padding: 9px 0; font: 400 var(--fs-base)/1.35 var(--sans); color: var(--charcoal); text-decoration: none; transition: color 0.15s, transform 0.15s var(--ease); }
.mega-col a:hover, .mega-col a:focus-visible, .mega-col a[aria-current='page'] { color: var(--forest); transform: translateX(4px); text-decoration: underline; text-decoration-color: var(--copper); }
.mega-feature { display: flex; flex-direction: column; align-self: start; background: var(--forest); color: var(--ivory); text-decoration: none; }
.mega-feature-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mega-feature-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.mega-feature-title { font: 600 1.5rem/1.15 var(--serif); color: var(--ivory); }
.mega-feature-text { font-size: var(--fs-sm); color: var(--muted-dark); }
.mega-feature-link { margin-top: 6px; font: 600 var(--fs-sm) var(--sans); color: var(--ivory); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 5px; }
.mega-feature:hover { color: var(--ivory); }
.mega-foot { display: flex; justify-content: space-between; gap: 24px; padding-block: 18px; border-top: 1px solid var(--sage); font-size: var(--fs-sm); color: var(--muted-light); }
.mega-foot a { font-weight: 600; color: var(--forest); }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 1px solid var(--forest); border-radius: var(--radius); background: transparent; color: var(--forest); font: 600 var(--fs-sm) var(--sans); cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s var(--ease), background 0.2s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--ivory); overflow-y: auto; overscroll-behavior: contain; }
.drawer[hidden] { display: none; }
.drawer-inner { padding: 12px var(--gutter) 64px; max-width: 640px; margin-inline: auto; }
.drawer-list { list-style: none; }
.drawer-list > li { border-bottom: 1px solid var(--beige); }
.drawer-link, .drawer-group summary { display: flex; justify-content: space-between; align-items: center; min-height: 60px; font: 600 1.375rem/1.2 var(--serif); color: var(--forest-deep); text-decoration: none; cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group[open] summary .chev { transform: rotate(180deg); }
.drawer-heading { font: 600 var(--fs-xs) var(--sans); color: var(--copper-text); margin: 12px 0 4px; }
.drawer-group ul { list-style: none; padding-bottom: 8px; }
.drawer-group ul a { display: flex; align-items: center; min-height: 44px; color: var(--charcoal); text-decoration: none; padding-left: 14px; border-left: 1px solid var(--beige); }
.drawer-group ul a[aria-current='page'] { border-left: 2px solid var(--copper); font-weight: 600; }
.drawer-overview { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; margin-bottom: 12px; }
.drawer-actions { display: grid; gap: 12px; margin-top: 32px; }
body.drawer-open { overflow: hidden; }

/* 6. Shared components ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font: 600 var(--fs-sm)/1 var(--sans); border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background-color 0.18s var(--ease), color 0.18s, border-color 0.18s; }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-deep); color: var(--white); }
.btn-copper { background: var(--copper); color: var(--forest-deep); }
.btn-copper:hover { background: #c7845a; color: var(--forest-deep); }
.btn-light { background: var(--ivory); color: var(--forest-deep); }
.btn-light:hover { background: var(--white); color: var(--forest-deep); }
.btn-outline { border-color: currentColor; color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.btn-ghost-light { border-color: rgba(244, 240, 231, 0.5); color: var(--ivory); background: transparent; }
.btn-ghost-light:hover { border-color: var(--ivory); color: var(--white); background: rgba(244, 240, 231, 0.08); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.text-link { display: inline-block; font-weight: 600; color: var(--heading); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 7px; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link-light { color: var(--ivory); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px 0; font-size: var(--fs-xs); color: var(--muted-light); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: #b9b0a2; }
.crumbs a { color: var(--muted-light); }

/* Row list: the main service-index pattern (instead of card grids) */
.row-list { list-style: none; border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.row-list a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 24px; gap: 24px; align-items: baseline; padding: 26px 0; color: var(--fg); text-decoration: none; }
.row-title { font: 600 1.5rem/1.2 var(--serif); color: var(--heading); transition: color 0.2s; }
.row-desc { color: var(--muted); font-size: var(--fs-sm); }
.row-arrow { width: 20px; height: 20px; color: var(--copper); transform: translateX(-6px); opacity: 0; transition: transform 0.2s var(--ease), opacity 0.2s; align-self: center; }
.row-list a:hover .row-arrow, .row-list a:focus-visible .row-arrow { transform: none; opacity: 1; }
.row-list a:hover .row-title { color: var(--accent-text); }

/* Signs: two-column annotated list */
.signs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--line); }
.signs li { padding: 22px 0 22px 28px; border-bottom: 1px solid var(--line); position: relative; }
.signs li::before { content: ''; position: absolute; left: 0; top: 33px; width: 12px; height: 2px; background: var(--copper); }
.signs strong { display: block; font: 600 var(--fs-base)/1.35 var(--sans); color: var(--heading); margin-bottom: 4px; }
.signs span { color: var(--muted); font-size: var(--fs-sm); }

/* Ticks */
.ticks, .check-list { list-style: none; display: grid; gap: 12px; }
.check-list { margin: 28px 0; }
.ticks li, .check-list li { position: relative; padding-left: 30px; color: var(--fg); }
.ticks li { font-size: var(--fs-sm); }
.ticks li::before, .check-list li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 13px; height: 7px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }

/* Process: horizontal rail with numbered stops (real sequences only) */
.steps { list-style: none; display: grid; gap: var(--gap); counter-reset: step; position: relative; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.step { counter-increment: step; position: relative; padding-top: 76px; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--ivory); font: 600 1.25rem/1 var(--serif); box-shadow: 0 0 0 10px var(--section-bg); }
:is(.tone-forest, .tone-deep) .step::before { background: var(--copper); color: var(--forest-deep); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Timeline: vertical sequence */
.timeline { list-style: none; position: relative; display: grid; gap: 30px; padding-left: 64px; counter-reset: tl; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; counter-increment: tl; }
.timeline li::before { content: counter(tl); position: absolute; left: -64px; top: -6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--ivory); font: 600 1.0625rem/1 var(--serif); }
:is(.tone-forest, .tone-deep) .timeline li::before { background: var(--copper); color: var(--forest-deep); }
.timeline h3 { margin-bottom: 4px; font-size: var(--fs-base); }
.timeline p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-top: 2px solid var(--forest); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 680px; }
.data-table caption { caption-side: bottom; text-align: left; padding: 16px 24px; font-size: var(--fs-xs); color: var(--muted); }
.data-table th, .data-table td { padding: 20px 24px 20px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table thead th { font: 600 var(--fs-xs)/1.3 var(--sans); color: var(--accent-text); padding-top: 18px; padding-bottom: 18px; }
.data-table tbody th { font: 600 var(--fs-base)/1.4 var(--sans); color: var(--heading); width: 30%; }
.data-table td { color: var(--muted); }
.data-table a { font-weight: 600; white-space: nowrap; }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); border-top: 2px solid var(--forest); }
.compare > * { padding: 36px 32px 36px 0; }
.compare > * + * { padding-left: 32px; border-left: 1px solid var(--line); }
.compare h3 { font: 600 1.75rem/1.15 var(--serif); margin-bottom: 12px; }
.compare p { color: var(--muted); }
.compare dl { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: var(--fs-sm); }
.compare dt { font-weight: 600; color: var(--heading); }
.compare dd { margin: 0; color: var(--muted); }
.compare .diagram { margin-bottom: 24px; }
.compare-head { background: var(--forest); --heading: var(--ivory); --fg: var(--ivory); --muted: var(--muted-dark); --line: rgba(244, 240, 231, 0.16); color: var(--fg); padding-left: 32px !important; }
.tone-forest .compare, .tone-deep .compare { border-top-color: var(--copper); }

/* Feature columns */
.upgrade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.upgrade-grid > div { padding: 32px 28px 0 0; }
.upgrade-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.upgrade-grid h3 { margin-bottom: 10px; }
.upgrade-grid p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Checklists */
.checklist-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--forest); }
.checklist-group { padding: 32px 24px 8px 0; }
.checklist-group + .checklist-group { padding-left: 24px; border-left: 1px solid var(--line); }
.checklist-group h3 { margin-bottom: 18px; }

/* Callout */
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: 36px 40px; background: var(--white); border-left: 3px solid var(--copper); }
.callout-icon { width: 44px; height: 44px; color: var(--copper); }
.callout h2 { font: 600 var(--fs-lg)/1.3 var(--sans); margin-bottom: 8px; }
.callout p { margin: 0; color: var(--muted); max-width: 62rem; }
.callout p + p { margin-top: 12px; }
.callout-plain { border-left-color: var(--forest); }
.callout-plain .callout-icon { color: var(--forest); }

/* Parts list */
.part-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-lg); }
.part { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.part h3 { margin-bottom: 10px; }
.part p { color: var(--muted); margin: 0; }

/* Brand strip */
.brand-strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-strip li { padding: 28px 12px; text-align: center; font: 600 1.5rem/1 var(--serif); color: var(--heading); }
.brand-strip li + li { border-left: 1px solid var(--line); }

/* Diagrams */
.diagram { width: 100%; height: auto; overflow: visible; }
.dg-wall { fill: var(--beige); }
.dg-door { fill: var(--sage); stroke: #c3cdc2; }
.dg-door-line { stroke: #b7c2b6; stroke-width: 2; fill: none; }
.dg-metal { stroke: #7d8a83; fill: none; stroke-linecap: round; }
.dg-part { fill: var(--white); stroke: var(--forest); stroke-width: 2.5; }
.dg-groove { fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dg-spring { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linejoin: round; }
.dg-cone { fill: var(--forest); }
.dg-cable { stroke: var(--forest); stroke-width: 2; fill: none; }
.dg-safety { stroke: var(--forest); stroke-width: 1.5; stroke-dasharray: 6 4; fill: none; }
.dg-belt { fill: none; stroke: var(--forest); stroke-width: 4; }
.dg-chain { fill: none; stroke: var(--forest); stroke-width: 4; stroke-dasharray: 5 3; }
.dg-beam { stroke: var(--copper); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.dg-strut { fill: var(--forest); opacity: 0.85; }
.dg-seal { fill: var(--charcoal); }
.dg-leader { stroke: var(--muted-light); stroke-width: 1; fill: none; }
.dg-label { font: 600 13px/1 var(--sans); fill: var(--charcoal); }
.diagram-sm .dg-label { font-size: 14px; }
.dg-door-band { fill: none; stroke: #c3cdc2; stroke-width: 16; stroke-linejoin: round; }
.dg-door-joints { fill: none; stroke: var(--white); stroke-width: 16; stroke-dasharray: 2 46; }
.on-dark .dg-wall { fill: rgba(244, 240, 231, 0.18); }
.on-dark .dg-door { fill: rgba(244, 240, 231, 0.06); stroke: rgba(244, 240, 231, 0.25); }
.on-dark .dg-door-line { stroke: rgba(244, 240, 231, 0.18); }
.on-dark .dg-metal { stroke: #9fb0a7; }
.on-dark .dg-part { fill: var(--forest-deep); stroke: var(--ivory); }
.on-dark .dg-groove, .on-dark .dg-cable, .on-dark .dg-safety, .on-dark .dg-belt, .on-dark .dg-chain { stroke: var(--ivory); }
.on-dark .dg-cone, .on-dark .dg-strut { fill: var(--ivory); }
.on-dark .dg-leader { stroke: rgba(244, 240, 231, 0.55); }
.on-dark .dg-label { fill: var(--ivory); }
.diagram-figure { margin: 0; }
.diagram-figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; }
.balance-figure { background: var(--white); padding: 32px; }

/* Door style elevations */
.door-style { width: 100%; height: auto; }
.ds-opening { fill: var(--beige); }
.ds-slab { fill: #f8f6f1; stroke: #b9b0a2; stroke-width: 1.5; }
.ds-groove { stroke: #a99f90; stroke-width: 2; fill: none; }
.ds-groove-fine { stroke: #cfc7b9; stroke-width: 1; fill: none; }
.ds-panel { fill: #f1ede5; stroke: #bdb3a4; stroke-width: 1.5; }
.ds-frame { fill: #2f3532; }
.ds-glass { fill: #9fb3ad; opacity: 0.85; }
.door-style-full-view .ds-glass { fill: #b9cbc5; }
.ds-wood { fill: #6b4a33; }
.ds-board { stroke: #5a3d2a; stroke-width: 1.5; }
.door-style-carriage-house .ds-groove { stroke: #4b3323; }
.door-style-carriage-house .ds-groove-fine { stroke: #5a3d2a; }
.door-style-carriage-house .ds-glass { fill: #a9bdb7; }
.ds-strap { stroke: #252525; stroke-width: 5; stroke-linecap: round; }
.ds-handle { fill: #252525; }
.door-style-flush-panel .ds-slab { fill: #2c302e; stroke: #1d201f; }
.door-style-flush-panel .ds-groove { stroke: #151817; }
.door-style-flush-panel .ds-groove-fine { stroke: #3a3f3c; }
.ds-seal { fill: #252525; }

/* Coverage map */
.coverage-map { margin: 0; background: var(--white); padding: 28px; }
.coverage-map svg { width: 100%; height: auto; overflow: visible; }
.coverage-map figcaption { font-size: var(--fs-xs); color: var(--muted-light); margin-top: 12px; }
.map-road { fill: none; stroke: var(--beige); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.map-road-minor { stroke-width: 4; stroke-dasharray: 1 9; stroke: #c8bfb0; }
.map-shield { font: 700 11px var(--sans); fill: var(--muted-light); }
.map-dot { fill: var(--forest); stroke: var(--white); stroke-width: 2; }
.map-dot-lg { fill: var(--copper); }
.map-town { font: 600 13px var(--sans); fill: var(--forest-deep); }
.coverage-map a:hover .map-dot { fill: var(--copper); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-lg); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-head p { color: var(--muted); }
.faq-more { font-size: var(--fs-sm); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; font: 500 var(--fs-md)/1.4 var(--sans); color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--copper); transition: transform 0.2s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 64px 28px 0; color: var(--muted); max-width: 48rem; }
.faq-answer ul { padding-left: 1.2em; }

/* Related services */
.related { padding-block: var(--section-sm); border-top: 1px solid var(--beige); }
.related h2 { margin-bottom: 28px; }
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--beige); }
.related-list li + li { border-left: 1px solid var(--beige); }
.related-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px 28px 28px 0; text-decoration: none; color: var(--charcoal); }
.related-list li + li a { padding-left: 28px; }
.related-title { font: 600 1.375rem/1.2 var(--serif); color: var(--forest-deep); }
.related-desc { font-size: var(--fs-sm); color: var(--muted-light); }
.related-list a:hover .related-title { color: var(--copper-text); }

/* Area strip */
.area-line { background: var(--sage); --line: #cbd3c8; }
.area-line-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: center; }
.area-line p { color: var(--muted); margin: 0; }
.town-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.town-list a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; color: var(--forest-deep); text-decoration: underline; text-decoration-color: rgba(23, 61, 50, 0.25); text-underline-offset: 5px; }
.town-list a:hover { text-decoration-color: var(--copper); }

/* Closing CTA */
.closing { background: var(--forest); padding-block: var(--section); --fg: var(--ivory); --heading: var(--ivory); --muted: var(--muted-dark); --line: rgba(244, 240, 231, 0.16); color: var(--fg); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: start; }
.closing-copy > p { color: var(--muted); font-size: var(--fs-md); max-width: 30rem; }
.closing-points { list-style: none; margin: 36px 0; border-top: 1px solid var(--line); }
.closing-points li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ivory); }
.closing-points li::before { content: ''; position: absolute; left: 0; top: 28px; width: 12px; height: 2px; background: var(--copper); }
.closing-call { font: 600 1.75rem/1.2 var(--serif); }
.closing-call span { display: block; font: 400 var(--fs-sm) var(--sans); color: var(--muted-dark); margin-bottom: 6px; }
.closing-call a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--copper); }
.closing-form { background: var(--ivory); color: var(--charcoal); padding: clamp(28px, 4vw, 56px); --fg: var(--charcoal); --heading: var(--forest-deep); --muted: var(--muted-light); --line: var(--beige); }

/* Forms */
.quote-form { position: relative; }
.form-intro { margin-bottom: 24px; }
.form-title { font: 600 2rem/1.1 var(--serif); }
.form-intro p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font: 600 var(--fs-sm)/1.3 var(--sans); color: var(--forest-deep); padding: 0; }
.optional { font-weight: 400; color: var(--muted-light); margin-left: 4px; }
.field input:not([type='radio']):not([type='checkbox']), .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 var(--fs-base)/1.4 var(--sans); color: var(--charcoal); background: var(--white); border: 1px solid #cfc6b7; border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 116px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23173D32' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 44px; }
.field :is(input, select, textarea):hover { border-color: #b3a894; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23, 61, 50, 0.16); }
.field.has-error :is(input, select, textarea) { border-color: #a3341f; }
.field-error { margin: 0; font-size: var(--fs-xs); color: #a3341f; font-weight: 600; }
.field-error:empty { display: none; }
.choice-row { flex-direction: row; flex-wrap: wrap; gap: 8px 10px; }
.choice-row legend { width: 100%; margin-bottom: 8px; }
.field .choice { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; background: var(--white); border: 1px solid #cfc6b7; border-radius: var(--radius); cursor: pointer; font-weight: 500; color: var(--charcoal); }
.field .choice input { accent-color: var(--forest); width: 18px; height: 18px; margin: 0; }
.field .choice:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.field .choice:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.field .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted-light); font-size: var(--fs-sm); }
.field .consent input { accent-color: var(--forest); width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.form-alt { margin: 0; font-size: var(--fs-sm); color: var(--muted-light); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 24px; padding: 16px 20px; font-weight: 500; }
.form-status.is-success { background: var(--sage); color: var(--forest-deep); border-left: 3px solid var(--forest); }
.form-status.is-error { background: #f7e6df; color: #6e2414; border-left: 3px solid #a3341f; }
.form-status a { color: inherit; }
.btn[data-submit][aria-busy='true'] { opacity: 0.75; cursor: progress; }
.btn[data-submit][aria-busy='true']::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote-form.is-sent .form-grid, .quote-form.is-sent .form-actions { display: none; }
.form-panel { background: var(--white); padding: clamp(28px, 4vw, 56px); }

/* Footer */
.site-footer { background: var(--forest-deep); color: var(--muted-dark); padding-top: clamp(72px, 8vw, 112px); font-size: var(--fs-sm); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 40px; padding-bottom: 64px; }
.footer-brand p { margin-top: 24px; max-width: 22rem; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: var(--ivory); font-weight: 600; text-decoration: none; }
.footer-contact a:first-child { font: 600 1.5rem/1.2 var(--serif); }
.footer-attrs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ivory); font-size: var(--fs-xs); }
.footer-attrs span { display: inline-flex; align-items: center; gap: 8px; }
.footer-attrs span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--copper); }
.footer-heading { font: 600 var(--fs-xs)/1.3 var(--sans); color: #e3b591; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { color: var(--muted-dark); text-decoration: none; display: inline-block; padding: 5px 0; }
.footer-col a:hover, .footer-towns a:hover { color: var(--white); }
.footer-county { color: var(--ivory); font-weight: 600; margin: 14px 0 4px; font-size: var(--fs-xs); }
.footer-areas .footer-heading + .footer-county { margin-top: 0; }
.footer-towns { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0; }
.footer-towns a { color: var(--muted-dark); text-decoration: none; padding: 3px 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 28px; border-top: 1px solid rgba(244, 240, 231, 0.12); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; display: flex; gap: 24px; }
.footer-bottom a { color: var(--muted-dark); }
.mobile-bar { display: none; }

/* 7. Home ------------------------------------------------------------------ */
.hero-home { position: relative; isolation: isolate; color: var(--ivory); background: var(--forest-deep); }
.hero-home-media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-home-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-home-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 45, 37, 0.55) 0%, rgba(16, 45, 37, 0.15) 55%, rgba(16, 45, 37, 0) 75%), linear-gradient(180deg, rgba(16, 45, 37, 0.1) 0%, rgba(16, 45, 37, 0) 30%, rgba(16, 45, 37, 0.55) 68%, rgba(16, 45, 37, 0.9) 100%); }
.hero-home-inner { min-height: clamp(640px, calc(100svh - var(--header-h)), 900px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; }
.hero-home h1 { color: var(--ivory); max-width: 17ch; font-size: clamp(2.75rem, 1.4rem + 4.2vw, 5.5rem); line-height: 1.02; margin-bottom: 24px; }
.hero-home .lead { color: rgba(244, 240, 231, 0.9); max-width: 36rem; margin-bottom: 48px; }
.door-reveal { position: absolute; inset: 0; display: flex; flex-direction: column; animation: door-lift 1.5s 0.2s var(--ease) forwards; z-index: 1; pointer-events: none; }
.door-reveal span { flex: 1; background: linear-gradient(180deg, #ece6da 0%, var(--ivory) 30%, #e9e2d4 100%); border-bottom: 2px solid #d3cabb; box-shadow: inset 0 -10px 18px -14px rgba(16, 45, 37, 0.35); }
.door-reveal .door-seal { flex: 0 0 10px; background: var(--copper); border: 0; box-shadow: none; }
@keyframes door-lift { to { transform: translateY(-101%); visibility: hidden; } }

/* Quick quote bar on the hero's bottom edge */
.quick-quote { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) auto; background: var(--ivory); color: var(--charcoal); box-shadow: var(--shadow); transform: translateY(50%); }
.qq-field { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 28px; border-right: 1px solid var(--beige); min-width: 0; }
.qq-field label { font: 600 var(--fs-xs)/1.2 var(--sans); color: var(--copper-text); }
.qq-field select, .qq-field input { border: 0; background: transparent; font: 500 var(--fs-md)/1.3 var(--sans); color: var(--forest-deep); padding: 4px 0; min-height: 36px; appearance: none; width: 100%; border-radius: 0; }
.qq-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23173D32' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 12px; padding-right: 24px; }
.qq-field :is(select, input):focus { outline: none; }
.qq-field:focus-within { box-shadow: inset 0 -2px 0 var(--copper); }
.quick-quote .btn { height: 100%; padding: 26px 40px; border-radius: 0; font-size: var(--fs-base); }

.intro { padding-top: calc(var(--section) + 48px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: end; }
.intro h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.4rem); max-width: 20ch; margin: 0; }
.intro p { color: var(--muted); font-size: var(--fs-md); }
.intro-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--beige); margin-top: var(--head-gap); }
.intro-facts li { display: flex; align-items: center; gap: 14px; padding: 24px 24px 24px 0; font-weight: 600; color: var(--forest-deep); font-size: var(--fs-sm); }
.intro-facts li + li { padding-left: 24px; border-left: 1px solid var(--beige); }
.slats { width: 18px; height: 13px; fill: var(--copper); flex-shrink: 0; }

.repairs-home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: start; }
.repairs-media { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.repairs-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.repairs-media figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 12px; }
.repairs-copy > p { color: var(--muted); font-size: var(--fs-md); max-width: 38rem; margin-bottom: 40px; }

.symptom-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.symptom-list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.symptom-list a { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; min-height: 200px; padding: 28px; background: var(--surface); text-decoration: none; color: var(--fg); transition: background 0.2s; }
.symptom-text { font: 600 1.3125rem/1.3 var(--serif); color: var(--heading); }
.symptom-hint { display: flex; align-items: center; gap: 10px; font: 600 var(--fs-xs)/1.3 var(--sans); color: var(--copper-text); }
.symptom-hint::before { content: ''; width: 16px; height: 2px; background: var(--copper); transition: width 0.2s var(--ease); }
.symptom-list a:hover { background: var(--ivory); }
.symptom-list a:hover .symptom-hint::before { width: 28px; }
.symptoms-note { margin: 28px 0 0; color: var(--muted); }

.styles-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.style-tile { display: block; text-decoration: none; color: var(--fg); }
.style-tile-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--forest-deep); }
.style-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.style-tile-media.is-drawn { display: grid; place-items: center; padding: 24px; background: rgba(244, 240, 231, 0.06); }
.style-tile:hover .style-tile-media img { transform: scale(1.04); }
.style-tile-title { display: block; font: 600 1.5rem/1.2 var(--serif); color: var(--heading); margin: 20px 0 6px; }
.style-tile-text { display: block; font-size: var(--fs-sm); color: var(--muted); }
.style-tile:nth-child(2) { margin-top: 72px; }
.showcase-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 64px; }

.openers-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: center; }
.openers-media { margin: 0; }
.openers-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.openers-copy .opener-rows { margin-top: 32px; }
.openers-copy > p { color: var(--muted); }
.opener-rows { list-style: none; border-top: 1px solid var(--line); }
.opener-rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.opener-rows h3 { margin: 0; font-size: var(--fs-base); }
.opener-rows p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

.commercial-feature { background: var(--ivory); padding-bottom: var(--section); }
.commercial-media img { width: 100%; height: clamp(420px, 52vw, 720px); object-fit: cover; }
.commercial-panel { position: relative; margin: -240px var(--edge) 0 auto; max-width: 620px; background: var(--forest); padding: clamp(32px, 4.5vw, 64px); --fg: var(--ivory); --heading: var(--ivory); --muted: var(--muted-dark); color: var(--fg); }
.commercial-panel p { color: var(--muted); }

.areas-home-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: center; }
.areas-home-grid h1 { max-width: 20ch; }
.areas-home-grid > div > p { color: var(--muted); font-size: var(--fs-md); }
.county-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0; border-top: 1px solid var(--line); padding-top: 24px; }
.county-cols h3 { font: 600 var(--fs-xs)/1.3 var(--sans); color: var(--accent-text); margin-bottom: 12px; }
.county-cols ul { list-style: none; }
.county-cols li { padding: 3px 0; }
.county-cols a { color: var(--heading); text-decoration: none; }
.county-cols a:hover { text-decoration: underline; text-decoration-color: var(--copper); }

/* 8. Service page compositions ----------------------------------------------- */
.page-hero { position: relative; }
.simple-hero { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 5vw, 80px); }
.simple-hero h1 { max-width: 18ch; }

/* Split hero: copy one side, full-height photo the other */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, 76vh, 760px); }
.hero-split-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(32px, 5vw, 88px) 72px var(--edge); }
.hero-split-copy h1 { font-size: var(--fs-hero); max-width: 18ch; }
.hero-split-media { position: relative; min-height: 360px; }
.hero-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media-left .hero-split-copy { padding: 72px var(--edge) 72px clamp(32px, 5vw, 88px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.hero-meta strong { color: var(--heading); display: block; }

/* Diagram hero (springs, commercial repair) */
.diagram-hero { padding-block: clamp(64px, 8vw, 128px); }
.diagram-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-lg); align-items: center; }
.diagram-hero h1 { font-size: var(--fs-hero); max-width: 18ch; }
.diagram-hero figure { margin: 0; padding: 40px 32px; border: 1px solid var(--line); }

/* Overlap hero (opener installation) */
.overlap-hero-media img { width: 100%; height: clamp(380px, 52vw, 660px); object-fit: cover; }
.overlap-hero-card { position: relative; margin-top: -200px; max-width: 780px; background: var(--ivory); padding: clamp(32px, 4.5vw, 64px) clamp(32px, 4.5vw, 64px) 0 0; }
.overlap-hero-card h1 { font-size: var(--fs-hero); max-width: 16ch; }

/* Architectural hero (new installation) */
.arch-hero-media img { width: 100%; height: clamp(380px, 56vw, 740px); object-fit: cover; }
.arch-hero-copy { padding-block: clamp(48px, 5vw, 72px) var(--section-sm); }
.arch-hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: end; }
.arch-hero-row h1 { margin: 0; max-width: 16ch; font-size: var(--fs-hero); }
.arch-hero-row .btn-row { margin-top: 24px; }

/* Bleed hero (commercial) */
.bleed-hero { position: relative; isolation: isolate; min-height: clamp(560px, 82vh, 820px); display: flex; align-items: flex-end; }
.bleed-hero-media { position: absolute; inset: 0; z-index: -1; }
.bleed-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.bleed-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 45, 37, 0.35) 0%, rgba(16, 45, 37, 0.7) 55%, rgba(16, 45, 37, 0.95) 100%); }
.bleed-hero-copy { padding-block: 160px 88px; }
.bleed-hero-copy h1 { max-width: 15ch; }

/* Checklist hero (maintenance) */
.checklist-hero { padding-block: clamp(56px, 6vw, 96px); }
.checklist-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-lg); align-items: center; }
.checklist-hero h1 { font-size: var(--fs-hero); max-width: 18ch; }
.checklist-hero-media { position: relative; }
.checklist-card { position: absolute; left: -48px; bottom: 40px; background: var(--white); padding: 28px 32px; box-shadow: var(--shadow); min-width: 220px; border-top: 3px solid var(--copper); }
.checklist-card-title { font: 600 1.375rem/1.2 var(--serif); color: var(--forest-deep); margin: 0 0 16px; }

/* Duo hero (replacement) */
.duo-hero { padding-block: clamp(48px, 5vw, 80px) var(--section-sm); }
.duo-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: center; }
.duo-hero-copy h1 { font-size: var(--fs-hero); max-width: 18ch; }
.duo { margin: 0; }
.duo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.duo figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 12px; }

/* Emergency */
.emergency-hero { padding-block: clamp(64px, 8vw, 128px); }
.emergency-hero h1 { font-size: var(--fs-hero); max-width: 16ch; }
.emergency-steps { border-left: 1px solid var(--line); padding-left: clamp(32px, 4vw, 56px); }
.emergency-steps > h2 { margin-bottom: 28px; }

/* Commercial */
.audience-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--head-gap); border-top: 2px solid var(--forest); }
.audience-list li { padding: 28px 24px 0 0; }
.audience-list li + li { padding-left: 24px; border-left: 1px solid var(--beige); }
.audience-list h3 { margin-bottom: 8px; }
.audience-list p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.systems-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.systems-copy { padding: var(--section) clamp(32px, 5vw, 88px) var(--section) var(--edge); }
.systems-art { display: grid; place-items: center; padding: clamp(32px, 5vw, 80px); background: var(--forest-deep); }

/* Door styles hub */
.style-rows { display: grid; gap: clamp(72px, 8vw, 128px); }
.style-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.style-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.style-row:nth-child(even) .style-media { order: 2; }
.style-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.style-swatch { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 48px; background: var(--forest-deep); }
.style-copy h2 { font: 600 2.25rem/1.1 var(--serif); }
.style-copy p { color: var(--muted); }
.style-elevation { max-width: 160px; margin-bottom: 28px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.spec dt { font-weight: 600; color: var(--heading); }
.spec dd { margin: 0; color: var(--muted); }
.style-jump ul { list-style: none; border-top: 1px solid var(--line); }
.style-jump li { border-bottom: 1px solid var(--line); }
.style-jump a { display: flex; align-items: center; min-height: 56px; font: 600 1.375rem/1.2 var(--serif); color: var(--heading); text-decoration: none; }
.style-jump a:hover { color: var(--copper-text); }
.style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.style-card { display: block; text-decoration: none; color: var(--fg); }
.style-card img, .style-card-art { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.style-card-art { display: grid; place-items: center; padding: 24px; background: var(--forest-deep); }
.style-card > span:last-child { display: block; margin-top: 16px; font: 600 1.375rem/1.2 var(--serif); color: var(--heading); }

/* Services hub */
.service-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: var(--gap); align-items: start; padding-block: 48px; border-top: 1px solid var(--beige); }
.service-group h2 { font: 600 2rem/1.1 var(--serif); }
.service-group-copy p { color: var(--muted); }
.service-group-links { list-style: none; columns: 2; column-gap: 28px; }
.service-group-links li { break-inside: avoid; }
.service-group-links a { display: block; padding: 7px 0; color: var(--forest-deep); text-decoration: none; }
.service-group-links a:hover { text-decoration: underline; text-decoration-color: var(--copper); }

/* Areas page */
.county-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-lg); padding-block: 56px; border-top: 1px solid var(--beige); }
.county-block h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.county-towns-inline { color: var(--muted); font-size: var(--fs-sm); }
.town-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); border-top: 1px solid var(--beige); }
.town-entry { padding: 28px 0; border-bottom: 1px solid var(--beige); scroll-margin-top: calc(var(--header-h) + 24px); }
.town-entry:target h3 { color: var(--copper-text); }
.town-entry h3 { margin-bottom: 8px; }
.town-entry p { color: var(--muted); margin-bottom: 12px; font-size: var(--fs-sm); }
.town-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--fs-sm); margin: 0; }

/* About */
.about-hero { padding-block: clamp(64px, 8vw, 120px); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: center; }
.about-hero h1 { max-width: 16ch; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; background: var(--forest); padding: 20%; }
.about-mark svg { width: 100%; height: auto; color: var(--ivory); }
.about-mark .slat { fill: var(--copper); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.values > div { padding: 32px 28px 0 0; }
.values > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.values h3 { margin-bottom: 10px; }
.values p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.draft-note { padding: 16px 20px; background: var(--sage); border-left: 3px solid var(--copper); font-size: var(--fs-sm); color: var(--charcoal) !important; }

/* Contact + quote */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--forest); }
.contact-card { padding: 36px 32px 0 0; }
.contact-card + .contact-card { padding-left: 32px; border-left: 1px solid var(--beige); }
.contact-card h2 { font: 600 var(--fs-sm)/1.3 var(--sans); color: var(--copper-text); }
.contact-card p { color: var(--muted); }
.contact-big { font: 600 1.75rem/1.2 var(--serif); display: inline-block; margin-bottom: 12px; text-decoration: none; }
.contact-email { font-size: 1.25rem; word-break: break-word; }
.contact-sub { font: 600 var(--fs-xs) var(--sans); color: var(--copper-text); margin: 32px 0 12px; }
.quote-page h1 { font-size: var(--fs-hero); max-width: 16ch; }
.quote-aside .timeline { margin: 40px 0; }
.quote-call { font: 600 1.5rem/1.3 var(--serif); }

/* Legal */
.legal { max-width: 46rem; }
.legal h2 { font-size: 2rem; margin-top: 56px; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }

/* 9. Responsive ------------------------------------------------------------- */
@media (max-width: 1440px) { .header-phone span { display: none; } }
@media (max-width: 1280px) {
  .nav-trigger, .nav-link { padding: 0 10px; }
  .nav-trigger::after, .nav-link::after { left: 10px; right: 10px; }
  .header-phone { display: none; }
}
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-phone { display: inline-flex; }
  .header-phone span { display: inline; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand, .footer-areas { grid-column: 1 / -1; }
  .upgrade-grid, .values, .audience-list, .intro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upgrade-grid > div:nth-child(3), .values > div:nth-child(3), .audience-list li:nth-child(3), .intro-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .symptom-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .styles-showcase-grid, .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-tile:nth-child(even) { margin-top: 0; }
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .steps-5::before { display: none; }
  .service-group { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service-group-links { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --gap-lg: 40px; }
  .section-head, .split, .split-5-7, .split-7-5, .intro-grid, .repairs-home, .openers-grid, .areas-home-grid,
  .faq-grid, .closing-grid, .area-line-inner, .county-block, .style-row, .style-row:nth-child(even),
  .diagram-hero-grid, .arch-hero-row, .checklist-hero-grid, .about-hero-grid, .duo-hero-grid, .systems-band { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .style-row:nth-child(even) .style-media { order: 0; }
  .repairs-media, .faq-head { position: static; }
  .repairs-media img { aspect-ratio: 3 / 2; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split-media { order: -1; min-height: 340px; }
  .hero-split-copy, .hero-media-left .hero-split-copy { padding: 56px var(--gutter); }
  .systems-copy { padding: var(--section-sm) var(--gutter); }
  .steps-4, .steps-3, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .part-list, .signs { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare > *, .compare > * + * { padding: 32px 0; border-left: 0; }
  .compare > * + * { border-top: 1px solid var(--line); }
  .compare-head { padding: 32px !important; }
  .checklist-group, .checklist-group + .checklist-group { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .quick-quote { grid-template-columns: 1fr 1fr; transform: translateY(40px); }
  .quick-quote .btn { grid-column: 1 / -1; padding: 20px; }
  .qq-field:nth-child(2) { border-right: 0; }
  .commercial-panel { margin: -120px var(--gutter) 0; }
  .opener-rows li { grid-template-columns: 1fr; gap: 16px; }
  .checklist-card { left: 16px; }
  .emergency-steps { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card, .contact-card + .contact-card { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--beige); }
  .town-entries { grid-template-columns: 1fr; }
  .row-list a { grid-template-columns: 1fr 24px; gap: 8px 16px; }
  .row-desc { grid-column: 1; }
  .row-arrow { grid-row: 1; grid-column: 2; opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .header-cta, .header-phone { display: none; }
  .brand-mark { width: 36px; height: 31px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.3em; }
  .hero-home-inner { min-height: 600px; padding-top: 200px; }
  .hero-home-media::after { background: linear-gradient(180deg, rgba(16, 45, 37, 0.35) 0%, rgba(16, 45, 37, 0.6) 40%, rgba(16, 45, 37, 0.92) 100%); }
  .hero-home h1 { font-size: 2.5rem; }
  .quick-quote { grid-template-columns: 1fr; }
  .qq-field { border-right: 0; border-bottom: 1px solid var(--beige); }
  .intro-facts { grid-template-columns: 1fr; }
  .intro-facts li, .intro-facts li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--beige); }
  .symptom-list { grid-template-columns: 1fr; }
  .symptom-list a { min-height: 0; }
  .styles-showcase-grid, .style-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .style-tile-title { font-size: 1.25rem; }
  .steps-4, .steps-3, .steps-5 { grid-template-columns: 1fr; }
  .county-cols { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .upgrade-grid, .values, .audience-list { grid-template-columns: 1fr; }
  .upgrade-grid > div, .upgrade-grid > div + div, .values > div, .values > div + div, .audience-list li, .audience-list li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .brand-strip { grid-template-columns: 1fr 1fr; }
  .brand-strip li:nth-child(3) { border-left: 0; }
  .brand-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .callout { grid-template-columns: 1fr; padding: 28px; }
  .faq-answer { padding-right: 0; }
  .related-list li + li { border-left: 0; border-top: 1px solid var(--beige); }
  .related-list li + li a { padding-left: 0; }
  .service-group { grid-template-columns: 1fr; }
  .service-group-links { columns: 1; }
  .checklist-card { position: relative; left: auto; bottom: auto; margin: -32px 16px 0; }
  .overlap-hero-card { margin-top: -64px; padding: 32px 24px 0 0; }
  .diagram-hero figure { padding: 24px 12px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -8px 24px -12px rgba(16, 45, 37, 0.4); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
  .mobile-bar-call { background: var(--forest); color: var(--ivory); }
  .mobile-bar-quote { background: var(--copper); color: var(--forest-deep); }
  body { padding-bottom: 56px; }
  body.drawer-open .mobile-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .door-reveal { display: none; }
}
@media print {
  .site-header, .site-footer, .mobile-bar, .closing-form, .door-reveal, .quick-quote { display: none !important; }
}
.signs-1 { grid-template-columns: 1fr; }
.split h2 + .diagram-figure { margin-top: 32px; }

/* Photo-led replacements for the former drawings */
.photo-figure { margin: 0; }
.photo-figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; max-width: 46rem; }
.areas-media { margin: 0; }
.areas-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.style-row-text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; padding: 56px 0; border-top: 1px solid var(--beige); border-bottom: 1px solid var(--beige); }
.style-row-text .style-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 var(--gap-lg); }
.style-row-text .style-copy h2 { grid-column: 1 / -1; }
.style-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.style-grid-3 .style-card img { aspect-ratio: 4 / 5; }
.hero-facts { list-style: none; border-top: 1px solid var(--line); }
.hero-facts li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hero-facts strong { color: var(--heading); font-weight: 600; }
.hero-facts span { color: var(--muted); }
.systems-art { place-items: start; align-content: center; padding: var(--section) var(--edge) var(--section) clamp(32px, 5vw, 88px); --fg: var(--ivory); --heading: var(--ivory); color: var(--ivory); }
.systems-art h3 { margin-bottom: 8px; }
.hero-split.tone-deep { background: var(--forest-deep); }
@media (max-width: 960px) {
  .style-row-text .style-copy { grid-template-columns: 1fr; }
  .style-grid-3 { grid-template-columns: 1fr; }
  .systems-art { padding: var(--section-sm) var(--gutter); }
  .styles-showcase-grid { grid-template-columns: 1fr 1fr; }
  .style-tile:nth-child(2) { margin-top: 0; }
}
@media (max-width: 720px) { .styles-showcase-grid { grid-template-columns: 1fr; } .opener-rows li { grid-template-columns: 1fr; gap: 4px; } }

/* ==========================================================================
   v3: framed, rounded layout based on the client's approved mockup
   ========================================================================== */
:root {
  --radius: 14px;
  --radius-sm: 8px;
  --frame: clamp(8px, 1.1vw, 16px);
  --display: 'DM Serif Display', 'Iowan Old Style', Georgia, serif;
}
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { line-height: 1.06; }
h2 { line-height: 1.12; }
.eyebrow, .hero-kicker { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.btn { border-radius: var(--radius-sm); }
.btn .icon-sm { transition: transform 0.2s var(--ease); }
.btn:hover .icon-sm { transform: translateX(3px); }
.icon { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-lg { width: 30px; height: 30px; flex-shrink: 0; }

/* Header: dark bar, light text */
.site-header { background: var(--forest-deep); border-bottom: 0; }
.site-header .nav-trigger, .site-header .nav-link { color: rgba(244, 240, 231, 0.88); }
.site-header .nav-trigger:hover, .site-header .nav-link:hover, .site-header .is-current { color: var(--white); }
.site-header .header-phone { color: var(--ivory); }
.site-header .menu-toggle { border-color: rgba(244, 240, 231, 0.5); color: var(--ivory); }
.header-cta { min-height: 44px; padding: 0 20px; }
.mega { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.mega-cols-3 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.mega-feature { border-radius: var(--radius); overflow: hidden; }

/* Framed panels: coloured sections sit inside the page with rounded corners */
.panel, .tone-forest, .tone-deep, .tone-sage, .closing, .hero-split, .bleed-hero, .area-line, .site-footer, .commercial-v3, .cta-band, .systems-band {
  margin-inline: var(--frame); border-radius: calc(var(--radius) + 6px); overflow: hidden;
}
main > section + section.panel, main > .panel + section, main > section + .tone-forest, main > section + .tone-sage, main > section + .tone-deep,
main > section + .closing, main > section + .area-line { margin-top: var(--frame); }
.site-footer { margin-block: var(--frame); }
main { padding-top: var(--frame); }
main > nav.crumbs + section { margin-top: 0; }
.crumbs ol { padding: 8px 0 14px; }

/* Rounded media and cards everywhere */
main img { border-radius: var(--radius); }
.hero-split-media img, .bleed-hero-media img, .hero-v3-media img, .commercial-v3-media img, .area-card-bg, .mega-feature-img img, .style-v3 img { border-radius: 0; }
.arch-hero-media, .overlap-hero-media { margin-inline: var(--frame); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.arch-hero-media img, .overlap-hero-media img { border-radius: 0; }
.table-wrap, .callout, .form-panel, .closing-form, .balance-figure, .compare { border-radius: var(--radius); }
.table-wrap { border-top: 0; box-shadow: inset 0 0 0 1px var(--line); }
.compare { border-top: 0; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.compare > * { padding: 32px; }
.checklist-groups { border-top: 0; gap: 16px; }
.checklist-group, .checklist-group + .checklist-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field input:not([type='radio']):not([type='checkbox']), .field select, .field textarea, .field .choice { border-radius: var(--radius-sm); }
.related-list { border-top: 0; gap: 16px; }
.related-list li + li { border-left: 0; }
.related-list a, .related-list li + li a { padding: 26px; background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.related-list a:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(16, 45, 37, 0.45); }

/* Hero */
.hero-v3 { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: clamp(560px, 78vh, 760px); margin-inline: var(--frame); border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--forest-deep); color: var(--ivory); isolation: isolate; }
.hero-v3-media { position: absolute; inset: 0 0 0 34%; z-index: -1; }
.hero-v3-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-v3-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(16, 45, 37, 0.85) 18%, rgba(16, 45, 37, 0.25) 55%, rgba(16, 45, 37, 0) 100%); }
.hero-v3-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px) clamp(28px, 5.5vw, 96px); --heading: var(--ivory); --accent-text: #e3b591; }
.hero-v3 h1 { color: var(--ivory); font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); max-width: 15ch; margin-bottom: 22px; }
.hero-v3 .lead { color: rgba(244, 240, 231, 0.85); max-width: 32rem; }
.hero-v3-note { margin: 48px 0 0; font-size: var(--fs-sm); color: rgba(244, 240, 231, 0.7); max-width: 28rem; }
.hero-v3 .btn-ghost-light .icon-sm { color: var(--copper); }

/* Category strip */
.cat-strip { padding-block: clamp(28px, 3vw, 40px); }
.cat-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cat-list li + li { border-left: 1px solid var(--beige); }
.cat-list a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 16px; text-align: center; text-decoration: none; color: var(--forest-deep); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; transition: color 0.2s; }
.cat-list .icon-lg { width: 36px; height: 36px; color: var(--forest); transition: transform 0.3s var(--ease), color 0.2s; }
.cat-list a:hover { color: var(--copper-text); }
.cat-list a:hover .icon-lg { transform: translateY(-4px); color: var(--copper); }

/* Marquee */
.marquee { overflow: hidden; background: var(--forest); color: var(--ivory); margin-inline: var(--frame); border-radius: 999px; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 400 1.375rem/1.2 var(--display); white-space: nowrap; }
.marquee-group span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Feature split (repair) */
.feature-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: center; }
.feature-media { margin: 0; overflow: hidden; border-radius: var(--radius); }
.feature-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature-media:hover img { transform: scale(1.03); }
.feature-copy p { color: var(--muted); }
.feature-copy .check-list { margin: 24px 0 32px; }

/* Service cards */
.section-head.center { display: block; text-align: center; max-width: 44rem; margin-inline: auto; }
.section-head.center h2 { max-width: none; margin-bottom: 14px; }
.service-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px 26px; background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--charcoal); border: 1px solid rgba(16, 45, 37, 0.06); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.service-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--sage); color: var(--forest); margin-bottom: 6px; transition: background 0.3s, color 0.3s; }
.service-card-title { font: 400 1.4rem/1.2 var(--display); color: var(--forest-deep); }
.service-card-text { font-size: var(--fs-sm); color: var(--muted-light); flex: 1; }
.service-card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--forest); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(16, 45, 37, 0.55); }
.service-card:hover .service-card-icon { background: var(--forest); color: var(--ivory); }
.service-card:hover .service-card-link .icon-sm { transform: translateX(4px); }
.service-card-link .icon-sm { transition: transform 0.2s var(--ease); }

/* Door styles 2x2 */
.styles-v3 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: center; }
.styles-v3-copy p { color: var(--muted); margin-bottom: 28px; }
.styles-v3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.style-v3 { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; text-decoration: none; }
.style-v3 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.style-v3 span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: rgba(16, 45, 37, 0.92); color: var(--ivory); font-weight: 600; font-size: var(--fs-sm); }
.style-v3:hover img { transform: scale(1.06); }

/* Commercial */
.commercial-v3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--forest); color: var(--ivory); --fg: var(--ivory); --heading: var(--ivory); --muted: var(--muted-dark); --accent-text: #e3b591; margin-block: var(--frame); }
.commercial-v3-media { position: relative; min-height: 420px; }
.commercial-v3-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.commercial-v3-copy { padding: clamp(40px, 6vw, 96px); align-self: center; }
.commercial-v3-copy p { color: var(--muted); }

/* Why choose */
.why-v3 { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: center; }
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin: 32px 0 36px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list .icon-lg { color: var(--forest); padding: 10px; width: 48px; height: 48px; border-radius: 12px; background: var(--sage); }
.why-list strong { display: block; font-weight: 600; color: var(--forest-deep); }
.why-list span { font-size: var(--fs-sm); color: var(--muted-light); }
.why-media { margin: 0; position: relative; }
.why-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.why-media figcaption { margin-top: 14px; text-align: right; font: italic 400 1.5rem/1 var(--display); color: var(--copper-text); }

/* Process */
.process-v3 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: p; }
.process-v3 li { position: relative; counter-increment: p; padding-top: 68px; }
.process-v3 li::before { content: counter(p, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--copper); color: var(--white); font: 600 0.95rem/1 var(--sans); box-shadow: 0 0 0 6px rgba(184, 115, 69, 0.18); }
.process-v3 li:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 64px; right: -8px; height: 1px; background: linear-gradient(90deg, var(--copper), rgba(184, 115, 69, 0.15)); }
.process-v3 h3 { font-size: var(--fs-base); margin-bottom: 6px; }
.process-v3 p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Service area + FAQ */
.areas-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.area-card { position: relative; isolation: isolate; border-radius: calc(var(--radius) + 6px); overflow: hidden; color: var(--ivory); --heading: var(--ivory); --accent-text: #e3b591; display: flex; align-items: flex-end; min-height: 520px; }
.area-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.area-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 45, 37, 0.55), rgba(16, 45, 37, 0.94) 60%); }
.area-card-copy { padding: clamp(28px, 4vw, 48px); }
.area-card-copy p { color: rgba(244, 240, 231, 0.85); }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.area-chips a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(244, 240, 231, 0.12); color: var(--ivory); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; transition: background 0.2s; }
.area-chips a:hover { background: var(--copper); color: var(--forest-deep); }
.faq-v3 { background: var(--white); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 48px); }
.faq-v3-intro { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--forest-deep); color: var(--ivory); --heading: var(--ivory); --accent-text: #e3b591; margin-block: var(--frame) 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(40px, 5vw, 64px) clamp(28px, 5.5vw, 96px); }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p:not(.eyebrow) { margin: 0; color: var(--muted-dark); }
.cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.cta-phone { display: inline-flex; align-items: center; gap: 14px; color: var(--ivory); text-decoration: none; font: 600 1.125rem/1.2 var(--sans); }
.cta-phone .icon-lg { width: 48px; height: 48px; padding: 11px; border: 1px solid rgba(244, 240, 231, 0.35); border-radius: 50%; }
.cta-phone small { display: block; font: 400 var(--fs-xs) var(--sans); color: var(--muted-dark); }

/* Footer */
.site-footer { border-radius: calc(var(--radius) + 6px); }

/* Scroll reveal (only when JS runs; respects reduced motion) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.service-cards li.reveal:nth-child(4n + 2), .styles-v3-grid .reveal:nth-child(2), .process-v3 li:nth-child(2) { transition-delay: 0.08s; }
.service-cards li.reveal:nth-child(4n + 3), .styles-v3-grid .reveal:nth-child(3), .process-v3 li:nth-child(3) { transition-delay: 0.16s; }
.service-cards li.reveal:nth-child(4n + 4), .styles-v3-grid .reveal:nth-child(4), .process-v3 li:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1180px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .cat-list li:nth-child(4) { border-left: 0; }
  .mega-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-v3 { grid-template-columns: 1fr; min-height: 0; }
  .hero-v3-media { position: relative; inset: auto; height: 300px; order: -1; z-index: 0; }
  .hero-v3-media::after { background: linear-gradient(180deg, rgba(16, 45, 37, 0) 50%, var(--forest-deep) 100%); }
  .hero-v3-copy { padding: 8px 28px 48px; }
  .feature-split, .styles-v3, .commercial-v3, .why-v3, .areas-faq-grid { grid-template-columns: 1fr; }
  .commercial-v3-media { min-height: 280px; }
  .process-v3 { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-v3 li::after { display: none; }
}
@media (max-width: 720px) {
  .service-cards, .styles-v3-grid, .why-list, .process-v3 { grid-template-columns: 1fr; }
  .cat-list { grid-template-columns: 1fr 1fr; }
  .cat-list li { border-left: 0 !important; }
  .marquee { border-radius: var(--radius); }
  .marquee-group span { font-size: 1.125rem; }
  .cta-band-inner { padding: 36px 24px; }
  .area-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v4: full-width sections, wider content, stacked section heads
   ========================================================================== */
:root { --wrap: 1520px; --gutter: clamp(20px, 4vw, 72px); --frame: 0px; --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
main { padding-top: 0; }
/* Sections run edge to edge; rounding stays on cards, photos and forms. */
.panel, .tone-forest, .tone-deep, .tone-sage, .closing, .hero-split, .bleed-hero, .area-line, .site-footer, .commercial-v3, .cta-band, .systems-band, .hero-v3, .marquee, .arch-hero-media, .overlap-hero-media {
  margin-inline: 0; border-radius: 0;
}
main > section + section.panel, main > .panel + section, main > section + .tone-forest, main > section + .tone-sage, main > section + .tone-deep,
main > section + .closing, main > section + .area-line, .commercial-v3, .cta-band, .site-footer { margin-block: 0; }
.marquee { -webkit-mask-image: none; mask-image: none; padding: 18px 0; }

/* One consistent section heading: heading, then intro underneath. */
.section-head { display: block; max-width: 60rem; margin-bottom: var(--head-gap); }
.section-head h2 { max-width: 26ch; margin: 0 0 16px; }
.section-head p { max-width: 44rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.split > h2 { max-width: 20ch; }

/* Hero: copy column ~62% inside the content width, photo fills the rest */
.hero-v3 { display: block; min-height: clamp(600px, 80vh, 820px); }
.hero-v3-media { inset: 0 0 0 38%; }
.hero-v3-media::after { background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(16, 45, 37, 0.8) 22%, rgba(16, 45, 37, 0.2) 55%, rgba(16, 45, 37, 0) 100%); }
.hero-v3-inner { display: flex; align-items: center; min-height: inherit; }
.hero-v3-copy { width: min(62%, 900px); padding: clamp(56px, 7vw, 112px) 0; }
.hero-v3 h1 { max-width: 20ch; font-size: clamp(2.75rem, 1.7rem + 2.6vw, 4.5rem); }
.hero-v3 .lead { max-width: 40rem; }

@media (max-width: 960px) {
  .hero-v3 { min-height: 0; }
  .hero-v3-media { position: relative; inset: auto; height: 320px; }
  .hero-v3-inner { min-height: 0; }
  .hero-v3-copy { width: 100%; padding: 8px 0 56px; }
}

/* ==========================================================================
   v5: shared page template (hero with crumbs, content + sticky sidebar)
   ========================================================================== */
:root { --wrap: 1600px; }

/* Page hero */
.ph { position: relative; isolation: isolate; background: var(--forest-deep); color: var(--ivory); --heading: var(--ivory); --muted: var(--muted-dark); --accent-text: #e3b591; overflow: hidden; }
.ph-media { position: absolute; inset: 0 0 0 42%; z-index: -1; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ph-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(16, 45, 37, 0.75) 20%, rgba(16, 45, 37, 0.15) 60%, rgba(16, 45, 37, 0) 100%); }
.ph-inner { display: flex; align-items: center; min-height: clamp(460px, 62vh, 620px); }
.ph-plain .ph-inner { min-height: 0; }
.ph-copy { width: min(60%, 860px); padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); }
.ph-plain .ph-copy { width: min(100%, 880px); }
.ph h1 { color: var(--ivory); font-size: clamp(2.4rem, 1.5rem + 2.4vw, 3.9rem); max-width: 20ch; margin-bottom: 20px; }
.ph .lead { color: rgba(244, 240, 231, 0.86); max-width: 40rem; }
.ph .crumbs ol { padding: 0 0 28px; color: rgba(244, 240, 231, 0.7); }
.ph .crumbs a { color: rgba(244, 240, 231, 0.7); text-decoration: none; }
.ph .crumbs a:hover { color: var(--white); text-decoration: underline; }
.ph .crumbs li + li::before { color: rgba(244, 240, 231, 0.35); }
.ph .crumbs [aria-current] { color: var(--ivory); }
.ph-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-size: var(--fs-sm); color: rgba(244, 240, 231, 0.9); }
.ph-points li { display: inline-flex; align-items: center; gap: 8px; }
.ph-points .icon-sm { color: var(--copper); }

/* FAQ under the body: centered single column for calm reading */
.faq { border-top: 1px solid var(--beige); }


/* ==========================================================================
   v6: section kit. Every inner page is a stack of these full-width sections,
   all using the same padding, content width and heading row.
   ========================================================================== */
:root { --sec: clamp(72px, 7vw, 120px); }

/* Hero: tighter, with a fact strip overlapping its lower edge */
.ph-inner { min-height: clamp(480px, 58vh, 600px); }
.ph-has-facts .ph-copy { padding-bottom: clamp(96px, 9vw, 140px); }
.ph-facts-wrap { position: relative; z-index: 2; margin-top: clamp(-72px, -5vw, -56px); }
.ph-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 60px -36px rgba(16, 45, 37, 0.45); border: 1px solid rgba(16, 45, 37, 0.06); }
.ph-facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-facts li { display: flex; gap: 16px; align-items: flex-start; padding: clamp(22px, 2.2vw, 32px) clamp(20px, 2.2vw, 32px); }
.ph-facts li + li { border-left: 1px solid var(--sage); }
.ph-facts .icon-lg { color: var(--copper); width: 34px; height: 34px; }
.ph-facts strong { display: block; font: 600 var(--fs-base)/1.3 var(--sans); color: var(--forest-deep); margin-bottom: 4px; }
.ph-facts span { display: block; font-size: var(--fs-sm); color: var(--muted-light); line-height: 1.5; }
.ph-facts-wrap + .k-sec { padding-top: calc(var(--sec) - 16px); }

/* Section shell and tones */
.k-sec { padding-block: var(--sec); }
.k-white { background: var(--white); --surface: var(--ivory); }
.k-sage { background: var(--sage); --section-bg: var(--sage); }
.k-dark { background: var(--forest); color: var(--ivory); --fg: var(--ivory); --heading: var(--ivory); --muted: var(--muted-dark); --line: rgba(244, 240, 231, 0.16); --accent-text: #e3b591; }
.k-sec h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }

/* Heading row: title left, intro right, bottoms aligned */
.k-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px var(--gap-lg); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.k-head h2 { margin: 0; max-width: 22ch; }
.k-head .eyebrow { margin-bottom: 14px; }
.k-intro { margin: 0; font-size: var(--fs-md); color: var(--muted); max-width: 40rem; }
.k-head-solo { grid-template-columns: 1fr; }
.k-head-center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

/* Split: photo + copy, equal columns */
.k-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-lg); align-items: center; }
.k-split-rev .k-split-media { order: 2; }
.k-split-media { margin: 0; }
.k-split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: calc(var(--radius) + 4px); }
.k-split-copy h2 { margin-bottom: 20px; max-width: 20ch; }
.k-split-copy p { color: var(--muted); }
.k-split-copy p:last-child { margin-bottom: 0; }
.k-split-copy .check-list { margin-top: 24px; }

/* Card grid */
.k-cards { list-style: none; display: grid; gap: 20px; }
.k-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.k-cards > li { display: flex; scroll-margin-top: calc(var(--header-h) + 24px); }
.k-card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: clamp(24px, 2.2vw, 32px); background: var(--white); border: 1px solid rgba(16, 45, 37, 0.08); border-radius: var(--radius); color: var(--charcoal); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.k-white .k-card { background: var(--ivory); }
.k-dark .k-card { background: rgba(244, 240, 231, 0.06); border-color: rgba(244, 240, 231, 0.12); color: var(--ivory); }
.k-card h3 { font: 400 1.4rem/1.2 var(--display); color: var(--heading); margin: 0; }
.k-card p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.k-card p a { font-weight: 600; }
.k-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--sage); color: var(--forest); margin-bottom: 4px; transition: background 0.3s, color 0.3s; }
.k-sage .k-card-icon { background: var(--ivory); }
.k-dark .k-card-icon { background: rgba(244, 240, 231, 0.1); color: var(--copper); }
.k-num { font: 400 2.25rem/1 var(--display); color: var(--copper); }
.k-card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--forest); }
.k-card-link .icon-sm { transition: transform 0.2s var(--ease); }
a.k-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(16, 45, 37, 0.55); border-color: transparent; }
a.k-card:hover .k-card-icon { background: var(--forest); color: var(--ivory); }
a.k-card:hover .k-card-link .icon-sm { transform: translateX(4px); }

/* Table in a card */
.k-table { border-radius: var(--radius); border: 1px solid rgba(16, 45, 37, 0.08); border-top: 3px solid var(--forest); background: var(--white); }
.k-white .k-table { background: var(--ivory); }

/* Dark feature band with edge-to-edge photo */
.k-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--forest); color: var(--ivory); --fg: var(--ivory); --heading: var(--ivory); --muted: var(--muted-dark); --line: rgba(244, 240, 231, 0.16); --accent-text: #e3b591; }
.k-feature-media { position: relative; min-height: 460px; }
.k-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-feature-copy { padding: var(--sec) var(--edge) var(--sec) var(--gap-lg); max-width: calc(var(--wrap) / 2 + var(--gap-lg)); }
.k-feature-rev .k-feature-media { order: 2; }
.k-feature-rev .k-feature-copy { padding: var(--sec) var(--gap-lg) var(--sec) var(--edge); justify-self: end; }
.k-feature h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); margin-bottom: 18px; max-width: 20ch; }
.k-feature-intro { color: var(--muted); font-size: var(--fs-md); max-width: 38rem; }
.k-feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin-top: 36px; }
.k-feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.k-feature-list .icon { flex: 0 0 auto; width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: rgba(244, 240, 231, 0.08); color: var(--copper); }
.k-feature-list strong { display: block; color: var(--ivory); font-weight: 600; margin-bottom: 4px; }
.k-feature-list span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

/* Process steps */
.k-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: k; }
.k-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.k-steps li { position: relative; counter-increment: k; padding: 30px 28px 32px; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(16, 45, 37, 0.06); }
.k-white .k-steps li { background: var(--ivory); }
.k-steps li::before { content: counter(k, decimal-leading-zero); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 50%; background: var(--copper); color: var(--white); font: 600 0.95rem/1 var(--sans); box-shadow: 0 0 0 6px rgba(184, 115, 69, 0.16); }
.k-steps li:not(:last-child)::after { content: ''; position: absolute; top: 54px; left: 96px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--copper), rgba(184, 115, 69, 0)); }
.k-steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.k-steps p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Area + FAQ inside the kit */
.k-white .faq-v3 { background: var(--ivory); }
.faq-v3 .faq-answer { padding-right: 24px; }

/* Reveal stagger for grids */
.k-cards > li:nth-child(4n + 2), .k-steps li:nth-child(2) { transition-delay: 0.08s; }
.k-cards > li:nth-child(4n + 3), .k-steps li:nth-child(3) { transition-delay: 0.16s; }
.k-cards > li:nth-child(4n + 4), .k-steps li:nth-child(4) { transition-delay: 0.24s; }

/* Closing quote section follows the same rhythm */
.closing { padding-block: var(--sec); }

@media (max-width: 1180px) {
  .k-cols-4, .k-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-steps, .k-steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-steps li::after { display: none; }
  .ph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-facts li:nth-child(3) { border-left: 0; }
  .ph-facts li:nth-child(n + 3) { border-top: 1px solid var(--sage); }
  .k-feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .k-head { grid-template-columns: 1fr; align-items: start; }
  .k-split { grid-template-columns: 1fr; gap: 36px; }
  .k-split-rev .k-split-media { order: 0; }
  .k-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-feature { grid-template-columns: 1fr; }
  .k-feature-media { min-height: 300px; }
  .k-feature-rev .k-feature-media { order: 0; }
  .k-feature-copy, .k-feature-rev .k-feature-copy { padding: 56px var(--gutter) 64px; max-width: none; }
  .k-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-has-facts .ph-copy { padding-bottom: 88px; }
}
@media (max-width: 640px) {
  .k-cols-2, .k-cols-3, .k-cols-4, .k-cols-5, .k-steps, .k-steps-3, .k-steps-5, .k-feature-list { grid-template-columns: 1fr; }
  .ph-facts, .ph-facts-3 { grid-template-columns: 1fr; }
  .ph-facts li + li { border-left: 0; border-top: 1px solid var(--sage); }
  .k-split-media img { aspect-ratio: 4 / 3; }
}
/* Two neighbouring sections on the same background read as one: no double gap */
.k-sec.k-white + .k-sec.k-white, .k-sec.k-sage + .k-sec.k-sage, .k-sec:not(.k-white):not(.k-sage):not(.k-dark) + .k-sec:not(.k-white):not(.k-sage):not(.k-dark) { padding-top: 0; }
.k-steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-steps-6 li:nth-child(3n)::after, .k-steps-3 li:nth-child(3)::after { display: none; }

/* Alert band */
.k-alert-sec { padding-block: clamp(48px, 5vw, 72px); }
.k-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(28px, 3vw, 44px); background: var(--white); border: 1px solid rgba(16, 45, 37, 0.08); border-left: 4px solid var(--copper); border-radius: var(--radius); }
.k-white .k-alert { background: var(--ivory); }
.k-alert-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(184, 115, 69, 0.12); color: var(--copper); }
.k-alert h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 10px; }
.k-alert-copy p { margin: 0; color: var(--muted); max-width: 62rem; }
.k-alert-copy p + p { margin-top: 10px; }

/* Specs inside cards */
.k-spec { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.k-spec > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.k-spec dt { font-weight: 600; color: var(--heading); }
.k-spec dd { margin: 0; color: var(--muted); }
.k-card .check-list { margin: 4px 0 0; font-size: var(--fs-sm); }
@media (max-width: 1180px) { .k-steps-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .k-alert { grid-template-columns: auto minmax(0, 1fr); } .k-alert-action { grid-column: 1 / -1; } }
@media (max-width: 640px) { .k-steps-6 { grid-template-columns: 1fr; } .k-alert { grid-template-columns: 1fr; } }
/* Photo tiles */
.k-gallery { list-style: none; display: grid; gap: 20px; }
.k-tile { position: relative; display: block; overflow: hidden; border-radius: calc(var(--radius) + 4px); aspect-ratio: 4 / 3.4; color: var(--white); text-decoration: none; isolation: isolate; }
.k-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.k-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 45, 37, 0) 45%, rgba(16, 45, 37, 0.88) 100%); }
.k-tile span { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 400 1.45rem/1.2 var(--display); }
.k-tile span .icon-sm { flex: 0 0 auto; width: 36px; height: 36px; padding: 10px; border-radius: 50%; background: var(--copper); color: var(--forest-deep); transition: transform 0.25s var(--ease); }
.k-tile:hover img { transform: scale(1.05); }
.k-tile:hover span .icon-sm { transform: translateX(4px); }

/* Links inside dark bands */
.k-feature-list a, .k-dark .k-card a { color: var(--ivory); text-decoration-color: var(--copper); }
.k-dark .k-card .check-list li, .k-feature .check-list li { color: var(--ivory); }
.k-card .town-links { margin-top: auto; padding-top: 8px; }
.ph .lead a { color: var(--ivory); }

/* Form section: details column + form panel */
.k-form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: start; }
.k-form-aside h2 { margin-bottom: 16px; max-width: 18ch; }
.k-form-aside .k-intro { margin-bottom: 32px; }
.k-form-panel { border-radius: calc(var(--radius) + 4px); border: 1px solid rgba(16, 45, 37, 0.08); box-shadow: 0 30px 60px -40px rgba(16, 45, 37, 0.4); }
.k-contact-rows { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.k-contact-rows li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.k-contact-rows .icon { flex: 0 0 auto; width: 48px; height: 48px; padding: 13px; border-radius: 12px; background: var(--sage); color: var(--forest); }
.k-contact-rows small { display: block; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 4px; }
.k-contact-rows a { font-weight: 600; color: var(--forest-deep); }
.k-contact-rows div > a:first-of-type { display: block; font: 400 1.5rem/1.25 var(--display); text-decoration: none; margin-bottom: 4px; overflow-wrap: anywhere; }
.k-contact-rows span { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* Legal text in a card */
.k-legal { max-width: none; background: var(--white); border: 1px solid rgba(16, 45, 37, 0.08); border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 5vw, 72px) clamp(24px, 6vw, 96px); column-gap: 0; }
.k-legal > * { max-width: 56rem; }
.k-legal h2 { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); margin-top: 48px; }
.ph-plain .ph-inner { min-height: 0; }
.ph-plain .ph-copy { padding-block: clamp(48px, 5vw, 80px) clamp(56px, 6vw, 96px); }
.ph-plain.ph-has-facts .ph-copy { padding-bottom: clamp(96px, 9vw, 140px); }
@media (max-width: 960px) { .k-form-grid { grid-template-columns: 1fr; } }
/* Legal text flows in two columns on wide screens so the card is filled evenly */
@media (min-width: 1100px) {
  .k-legal { column-count: 2; column-gap: clamp(48px, 5vw, 96px); }
  .k-legal > * { max-width: none; break-inside: avoid; }
  .k-legal h2 { break-after: avoid; margin-top: 0; padding-top: 28px; }
  .k-legal .draft-note { column-span: all; margin-bottom: 8px; }
}
/* Hero on tablet and phone: photo on top, copy full width below */
@media (max-width: 960px) {
  .ph-media { position: relative; inset: auto; height: 300px; z-index: 0; }
  .ph-media::after { background: linear-gradient(180deg, rgba(16, 45, 37, 0) 45%, var(--forest-deep) 100%); }
  .ph-inner { min-height: 0; }
  .ph-copy, .ph-plain .ph-copy { width: 100%; padding-top: 28px; }
  .ph h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3rem); }
}
@media (max-width: 640px) {
  .ph-media { height: 220px; }
  .ph .btn-row .btn { width: 100%; }
  .ph-facts li { padding: 16px 20px; }
  .ph-facts .icon-lg { width: 28px; height: 28px; }
}

/* Nav underline sits just under the label, not at the bottom edge of the header */
.nav-trigger::after, .nav-link::after { top: calc(50% + 13px); bottom: auto; }

/* Closing section: contact details fill the left column beside the form */
.closing-grid { align-items: center; }
.closing-points { margin: 28px 0; }
.closing .k-contact-rows { border-top-color: var(--line); }
.closing .k-contact-rows li { padding: 18px 0; border-bottom-color: var(--line); }
.closing .k-contact-rows .icon { background: rgba(244, 240, 231, 0.08); color: var(--copper); }
.closing .k-contact-rows small { color: #e3b591; }
.closing .k-contact-rows a { color: var(--ivory); }
.closing .k-contact-rows span { color: var(--muted-dark); }
/* Alert directly under the hero facts: no extra band */
.ph-facts-wrap + .k-alert-sec { padding-top: clamp(48px, 5vw, 72px); }
/* Home hero buttons match inner pages on phones */
@media (max-width: 640px) { .hero-v3 .btn-row .btn { width: 100%; } }

/* Heroes: photo runs the full width; a lighter gradient covers the left ~45%
   so the copy (about 60% wide) stays readable without darkening the photo. */
.hero-v3-media, .ph-media { inset: 0 0 0 28%; }
.hero-v3-media::after, .ph-media::after { background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(16, 45, 37, 0.82) 12%, rgba(16, 45, 37, 0.45) 26%, rgba(16, 45, 37, 0.12) 36%, rgba(16, 45, 37, 0) 44%); }
.hero-v3-copy, .ph-copy { width: min(62%, 980px); }
.hero-v3 h1 { max-width: 20ch; }
.ph h1 { max-width: 22ch; }
.hero-v3 .lead, .ph .lead { max-width: 40rem; }
.hero-v3 h1, .hero-v3 .lead, .ph h1, .ph .lead { text-shadow: 0 1px 18px rgba(16, 45, 37, 0.45); }
@media (max-width: 1280px) {
  .hero-v3-media::after, .ph-media::after { background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(16, 45, 37, 0.82) 18%, rgba(16, 45, 37, 0.45) 34%, rgba(16, 45, 37, 0.12) 46%, rgba(16, 45, 37, 0) 54%); }
  .hero-v3-copy, .ph-copy { width: 64%; }
}
@media (max-width: 960px) {
  .hero-v3-media, .ph-media { inset: auto; }
  .hero-v3-media::after, .ph-media::after { background: linear-gradient(180deg, rgba(16, 45, 37, 0) 70%, var(--forest-deep) 100%); }
  .hero-v3-copy, .ph-copy { width: 100%; }
  .hero-v3 h1, .hero-v3 .lead, .ph h1, .ph .lead { text-shadow: none; }
}

/* Wide photo section */
.k-wide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gap-lg); align-items: start; margin-bottom: clamp(36px, 4vw, 56px); }
.k-wide-head h2 { margin: 0; max-width: 20ch; }
.k-wide-body > p { color: var(--muted); }
.k-wide-body > p:first-child { margin-top: 0; }
.k-wide-body .check-list { margin: 20px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.k-wide-body .btn-row { margin-top: 28px; }
.k-wide-media { margin: 0; }
.k-wide-media img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: calc(var(--radius) + 4px); }
@media (max-width: 960px) { .k-wide-head { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .k-wide-body .check-list { grid-template-columns: 1fr; } }

/* Logo */
.brand-mark { width: auto; height: 46px; }
.brand { gap: 14px; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { width: 230px; height: auto; display: block; }
@media (max-width: 760px) { .brand-mark { height: 38px; } }
@media (max-width: 400px) { .brand-mark { height: 32px; } .brand { gap: 10px; } }
.k-logo-figure { display: grid; place-items: center; aspect-ratio: 5 / 4; padding: clamp(32px, 5vw, 72px); background: var(--ivory); border-radius: calc(var(--radius) + 4px); border: 1px solid rgba(16, 45, 37, 0.08); }
.k-logo-figure img { width: 100%; max-width: 520px; height: auto; aspect-ratio: auto; border-radius: 0; }
#mission-vision .k-card h3 { font-size: 1.75rem; }
#mission-vision .k-card p { font-size: var(--fs-md); line-height: 1.65; }
