/* =============================================================================
   S M Keen Builders - shared design system
   Warm heritage-craft: limestone paper, warm charcoal ink, a single brick-clay
   accent drawn from the firm's own brickwork. One accent, one temperature (warm),
   one radius system. Inter (display) + Lato (body). Light + dark.
   ============================================================================= */

/* ------------------------------- Fonts ----------------------------------- */
/* Headlines: Inter (variable, OFL). Body: Lato. */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 700;
  font-display: swap;
  src: url('fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic; font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400i.woff2') format('woff2');
}

/* ------------------------------- Tokens ---------------------------------- */
:root {
  /* Warm neutral ground */
  --paper: #F4F1EA;
  --surface: #FBF9F4;
  --sunk: #EBE6DA;
  --dark: #221E18;         /* warm charcoal for inverted bands */
  --dark-2: #2C271F;

  /* Warm ink */
  --ink: #211E19;
  --body: #332E27;
  --muted: #6C655A;
  --on-dark: #F3EEE4;
  --on-dark-muted: #B8AF9F;

  /* Hairlines. --line-control bounds real controls and must clear 3:1. */
  --line: #E2DCCE;
  --line-strong: #CEC6B4;
  --line-control: #857D6E;

  /* Brick-clay accent ramp (the one accent; taken from their own brickwork) */
  --clay-900: #3A1A11;
  --clay-800: #55271A;
  --clay-700: #6F3320;
  --clay-600: #8C4026;
  --clay-500: #A64E2E;
  --clay-400: #BE6B4C;
  --clay-300: #D69C84;
  --clay-200: #E8C4B4;
  --clay-100: #F2DED4;

  --accent: #8C4026;          /* buttons / solid */
  --accent-hover: #6F3320;
  --accent-text: #7A3620;     /* clay on paper, clears 4.5:1 */
  --on-accent: #FCF7F2;

  /* Radius system: controls 6px, media/cards 10px, tags pill */
  --r-control: 6px;
  --r-card: 10px;
  --r-pill: 999px;

  --shell: 1200px;
  --shell-wide: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(43, 33, 22, .06), 0 2px 8px rgba(43, 33, 22, .05);
  --shadow-md: 0 6px 18px rgba(43, 33, 22, .09), 0 2px 6px rgba(43, 33, 22, .06);
  --shadow-lg: 0 18px 48px rgba(43, 33, 22, .16);
}

/* Light theme only. Dark mode is intentionally disabled so the site always looks
   like the light version regardless of the visitor's system setting. */

/* ------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
ul { margin: 0; }

::selection { background: var(--clay-200); color: var(--clay-900); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: var(--r-control); }

/* Serif display */
.serif { font-family: 'Inter', system-ui, sans-serif; }
h1, h2, .display {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  text-transform: capitalize;
  text-wrap: balance;
}
h1 em, h2 em, .display em { font-style: normal; font-weight: 800; }
h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.22;
  color: var(--ink);
  text-transform: capitalize;
}

/* ------------------------------- Layout ---------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell--wide { max-width: var(--shell-wide); }
@media (max-width: 640px) { .shell { padding: 0 20px; } }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--r-control); font-weight: 500;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------ Eyebrow ---------------------------------- */
/* Used sparingly (max ~1 per 3 sections). Small, warm, tracked. */
.eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--clay-400); display: inline-block;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--body); max-width: 60ch; line-height: 1.6; }

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 14px 26px; border-radius: 0;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-control); }
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); transform: translateY(-1px); }
.btn--ondark { background: var(--on-dark); color: var(--dark); }
.btn--ondark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost-dark { background: transparent; color: var(--on-dark); border-color: rgba(243,238,228,.4); }
.btn--ghost-dark:hover { border-color: var(--on-dark); background: rgba(243,238,228,.08); }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--accent-text);
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent-text) 35%, transparent);
  padding-bottom: 1px; transition: gap .16s var(--ease), border-color .16s var(--ease);
}
.textlink:hover { gap: 11px; border-color: var(--accent-text); }
.textlink svg { width: 15px; height: 15px; }

/* ------------------------------- Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand__logo { height: 40px; width: auto; flex: none; display: block; }
.brand__name { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; line-height: 1; }
.brand__name small { display: block; font-family: 'Lato', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--body);
  padding: 8px 13px; border-radius: var(--r-control);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav__links a[aria-current="page"] { color: var(--accent-text); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; }
.nav__phone svg { width: 16px; height: 16px; color: var(--accent-text); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: var(--r-control); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 12px; font-size: 17px; border-radius: var(--r-control); }
  .nav__phone-lg { display: none; }
}
@media (min-width: 901px) { .nav__links { position: static !important; opacity: 1 !important; pointer-events: auto !important; transform: none !important; } }
@media (max-width: 560px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__logo { height: 34px; }
  .brand__name { font-size: 16.5px; }
  .brand__name small { display: none; }
  .nav__right { gap: 9px; }
  .nav__right .btn--primary { padding: 9px 13px; font-size: 14px; }
}
@media (max-width: 380px) { .nav__right .btn--primary { display: none; } }

/* ------------------------------- Hero ------------------------------------ */
.hero { position: relative; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Cross-fading slideshow of finished-result photos. */
.hero__slides { position: absolute; inset: 0; background: var(--sunk); }
.hero__slide { opacity: 0; transition: opacity 2.5s var(--ease); }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26,20,14,.86) 0%, rgba(26,20,14,.62) 42%, rgba(26,20,14,.18) 74%, rgba(26,20,14,.05) 100%),
    linear-gradient(0deg, rgba(26,20,14,.5) 0%, rgba(26,20,14,0) 40%);
}
.hero__inner {
  position: relative; display: flex; align-items: center;
  min-height: 640px;                                  /* fallback for old browsers */
  min-height: max(480px, calc(100vh - var(--nav-h)));
  min-height: max(480px, calc(100dvh - var(--nav-h)));
}
.hero__content { max-width: 760px; padding: 48px 0; color: var(--on-dark); }
.hero__eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #F0D4C6; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--clay-300); }
.hero h1 {
  color: #FDFBF7;
  font-size: clamp(2rem, 4.6vw, 4.1rem);
  line-height: 1.1; letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero h1 em { color: #F2C6B2; }
.hero__sub {
  margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: #EFE7DB; max-width: 44ch; line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero__meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 14px; color: #E7DECF;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: #E9B49E; }
@media (max-width: 560px) {
  .hero__scrim { background: linear-gradient(0deg, rgba(26,20,14,.9) 6%, rgba(26,20,14,.6) 46%, rgba(26,20,14,.4) 100%); }
  .hero__inner { align-items: flex-end; }
  .hero__content { padding-bottom: 44px; }
}

/* --------------------------- Trust / stat strip -------------------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
}
.trust__cell { background: var(--surface); padding: 26px 22px; }
.trust__num { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: clamp(1.55rem, 2.7vw, 2.1rem); color: var(--ink); line-height: 1.05; letter-spacing: -0.01em; text-transform: capitalize; }
.trust__label { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 720px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ Feature bar ------------------------------ */
/* Translucent "glass" panel floating over the bottom of the hero photo, like the
   reference site: clay icon on the left, uppercase title + subtitle on the right,
   inset vertical dividers between the four cells. */
.featurebar { position: relative; z-index: 3; margin-top: -97px; }
.featurebar__panel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 11, 7, 0.45);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
  overflow: hidden;
}
.featurebar__item { position: relative; display: flex; align-items: center; gap: 15px; padding: 26px 30px; }
.featurebar__item + .featurebar__item::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
  width: 1px; background: rgba(255, 255, 255, 0.14);
}
.featurebar__ico { flex: none; color: var(--clay-400); display: grid; place-items: center; }
.featurebar__ico svg { width: 30px; height: 30px; }
.featurebar__txt strong {
  display: block; font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
  color: #FFFFFF; line-height: 1.25;
}
.featurebar__txt span { display: block; margin-top: 4px; font-size: 13px; color: rgba(243, 238, 228, 0.74); }
@media (prefers-reduced-transparency: reduce) {
  .featurebar__panel { background: rgba(18, 13, 9, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 860px) {
  /* Below the hero there is no photo behind the bar, so use a solid dark panel. */
  .featurebar { margin-top: 0; }
  .featurebar__panel { grid-template-columns: repeat(2, 1fr); background: var(--dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .featurebar__item:nth-child(odd)::before { display: none; }
  .featurebar__item:nth-child(n+3)::after {
    content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: rgba(255, 255, 255, 0.12);
  }
}
@media (max-width: 640px) {
  /* Full-bleed to the phone edges. */
  .featurebar .shell { padding: 0; }
  .featurebar__panel { border-left: 0; border-right: 0; }
}
@media (max-width: 540px) {
  /* Keep the 2x2 grid on phones, roomy (not scrunched). */
  .featurebar__item { padding: 30px 22px; gap: 15px; }
  .featurebar__txt strong { font-size: 14px; letter-spacing: .02em; line-height: 1.25; }
  .featurebar__txt span { font-size: 13px; margin-top: 4px; }
}

/* ------------------------- Section heading block ------------------------- */
.head { max-width: 62ch; }
.head--center { margin: 0 auto; text-align: center; }
.head h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); }
.head .lede { margin-top: 18px; }
.head--center .lede { margin-left: auto; margin-right: auto; }

/* ------------------------------ Services --------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sunk); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.045); }
.svc__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 1.24rem; }
.svc__body p { margin-top: 9px; font-size: 15px; color: var(--body); line-height: 1.55; }
.svc__list { list-style: none; padding: 0; margin: 15px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.svc__list li { font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--sunk); padding: 4px 10px; border-radius: var(--r-pill); }
.svc__more { margin-top: auto; padding-top: 18px; }

.svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .svc-grid--2 { grid-template-columns: 1fr; } }
.svc__points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.svc__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--body); }
.svc__points svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; margin-top: 3px; }
.svc-grid--2 .svc__media { aspect-ratio: 16 / 10; }

/* Icon variant (no photo) */
.svc--icon .svc__body { padding-top: 26px; }
.svc__ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--clay-100); color: var(--clay-700); margin-bottom: 16px; }
.svc__ico svg { width: 24px; height: 24px; }

/* ---------------------- Feature row (alternating) ------------------------ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 92px); }
.feature__media { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-md); background: var(--sunk); aspect-ratio: 4 / 3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature--flip .feature__media { order: 2; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature__body p { margin-top: 16px; color: var(--body); }
.feature__points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--body); }
.feature__points svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; margin-top: 2px; }
.feature__cta { margin-top: 26px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature--flip .feature__media { order: 0; }
}

/* --------------------------- Before / after ------------------------------ */
/* Drag the handle to wipe between two stages of the SAME job. Keyboard-operable
   via a hidden range input; the visible handle just follows the value. */
.ba {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--r-card); overflow: hidden; background: var(--sunk);
  user-select: none; --pos: 50%; box-shadow: var(--shadow-md);
  touch-action: pan-y; cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
/* The "before" layer sits on top and is clipped from the right. */
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; bottom: 16px; z-index: 3;
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(26,20,14,.74); padding: 6px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(2px); pointer-events: none;
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(26,20,14,.18); }
.ba__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--clay-700);
  display: flex; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 4px 16px rgba(26,20,14,.34);
}
.ba__handle svg { width: 16px; height: 16px; fill: currentColor; }
.ba__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; cursor: ew-resize; -webkit-appearance: none; appearance: none; pointer-events: none; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 52px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 52px; height: 999px; border: 0; background: transparent; cursor: ew-resize; }
.ba__range::-moz-range-track { background: transparent; }
.ba__range:focus-visible { outline: none; }
.ba__range:focus-visible ~ .ba__divider .ba__handle { outline: 3px solid #fff; outline-offset: 3px; }
.ba__hint { margin-top: 14px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ba__hint svg { width: 16px; height: 16px; }

.ba-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.ba-layout__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.ba-layout__copy p { margin-top: 16px; color: var(--body); }
@media (max-width: 820px) { .ba-layout { grid-template-columns: 1fr; gap: 26px; } }

/* ------------------------------ Gallery ---------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--sunk); box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 13px;
  font-size: 13px; color: #fff; line-height: 1.4;
  background: linear-gradient(0deg, rgba(26,20,14,.82), rgba(26,20,14,0));
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-within figcaption { opacity: 1; transform: translateY(0); }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; }
.span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-3 { grid-column: span 3; }
.g-tall { aspect-ratio: 3 / 4; } .g-wide { aspect-ratio: 3 / 2; } .g-sq { aspect-ratio: 1 / 1; } .g-43 { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item { grid-column: span 1 !important; aspect-ratio: 4 / 3 !important; }
  .gallery__item figcaption { opacity: 1; transform: none; font-size: 14px; padding: 34px 16px 14px; }
}
/* Phones: one large photo per row so patio/brick detail is actually visible. */
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .gallery__item { aspect-ratio: 3 / 2 !important; }
}

/* ------------------------------ Project block ---------------------------- */
.project { position: relative; }
.project + .project { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); }
.project + .project::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(90%, 1100px); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-strong) 24%, var(--line-strong) 76%, transparent);
}
.project__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin-bottom: 30px; }
.project__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.project__head p { margin-top: 10px; color: var(--body); max-width: 56ch; }
.project__tag { font-size: 13px; font-weight: 600; color: var(--accent-text); letter-spacing: .04em; }

/* --------------------------- Process / steps ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.step { background: var(--surface); padding: 28px 24px; }
.step__n { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--clay-300); margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--body); line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ----------------------------- Testimonials ------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px; display: flex; flex-direction: column; }
.quote__mark { font-family: 'Inter', system-ui, sans-serif; font-size: 46px; line-height: .6; color: var(--clay-300); height: 26px; }
.quote p { margin-top: 8px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.quote__by { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.quote__by strong { color: var(--ink); font-weight: 600; display: block; }
.quote__by span { color: var(--muted); }
.placeholder-note {
  margin-top: 22px; font-size: 13.5px; color: var(--muted);
  background: var(--sunk); border: 1px dashed var(--line-strong); border-radius: var(--r-control);
  padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start;
}
.placeholder-note svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; margin-top: 1px; }

/* ------------------------------- CTA band -------------------------------- */
.cta-band { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; border-radius: clamp(30px, 5vw, 60px) clamp(30px, 5vw, 60px) 0 0; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: clamp(48px, 7vw, 84px) 0; }
.cta-band h2 { color: #FBF7EF; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.cta-band h2 em { color: var(--clay-300); }
.cta-band p { margin-top: 16px; color: var(--on-dark-muted); max-width: 46ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band__actions .btn { }
.cta-band__phone { display: inline-flex; align-items: center; gap: 11px; }
.cta-band__phone svg { width: 22px; height: 22px; color: var(--clay-300); }
.cta-band__phone a { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #FBF7EF; font-weight: 600; }
.cta-band__phone small { display: block; font-family: 'Lato', sans-serif; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--dark-2); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .brand__name { color: var(--on-dark); }
.footer__brand p { margin-top: 16px; font-size: 14.5px; max-width: 38ch; line-height: 1.6; }
.site-footer h4 { font-family: 'Lato', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: var(--on-dark-muted); padding: 5px 0; }
.footer__col a:hover { color: var(--on-dark); }
.footer__contact a { display: flex; align-items: center; gap: 10px; }
.footer__contact svg { width: 16px; height: 16px; color: var(--clay-300); flex: none; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(243,238,228,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.footer__bottom a:hover { color: var(--on-dark); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------- Contact / forms ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 34px); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--clay-100); color: var(--clay-700); display: grid; place-items: center; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list dt { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 3px 0 0; font-size: 16.5px; color: var(--ink); font-weight: 500; }
.contact-list dd a:hover { color: var(--accent-text); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent-text); }
.field input, .field textarea, .field select {
  font-family: 'Lato', sans-serif; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-control);
  border-radius: var(--r-control); padding: 12px 14px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field__row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Thank-you panel shown in place of the form after a successful enquiry. */
.form-success { text-align: center; padding: clamp(16px, 4vw, 40px) 8px; }
.form-success__icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--clay-100); color: var(--accent-text);
  display: grid; place-items: center;
}
.form-success__icon svg { width: 30px; height: 30px; }
.form-success h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.form-success p { margin: 12px auto 0; color: var(--body); max-width: 40ch; line-height: 1.6; }

/* ------------------------------- Map card -------------------------------- */
.areas { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.areas span { font-size: 13.5px; font-weight: 500; color: var(--body); background: var(--sunk); padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--line); }

/* --------------------------- Page intro banner --------------------------- */
.page-intro { position: relative; background: var(--surface); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 60px); }
.page-intro::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(90%, 1180px); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-strong) 24%, var(--line-strong) 76%, transparent);
}
.page-intro .eyebrow { margin-bottom: 18px; }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-intro .lede { margin-top: 20px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }

/* ------------------------------- Legal text ------------------------------ */
.legal { max-width: 74ch; }
.legal__updated { font-size: 14px; color: var(--muted); }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 44px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-size: 1.12rem; margin-top: 26px; }
.legal p, .legal ul { margin-top: 14px; color: var(--body); line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-text); border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 35%, transparent); }
.legal a:hover { border-color: var(--accent-text); }

/* ------------------------------ Utilities -------------------------------- */
.bg-surface { background: var(--surface); }
.bg-sunk { background: var(--sunk); }
.center { text-align: center; }
.mt-cta { margin-top: clamp(34px, 5vw, 52px); }
/* Soft, centre-fading section rule — gentler than a hard full-width line. */
.divider-top { position: relative; }
.divider-top::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(90%, 1180px); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-strong) 24%, var(--line-strong) 76%, transparent);
}

/* Scroll reveal (motivated: guides attention as sections enter). Collapses under reduced motion. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc, .btn, .gallery__item img, .svc__media img { transition: none; }
}
