/* AJH Home Improvements — site stylesheet
   Layout idea: left-aligned, asymmetric two-column section heads; photography in square-cornered
   frames; the logo green used only as a thin datum line and for the primary action. */
:root {
  --slate-950: #161B21;
  --slate-900: #1E242B;
  --slate-800: #29313A;
  --slate-700: #3B4651;
  --slate-500: #66717D;
  --slate-300: #B9C0C7;
  --line: #DDE1E5;
  --tint: #EEF0F2;
  --alabaster: #F8F9FA;
  --white: #FFFFFF;
  --accent: #5A9A52;
  --accent-bright: #6FB266;
  --accent-deep: #2F6B2C;
  --forest: #1F3A2E;
  --forest-soft: #E6EDE8;
  --danger: #A8321F;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 3px;
  --header-h: 96px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--alabaster); color: var(--slate-800);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--slate-900); margin: 0; text-wrap: balance; letter-spacing: -0.022em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 58ch; }
.measure { max-width: 64ch; }
.stack > * + * { margin-top: 1em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--white { background: var(--white); }
.section--dark { background: var(--slate-900); color: var(--slate-300); }
.section--forest { background: var(--forest); color: #C9D6CE; }
.section--dark h2, .section--dark h3, .section--forest h2, .section--forest h3 { color: var(--white); }
.section--flush-top { padding-top: 0; }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { position: relative; padding-top: 22px; }
.section-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: var(--accent); }
.section-head p { max-width: 56ch; }
.section-head--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px; border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn--accent { background: var(--accent); color: var(--slate-950); }
.btn--accent:hover { background: var(--accent-bright); }
.btn--dark { background: var(--slate-900); color: var(--white); }
.btn--dark:hover { background: var(--slate-700); }
.btn--outline { border-color: var(--slate-900); color: var(--slate-900); background: transparent; }
.btn--outline:hover { background: var(--slate-900); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--text { background: none; color: var(--slate-700); padding-inline: 8px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.btn--text:hover { color: var(--slate-900); text-decoration-color: var(--slate-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink { font-family: var(--font-display); font-weight: 700; color: var(--slate-900); }
.section--dark .textlink, .section--forest .textlink { color: var(--white); }

/* ---------- Staging bar ---------- */
.staging-bar { background: var(--forest); color: #DCE7E0; font-size: .85rem; text-align: center; padding: 7px var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,249,250,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(30,36,43,.45); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate-900); flex: none; }
.brand__mark { display: grid; place-items: center; height: 42px; padding: 0 10px; background: var(--slate-900); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; border-radius: 2px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.05; letter-spacing: -0.015em; max-width: 7.5em; }
.brand__img { height: 72px; width: auto; }
.site-footer .brand__img { height: 84px; }
.brand--light { color: var(--white); }
.brand--light .brand__mark { background: var(--accent); color: var(--slate-950); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--slate-800); padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__item > a:hover, .nav__item > a[aria-current] { color: var(--slate-950); border-bottom-color: var(--accent); }
.nav__caret { width: 26px; height: 32px; margin-left: 2px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__caret::before { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-right: 2px solid var(--slate-700); border-bottom: 2px solid var(--slate-700); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav__menu { position: absolute; top: 100%; left: -20px; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--accent); box-shadow: 0 24px 48px -24px rgba(30,36,43,.4); padding: 8px; display: none; }
.has-menu:hover .nav__menu, .has-menu:focus-within .nav__menu, .has-menu.is-open .nav__menu { display: block; }
.has-menu.is-open .nav__caret::before { transform: translateY(2px) rotate(225deg); }
.nav__menu a { display: block; padding: 11px 14px; text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--slate-800); border-radius: 2px; }
.nav__menu a:hover { background: var(--tint); color: var(--slate-950); }
.nav__menu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav__menu-all a { font-family: var(--font-display); font-weight: 700; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: grid; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--slate-900); line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__phone span { font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--slate-500); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: none; border: 1.5px solid var(--slate-900); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--slate-900); cursor: pointer; }
.nav-toggle__bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(30,36,43,.5); padding: 12px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item > a { flex: 1; padding: 15px 0; font-size: 1.05rem; border-bottom: 0; }
  .nav__caret { width: 48px; height: 48px; }
  .nav__menu { position: static; display: none; width: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px; }
  .has-menu:hover .nav__menu, .has-menu:focus-within .nav__menu { display: none; }
  .has-menu.is-open .nav__menu { display: block; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .nav__phone { font-size: 1.3rem; }
}

/* ---------- Image frames ---------- */
.ph { position: relative; overflow: hidden; background: var(--slate-800); aspect-ratio: 4 / 3; }
.ph::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(160deg, var(--slate-700), var(--slate-900)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph img.is-broken { display: none; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--card { aspect-ratio: 5 / 4; }
.ph--hero { aspect-ratio: 5 / 4; }
.ph--wide { aspect-ratio: 21 / 9; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--slate-900); color: var(--white); }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(22,27,33,.94) 0%, rgba(22,27,33,.82) 38%, rgba(22,27,33,.35) 72%, rgba(22,27,33,.2) 100%),
  linear-gradient(0deg, rgba(22,27,33,.85) 0%, rgba(22,27,33,0) 38%); }
.hero__inner { padding-block: clamp(72px, 11vw, 150px) clamp(48px, 7vw, 96px); }
.hero__text { max-width: 780px; }
.hero h1 { color: var(--white); }
.hero .lead { margin-top: 24px; color: #D7DCE1; max-width: 54ch; }
.hero .btn-row { margin-top: 36px; }
.trustbar { border-top: 1px solid rgba(255,255,255,.18); }
.trustbar ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trustbar li { padding: 22px 24px 24px 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--white); }
.trustbar li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.trustbar li span { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: .88rem; color: #B7C0C8; }
@media (max-width: 820px) {
  .hero::after { background: linear-gradient(0deg, rgba(22,27,33,.95) 0%, rgba(22,27,33,.78) 100%); }
  .trustbar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trustbar li { padding: 16px 16px 16px 0; }
  .trustbar li + li { padding-left: 0; border-left: 0; }
  .trustbar li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
  .trustbar li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--slate-900); color: #CCD2D8; padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.page-hero .lead { margin-top: 20px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__grid > .ph { box-shadow: 14px 14px 0 -1px var(--slate-900), 14px 14px 0 0 var(--accent); margin-right: 14px; }
.page-hero--plain .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
.page-hero--plain .page-hero__text { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #9BA5AE; margin-bottom: 22px; }
.crumbs a { color: #C9D0D6; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--accent-bright); }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.svc-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--slate-700); transition: border-color .2s, box-shadow .2s; }
.svc-card:nth-child(-n+2) { grid-column: span 3; }
.svc-card:nth-child(-n+2) .ph { aspect-ratio: 16 / 9; }
.svc-card .ph img { transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.svc-card:hover .ph img, .svc-card:focus-visible .ph img { transform: scale(1.06); }
.svc-card:hover { border-color: var(--slate-900); box-shadow: 0 28px 48px -32px rgba(30,36,43,.55); }
.svc-card__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 30px); flex: 1; }
.svc-card__body h3 { font-size: 1.3rem; }
.svc-card__body ul { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 2px; }
.svc-card__body li { font-size: .84rem; font-weight: 500; padding: 4px 10px; background: var(--tint); color: var(--slate-700); border-radius: 2px; }
.svc-card__link { margin-top: auto; padding-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--slate-900); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 980px) { .svc-card, .svc-card:nth-child(-n+2) { grid-column: span 3; } .svc-card:last-child:nth-child(odd) { grid-column: span 6; } }
@media (max-width: 640px) { .svc-card, .svc-card:nth-child(-n+2), .svc-card:last-child:nth-child(odd) { grid-column: span 6; } }

/* ---------- Pillars (the standard) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.pillar { padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }
.pillar svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.pillars--light { border-top-color: var(--line); }
.pillars--light .pillar + .pillar { border-left-color: var(--line); }
.pillars--light .pillar svg { stroke: var(--accent-deep); }
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar, .pillar + .pillar { padding: 28px 20px 28px 0; border-left: 0; }
  .pillar:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); }
  .pillars--light .pillar:nth-child(even) { border-left-color: var(--line); }
  .pillar:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }
  .pillars--light .pillar:nth-child(n+3) { border-top-color: var(--line); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar, .pillar:nth-child(even) { padding: 24px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid rgba(255,255,255,.2); }
  .pillars--light .pillar + .pillar { border-top-color: var(--line); }
}

/* ---------- Process timeline (a real sequence, so it is numbered) ---------- */
.timeline { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.timeline > li { counter-increment: step; position: relative; padding: 44px 28px 0 0; }
.timeline > li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--slate-900); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: .9rem; border-radius: 50%; z-index: 1; font-variant-numeric: tabular-nums; }
.timeline > li::after { content: ""; position: absolute; top: 14px; left: 30px; right: 0; height: 2px; background: var(--line); }
.timeline > li:last-child::after { background: linear-gradient(90deg, var(--line), transparent); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { font-size: 1rem; }
.timeline .timeline__when { display: block; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--accent-deep); }
.section--dark .timeline > li::before, .section--forest .timeline > li::before { background: var(--accent); color: var(--slate-950); }
.section--dark .timeline > li::after, .section--forest .timeline > li::after { background: rgba(255,255,255,.22); }
.section--dark .timeline .timeline__when, .section--forest .timeline .timeline__when { color: var(--accent-bright); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline > li { padding: 0 0 36px 52px; }
  .timeline > li::after { top: 30px; bottom: 0; left: 14px; right: auto; width: 2px; height: auto; }
  .timeline > li:last-child { padding-bottom: 0; }
  .timeline > li:last-child::after { display: none; }
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 42px; padding: 8px 18px; border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--slate-700); cursor: pointer; }
.filters button:hover { border-color: var(--slate-900); color: var(--slate-900); }
.filters button[aria-pressed="true"] { background: var(--slate-900); border-color: var(--slate-900); color: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.project { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.project[hidden] { display: none; }
.project__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.project__body > p { font-size: .98rem; }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; font-weight: 600; padding: 3px 9px; background: var(--forest-soft); color: var(--forest); border-radius: 2px; }
.tag--sample { background: #F3ECDD; color: #7A5B1E; }
.facts { display: grid; gap: 0; margin-top: auto; padding-top: 12px; font-size: .92rem; }
.facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--slate-500); }
.facts dd { color: var(--slate-900); font-weight: 500; }
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service page blocks ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--slate-900); }
.offer { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.offer + .offer { padding-left: 28px; border-left: 1px solid var(--line); }
.ticks { display: grid; gap: 8px; margin-top: 4px; font-size: .97rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 6px; border-left: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: rotate(-45deg); }
.section--dark .ticks li::before, .section--forest .ticks li::before { border-color: var(--accent); }
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer, .offer + .offer { padding: 24px 0; border-left: 0; }
  .offer + .offer { border-top: 1px solid var(--line); }
}

.spec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.buildup { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 32px); }
.buildup figcaption { display: grid; gap: 4px; margin-bottom: 22px; }
.buildup figcaption strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--slate-900); }
.buildup figcaption span { font-size: .92rem; color: var(--slate-500); }
.layer { display: grid; grid-template-columns: clamp(64px, 22%, 120px) minmax(0, 1fr); column-gap: 18px; align-items: center; min-height: calc(26px + var(--h, 2) * 14px); }
.layer + .layer { margin-top: 3px; }
.layer__band { grid-row: 1 / span 2; align-self: stretch; background: var(--band, var(--slate-500)); background-image: var(--pattern, none); }
.layer__name { align-self: end; font-family: var(--font-display); font-weight: 700; font-size: .96rem; color: var(--slate-900); line-height: 1.25; }
.layer__spec { align-self: start; font-size: .88rem; color: var(--slate-500); line-height: 1.35; padding-bottom: 6px; }
.layer--slate { --band: #3F4A56; --pattern: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 22px); }
.layer--tile { --band: #9C4F38; --pattern: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 1px, transparent 1px 18px); }
.layer--timber { --band: #B58A55; --pattern: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 6px, transparent 6px 30px); }
.layer--membrane { --band: #7C8B99; --pattern: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 2px, transparent 2px 7px); }
.layer--insulation { --band: #E3C56B; --pattern: repeating-linear-gradient(135deg, rgba(0,0,0,.1) 0 2px, transparent 2px 9px); }
.layer--deck { --band: #C9A873; --pattern: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 40px); }
.layer--rubber { --band: #23282E; }
.layer--surface { --band: #C9A46B; --pattern: radial-gradient(rgba(0,0,0,.2) 1px, transparent 1.4px) 0 0 / 6px 6px; }
.layer--tarmac { --band: #2B2F34; --pattern: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px) 0 0 / 5px 5px; }
.layer--block { --band: #8C5A45; --pattern: repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 26px); }
.layer--sand { --band: #DCC89A; --pattern: radial-gradient(rgba(0,0,0,.13) 1px, transparent 1.3px) 0 0 / 4px 4px; }
.layer--base { --band: #8D9299; --pattern: radial-gradient(rgba(0,0,0,.25) 2px, transparent 2.6px) 0 0 / 11px 9px; }
.layer--soil { --band: #5B4636; --pattern: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.4px) 0 0 / 8px 7px; }
.layer--stone { --band: #BFC3C4; --pattern: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 2px, transparent 2px 46px); }
.layer--mortar { --band: #A9A69E; }
.layer--grass { --band: #4F7A45; --pattern: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 4px); }
.layer--upvc { --band: #F1F2F3; --pattern: linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px); }
.layer--metal { --band: #6E7884; --pattern: linear-gradient(0deg, rgba(255,255,255,.3) 0 2px, transparent 2px); }
.layer--brick { --band: #A4523A; --pattern: repeating-linear-gradient(90deg, rgba(240,230,215,.55) 0 2px, transparent 2px 34px), repeating-linear-gradient(0deg, rgba(240,230,215,.55) 0 2px, transparent 2px 14px); }
.layer--blockwork { --band: #A5A8AA; --pattern: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 2px, transparent 2px 52px); }
.layer--concrete { --band: #9A9FA5; }
.layer--plaster { --band: #EDE6DA; --pattern: linear-gradient(0deg, rgba(0,0,0,.1) 0 1px, transparent 1px); }
.layer--upvc .layer__band, .layer--plaster .layer__band { box-shadow: inset 0 0 0 1px var(--line); }

.spec h3 { margin-bottom: 14px; }
.spec table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--slate-900); font-size: .98rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 36%; padding-right: 20px; font-family: var(--font-display); font-weight: 700; color: var(--slate-900); }
.note { margin-top: 18px; font-size: .92rem; color: var(--slate-500); max-width: 60ch; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .spec th, .spec td { display: block; width: 100%; } .spec th { padding-bottom: 2px; border-bottom: 0; } .spec td { padding-top: 0; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { position: relative; padding-bottom: 40px; padding-right: 40px; }
.split__media .ph--inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--alabaster); }
.section--tint .split__media .ph--inset { border-color: var(--tint); }
.section--white .split__media .ph--inset { border-color: var(--white); }
.split__media--plain { padding: 0; }
.split__text > h2 { margin-bottom: 28px; position: relative; padding-top: 22px; }
.split__text > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: var(--accent); }
.benefits > div { padding: 18px 0; border-top: 1px solid var(--line); }
.benefits > div:last-child { border-bottom: 1px solid var(--line); }
.benefits dt { font-family: var(--font-display); font-weight: 700; color: var(--slate-900); font-size: 1.08rem; margin-bottom: 4px; }
.section--dark .benefits > div, .section--forest .benefits > div { border-color: rgba(255,255,255,.2); }
.section--dark .benefits dt, .section--forest .benefits dt { color: var(--white); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--flip .split__media { order: 0; } .split__media .ph--tall { aspect-ratio: 4 / 3; } }

.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-layout > div:first-child { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 2px solid var(--slate-900); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--slate-900); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--slate-900); border-bottom: 2px solid var(--slate-900); transform: rotate(45deg); transition: transform .15s; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding: 0 48px 22px 0; max-width: 68ch; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout > div:first-child { position: static; } .faq details p { padding-right: 0; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; background: var(--slate-950); color: #D2D8DE; padding-block: clamp(56px, 8vw, 104px); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.4); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { max-width: 56ch; }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quote form ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: clamp(24px, 3.4vw, 44px); color: var(--slate-800); box-shadow: 0 40px 70px -50px rgba(30,36,43,.6); }
.quote__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--slate-900); }
.quote__head p { margin-top: 8px; color: var(--slate-500); }
.quote__steps { counter-reset: qs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 26px 0 28px; }
.quote__steps li { counter-increment: qs; padding-top: 10px; border-top: 3px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--slate-500); }
.quote__steps li::before { content: counter(qs) ". "; font-variant-numeric: tabular-nums; }
.quote__steps li[aria-current], .quote__steps li.is-done { border-top-color: var(--slate-900); color: var(--slate-900); }
.quote__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 20px; }
.quote__step[hidden], .quote__done[hidden] { display: none; }
.quote__step legend { padding: 0; margin-bottom: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--slate-900); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--slate-900); }
.field label span { font-weight: 400; color: var(--slate-500); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--slate-900); background: var(--alabaster); border: 1.5px solid var(--slate-300); border-radius: var(--radius); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(90,154,82,.45); outline-offset: 0; border-color: var(--slate-900); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: .88rem; color: var(--slate-500); }
.field__error { font-size: .9rem; font-weight: 600; color: var(--danger); }
.quote__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.quote__nav > :only-child { margin-left: auto; }
.quote__privacy { font-size: .88rem; color: var(--slate-500); }
.quote__done { display: grid; gap: 16px; }
.quote__done h3 { font-size: 1.4rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { display: grid; gap: 0; border-top: 2px solid var(--slate-900); }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.contact-list dt { font-size: .9rem; color: var(--slate-500); }
.contact-list dd { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--slate-900); overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.areas li { font-size: .86rem; padding: 3px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; color: #C5CCD3; }
.areas--light li { border-color: var(--line); color: var(--slate-700); background: var(--white); font-size: .95rem; padding: 6px 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: #A9B2BB; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 4fr); gap: 40px clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px); }
.site-footer__brand { display: grid; gap: 20px; align-content: start; }
.site-footer__brand p { max-width: 36ch; }
.site-footer h2 { font-size: .95rem; font-weight: 700; color: var(--white); letter-spacing: 0; margin-bottom: 16px; }
.site-footer h2.site-footer__sub { margin-top: 26px; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { text-decoration: none; color: #C5CCD3; }
.site-footer__links a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; }
.social a:hover { border-color: var(--accent); }
.social svg { width: 20px; height: 20px; fill: #C5CCD3; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-block: 26px 34px; display: grid; gap: 12px; font-size: .88rem; }
.site-footer__legal p > span { display: inline-block; margin-right: 14px; }
.site-footer__small { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__small a { color: #C5CCD3; }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Shared responsive ---------- */
@media (max-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__grid > .ph { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The quote form is a white panel: keep its headings dark wherever it sits */
.section--dark .quote h2, .section--dark .quote h3, .section--forest .quote h2, .section--forest .quote h3 { color: var(--slate-900); }
