/* ==========================================================================
   Kelly Brickwork Ltd — site styles
   Brand: charcoal #202224 + brick #863E29 on a clean white base.
   Sections: tokens · base · layout · type · buttons · header · hero ·
   components · pages · footer · utilities · motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brick: #863e29;
  --brick-700: #6c3121;
  --brick-800: #57271a;
  --brick-400: #a5573f;
  --brick-100: #f1e2dc;
  --brick-50: #f9f2ef;

  --charcoal: #202224;
  --charcoal-800: #2a2c2f;
  --charcoal-700: #36393d;

  --ink: #202224;
  --body: #3d4045;
  --muted: #62666d;
  --line: #e7e3df;
  --mortar: #d6d0ca;
  --control-border: #8c857e;
  --stone: #f6f4f1;
  --paper: #ffffff;

  --success: #1f6f43;
  --success-bg: #ecf7f0;
  --error: #b42318;
  --error-bg: #fdf0ef;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 84px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgb(32 34 36 / 6%), 0 2px 8px rgb(32 34 36 / 5%);
  --shadow-md: 0 10px 30px -12px rgb(32 34 36 / 22%);
  --shadow-lg: 0 30px 60px -24px rgb(32 34 36 / 35%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Stretcher-bond brick pattern used for texture on brick/charcoal surfaces */
  --bricks-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24'%3E%3Cpath d='M0 .75H60M0 12.75H60M.75 0V12M30.75 12V24' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.5'/%3E%3C/svg%3E");
  --bricks-mortar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24'%3E%3Cpath d='M0 1H60M0 13H60M1 0V12M31 12V24' fill='none' stroke='%23202224' stroke-opacity='.55' stroke-width='2'/%3E%3C/svg%3E");
  --bricks-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24'%3E%3Cpath d='M0 .75H60M0 12.75H60M.75 0V12M30.75 12V24' fill='none' stroke='%23863e29' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) so body never becomes a scroll container, which would break the sticky header */
  overflow-x: clip;
}

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

a { color: var(--brick); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-700); }

:focus-visible {
  outline: 3px solid var(--focus-ring, var(--brick));
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brick); color: #fff; }

/* Brick focus rings vanish on brick and charcoal, so dark surfaces switch to white */
.hero,
.page-hero,
.cta-card,
.feature-band,
.section--dark,
.contact-panel,
.site-footer,
.topbar,
.lightbox,
.chip--brick { --focus-ring: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-weight: 600; font-size: 1.05rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
strong { color: var(--ink); font-weight: 600; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Layout ---------- */
.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--stone { background: var(--stone); }
.section--tint { background: var(--brick-50); }
.section--bricks { background: var(--paper) var(--bricks-faint); }
.section--dark { background: var(--charcoal); color: #c9c6c2; }
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 40rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p:not(.eyebrow) { color: #b4b1ad; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }

.stack > * + * { margin-top: 1.25rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: rgb(255 255 255 / 70%); }
.section--dark .eyebrow,
.contact-panel .eyebrow { color: #e5a48c; }

/* Two-tone headline echoing the logo: "Kelly" charcoal / "Brickwork" brick */
.title { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 700; }
.title .accent { color: var(--brick); }
.title--stack .accent { display: block; }
.section--dark .title .accent,
.feature-band .title .accent,
.contact-panel .title .accent { color: #e5a48c; }
.title--sm { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--body); }

.lead-bar {
  margin: 0 0 1.75rem;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 4px solid var(--brick);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--stone);
  border-left: 4px solid var(--charcoal);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--brick);
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon,
a:hover .link-arrow .icon { transform: translateX(4px); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--brick-100);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: calc(0.22em + 0.3rem);
  width: 0.7rem;
  height: 0.7rem;
  background: var(--brick);
  -webkit-mask: var(--tick) center / contain no-repeat;
  mask: var(--tick) center / contain no-repeat;
}
.ticks--2col { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
.section--dark .ticks li,
.feature-band .ticks li,
.contact-panel .ticks li { color: #e9e6e3; }
.section--dark .ticks li::before,
.feature-band .ticks li::before,
.contact-panel .ticks li::before { background: rgb(255 255 255 / 10%); }
.section--dark .ticks li::after,
.feature-band .ticks li::after,
.contact-panel .ticks li::after { background: #e5a48c; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brick);
  --btn-fg: #fff;
  --btn-bd: var(--brick);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary:hover { --btn-bg: var(--brick-700); --btn-bd: var(--brick-700); }
.btn--dark { --btn-bg: var(--charcoal); --btn-bd: var(--charcoal); }
.btn--dark:hover { --btn-bg: #000; --btn-bd: #000; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brick); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--brick-50); --btn-fg: var(--brick-800); --btn-bd: var(--brick-50); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: var(--charcoal); }
.btn--outline:hover { --btn-bg: var(--charcoal); --btn-fg: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 65%); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--charcoal); --btn-bd: #fff; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn[disabled],
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--charcoal);
  color: #bdbab6;
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}
.topbar__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #e6e3df; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 0.95rem; height: 0.95rem; color: #d98d72; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 96%);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgb(32 34 36 / 30%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 50px; height: auto; }
.brand__mark .k { fill: var(--charcoal); }
.brand__mark .b { fill: var(--brick); }
.brand__word {
  font-family: var(--font-head);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__word .k { color: var(--charcoal); margin-right: 0.12em; }
.brand__word .b { color: var(--brick); }
.brand--light .brand__mark .k,
.brand--light .brand__word .k { fill: #fff; color: #fff; }
.brand--light .brand__mark .b { fill: #b5583b; }
.brand--light .brand__word .b { color: #c46546; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--brick); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brick); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brick-50);
  color: var(--brick);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.header-phone__icon .icon { width: 18px; height: 18px; }
.header-phone:hover { color: var(--brick); }
.header-phone:hover .header-phone__icon { background: var(--brick); color: #fff; }
.header-phone small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--menu { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

.nav__extra { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100vh - var(--header-h) - 40px), 860px);
  padding-block: clamp(4rem, 9vw, 7rem) clamp(6.5rem, 11vw, 9rem);
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgb(20 21 22 / 45%) 0%, rgb(20 21 22 / 10%) 60%, rgb(20 21 22 / 25%) 100%);
}
.hero__panel,
.hero__wedge {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__panel {
  background:
    var(--bricks-light),
    linear-gradient(140deg, rgb(134 62 41 / 96%) 0%, rgb(108 49 33 / 94%) 100%);
  clip-path: polygon(0 0, 66% 0, 46% 100%, 0 100%);
}
.hero__wedge {
  background: rgb(32 34 36 / 55%);
  clip-path: polygon(66% 0, 71% 0, 51% 100%, 46% 100%);
}
.hero__mark {
  position: absolute;
  z-index: -1;
  left: -4%;
  bottom: -14%;
  width: min(520px, 46vw);
  opacity: 0.06;
  pointer-events: none;
}
.hero__mark .k,
.hero__mark .b { fill: #fff; }
.hero__content { max-width: min(36rem, 52vw); }
.hero__title {
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__title span { display: block; color: #f3d4c8; }
.hero__lead {
  max-width: 33rem;
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgb(255 255 255 / 90%);
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgb(255 255 255 / 85%);
}
.hero__note li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__note .icon { width: 1rem; height: 1rem; color: #f3d4c8; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgb(20 21 22 / 35%);
}
.page-hero .hero__panel { clip-path: polygon(0 0, 72% 0, 56% 100%, 0 100%); }
.page-hero .hero__wedge { clip-path: polygon(72% 0, 76% 0, 60% 100%, 56% 100%); }
.page-hero__content { max-width: min(40rem, 60vw); }
.page-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
}
.page-hero h1 span { color: #f3d4c8; }
.page-hero p:not(.eyebrow) { max-width: 34rem; font-size: 1.12rem; color: rgb(255 255 255 / 90%); }

.breadcrumbs { margin-bottom: 1.25rem; font-size: 0.88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; color: rgb(255 255 255 / 75%); }
.breadcrumbs li + li::before { content: "/"; color: rgb(255 255 255 / 45%); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Trust bar ---------- */
.trustbar {
  position: relative;
  z-index: 2;
  margin-top: clamp(-4.5rem, -7vw, -3.5rem);
}
.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--brick);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1.1rem, 2vw, 1.6rem);
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item h3 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.trust-item p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--brick-50);
  color: var(--brick);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--solid { background: var(--brick); color: #fff; }
.icon-tile--dark { background: rgb(255 255 255 / 8%); color: #e5a48c; }

/* ---------- Media frames ---------- */
.media-frame {
  position: relative;
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.media-frame::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 72%;
  background: var(--brick) var(--bricks-light);
  z-index: 0;
}
.media-frame--right { padding: 0 clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0; }
.media-frame--right::before { left: auto; right: 0; }
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.media-frame--wide img { aspect-ratio: 4 / 3; }

.stat-badge {
  position: absolute;
  z-index: 2;
  right: clamp(-1rem, -2vw, -0.5rem);
  bottom: clamp(3rem, 7vw, 4.5rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.media-frame--right .stat-badge { right: auto; left: clamp(-1rem, -2vw, -0.5rem); }
.stat-badge strong {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.stat-badge span { font-size: 0.85rem; line-height: 1.35; color: #cfccc8; max-width: 8.5rem; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 3px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__num {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.45rem 0.75rem;
  background: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brick);
}
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.service-card__body h3 { margin-bottom: 0.5rem; }
.service-card__body p { margin-bottom: 1.25rem; font-size: 0.98rem; color: var(--muted); }
.service-card__body .link-arrow { margin-top: auto; }

/* ---------- Feature band (dark split with diagonal image) ---------- */
.feature-band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal) var(--bricks-light);
  color: #c9c6c2;
}
.feature-band__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.feature-band__content {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(2rem, 5vw, 4.5rem) clamp(4rem, 8vw, 6.5rem) 0;
  align-self: center;
}
.feature-band__content h2 { color: #fff; }
.feature-band__content p:not(.eyebrow) { color: #c9c6c2; }
.feature-band__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.feature-band__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(134 62 41 / 45%), transparent 45%);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { position: relative; padding-top: 1.9rem; border-top: 2px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--brick);
  transition: width 0.6s var(--ease);
}
.step:hover::before { width: 100%; }
.step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brick);
  letter-spacing: -0.03em;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.section--dark .step { border-color: rgb(255 255 255 / 14%); }
.section--dark .step p { color: #b4b1ad; }
.section--dark .step__num { color: #d98d72; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.25rem);
}
.project-card {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  cursor: zoom-in;
}
button.project-card { width: 100%; padding: 0; border: 0; font: inherit; text-align: left; }
.project-card--wide { grid-column: span 2; aspect-ratio: auto; }
.project-card--tall { grid-row: span 2; aspect-ratio: auto; }
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(20 21 22 / 82%) 100%);
  transition: background-color 0.4s var(--ease);
}
.project-card:hover img { transform: scale(1.06); }
.project-card:hover::after { background-color: rgb(134 62 41 / 25%); }
.project-card__caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.project-card__tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.6rem;
  background: var(--brick);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.project-card__title { display: block; font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: #fff; }
.project-card__meta { display: block; margin-top: 0.2rem; font-size: 0.86rem; color: rgb(255 255 255 / 78%); }
.project-card.is-hidden { display: none; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.filter-btn {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--brick); color: var(--brick); }
.filter-btn[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: #fff; }

.lightbox {
  width: min(1100px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(16 17 18 / 92%); }
.lightbox__figure { margin: 0; }
.lightbox__img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.lightbox__caption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; font-size: 0.95rem; color: #dcd9d5; }
.lightbox__caption strong { color: #fff; font-family: var(--font-head); }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.lightbox__btn:hover { background: var(--brick); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: -58px; right: 0; }
.lightbox__prev { top: 40%; left: -64px; }
.lightbox__next { top: 40%; right: -64px; }

@media (max-width: 1240px), (max-height: 800px) {
  .lightbox__prev,
  .lightbox__next { top: 50%; transform: translateY(-50%); background: rgb(20 21 22 / 60%); }
  .lightbox__prev { left: 0.75rem; }
  .lightbox__next { right: 0.75rem; }
}
@media (max-height: 800px) {
  .lightbox__close { top: 0.75rem; right: 0.75rem; z-index: 1; background: rgb(20 21 22 / 60%); }
}

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2.1rem 1.9rem 1.8rem;
  background: #fff;
  border-top: 4px solid var(--brick);
  box-shadow: var(--shadow-sm);
}
.review::before {
  content: "\201C";
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--brick-100);
}
.stars { display: flex; gap: 0.2rem; margin-bottom: 1.1rem; color: var(--brick); }
.stars .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; stroke: none; }
.review blockquote { margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.review figcaption { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.review figcaption strong { display: block; font-family: var(--font-head); color: var(--ink); }

/* ---------- Badges / feature list ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.badge:hover { border-color: var(--brick-100); box-shadow: var(--shadow-sm); }
.badge h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.badge p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.section--dark .badge { background: rgb(255 255 255 / 4%); border-color: rgb(255 255 255 / 10%); }
.section--dark .badge p { color: #b4b1ad; }

.logo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.logo-slot {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 1rem;
  border: 1.5px dashed var(--mortar);
  background: #fff;
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- Areas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
}
.chip .icon { width: 0.9rem; height: 0.9rem; color: var(--brick); }
.chip--brick { border-color: var(--brick); background: var(--brick); color: #fff; }
.chip--brick .icon { color: #fff; }

.county-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.county {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brick);
}
.county h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.county h3 .icon { color: var(--brick); }
.county ul { columns: 2; column-gap: 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.county li { padding: 0.22rem 0; break-inside: avoid; }
.county--primary { grid-column: 1 / -1; }
.county--primary ul { columns: 4; }

.coverage-map {
  width: 100%;
  height: auto;
  color: var(--charcoal);
  background: var(--stone);
  font-family: var(--font-body);
}
.coverage-map__ring { fill: none; stroke: var(--brick); stroke-opacity: 0.35; stroke-width: 1.5; stroke-dasharray: 5 6; }
.coverage-map__ring-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--brick); }
.coverage-map__town circle { fill: var(--charcoal); }
.coverage-map__town text { font-size: 12.5px; font-weight: 500; fill: var(--charcoal); paint-order: stroke; stroke: var(--stone); stroke-width: 4px; stroke-linejoin: round; }
.coverage-map__town--london circle { fill: none; stroke: var(--charcoal); stroke-width: 2; }
.coverage-map__town--london text { font-style: italic; fill: var(--muted); }
.coverage-map__hq circle:first-child { fill: var(--brick); fill-opacity: 0.2; }
.coverage-map__hq circle:nth-child(2) { fill: var(--brick); }
.coverage-map__hq text { font-family: var(--font-head); font-size: 15px; font-weight: 700; fill: var(--brick); paint-order: stroke; stroke: var(--stone); stroke-width: 5px; stroke-linejoin: round; }
/* Label sizes are in SVG units, so enlarge them when the map itself is drawn small */
@container map (max-width: 600px) {
  .coverage-map__town text { font-size: 14.5px; }
  .coverage-map__hq text { font-size: 18px; }
  .coverage-map__ring-label { font-size: 15px; }
}
@container map (max-width: 440px) {
  .coverage-map__town--minor { display: none; }
  .coverage-map__town text { font-size: 18px; }
  .coverage-map__hq text { font-size: 21px; }
}
.map-card { container: map / inline-size; position: relative; border: 1px solid var(--line); background: var(--stone); overflow: hidden; }
.map-card__note { padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); background: #fff; font-size: 0.88rem; color: var(--muted); }

/* ---------- Service detail rows (services page) ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--line);
}
.subnav__list {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--charcoal);
  text-decoration: none;
}
.subnav a:hover,
.subnav a.is-active { background: var(--brick-50); color: var(--brick); }

.service-detail { scroll-margin-top: 4.25rem; }
.service-detail + .service-detail { border-top: 1px solid var(--line); }
.service-detail__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brick);
}

/* ---------- Values / text cards ---------- */
.text-card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}
.text-card .icon-tile { margin-bottom: 1.25rem; }
.text-card h3 { margin-bottom: 0.5rem; }
.text-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Instagram strip ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.insta-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insta-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(134 62 41 / 0%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E") center / 0 no-repeat;
  transition: background-color 0.3s var(--ease), background-size 0.3s var(--ease);
}
.insta-tile:hover img { transform: scale(1.08); }
.insta-tile:hover::after { background-color: rgb(134 62 41 / 70%); background-size: 32px; }

/* ---------- CTA card ---------- */
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 2rem 3rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 6vw, 4.5rem);
  background: var(--brick) var(--bricks-light);
  color: #fff;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--charcoal);
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 64% 100%);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 10%);
  clip-path: polygon(74% 0, 78% 0, 64% 100%, 60% 100%);
}
.cta-card h2 { margin-bottom: 0.6rem; font-size: clamp(1.85rem, 3.6vw, 2.75rem); color: #fff; }
.cta-card p { margin: 0; max-width: 34rem; font-size: 1.12rem; color: rgb(255 255 255 / 90%); }
.cta-card .btn-row { justify-content: flex-end; }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label,
.field legend {
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--brick); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  padding-right: 2.75rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23863e29' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
}
.field input::placeholder,
.field textarea::placeholder { color: #6f6a65; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #5f5953; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px rgb(134 62 41 / 14%); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(180 35 24 / 14%); }
.field__error { display: none; font-size: 0.86rem; font-weight: 500; color: var(--error); }
.field.has-error .field__error { display: block; }

fieldset.field { margin: 0; padding: 0; border: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.choice span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--control-border);
  border-radius: 50%;
  transition: all 0.2s var(--ease);
}
.choice input:checked + span { border-color: var(--brick); background: var(--brick-50); color: var(--brick-800); }
.choice input:checked + span::before { border: 5px solid var(--brick); }
.choice input:focus-visible + span { outline: 3px solid var(--focus-ring, var(--brick)); outline-offset: 2px; }

.checkbox { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.93rem; color: var(--body); }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--brick); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.form-status.is-visible { display: flex; }
.form-status .icon { margin-top: 0.15rem; }
.form-status--success { background: var(--success-bg); color: var(--success); border: 1px solid rgb(31 111 67 / 25%); }
.form-status--error { background: var(--error-bg); color: var(--error); border: 1px solid rgb(180 35 24 / 25%); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgb(255 255 255 / 40%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--charcoal) var(--bricks-light);
  color: #c9c6c2;
}
.contact-panel h2,
.contact-panel h3 { color: #fff; }
.contact-list { display: grid; gap: 1.35rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .label { display: block; margin-bottom: 0.1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9e9a95; }
.contact-list a,
.contact-list address { color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; line-height: 1.5; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: #f3d4c8; text-decoration: underline; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose ul { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.prose th,
.prose td { padding: 0.7rem 0.8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--stone); font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* ---------- FAQ (details/summary) ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.section-head--center + .faq { margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq details[open] { border-left-color: var(--brick); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--brick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--brick); }
.faq__body { padding: 0 1.4rem 1.3rem; }
.faq__body p { color: var(--body); }

/* ---------- Simple centred pages (404 / thank you) ---------- */
.notice {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--paper) var(--bricks-faint);
}
.notice__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brick);
  margin: 0 0 1.25rem;
}
.notice .icon-tile { width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%; }
.notice .icon-tile .icon { width: 34px; height: 34px; }
.notice .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Page-specific additions (scoped by the class on <main>) ---------- */
/* Services */

/* Intro: numbered jump list of the nine services */
.page-services .service-index {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brick);
  box-shadow: var(--shadow-sm);
}
.page-services .service-index li + li { border-top: 1px solid var(--line); }
.page-services .service-index a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 2.5vw, 1.5rem);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.page-services .service-index a:hover { background: var(--brick-50); color: var(--brick); }
.page-services .service-index a:focus-visible { outline-offset: -3px; }
.page-services .service-index__num { flex: none; min-width: 1.8rem; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--brick); }
.page-services .service-index .icon { margin-left: auto; color: var(--brick); transition: transform 0.25s var(--ease); }
.page-services .service-index a:hover .icon { transform: translateY(3px); }

/* Service rows */
.page-services .service-detail .ticks { margin-top: 1.6rem; }
.page-services .service-detail .btn-row { margin-top: 2rem; }

/* Insurance process (h3 + steps with h4 titles) */
.page-services .service-process { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.page-services .service-process h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.page-services .step h4 { margin-bottom: 0.5rem; font-size: 1.15rem; }

/* Projects page: keeps the gallery mosaic tidy when filters are used */
/* Fallback so a wide/tall card can never collapse to zero height if it ends up alone in a row */
.page-projects .project-card--wide,
.page-projects .project-card--tall { min-height: 13rem; }
/* While a filter is active, show a uniform grid so no gaps or orphaned wide cards appear */
.page-projects:has(.filter-btn[data-filter="all"][aria-pressed="false"]) .project-card--wide,
.page-projects:has(.filter-btn[data-filter="all"][aria-pressed="false"]) .project-card--tall {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3.2;
}
/* Filter buttons need JavaScript, so hide them if it is unavailable */
html:not(.js) .page-projects .filters { display: none; }

/* Areas page: Hertfordshire full width, the other four areas two-up beneath it */
.page-areas .county-grid { grid-template-columns: repeat(2, 1fr); }
.page-areas .county__intro { margin: -0.35rem 0 1.1rem; font-size: 0.95rem; color: var(--muted); }
/* Service chips that work as links */
.page-areas .chips--links { gap: 0.65rem; }
.page-areas .chips--links a.chip {
  padding: 0.7rem 1.1rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.page-areas .chips--links a.chip .icon { width: 1.1rem; height: 1.1rem; }
.page-areas .chips--links a.chip:hover { border-color: var(--brick); background: var(--brick-50); color: var(--brick); transform: translateY(-2px); }
@media (max-width: 720px) {
  .page-areas .county-grid { grid-template-columns: 1fr; }
}

/* Contact */
.page-contact .req { color: var(--brick); }
.page-contact a[href^="mailto:"] { overflow-wrap: anywhere; }
.page-contact .contact-panel strong { color: #fff; }
.page-contact .contact-panel p a { color: #f3d4c8; }
.page-contact .contact-panel p a:hover { color: #fff; }
.page-contact .contact-list .map-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  color: #f3d4c8; text-decoration: underline; text-underline-offset: 0.2em;
}
.page-contact .contact-list .map-link:hover { color: #fff; }
.page-contact .contact-list .map-link .icon { width: 0.9rem; height: 0.9rem; }
.page-contact .contact-panel__block { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 10%); }
.page-contact .next-steps { display: grid; gap: 1.1rem; margin: 0 0 1.75rem; padding: 0; list-style: none; counter-reset: next-step; }
.page-contact .next-steps li { position: relative; padding-left: 2.85rem; counter-increment: next-step; font-size: 0.97rem; line-height: 1.6; }
.page-contact .next-steps li::before {
  content: counter(next-step); position: absolute; left: 0; top: -0.2rem;
  display: grid; place-items: center; width: 1.95rem; height: 1.95rem;
  border: 1.5px solid rgb(229 164 140 / 55%); border-radius: 50%;
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: #e5a48c;
}
.page-contact .next-steps strong { display: block; font-family: var(--font-head); }
.page-contact .panel-note {
  display: flex; align-items: flex-start; gap: 0.85rem; padding: 1.1rem 1.2rem;
  background: rgb(255 255 255 / 5%); border-left: 3px solid #e5a48c; font-size: 0.95rem; line-height: 1.6;
}
.page-contact .panel-note .icon { margin-top: 0.15rem; color: #e5a48c; }
.page-contact .form-card .form { margin-top: 1.75rem; }
.page-contact .form-row--align-end { align-items: end; }
.page-contact fieldset.field legend { margin-bottom: 0.65rem; padding: 0; }

/* Privacy page: "On this page" contents box and closing line. */
.page-privacy .toc { margin: 0 0 1rem; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brick); }
.page-privacy .toc__title { margin: 0 0 0.85rem; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.page-privacy .toc ol { columns: 2; column-gap: 2.5rem; margin: 0; padding-left: 1.4em; font-size: 0.95rem; }
.page-privacy .toc li { margin-bottom: 0.35rem; break-inside: avoid; }
.page-privacy .toc a { text-decoration: none; }
.page-privacy .toc a:hover { text-decoration: underline; }
.page-privacy .prose__end { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .page-privacy .toc { padding: 1.25rem 1.25rem; }
  .page-privacy .toc ol { columns: 1; }
}

/* 404 page: tighten the big code's default paragraph margin and make the helpful links interactive chips. */
.page-404 .helpful-links { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.page-404 .helpful-links .chips { justify-content: center; }
.page-404 .helpful-links .chip { text-decoration: none; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.page-404 .helpful-links .chip:hover { border-color: var(--brick); color: var(--brick); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #b3afab; font-size: 0.95rem; }
.footer-bricks { height: 24px; background: var(--brick) var(--bricks-mortar); background-position: 0 -1px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 7vw, 5rem);
}
.footer-about p { margin: 1.4rem 0 1.6rem; max-width: 22rem; line-height: 1.7; }
.footer-col h2 {
  position: relative;
  margin: 0 0 1.4rem;
  padding-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--brick-400); }
.footer-links { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #cfcbc7; text-decoration: none; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-contact .icon { margin-top: 0.2rem; color: #d98d72; }
.footer-contact a,
.footer-contact address { color: #e6e3df; text-decoration: none; line-height: 1.55; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem 0.7rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social-btn__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(45deg, #f9a825, #e1306c 45%, #833ab4);
}
.social-btn__icon .icon { width: 20px; height: 20px; color: #fff; }
.social-btn:hover { color: #fff; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 32%); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 8%); padding-block: 1.5rem; font-size: 0.84rem; color: #8f8b86; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cfcbc7; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.is-hidden { display: none !important; }
.page-hero--short { padding-block: clamp(3.5rem, 7vw, 5rem); }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2rem !important; }
.text-center { text-align: center; }

/* Mobile sticky action bar */
.mobile-cta { display: none; }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.hero__content > * { animation: rise 0.9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__content > :nth-child(5) { animation-delay: 0.32s; }
.hero__bg { animation: settle 1.8s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .header-phone__text { display: none; }
  .header-phone { gap: 0; }
}

@media (max-width: 1080px) {
  .card-grid,
  .review-grid,
  .badge-grid,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-slots { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .county--primary ul { columns: 3; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .btn-row { justify-content: flex-start; }
  .cta-card::before { clip-path: polygon(88% 0, 100% 0, 100% 100%, 76% 100%); }
  .cta-card::after { clip-path: polygon(85% 0, 88% 0, 76% 100%, 73% 100%); }
}

/* Mobile navigation kicks in before the desktop nav runs out of room */
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .topbar { display: none; }
  /* backdrop-filter would make the fixed nav panel position relative to the header */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand__mark { width: 42px; }
  .brand__word { font-size: 1.25rem; }

  .js .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 0.75rem; row-gap: 0.25rem; }
  html:not(.js) .nav { order: 3; width: 100%; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .nav__extra { display: none; }
  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .nav-open body { overflow: hidden; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__list li { border-bottom: 1px solid var(--line); }
  .js .nav__link { display: flex; justify-content: space-between; padding: 1.05rem 0; font-size: 1.3rem; font-weight: 600; }
  .js .nav__link::after { display: none; }
  .js .nav__extra { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
}

@media (max-width: 960px) {
  .split,
  .contact-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }

  .hero { min-height: 0; align-items: flex-start; padding-block: 3.5rem 12rem; }
  .hero__panel { clip-path: polygon(0 0, 100% 0, 100% 76%, 0 90%); }
  .hero__wedge { clip-path: polygon(0 90%, 100% 76%, 100% 80%, 0 94%); }
  .hero__content { max-width: 36rem; }
  .hero__mark { width: 70vw; bottom: auto; top: 6%; left: auto; right: -18%; }

  .page-hero { padding-block: 3.5rem 5.5rem; }
  .page-hero .hero__panel { clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .page-hero .hero__wedge { display: none; }
  .page-hero__content { max-width: none; }

  .trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .feature-band__grid { grid-template-columns: 1fr; min-height: 0; }
  .feature-band__media { position: relative; width: auto; height: 320px; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .feature-band__content { padding: clamp(3.5rem, 8vw, 5rem) 0 3rem; }

  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .project-card--tall { grid-row: auto; aspect-ratio: 4 / 3.2; }


  .stat-badge { right: 0; }
}

@media (max-width: 640px) {
  html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body { font-size: 1rem; padding-bottom: 72px; }
  .brand__word { font-size: 1.15rem; }
  .header-phone { display: none; }
  .card-grid,
  .review-grid,
  .badge-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ticks--2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-item { flex-direction: column; gap: 0.7rem; padding: 1.1rem 1rem; }
  .trust-item .icon-tile { width: 40px; height: 40px; }
  .trust-item .icon-tile .icon { width: 20px; height: 20px; }
  .trust-item h3 { font-size: 0.95rem; }
  .trust-item p { font-size: 0.82rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: auto; aspect-ratio: 4 / 3.2; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .county ul,
  .county--primary ul { columns: 2; }
  .section-head--split { align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero__title { font-size: clamp(2.3rem, 10vw, 3rem); }
  .media-frame { padding: 0 0 1.25rem 1.25rem; }
  .media-frame--right { padding: 0 1.25rem 1.25rem 0; }
  .stat-badge { padding: 0.9rem 1.1rem; bottom: 2.5rem; }
  .stat-badge strong { font-size: 1.9rem; }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 97%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgb(32 34 36 / 35%);
  }
  .mobile-cta .btn { min-height: 48px; padding-inline: 0.75rem; }
  .nav-open .mobile-cta { display: none; }
}

@media print {
  .topbar, .site-header, .mobile-cta, .cta-card, .footer-bricks { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
