/* ==========================================================================
   Caledon Attic Insulation — Main Stylesheet
   Author: Caledon Attic Insulation
   Structure:
     01. Design Tokens (CSS Variables)
     02. Reset & Base
     03. Typography
     04. Layout Helpers
     05. Buttons & CTAs
     06. Header & Navigation
     07. Hero
     08. Breadcrumbs
     09. Content Blocks & Cards
     10. Services Grid
     11. Process Steps
     12. Benefits / Feature Grid
     13. FAQ Accordion
     14. CTA Bands
     15. Contact Form
     16. Footer
     17. Scroll To Top
     18. Accessibility & Focus States
     19. Responsive Breakpoints
     20. Motion & Print Preferences
     22. Caledon design layer (UI/UX Pro Max)
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Caledon: the Credit River valley and the Escarpment. Deep river teal
   primary, Cheltenham Badlands clay for the call to action, limestone-white
   ground. Crimson Pro (a sturdy book serif) for display, Lato for body.
   Hero: stacked overlap. Signature: the roofline (a shallow gable stroke)
   under headings and as the top edge of the hero base and dark bands.
   ========================================================================== */
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/crimson-pro-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/crimson-pro-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lato-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Every text/background pair below was computed (WCAG AA), not eyeballed:
     white on primary 8.95:1, white on primary-dark 12.9:1, white on cta 6.0:1,
     ink on accent 10.4:1, accent on primary-dark 7.4:1, tint on primary 7.6:1,
     text on bg 13.6:1, muted on bg 6.6:1, muted on bg-alt 5.9:1,
     accent-dark on bg 6.4:1, primary-light (links) on bg 5.5:1 / bg-alt 4.9:1,
     border-strong on white 3.7:1, on bg 3.4:1. */
  --color-primary:        #12524F;
  --color-primary-dark:   #0B3836;
  --color-primary-light:  #1B6E69;
  --color-accent:         #F2B79B;
  --color-accent-dark:    #9A3B24;
  --color-accent-soft:    #F8E4D9;
  --color-accent-light:   #F2B79B;
  --color-cta:            #A8432B;
  --color-cta-hover:      #8E3721;
  --color-ink:            #1A1512;
  --color-tint:           #E6EFEC;
  --color-accent-hover:   #F6C9B2;
  --rgb-dark: 20, 35, 33;
  --rgb-primary: 18, 82, 79;
  --rgb-accent: 242, 183, 155;
  --color-brand-grey:     #6E625A;

  /* Neutrals */
  --color-text:           #1F2A29;
  --color-text-muted:     #4D5A58;
  --color-heading:        #142321;
  --color-white:          #ffffff;
  --color-bg:             #F7F5F0;
  --color-bg-alt:         #ECE8DF;
  --color-bg-deep:        #DCD6C9;
  --color-border:         #D8D2C6;
  --color-border-strong:  #7D8783;

  /* Feedback */
  --color-success:        #2F6B3A;
  --color-success-bg:     #E8F2E6;
  --color-error:          #A3261B;

  /* Typography */
  --font-sans: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --track: 0;
  --fs-xs:   0.875rem;    /* 14px */
  --fs-sm:   1rem;        /* 16px */
  --fs-base: 1.0625rem;   /* 17px */
  --fs-md:   1.1875rem;   /* 19px */
  --fs-lg:   1.375rem;    /* 22px */
  --fs-xl:   1.625rem;    /* 26px */
  --fs-2xl:  2rem;        /* 32px */
  --fs-3xl:  2.5rem;      /* 40px */
  --lh-tight: 1.15;
  --lh-body:  1.65;

  /* Spacing scale (UI/UX Pro Max density 3: spacious) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Structure */
  --container: 1180px;
  --container-narrow: 800px;
  --radius-sm: 2px;
  --radius:    3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(var(--rgb-dark), .08);
  --shadow:    0 6px 18px rgba(var(--rgb-dark), .10);
  --shadow-lg: 0 18px 44px rgba(var(--rgb-dark), .22);
  --header-h:  76px;
  --transition: 180ms ease;
  --roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 16'%3E%3Cpath d='M3 14 L48 3 L93 14' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='square'/%3E%3C/svg%3E");
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;          /* Smooth scrolling for anchor links */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul, ol { padding-left: 1.25rem; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 800;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.015em;
}
/* Condensed display face for the two big heading levels only - the
   lettering of highway signs and stencilled floor markings. */
h1, h2, .hero__brand, .site-walk__big, .estimator__range {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.45rem); line-height: 1.08; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-dark); }

strong { color: var(--color-heading); }

/* Section intro heading block */
.section-head {
  max-width: 760px;
  margin: 0 0 var(--space-6);
}
.section-head.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}
.lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}


/* ==========================================================================
   04. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--color-bg-alt); }
.section--deep {
  background: var(--color-primary);
  color: var(--color-tint);
}
.section--deep h2,
.section--deep h3 { color: var(--color-white); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ==========================================================================
   05. BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

/* Primary action — orange */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Secondary action — navy */
.btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--secondary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Outline action */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--outline:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Outline on dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--fs-md); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.btn-row.is-centered { justify-content: center; }


/* ==========================================================================
   06. HEADER & NAVIGATION
   ========================================================================== */
/* Top utility bar */
.topbar {
  background: var(--color-primary-dark);
  color: var(--color-tint);
  font-size: var(--fs-sm);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.topbar a { color: var(--color-white); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--color-accent); text-decoration: underline; }

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

/* Logo placeholder */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-primary);
  flex-shrink: 0;
}
.logo img { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.logo__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-accent-dark);
}

/* Desktop navigation */
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.nav__link[aria-current="page"] {
  color: var(--color-accent-dark);
  box-shadow: inset 0 -3px 0 var(--color-accent);
}

/* Dropdown */
.nav__item--has-menu { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.nav__toggle::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }

.nav__submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 268px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  display: none;
}
.nav__submenu.is-open { display: block; }
.nav__submenu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.nav__submenu a:hover,
.nav__submenu a:focus-visible {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

/* Header phone CTA */
.header-cta { display: flex; align-items: center; gap: var(--space-3); }

/* Mobile menu button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(115deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-tint);
  padding-block: var(--space-8);
  overflow: hidden;
}
.hero::after {           /* subtle diagonal texture */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 12px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-7);
  align-items: center;
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-4); }
.hero__intro p { color: var(--color-tint); font-size: var(--fs-md); }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,.14);
}

/* --- Home hero: photo background, copy left, estimate form right --- */
.hero--home { padding-block: var(--space-8); }
.hero--home::before {
  /* Shade behind the headline column only, so white type holds
     its contrast over a bright shop photograph. The form side stays clear. */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(var(--rgb-dark), .82) 0%, rgba(var(--rgb-dark), .55) 45%, rgba(var(--rgb-dark), .10) 75%);
  pointer-events: none;
}
.hero--home .hero__inner { z-index: 3; }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg picture,
.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* No wash over the photo — it shows at full colour.
   Contrast is handled by the panel behind the copy instead, so the
   headline stays readable without muddying the photograph. */

.hero--home .hero__inner {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) 420px;
  /* Row 1 hugs the business name; row 2 absorbs the height of the tall form,
     so the heading sits directly under the name instead of drifting down. */
  grid-template-rows: auto 1fr;
  align-items: start;
}

/* Business name across the top of the hero, spanning both columns */
.hero__brand {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 var(--space-5);
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-white);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .9),
    0 4px 18px rgba(0, 0, 0, .75),
    0 8px 44px rgba(0, 0, 0, .6);
}

/* No panel — the copy sits directly on the photograph.
   Readability comes from a layered text shadow instead: a tight dark shadow
   for edge definition plus a wide soft one that darkens the photo immediately
   behind the glyphs. Note that WCAG does not credit text shadows, so over the
   brightest part of the image this is below the 4.5:1 formal minimum. */
.hero--home .hero__intro {
  background: none;
  padding: 0;
  grid-column: 1;
  grid-row: 2;
}

/* The estimate form rises to sit level with the business name, so its top
   edge lines up with the header text instead of starting below it. */
.hero--home .hero-form {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}
.hero--home .hero__intro h1,
.hero--home .hero__intro p,

.hero--home .hero__intro .eyebrow {
  color: var(--color-white) !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .85),
    0 2px 10px rgba(0, 0, 0, .70),
    0 4px 30px rgba(0, 0, 0, .55);
}
.hero--home .hero__intro h1 {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .9),
    0 4px 18px rgba(0, 0, 0, .75),
    0 8px 44px rgba(0, 0, 0, .6);
}

/* Estimate card */
.hero-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--color-accent);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}
.hero-form__title { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.hero-form__sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.hero-form .form-grid { gap: var(--space-3); }
.hero-form .field label { font-size: var(--fs-xs); }
.hero-form .field input,
.hero-form .field select,
.hero-form .field textarea {
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-sm);
}
.hero-form .field textarea { min-height: 76px; }
.hero-form .form-note { margin-top: var(--space-2); text-align: center; }

/* --- Intro band: the prose that opens a page sits BELOW the hero, on the
   page background. Standing rule: no paragraphs inside any hero. --- */
.intro-band {
  background: var(--color-bg);
  padding-block: var(--space-7) var(--space-2);
}
.intro-band p {
  font-size: var(--fs-md);
  color: var(--color-text);
}
.intro-band p:first-of-type { font-size: var(--fs-lg); line-height: 1.6; color: var(--color-heading); }
.intro-band h2 { margin-bottom: var(--space-4); }

/* Compact hero for interior pages */
.hero--page { padding-block: var(--space-7); }
.hero--page .hero__inner { grid-template-columns: 1fr; max-width: 860px; }

/* Interior hero that carries a photo alongside the copy */
.hero--split .hero__inner { grid-template-columns: 1.05fr 0.95fr; max-width: none; }

/* <picture> is inline by default — force it to fill its container so the
   reserved aspect-ratio box is respected and no layout shift occurs */
.hero__media picture,
.service-card__media picture { display: block; width: 100%; height: 100%; }

/* Trust strip under hero */
.trust-strip {
  background: var(--color-primary-dark);
  color: var(--color-tint);
  padding-block: var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
}
/* Each service is a link through to its page */
.trust-strip a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-tint);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.trust-strip a:hover,
.trust-strip a:focus-visible {
  background: rgba(255, 255, 255, .1);
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Current page gets a marker so visitors know where they are */
.trust-strip a[aria-current="page"] {
  color: var(--color-white);
  box-shadow: inset 0 -3px 0 var(--color-accent);
}


/* ==========================================================================
   08. BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0; padding: var(--space-3) 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--color-border-strong); }
.breadcrumbs a { color: var(--color-primary-light); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }


/* ==========================================================================
   09. CONTENT BLOCKS & CARDS
   ========================================================================== */
.prose { max-width: 78ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }

/* Content block: one markdown H2 section */
.content-block {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.content-block:first-of-type { border-top: 0; padding-top: 0; }
.content-block h2 { margin-bottom: var(--space-4); }

/* Two column layout with sticky sidebar */
.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-7);
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

/* Generic card */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Highlighted info panel */
.panel {
  background: var(--color-accent-soft);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.panel h3 { margin-bottom: var(--space-3); }

/* --- Standards callout: how every job is run (Scotland layout profile) --- */
.panel--standards {
  border-left: 5px solid var(--color-primary);
  background: var(--color-bg-deep);
  padding: var(--space-6);
}
.panel--standards h2 { margin-bottom: var(--space-4); }
.standards-list { list-style: none; margin: 0; padding: 0; }
.standards-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: var(--space-3);
  line-height: var(--lh-body);
}
.standards-list li:last-child { margin-bottom: 0; }
.standards-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: -1px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-accent-dark);
}


/* ==========================================================================
   10. SERVICES GRID
   ========================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.service-card__media { background: var(--color-bg-deep); aspect-ratio: 16 / 10; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.service-card__body p { font-size: var(--fs-sm); color: var(--color-text-muted); flex: 1; }
.service-card__link {
  margin-top: var(--space-4);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--color-accent-dark);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card__link::after { content: "\2192"; transition: transform var(--transition); }
.service-card:hover .service-card__link::after { transform: translateX(4px); }


/* ==========================================================================
   11. PROCESS STEPS
   ========================================================================== */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  counter-increment: step;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before {
  content: counter(step);
  position: absolute;
  top: calc(-1 * var(--space-4));
  left: var(--space-5);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 900;
  font-size: var(--fs-md);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.step h3 { font-size: var(--fs-md); margin: var(--space-3) 0 var(--space-2); }
.step p { font-size: var(--fs-sm); color: var(--color-text-muted); }


/* ==========================================================================
   12. BENEFITS / FEATURE GRID
   ========================================================================== */
.feature {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--color-accent); }
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: var(--space-4);
}
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.feature p { font-size: var(--fs-sm); color: var(--color-text-muted); }


/* ==========================================================================
   12b. PROJECT GALLERY & LIGHTBOX
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery__item { display: block; }

/* The whole tile is the button, so it is keyboard reachable by default */
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.gallery__btn:hover,
.gallery__btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery__btn:hover img { transform: scale(1.04); }

/* Caption sits over the foot of the tile */
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-3) var(--space-3);
  background: linear-gradient(to top, rgba(var(--rgb-dark), .92) 30%, rgba(var(--rgb-dark), 0));
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.35;
}

/* --- Lightbox overlay --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(var(--rgb-dark), .94);
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(1000px, 92vw);
  text-align: center;
}
.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
}
.lightbox__caption {
  margin-top: var(--space-4);
  color: var(--color-tint);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.lightbox__close,
.lightbox__nav {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, .12);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.06);
}
.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 2.1rem;
}


/* ==========================================================================
   13. FAQ ACCORDION
   ========================================================================== */
.faq { max-width: 900px; margin-inline: auto; }
.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item:hover { border-color: var(--color-border-strong); }
.faq__item.is-open { border-color: var(--color-accent); box-shadow: var(--shadow); }

.faq__question { margin: 0; }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-heading);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.faq__trigger:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px; height: 24px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}
.faq__icon::before { width: 16px; height: 3px; }
.faq__icon::after  { width: 3px; height: 16px; }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__panel {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
}
.faq__panel.is-open { display: block; }


/* ==========================================================================
   14. CTA BANDS
   ========================================================================== */
.cta-band {
  background: linear-gradient(115deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-tint);
  padding-block: var(--space-7);
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { max-width: 640px; margin-inline: auto; font-size: var(--fs-md); }

/* Inline mid-content CTA */
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}
.cta-inline p { margin: 0; font-weight: 700; color: var(--color-heading); }
.cta-inline .btn-row { margin: 0; }

/* Sticky mobile call bar */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--color-primary-dark);
  border-top: 2px solid var(--color-accent);
  padding: var(--space-2) var(--space-3);
  gap: var(--space-2);
}
.call-bar .btn { flex: 1; padding: 0.8rem 0.5rem; font-size: var(--fs-sm); }


/* ==========================================================================
   15. CONTACT FORM
   ========================================================================== */
.form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}
.form-wrap h2 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.form-wrap .form-intro { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-heading);
}
.field .req { color: var(--color-error); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--rgb-accent), .3);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  background: #fdf4f3;
}
.field__error {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-error);
  min-height: 1em;
}

.form-note { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--space-3); }

/* Success message */
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-success-bg);
  border: 1px solid #b7ddc9;
  border-left: 5px solid var(--color-success);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  color: var(--color-primary-dark);
}
.form-success.is-visible { display: flex; }
.form-success strong { display: block; color: var(--color-success); margin-bottom: 4px; }


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-tint);
  padding-top: var(--space-8);
  font-size: var(--fs-sm);
}
.site-footer h3 {
  color: var(--color-white);
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--color-tint); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-brand .logo__name { color: var(--color-white); }
.footer-brand p { margin-top: var(--space-4); }

/* Reversed wordmark in the footer — the full lockup reads well at this size
   against dark green, where the standard dark-green version would vanish */
.footer-logo { display: inline-block; max-width: 230px; }
.footer-logo img { width: 100%; height: auto; }
.footer-phone {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--color-white) !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }


/* ==========================================================================
   17. SCROLL TO TOP
   ========================================================================== */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-accent); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }


/* ==========================================================================
   18. ACCESSIBILITY & FOCUS STATES
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--deep :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffb37a;
}


/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS (mobile-first adjustments)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner,
  .hero--split .hero__inner,
  .hero--home .hero__inner { grid-template-columns: 1fr; }
  .hero--home .hero__brand,
  .hero--home .hero__intro,
  .hero--home .hero-form { grid-column: auto; grid-row: auto; }
  .hero--home .hero__inner { grid-template-rows: none; }
  /* Form drops below the copy and centres */
  .hero-form { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__media { order: -1; max-width: 560px; }
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --fs-3xl: 2.05rem; --fs-2xl: 1.7rem; --fs-xl: 1.4rem; }

  /* Mobile navigation panel */
  .nav-burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.85rem 0.5rem; font-size: var(--fs-base); border-bottom: 1px solid var(--color-border); }
  .nav__item--has-menu { position: static; }
  .nav__toggle { width: 100%; justify-content: space-between; }
  .nav__submenu {
    position: static;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: var(--space-2) 0 var(--space-3) var(--space-4);
  }
  .header-cta .btn { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: var(--space-3); gap: var(--space-2); }
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .call-bar { display: flex; }
  body { padding-bottom: 68px; }   /* room for sticky call bar */
  .to-top { bottom: 76px; }
}

@media (max-width: 620px) {
  :root { --space-8: 3rem; --space-9: 3.5rem; }
  .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .call-bar .btn { width: auto; }
  .header-cta .btn { width: auto; }
  .logo__tag { display: none; }
  .form-wrap { padding: var(--space-5) var(--space-4); }
  .cta-inline { flex-direction: column; align-items: stretch; }
}


/* ==========================================================================
   20. MOTION & PRINT PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover, .service-card:hover, .step:hover, .feature:hover, .btn:hover,
  .gallery__btn:hover, .gallery__btn:hover img { transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .call-bar, .cta-band, .cta-inline, .form-wrap, .topbar { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .faq__panel { display: block !important; }
}


/* ==========================================================================
   21. SERVICE AREA MAP  (map sits beside the service-area copy)
   ========================================================================== */
.layout-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  background: var(--color-bg-deep);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 1024px) {
  .layout-split--even { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 320px; }
}


/* ==========================================================================
   21. ADDITIONS — site walk, cost estimator, outbound links
   ========================================================================== */
.ext-link, .body-link { color: var(--color-primary-light); }

/* --- Site walk consultation (St. George layout profile) --- */
.site-walk { background: var(--color-bg-alt); }
.site-walk__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--space-7);
  align-items: start;
}
.site-walk__copy .lead { color: var(--color-text); }
.site-walk__card {
  background: var(--color-primary);
  color: var(--color-tint);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-bottom: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--color-accent) 0 12px, var(--color-ink) 12px 24px) 10;
}
.site-walk__card p { color: var(--color-tint); }
.site-walk__big {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--color-accent) !important;
  margin-bottom: var(--space-3);
}
.site-walk__card .btn { margin-top: var(--space-3); }
.site-walk__card .btn--outline { color: var(--color-white); border-color: rgba(255,255,255,.6); }
.site-walk__card .btn--outline:hover { color: var(--color-primary); }

/* --- Cost estimator --- */
.estimator { background: var(--color-white); }
.estimator__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  align-items: center;
}
.estimator__fine { font-size: var(--fs-sm); color: var(--color-text-muted); }
.estimator__tool {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.estimator__tool .field { margin-bottom: var(--space-4); }
.estimator__tool label { display: block; font-weight: 700; margin-bottom: var(--space-2); color: var(--color-heading); }
.estimator__tool select,
.estimator__tool input {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
}
.estimator__out {
  background: var(--color-primary);
  color: var(--color-tint);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}
.estimator__out[hidden] { display: none; }
.estimator__label { margin: 0; font-size: var(--fs-sm); color: var(--color-tint); }
.estimator__range {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--color-accent);
}
.estimator__note { margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--color-tint); }

@media (max-width: 900px) {
  .site-walk__grid, .estimator__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}


/* ==========================================================================
   21. COMMITMENTS
   ========================================================================== */
h1, h2, .hero__brand { letter-spacing: 0; }
.commitments { background: var(--color-bg-alt); }
.commitments .lead { color: var(--color-text); font-size: var(--fs-md); }
.commit-list { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; }
.commit-list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 2.4rem;
  border-top: 1px solid var(--color-border);
}
.commit-list li:last-child { border-bottom: 1px solid var(--color-border); }
.commit-list li::before {
  content: "\2713";
  position: absolute; left: 0.2rem; top: var(--space-3);
  font-weight: 800; font-size: 1.25rem; line-height: 1.5;
  color: var(--color-accent-dark);
}
/* Long business names: let the header name wrap on phones so the menu
   button never gets pushed off screen. */
@media (max-width: 520px) {
  .logo { flex-shrink: 1; min-width: 0; }
  .logo__name { font-size: 0.98rem; line-height: 1.15; white-space: normal; }
}


/* ==========================================================================
   22. CALEDON DESIGN LAYER  (UI/UX Pro Max: warm Minimalism / Swiss, variance
   7, density 3, flat surfaces, sharp corners, serif display)
   ========================================================================== */
body { font-family: var(--font-body); }
h1, h2, h3, h4, .logo__name, .site-walk__big, .estimator__range { font-family: var(--font-display); }
h1, h2 { font-weight: 700; letter-spacing: 0; }
h3, h4 { font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 3.1vw, 2.6rem); line-height: 1.1; }
h3 { font-size: var(--fs-lg); }

/* Sentence-case labels, no tracking, no arrows. */
.eyebrow {
  text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 700;
  color: var(--color-accent-dark); font-family: var(--font-body);
}
.logo__name { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); letter-spacing: 0; }
.logo__tag { text-transform: none; letter-spacing: 0; font-size: 0.875rem; color: var(--color-text-muted); }
.service-card__link::after { content: none; }
.header-cta .btn { white-space: nowrap; }
.header-phone {
  display: none; flex-direction: column; line-height: 1.15; text-decoration: none;
  color: var(--color-heading); font-weight: 700; font-size: var(--fs-md); white-space: nowrap;
}
.header-phone__label { font-size: var(--fs-xs); font-weight: 400; color: var(--color-text-muted); }
.header-phone:hover { color: var(--color-accent-dark); }
@media (min-width: 1360px) { .header-phone { display: inline-flex; } }
.site-header { box-shadow: none; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.nav__link[aria-current="page"] { color: var(--color-primary); }

/* Flat surfaces: no lifts, no gradients (Flat / Swiss rule from the skill). */
.card:hover, .service-card:hover, .step:hover, .feature:hover, .gallery__btn:hover,
.btn--primary:hover, .btn--secondary:hover, .btn--outline:hover, .btn--ghost:hover { transform: none; box-shadow: none; }
.btn { border-radius: var(--radius); font-weight: 700; }
.btn--primary { background: var(--color-cta); color: var(--color-white); box-shadow: none; }
.btn--primary:hover { background: var(--color-cta-hover); color: var(--color-white); }
.btn--secondary { background: var(--color-ink); }
.btn--outline { color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: var(--color-white); }
a { color: var(--color-primary-light); }
a:hover { color: var(--color-accent-dark); }

/* --- Signature: the roofline. A shallow gable stroke under headings. --- */
.roofline::after,
.section-head h2::after,
.commitments h2::after,
.cta-band h2::after,
.intro-band .container::before {
  content: ""; display: block; width: 96px; height: 16px; margin-top: var(--space-3);
  background: var(--color-accent-dark);
  -webkit-mask: var(--roof) no-repeat left center / contain;
          mask: var(--roof) no-repeat left center / contain;
}
.section-head.is-centered h2::after, .cta-band h2::after {
  margin-inline: auto;
  -webkit-mask-position: center; mask-position: center;
}
.cta-band h2::after, .commitments h2::after { background: var(--color-accent); }

/* --- Hero (every page): solid oxblood, no texture, no shadow behind type. --- */
.hero { background: var(--color-primary-dark); color: var(--color-tint); }
.hero::after, .hero::before { content: none !important; display: none !important; }
.hero h1 { color: var(--color-white); text-shadow: none; }
.hero .btn--primary { background: var(--color-accent); color: var(--color-ink); }
.hero .btn--primary:hover { background: var(--color-accent-hover); color: var(--color-ink); }
.hero .btn--ghost { border-color: var(--color-tint); color: var(--color-white); }
.hero .btn--ghost:hover { background: var(--color-tint); color: var(--color-ink); }
.hero .btn--lg { font-size: var(--fs-md); }
.hero--page { padding-block: var(--space-7) var(--space-8); }
.hero--page .hero__inner { max-width: var(--container); margin-inline: auto; }
.hero--page:not(.hero--split) .hero__intro { max-width: 900px; }
.hero__media img { border: 0; border-radius: var(--radius); box-shadow: none; }

/* --- Rebate line (owner change, Oct 19 2026): one link under the H1, above
   the buttons, on every hero. Pale clay on the dark teal base (about 7:1),
   1.125rem on every viewport so it never breaks the no-small-text rule. --- */
.hero__rebate {
  display: inline-block; margin: 0 0 var(--space-5);
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; line-height: 1.4;
  color: var(--color-accent); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color var(--transition);
}
.hero__rebate:hover, .hero__rebate:focus-visible { color: var(--color-white); }

/* --- Home hero: stacked overlap --- */
.hero--stack { padding: 0; overflow: visible; }
.hero__band {
  position: relative; height: clamp(230px, 27vw, 390px); overflow: hidden;
  background: var(--color-bg-deep);
}
.hero__band picture, .hero__band img { display: block; width: 100%; height: 100%; }
.hero__band img { object-fit: cover; object-position: 50% 58%; }
.hero__base {
  position: relative; background: var(--color-primary-dark);
  padding-block: var(--space-7) var(--space-8);
}
/* Roofline across the seam: the base rises to a shallow gable into the photo. */
.hero__base::before {
  content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 39px;
  background: var(--color-primary-dark);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.hero--stack .hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: var(--space-8);
  align-items: start;
}
.hero--stack .hero__inner { grid-template-rows: auto; }
.hero--stack .hero__intro { padding-top: var(--space-2); grid-column: 1; grid-row: 1; }
.hero--stack .hero-form { grid-column: 2; grid-row: 1; align-self: start; }
.hero--stack .hero__intro h1, .hero--page h1 { text-shadow: none !important; }
.hero-form .form-grid { gap: var(--space-4) var(--space-3); }
.hero--stack h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); max-width: 17ch; margin-bottom: var(--space-5); }
.hero--stack .hero-form {
  position: relative; z-index: 2;
  margin-top: calc(-1 * clamp(190px, 21vw, 300px));
}
.hero-form {
  background: var(--color-white); border: 0; border-top: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--space-6);
}
.hero-form::before {          /* wheat roofline cap on the card */
  content: ""; display: block; height: 8px; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5);
  background: var(--color-accent);
}
.hero-form__title { font-size: var(--fs-xl); margin-bottom: var(--space-4); color: var(--color-heading); }
/* No small text in the hero: labels, required marks and inputs at 1rem+. */
.hero label, .hero .req, .hero .opt,
.hero .hero-form .field label { font-size: 1rem; }
.hero .hero-form .field input,
.hero .hero-form .field select { font-size: 1rem; padding: 0.7rem 0.8rem; }
.hero .field__error { font-size: 1rem; }
.hero-form .opt { font-weight: 400; color: var(--color-text-muted); }

/* --- Intro band: limestone ground, large serif lead, roofline mark --- */
.intro-band { background: var(--color-bg); padding-block: var(--space-8) var(--space-4); }
.intro-band .container { max-width: 880px; }
.intro-band .container::before { margin: 0 0 var(--space-5); }
.intro-band p:first-of-type {
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.42; color: var(--color-heading); font-weight: 600;
}
.intro-band p + p { font-size: var(--fs-md); font-weight: 700; color: var(--color-primary); }

/* --- Why: heading column left, copy right --- */
.why-split__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-8); align-items: start; }
.why-split__head { position: sticky; top: calc(var(--header-h) + 24px); }
.why-split__body p:first-child { font-size: var(--fs-md); }

/* --- Commitments: dark band with a gable top edge, checklist in two columns --- */
.commitments {
  position: relative; background: var(--color-primary); color: var(--color-tint);
  padding-top: calc(var(--space-8) + 30px);
  clip-path: polygon(0 40px, 50% 0, 100% 40px, 100% 100%, 0 100%);
  margin-top: -1px;
}
.commitments h2 { color: var(--color-white); }
.commitments .lead { color: var(--color-tint); font-size: var(--fs-md); }
.commitments .container--narrow { max-width: var(--container); }
.commit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-7); margin: var(--space-6) 0; }
.commit-list li { border-top: 1px solid rgba(243, 233, 216, .28); color: var(--color-white); padding-left: 2.6rem; }
.commit-list li:last-child { border-bottom: 0; }
.commit-list li::before { color: var(--color-accent); }
.commitments .btn--primary { background: var(--color-accent); color: var(--color-ink); }
.commitments .btn--primary:hover { background: var(--color-accent-hover); color: var(--color-ink); }
.commitments .btn--outline { color: var(--color-white); border-color: var(--color-tint); }
.commitments .btn--outline:hover { background: var(--color-tint); color: var(--color-ink); }

/* --- Services: a ruled ledger of rows (photo left, words right), two columns --- */
.grid--3:has(> .service-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-7); counter-reset: svc; }
.service-card {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--space-5);
  background: transparent; border: 0; border-top: 1px solid var(--color-border-strong);
  border-radius: 0; box-shadow: none; padding: var(--space-5) 0; overflow: visible;
}
.service-card:hover { box-shadow: none; border-color: var(--color-primary); }
.service-card__media { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; align-self: start; }
.service-card__body { padding: 0; }
.service-card__body h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.service-card__body h3::before {
  counter-increment: svc; content: counter(svc, decimal-leading-zero);
  display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--color-accent-dark); margin-bottom: 2px;
}
.service-card__body p { font-size: var(--fs-sm); color: var(--color-text-muted); }
.service-card__link { margin-top: var(--space-3); color: var(--color-primary-light); font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --- Benefits: two ruled columns, wheat tick in a square --- */
.benefit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); }
.feature {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: start;
  background: none; border: 0; border-top: 2px solid var(--color-primary); border-radius: 0;
  padding: var(--space-5) 0;
}
.feature:hover { box-shadow: none; border-color: var(--color-primary); }
.feature__icon {
  width: 44px; height: 44px; margin: 0; border-radius: var(--radius);
  background: var(--color-primary); color: var(--color-accent); font-size: 1.2rem;
}
.feature p { font-size: var(--fs-md); color: var(--color-text); }

/* --- Process: a numbered timeline on one rule --- */
.steps.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); position: relative; }
.steps.timeline::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--color-border-strong);
}
.timeline .step { background: none; border: 0; box-shadow: none; padding: 68px 0 0; border-radius: 0; }
.timeline .step::before {
  top: 0; left: 0; width: 50px; height: 50px; border-radius: 0;
  background: var(--color-primary); color: var(--color-accent);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; box-shadow: none;
  clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);   /* a little house */
}
.timeline .step p { font-size: var(--fs-sm); color: var(--color-text); }

/* --- Main content column: rules between blocks, serif headings --- */
.content-block { border-top: 1px solid var(--color-border); }
.sidebar .card { border-radius: var(--radius); border: 0; border-top: 6px solid var(--color-primary); box-shadow: none; background: var(--color-white); }
.panel { border-radius: var(--radius); background: var(--color-bg-alt); border: 0; }
.cta-inline { background: var(--color-bg-alt); border: 0; border-left: 6px solid var(--color-primary); border-radius: var(--radius); }

/* --- CTA bands: dark oxblood with a gable cap --- */
.cta-band {
  position: relative; background: var(--color-primary); color: var(--color-tint);
  padding-block: calc(var(--space-8) + 20px) var(--space-8);
  clip-path: polygon(0 30px, 50% 0, 100% 30px, 100% 100%, 0 100%);
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: var(--color-tint); }
.cta-band a:not(.btn) { color: var(--color-accent-light); }
.cta-band .btn--primary { background: var(--color-accent); color: var(--color-ink); }
.cta-band .btn--primary:hover { background: var(--color-accent-hover); color: var(--color-ink); }
.cta-band .btn--ghost { border-color: var(--color-tint); }
.cta-band .btn--ghost:hover { background: var(--color-tint); color: var(--color-ink); }

/* --- FAQ: heading column left, accordion right --- */
.faq-split__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--space-8); align-items: start; }
.faq-split__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-split .faq { max-width: none; margin: 0; }
.faq__item { border: 0; border-top: 1px solid var(--color-border-strong); border-radius: 0; background: transparent; margin: 0; }
.faq__item:last-child { border-bottom: 1px solid var(--color-border-strong); }
.faq__item.is-open { box-shadow: none; border-color: var(--color-primary); }
.faq__trigger { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; padding: var(--space-4) 0; }
.faq__trigger:hover { background: none; }
.faq__icon::before, .faq__icon::after { background: var(--color-primary-light); }
.faq__panel { padding: 0 0 var(--space-5); color: var(--color-text); }

/* --- Map, estimator and forms --- */
.map-wrap { border-radius: var(--radius); box-shadow: none; border: 6px solid var(--color-white); outline: 1px solid var(--color-border); }
.estimator { background: var(--color-bg); }
.estimator__tool { border: 0; border-top: 6px solid var(--color-accent); border-radius: var(--radius); background: var(--color-white); }
.estimator__out { background: var(--color-primary-dark); }
.form-wrap { border-radius: var(--radius); box-shadow: none; border: 0; border-top: 6px solid var(--color-primary); }
.field input, .field select, .field textarea { border-radius: var(--radius); }

/* --- Footer: deep oxblood, gable cap --- */
.site-footer { background: var(--color-primary-dark); position: relative; }
.site-footer h3 { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: var(--fs-lg); }
.site-footer a:hover { color: var(--color-accent); }
.call-bar { background: var(--color-primary-dark); border-top: 3px solid var(--color-accent); }
.call-bar .btn--primary { background: var(--color-accent); color: var(--color-ink); font-size: var(--fs-base); }
.call-bar .btn--secondary { background: var(--color-cta); color: var(--color-white); }
.to-top { background: var(--color-primary); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero--stack .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .hero--stack .hero-form { margin-top: 0; max-width: 620px; margin-inline: 0; grid-column: 1; grid-row: 2; }
  .why-split__grid, .faq-split__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .why-split__head, .faq-split__head { position: static; }
  .steps.timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps.timeline::before { left: 24px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline .step { padding: 0 0 var(--space-5) 74px; min-height: 66px; }
}
@media (max-width: 900px) {
  .grid--3:has(> .service-card), .benefit-list, .commit-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .topbar__inner p + p { display: none; }
  .hero__band { height: 210px; }
  .hero__base { padding-block: var(--space-6) var(--space-7); }
  .hero__base::before { top: -22px; height: 23px; }
  .hero--stack h1 { font-size: 2.2rem; }
  .hero-form { padding: var(--space-5); }
  .hero-form::before { margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4); }
  .service-card { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); }
  .commitments { clip-path: polygon(0 22px, 50% 0, 100% 22px, 100% 100%, 0 100%); }
  .cta-band { clip-path: polygon(0 18px, 50% 0, 100% 18px, 100% 100%, 0 100%); }
}
@media (max-width: 520px) {
  .logo { flex-shrink: 1; min-width: 0; }
  .logo__name { font-size: 1.05rem; line-height: 1.15; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
