/* ==========================================================================
   Just Do More Renovations
   Global stylesheet. Dark theme: a near-black background with a faint architectural drawing
   running down the page, and one light stone band (Why Choose Us). The logo blue (#250493) is
   only a fill on dark (too dark to read as text there); on stone it can be used as text.
   The logo can't be recoloured, so wherever it appears it sits on a white plate.
   Previous versions backed up in ~/Desktop/just-do-more-rennovations-backups/
   ========================================================================== */

:root {
  /* Brand (single hue, varied lightness) */
  --brand-950: #0b0626;
  --brand-900: #150a4f;
  --brand-800: #1d067a;
  --brand-700: #250493;          /* logo indigo */
  --brand-600: #3514c2;
  --brand-500: #5234e0;
  --brand-200: #d6ceff;
  --brand-100: #ebe7fc;
  --brand-50:  #f5f3fd;

  /* Grey (the background of the logo artwork) for supporting surfaces */
  --grey-700: #737373;
  --grey-rgb: 115, 115, 115;
  --grey-50:  #f2f2f2;
  --brand-700-rgb: 37, 4, 147;   /* for rgba() tints of the logo indigo */

  /* One page background (near-black, a touch cool); --deep is kept as an alias for overlays and bars */
  --deep:     #1c1c1f;
  --deep-rgb: 28, 28, 31;

  /* Dark neutrals, with warm white text */
  --ink:        #141416;
  --ink-soft:   #252529;
  --text:       #f2efe9;
  --text-muted: #a8a39b;
  --line:       #36363b;
  --surface:    #1c1c1f;
  --surface-tint: #1c1c1f;
  --card:       #252529;
  --card-hover: #2f2f34;
  --white:      #ffffff;
  --heading:    #ffffff;           /* headings; dark on the stone section */

  /* Stone: the one light band (Why Choose Us), for a dark, light, dark rhythm */
  --stone:            #f1ede6;
  --stone-ink:        #1b1a19;
  --stone-ink-muted:  #5d5850;
  --stone-line:       rgba(27, 26, 25, 0.14);

  /* Logo blue, used only as a fill. Highlights, icons and links on charcoal are white (--accent). */
  --blue:       #250493;
  --blue-hover: #3110bf;
  --accent:     #ffffff;

  --on-dark:       #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --on-dark-line:  rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  /* Type scale: every heading and text size on the site comes from this list */
  --fs-display: clamp(2.6rem, 1.6rem + 4.2vw, 5.25rem);   /* homepage hero and slogan only */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 4.25rem);       /* page titles */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);       /* section headings */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);        /* card and list titles */
  --fs-h4: 1.2rem;                                        /* small item titles (feature points, steps) */
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);        /* intro paragraphs */
  --fs-body: 1.0625rem;                                   /* running text */
  --fs-small: 0.975rem;                                   /* text inside cards */
  --fs-label: 0.95rem;                                    /* fact rows, short labels */
  --fs-meta: 0.875rem;                                    /* dates, captions, hints, fine print */

  /* Spacing */
  --section-y: 7.5rem;
  --wrap: 1680px;                                  /* widest content line */
  --gutter: clamp(1.25rem, 4vw, 4rem);             /* page side margin */
  --bleed-gap: 3px;                                /* hairline gap in full-bleed mosaics */
  --header-h: 96px;
  --topbar-h: 40px;                                /* contact bar above the main header */

  /* Shape and motion */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t: 0.45s var(--ease);
  --t-slow: 0.9s var(--ease);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

@media (max-width: 991.98px) {
  :root { --section-y: 5.5rem; --header-h: 80px; }
}
@media (max-width: 575.98px) {
  :root { --section-y: 4.25rem; --header-h: 72px; --topbar-h: 36px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: url("../images/page-drawing.svg") center top / 1600px auto repeat var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: inherit;
}
h2 { font-size: var(--fs-h2); margin-bottom: 0; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.text-brand { color: var(--accent); }
a { color: var(--accent); text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--brand-700);
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.container-xxl { max-width: var(--wrap); padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bs-btn-font-family: var(--font-heading);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn-lg { --bs-btn-padding-x: 1.9rem; --bs-btn-padding-y: 1rem; --bs-btn-font-size: 1rem; }
.btn:active { transform: translateY(1px); }

.btn-brand {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--blue-hover);
  --bs-btn-hover-border-color: var(--blue-hover);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--brand-800);
  --bs-btn-active-border-color: var(--brand-800);
}
.btn-outline-light {
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow i { transition: transform var(--t-fast); }
.link-arrow:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: calc(var(--topbar-h) + var(--header-h));
  /* Solid page colour, so the background drawing never shows behind the menu */
  background: var(--deep);
  transition: background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t);
}
/* Once the page scrolls it goes slightly see-through and slides up, so the contact bar tucks away */
.site-header.is-scrolled {
  background: rgba(var(--deep-rgb), 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transform: translateY(calc(-1 * var(--topbar-h)));
}

/* Contact bar */
.topbar {
  height: var(--topbar-h);
  font-size: 0.85rem;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar__contact { gap: clamp(1rem, 2.5vw, 2.25rem); min-width: 0; }
.topbar__social { gap: 0.4rem; }
.topbar a,
.topbar__area { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
/* Every link fills the bar's height, and icon links get a wider area, so they are easy to tap */
.topbar a { min-height: var(--topbar-h); }
.topbar__social a,
.topbar__contact a[aria-label] { min-width: 2rem; justify-content: center; }
.topbar a:hover { color: var(--white); }
.topbar i { color: var(--text); }
@media (max-width: 991.98px) {
  .topbar__area { display: none; }
}
/* Phones: phone number in full, email as an icon */
@media (max-width: 575.98px) {
  .topbar__email { display: none; }
}

.site-nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo { position: relative; display: block; flex-shrink: 0; }
/* Header, phone menu and footer: the client's white "Just Do More" master logo, straight on dark */
.site-logo__img { height: calc(var(--header-h) - 34px); width: auto; }
@media (max-width: 575.98px) {
  .site-logo__img { height: calc(var(--header-h) - 22px); }  /* keeps the wording legible on phones */
}

.site-nav__links {
  display: flex;
  align-self: stretch;
  gap: clamp(1.25rem, 1.9vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Wide desktops: logo left, menu centred, buttons right (equal outer columns keep the menu truly centred).
   Below 1400px the two buttons need more room than the logo column, so the bar stays a simple flex row. */
@media (min-width: 1400px) {
  .site-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-logo { justify-self: start; }
  .site-nav__links { justify-self: center; }
  .site-nav__actions { justify-self: end; }
}
/* Items fill the header height, so the pointer never leaves an item on its way down into the menu */
.site-nav__links > li { display: flex; align-items: center; }
.site-nav__links > li > a,
.mega-item__toggle {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.09375rem;  /* 17.5px, matched by the header buttons (17px on small desktops) */
  white-space: nowrap;
  color: var(--text);
  background: none;
  border: 0;
  text-decoration: none;
  transition: color var(--t);
}
.site-nav__links > li > a:hover,
.site-nav__links > li > a[aria-current="page"],
.mega-item__toggle:hover,
.mega-item__toggle[aria-expanded="true"] { color: var(--white); }
.site-nav__links > li > a::after,
.mega-item__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
/* Division items underline in their own colour, as a solid bar */
.mega-item__toggle::after { height: 3px; background: var(--div); }
.site-nav__links > li > a:hover::after,
.site-nav__links > li > a[aria-current="page"]::after,
.mega-item__toggle:hover::after,
.mega-item__toggle[aria-expanded="true"]::after { transform: scaleX(1); }

/* Header goes solid while a menu is open */
.site-header.is-menu-open {
  background: rgb(var(--deep-rgb));
  box-shadow: 0 1px 0 var(--line);
}

/* Mega menu: full width under the header. Intro on the left, two link columns, then a photo */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h) - var(--topbar-h));
  overflow-y: auto;
  background: var(--card);
  border-top: 3px solid var(--div);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear 0.2s;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s;
}
.mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2.6fr) minmax(0, 2.6fr) minmax(0, 3.4fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-block: clamp(2.25rem, 3.5vw, 3.25rem);
}
.mega__intro .division-logo { margin-bottom: 1.25rem; }
.mega__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 1rem + 1.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  max-width: 16ch;
  margin: 0 0 0.9rem;
}
.mega__lead { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; max-width: 34rem; margin: 0 0 1.5rem; }
.mega__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.mega__heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.4rem 0 1.25rem;
}
/* Short bar in the division colour under each column heading */
.mega__heading::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--div);
}
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.mega__col a {
  display: inline-block;
  padding: 0.45rem 0;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast), transform var(--t-fast);
}
.mega__col a:hover { color: var(--white); transform: translateX(4px); }

.mega__feature {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
}
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.mega__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 55%);
}
.mega__feature span {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.mega__feature span i { transition: transform var(--t-fast); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature:hover span i { transform: translateX(4px); }
.mega__feature:hover { color: var(--white); }

/* Smaller desktops: drop the photo so the three text columns keep their room */
@media (max-width: 1399.98px) {
  .mega__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); }
  .mega__feature { display: none; }
}

.site-nav__actions { display: flex; align-items: center; gap: 1.25rem; }

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
}
.site-nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.site-nav__toggle span:nth-child(2) { width: 70%; margin-left: auto; }

.site-nav__cta { white-space: nowrap; --bs-btn-font-size: 1.09375rem; }
/* Call button: a square phone icon, same height and corner radius as the main button */
.site-nav__actions .site-nav__call {
  --bs-btn-font-size: 1.2rem;
  width: 54px;
  height: 54px;
  padding: 0;
  flex-shrink: 0;
}
/* Below 992px the menu and main button move into the offcanvas; the call icon stays for one-tap calling */
@media (max-width: 991.98px) {
  .site-nav__links,
  .site-nav__cta { display: none; }
  .site-nav__toggle { display: flex; }
  .site-nav__actions { gap: 0.75rem; }
  .site-nav__actions .site-nav__call { width: 44px; height: 44px; --bs-btn-font-size: 1.05rem; }
}
/* Mid desktops: slightly tighter spacing so the menu and both buttons fit */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav { gap: 1rem; }
  .site-nav__links { gap: 1.25rem; }
  .site-nav__actions { gap: 1rem; }
}
/* Small desktops: smaller logo, tighter spacing and 17px text so the menu keeps its room */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav { gap: 0.75rem; }
  .site-logo__img { height: 46px; }
  .site-nav__links { gap: 0.9rem; }
  .site-nav__actions { gap: 0.6rem; }
  .site-nav__cta { --bs-btn-padding-x: 1rem; --bs-btn-font-size: 1.0625rem; }
  .site-nav__links > li > a,
  .mega-item__toggle { font-size: 1.0625rem; }
  .site-nav__actions .site-nav__call { width: 52px; height: 52px; }
}

/* Mobile offcanvas (compound selector to beat Bootstrap's .offcanvas.offcanvas-end) */
.offcanvas.mobile-nav {
  --bs-offcanvas-width: min(360px, 88vw);
  --bs-offcanvas-bg: var(--surface-tint);
  --bs-offcanvas-color: var(--text);
  --bs-offcanvas-border-color: transparent;
}
.mobile-nav__logo { height: 52px; width: auto; }
.mobile-nav .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.mobile-nav__links { list-style: none; padding: 0; margin: 0 0 2rem; }
.mobile-nav__links > li { border-bottom: 1px solid var(--line); }
.mobile-nav__links a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav__links a[aria-current="page"] { color: var(--accent); }
.mobile-nav__links ul { list-style: none; padding: 0 0 0.25rem 1rem; margin: 0; }
.mobile-nav__links ul a { padding: 0.4rem 0; font-size: 1rem; font-weight: 500; color: var(--text-muted); }
/* Division dropdowns in the mobile menu */
.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  text-align: left;
}
.mobile-nav__toggle i { font-size: 1rem; color: var(--accent); transition: transform var(--t); }
.mobile-nav__toggle:not(.collapsed) { color: var(--accent); }
.mobile-nav__toggle:not(.collapsed) i { transform: rotate(180deg); }
/* Division groups: a stripe in the division colour beside each one */
.mobile-nav__group[class*="division--"] { position: relative; padding-left: 0.9rem; }
.mobile-nav__group[class*="division--"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 4px;
  height: 1.4rem;
  background: var(--div);
}
.mobile-nav__group .collapse > ul,
.mobile-nav__group .collapsing > ul { padding-bottom: 0.9rem; }
.mobile-nav__links ul a.mobile-nav__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; font-weight: 600; color: var(--white); }
.mobile-nav__contact { display: grid; gap: 1rem; }
.mobile-nav__contact a:not(.btn) { display: flex; align-items: baseline; gap: 0.5rem; color: var(--text-muted); text-decoration: none; overflow-wrap: break-word; }
.mobile-nav__contact i { color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--tint { background: transparent; }
.section--deep { background: transparent; color: var(--on-dark); }

/* Full-bleed split: photos run to the screen edge, text lines up with the content width */
.section--split { padding-block: 0; }
.split { display: grid; grid-template-columns: 1fr; }
.split__body { padding: var(--section-y) var(--gutter); }
.split__media .collage { gap: var(--bleed-gap); aspect-ratio: 4 / 3.4; }
@media (min-width: 992px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--media-right { grid-template-columns: 7fr 5fr; }
  .split__media { position: relative; min-height: 38rem; }
  .split__media .collage { position: absolute; inset: 0; aspect-ratio: auto; }
  .split__body {
    padding-left: clamp(3rem, 5vw, 7rem);
    padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  }
  .split--media-right .split__body {
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-right: clamp(3rem, 5vw, 7rem);
  }
}
/* Collage: one tall photo beside two stacked. Not on the homepage any more; kept for the branch pages */
.collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
  aspect-ratio: 4 / 5.2;
}
.collage figure { position: relative; margin: 0; overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__main { grid-row: 1 / -1; }
@media (max-width: 575.98px) {
  .collage { gap: 0.6rem; aspect-ratio: 4 / 4.6; }
}
.section--deep .section-head p { color: var(--on-dark-muted); }

/* Stone: the light run in the middle of the page (Why Choose Us, then Testimonials).
   Swaps the dark tokens for ink on stone, so text, cards, links and focus rings all follow.
   The logo indigo reads well as text here, so it is the accent. */
.section--stone {
  --heading: var(--stone-ink);
  --text: var(--stone-ink);
  --text-muted: var(--stone-ink-muted);
  --line: var(--stone-line);
  --accent: var(--brand-700);
  --surface: var(--stone);
  --card: var(--white);
  color: var(--text);
  background: var(--stone);
}
.section--stone a:hover { color: var(--stone-ink); }
/* Two stone sections in a row read as one: a hairline between them instead of a full gap */
.section--stone + .section--stone { padding-top: 0; }
.section--stone + .section--stone > .container-xxl:first-child {
  padding-top: calc(var(--section-y) * 0.6);
  /* Drawn as a background so the line stops at the content edges, not the screen edges */
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.section-head { margin-bottom: 3.5rem; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin: 1.25rem 0 0; max-width: 38rem; }
.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.section-head--split p { margin-top: 0; }
.section-head--split .link-arrow { margin-top: 1rem; }
@media (min-width: 992px) {
  .section-head--split { grid-template-columns: 5fr 6fr; align-items: end; gap: 3rem; }
}
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--center .link-arrow { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Hero: one tab per division (Renovations, Plastering, Damp Proofing, Bespoke Carpentry)
   Each division has its own colour (--div), used only as a fill: active tab, button,
   menu hover and the bar on top of the card. Every colour takes white text at 5.7:1 or more.
   -------------------------------------------------------------------------- */
/* Branch colours, matching the client's branch logos in Logo/ */
.division--renovations       { --div: #250493; --div-hover: #3110bf; }  /* logo indigo */
.division--plastering        { --div: #93300f; --div-hover: #a83a14; }  /* rust */
.division--damp-proofing     { --div: #2a6f7b; --div-hover: #327f8c; }  /* teal, as in the client's Damp Proofing logo */
.division--bespoke-carpentry { --div: #80500e; --div-hover: #955e12; }  /* bronze */

/* The fixed header sits over the strip above the hero, never over the photo or tabs */
.hero { padding-top: calc(var(--topbar-h) + var(--header-h)); }

.divisions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 25vw, 420px);
  grid-template-areas: "stage tabs";
  height: clamp(620px, calc(100svh - var(--topbar-h) - var(--header-h)), 880px);
}

/* Tabs */
.divisions__tabs {
  grid-area: tabs;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
/* Each tab sits in an item with its expandable intro and buttons underneath */
.division-tab-item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-fast), flex-grow var(--t);
}
.division-tab-item:last-child { border-bottom: 0; }
/* Colour stripe down the left edge shows each division's colour even when the tab is closed */
.division-tab-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--div);
}
.division-tab-item:hover { background: var(--card-hover); }
.division-tab-item.is-active { flex: 0 0 auto; background: var(--div); }
.division-tab-item.is-active:hover { background: var(--div); }
.division-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.75rem;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
}
.division-tab.is-active { color: var(--white); }
.division-tab-item.is-active .division-tab { padding-bottom: 0.75rem; }

/* Expanded content: only the selected tab shows it (desktop only; phones show it under the photo) */
.division-tab__more { display: none; }
@media (min-width: 992px) {
  .division-tab-item.is-active .division-tab__more {
    display: grid;
    gap: 1rem;
    justify-items: start;
    padding: 0 1.75rem 1.75rem;
    animation: tab-more-in 0.35s ease both;
  }
}
@keyframes tab-more-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .division-tab-item.is-active .division-tab__more { animation: none; } }
.division-tab__more p { margin: 0 0 0.25rem; font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.division-tab__more .btn-light { --bs-btn-color: var(--ink); --bs-btn-hover-bg: rgba(255, 255, 255, 0.88); --bs-btn-hover-border-color: transparent; }
.division-tab__more .link-arrow { color: var(--white); }
.division-tab:focus-visible { outline-offset: -4px; }

.division-tab__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  color: var(--white);
  background: var(--div);
  transition: background-color var(--t-fast);
}
.division-tab.is-active .division-tab__icon { background: rgba(255, 255, 255, 0.16); }
.division-tab__text { display: grid; gap: 0.3rem; }
.division-tab__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.division-tab__desc { font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
.division-tab.is-active .division-tab__desc { color: rgba(255, 255, 255, 0.86); }

/* Stage: all four panels share one grid cell, so the hero never changes height between tabs */
.divisions__stage {
  grid-area: stage;
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--ink);
}
.division {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: flex-end;   /* card sits low, so the top of the photo stays clear */
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility 0s linear 0.45s;
}
.division.is-active { opacity: 1; visibility: visible; transition: opacity var(--t), visibility 0s; }

.division__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Darken only the bottom, where the card sits, and leave the rest of the photo clear */
.division::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 12, 13, 0.5) 0%, rgba(12, 12, 13, 0.12) 35%, rgba(12, 12, 13, 0) 55%);
  pointer-events: none;
}

.division__card {
  position: relative;
  z-index: 1;
  width: min(40rem, 100% - 2 * var(--gutter));
  /* Line the card up with the logo's left edge in the header */
  margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
  padding: clamp(1.5rem, 2vw, 2rem) clamp(1.5rem, 2.4vw, 2.5rem);
  background: rgba(var(--deep-rgb), 0.68);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-top: 4px solid var(--div);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* Desktop: only the division logo sits on the photo, bottom left; the intro and buttons live in the selected tab */
@media (min-width: 992px) {
  .division__card {
    width: auto;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 0;
    clip-path: none;
  }
  .division__card .division__body { display: none; }
  .division__card .division-logo {
    height: clamp(5.625rem, 4.5rem + 2.1vw, 7.5rem);   /* 90px to 120px */
    margin: 0;
    /* A tight shadow for crisp edges plus a soft one, so the logo stands out on light and busy photos */
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.7)) drop-shadow(0 3px 14px rgba(0, 0, 0, 0.6));
  }
  /* The title stays in the page for search engines and screen readers, but only the logo shows */
  .division__card .division__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Division logo: the client's own logo for each branch (white "Just Do More", name and roof in the branch colour) */
.division-logo { display: block; height: clamp(3.75rem, 3rem + 1.4vw, 5rem); width: auto; margin: 0 0 1.5rem; }

.division__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--white);
  margin: 0 0 1rem;
}
.division__accent { display: block; }
.division__lead { color: var(--on-dark-muted); font-size: var(--fs-body); line-height: 1.6; margin: 0 0 1.5rem; }

.division__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.division__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  padding: 0.6rem 0.5rem;
  margin-inline: -0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--on-dark-line);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.division__menu a i { font-size: 0.85rem; color: var(--text-muted); transition: transform var(--t-fast), color var(--t-fast); }
.division__menu a:hover { background: var(--div); color: var(--white); }
.division__menu a:hover i { color: var(--white); transform: translateX(3px); }

.division__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.btn-division {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--div);
  --bs-btn-border-color: var(--div);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--div-hover);
  --bs-btn-hover-border-color: var(--div-hover);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--div);
  --bs-btn-active-border-color: var(--div);
}

/* Short laptop screens: drop the intro sentence so the card fits */
@media (min-width: 992px) and (max-height: 760px) {
  .division__lead { display: none; }
  .division-logo { margin-bottom: 1rem; }
}

/* Tablets and phones: tabs on top as a compact 2x2 picker, then the photo, then the card */
@media (max-width: 991.98px) {
  .divisions {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tabs" "stage";
    height: auto;
  }
  .divisions__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .division-tab { padding: 0.9rem 1rem 0.9rem 1.15rem; gap: 0.7rem; }
  .division-tab-item.is-active .division-tab { padding-bottom: 0.9rem; }
  .division-tab-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .division-tab-item:nth-last-child(-n+2) { border-bottom: 0; }
  .division-tab__icon { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
  .division-tab__title { font-size: 0.98rem; }
  .division-tab__desc { display: none; }

  .divisions__stage { background: var(--surface); }
  .division { flex-direction: column; align-items: stretch; }
  .division::after { display: none; }
  .division__photo { position: static; height: auto; aspect-ratio: 16 / 9; }
  .division__card {
    width: auto;
    margin: 0;
    padding: 2rem var(--gutter) 2.5rem;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    clip-path: none;
  }
}
@media (max-width: 479.98px) {
  .division-tab { padding-inline: 0.85rem 0.6rem; }
  .division-tab__icon { display: none; }
  .division__menu { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Why Choose Us: type only, no photos. A large statement, three big figures,
   then the four promises as a numbered row, all on thin rules.
   -------------------------------------------------------------------------- */
.why { padding-block: calc(var(--section-y) * 1.25) calc(var(--section-y) * 0.5); }

.why__intro { display: grid; gap: 2rem; }
@media (min-width: 992px) {
  .why__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(3rem, 6vw, 7rem); }
}
.why__title {
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text-muted);
}
.why__title .text-brand { color: var(--brand-700); white-space: nowrap; }  /* logo indigo reads well on stone */
.why__text p { color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.65; margin: 0 0 1.1rem; }
.why__text .link-arrow { margin-top: 0.75rem; }

h2.why__title span
 {
    color: var(--brand-700);
    white-space: nowrap;
}

h1.inner-hero__title span {
    color: var(--brand-700);
    white-space: nowrap;
}

.why__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(4rem, 7vw, 7rem) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why__stat { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(0.75rem, 2.5vw, 2.5rem); }
.why__stat:first-child { padding-left: 0; }
.why__stat + .why__stat { border-left: 1px solid var(--line); }
.why__stat dt {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 1.6rem + 5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--heading);
}
.why__stat dd {
  margin: 0.9rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
}

.why__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: why;
}
@media (min-width: 576px) { .why__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .why__points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why__points li { counter-increment: why; padding: 1.5rem 0 1.75rem; }
.why__points li::before {
  content: counter(why, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.why__points h3,
.why__points h4 { font-size: var(--fs-h4); margin-bottom: 0.6rem; color: var(--heading); }
/* Homepage: heading above the four process steps */
.why__process-title {
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.why__process-title + .why__points { margin-top: clamp(0.5rem, 1.5vw, 1rem); }
.why__points p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Service cards (not on the homepage any more; kept for the branch pages)
   -------------------------------------------------------------------------- */
/* Edge-to-edge mosaic of service tiles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bleed-gap);
}
/* Five tiles: on two-column screens the first one spans the full width as a landscape tile */
@media (max-width: 991.98px) {
  .service-grid > :first-child { grid-column: 1 / -1; }
  .service-grid > :first-child .service-tile { aspect-ratio: 16 / 9; }
}
@media (min-width: 992px) { .service-grid { grid-template-columns: repeat(5, 1fr); } }
#what-we-do { padding-bottom: 0; }   /* mosaic runs straight into the next section */

/* Vertical photo tiles (3:4, matching the hero reel). Title always shows;
   description and link reveal on hover / keyboard focus. */
.service-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.service-tile:hover,
.service-tile:focus-visible { color: var(--white); }
.service-tile img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
/* Resting gradient: just enough for the title */
.service-tile::before,
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.service-tile::before {
  z-index: -2;
  background: linear-gradient(180deg, transparent 45%, rgba(28, 28, 31, 0.85) 100%);
}
/* Hover gradient: deeper, tinted with the logo indigo, for the longer text */
.service-tile::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--brand-700-rgb), 0.25) 0%, rgba(28, 28, 31, 0.93) 70%);
  opacity: 0;
  transition: opacity var(--t);
}
.service-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem 1.25rem;
}
.service-tile__body h3 { margin: 0; color: var(--white); font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); }
.service-tile__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--t), opacity var(--t);
}
.service-tile__reveal > div { overflow: hidden; }
.service-tile__reveal p { margin: 0.6rem 0 0.9rem; font-size: 0.925rem; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.service-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.service-tile__more i { transition: transform var(--t-fast); }

.service-tile:hover img,
.service-tile:focus-visible img { transform: scale(1.05); }
.service-tile:hover::after,
.service-tile:focus-visible::after { opacity: 1; }
.service-tile:hover .service-tile__reveal,
.service-tile:focus-visible .service-tile__reveal { grid-template-rows: 1fr; opacity: 1; }
.service-tile:hover .service-tile__more i { transform: translateX(4px); }

/* Touch screens have no hover: show the text all the time, on the stronger gradient */
@media (hover: none) {
  .service-tile::after { opacity: 1; }
  .service-tile__reveal { grid-template-rows: 1fr; opacity: 1; }
}
/* Small phones: two tiles per row is too narrow for the description, so show title and link only */
@media (max-width: 575.98px) {
  .service-tile__body { padding: 1rem 0.9rem; }
  .service-tile__reveal p { display: none; }
  .service-tile__more { margin-top: 0.4rem; font-size: 0.85rem; }
}
@media (hover: none) and (max-width: 575.98px) {
  .service-tile::after { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Working With Us (not on the homepage any more; kept for the About and branch pages)
   -------------------------------------------------------------------------- */

.steps-section { padding-bottom: 0; }
/* Same background as Testimonials above, so don't stack two full paddings between them */
#testimonials { padding-bottom: calc(var(--section-y) * 0.5); }
.steps-section { padding-top: calc(var(--section-y) * 0.5); }

/* Four photo panels edge to edge. Desktop: an accordion where the active panel is wider */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--bleed-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  outline: none;
}
.step__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-slow);
}
/* Gradient for the text, plus a dimming layer that lifts off the active panel */
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Overall tint plus a deeper gradient towards the text, like the service tiles on hover */
  background:
    linear-gradient(180deg, rgba(28, 28, 31, 0.25) 0%, rgba(28, 28, 31, 0.5) 40%, rgba(28, 28, 31, 0.93) 100%);
  pointer-events: none;
}
/* Accent line along the top that runs full width on the active panel */
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 3rem;
  background: var(--blue);
  transition: width var(--t);
}
.step__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}
.step__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.8rem + 2vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
  transition: color var(--t), -webkit-text-stroke-color var(--t);
}
.step h3 { margin: 0; color: var(--white); font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem); }
.step__reveal { display: grid; grid-template-rows: 1fr; }
.step__reveal > div { overflow: hidden; }
.step__reveal p { margin: 0.75rem 0 0; max-width: 30rem; color: rgba(255, 255, 255, 0.9); font-size: 1rem; line-height: 1.6; }
.step h3, .step__reveal p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }

@media (min-width: 992px) {
  /* Same height as the service tiles: a fifth of the screen width at 3:4, with a floor for the text */
  .steps { flex-direction: row; height: max(380px, calc((100vw - 4 * var(--bleed-gap)) / 5 * 4 / 3)); }
  .step { flex: 1 1 0; min-width: 0; min-height: 0; transition: flex-grow var(--t-slow); }
  .step::before { transition: background-color var(--t-slow); background-color: rgba(var(--deep-rgb), 0.35); }
  .step__img { filter: grayscale(0.35); }
  /* Keep the description at a fixed width so it doesn't re-wrap while the panel animates */
  .step__reveal { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t), opacity var(--t); }
  .step__reveal p { width: min(30rem, 36vw); }

  /* Active panel: the default one, or whichever is hovered or focused */
  .step.is-active,
  .steps:hover .step:hover,
  .steps .step:focus-within { flex-grow: 2.6; }
  .steps:hover .step.is-active:not(:hover),
  .steps:focus-within .step.is-active:not(:focus-within) { flex-grow: 1; }

  .step.is-active::before,
  .steps:hover .step:hover::before,
  .steps .step:focus-within::before { background-color: transparent; }
  .steps:hover .step.is-active:not(:hover)::before,
  .steps:focus-within .step.is-active:not(:focus-within)::before { background-color: rgba(var(--deep-rgb), 0.35); }

  .step.is-active .step__img,
  .steps:hover .step:hover .step__img,
  .steps .step:focus-within .step__img { transform: scale(1.04); filter: none; }
  .steps:hover .step.is-active:not(:hover) .step__img,
  .steps:focus-within .step.is-active:not(:focus-within) .step__img { transform: none; filter: grayscale(0.35); }

  .step.is-active::after,
  .steps:hover .step:hover::after,
  .steps .step:focus-within::after { width: 100%; }
  .steps:hover .step.is-active:not(:hover)::after,
  .steps:focus-within .step.is-active:not(:focus-within)::after { width: 3rem; }

  .step.is-active .step__num,
  .steps:hover .step:hover .step__num,
  .steps .step:focus-within .step__num { color: var(--white); -webkit-text-stroke-color: var(--white); }
  .steps:hover .step.is-active:not(:hover) .step__num,
  .steps:focus-within .step.is-active:not(:focus-within) .step__num { color: transparent; -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }

  .step.is-active .step__reveal,
  .steps:hover .step:hover .step__reveal,
  .steps .step:focus-within .step__reveal { grid-template-rows: 1fr; opacity: 1; }
  .steps:hover .step.is-active:not(:hover) .step__reveal,
  .steps:focus-within .step.is-active:not(:focus-within) .step__reveal { grid-template-rows: 0fr; opacity: 0; }

  .step:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
}

/* Phones and small tablets: a 2x2 grid, photo on top and the text underneath it,
   because the descriptions are too long to sit over a half-width photo */
@media (max-width: 991.98px) {
  .steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--bleed-gap); }
  .step { min-height: 0; display: flex; flex-direction: column; background: var(--card); }
  .step::before { display: none; }
  .step__img { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; height: auto; }
  .step__body { position: static; padding: 1.1rem 1rem 1.4rem; }
  .step__num { color: var(--white); -webkit-text-stroke-color: var(--white); font-size: 1.6rem; margin-bottom: 0.5rem; }
  .step h3 { font-size: 1.05rem; }
  .step__reveal p { font-size: 0.875rem; line-height: 1.55; margin-top: 0.5rem; }
  .step h3, .step__reveal p { text-shadow: none; }
}

/* Touch screens wide enough for a row: no hover, so equal panels with all text showing */
@media (min-width: 992px) and (hover: none) {
  .steps .step { flex-grow: 1 !important; }
  .step::before { background-color: transparent !important; }
  .step__img { filter: none !important; }
  .step__reveal { grid-template-rows: 1fr !important; opacity: 1 !important; }
  .step__reveal p { width: auto; }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.25rem 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
}
.section--stone .review { box-shadow: 0 20px 44px -30px rgba(27, 26, 25, 0.4); }
/* Room for the shadow inside the scroller, which clips anything outside its box */
.section--stone .reviews__track { padding-bottom: 2.5rem; margin-bottom: -2rem; }
.review__stars { display: flex; gap: 0.25rem; color: var(--accent); margin-bottom: 1.25rem; }
.review blockquote { margin: 0 0 1.75rem; }
.review blockquote p { font-size: var(--fs-body); line-height: 1.7; margin: 0; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; line-height: 1.4; }
.review figcaption strong { font-family: var(--font-heading); font-weight: 700; }
.review figcaption span { color: var(--text-muted); font-size: var(--fs-meta); }

/* Google reviews badge */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0.9rem 1.25rem 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.google-badge:hover { color: var(--text); border-color: var(--text-muted); transform: translateY(-2px); }
.google-badge__logo { width: 36px; height: 36px; flex-shrink: 0; }
.google-badge__text { display: flex; flex-direction: column; line-height: 1.25; }
.google-badge__rating { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; }
.google-badge__stars { display: inline-flex; gap: 0.15rem; font-size: 0.95rem; color: #fbbc05; } /* Google's own star yellow */
.google-badge__label { font-size: 0.875rem; color: var(--text-muted); }

/* Review scroller: native horizontal scroll with snap, arrows scroll one card */
.reviews__controls { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.reviews__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.reviews__btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: var(--white); }
.reviews__btn:disabled { opacity: 0.35; cursor: default; }

.reviews { position: relative; }
.reviews::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3rem;
  background: linear-gradient(90deg, transparent, var(--surface));
  pointer-events: none;
  transition: opacity var(--t);
}
.reviews.is-end::after { opacity: 0; }
.reviews__track {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__slide {
  flex: none;
  width: min(340px, 82%);
  scroll-snap-align: start;
}

@media (max-width: 991.98px) {
  .reviews__controls { display: none; }
}

/* --------------------------------------------------------------------------
   Our Work (not on the homepage any more; kept for the branch and Projects pages)
   -------------------------------------------------------------------------- */
.work-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.25rem; }
.work-filter__btn {
  padding: 0.6rem 1.15rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.work-filter__btn:hover { border-color: var(--text-muted); color: var(--white); }
.work-filter__btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bleed-gap);
}
@media (min-width: 992px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-item {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3.6;
}
.work-item.is-hidden { display: none; }
.work-item.is-entering { animation: work-in 0.5s var(--ease) both; }
@keyframes work-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.work-item__link { display: block; height: 100%; color: var(--white); text-decoration: none; }
.work-item__link img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.work-item__link:hover img { transform: scale(1.05); }
.work-item__link:hover { color: var(--white); }

/* Caption sits on a permanent gradient so it stays readable on touch devices too */
.work-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.4rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(28, 28, 31, 0.88));
  color: var(--white);
  pointer-events: none;
}
.work-item__caption h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.work-item__caption p { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }
/* Phones: two per row, so taller tiles and a smaller caption */
@media (max-width: 575.98px) {
  .work-item { aspect-ratio: 3 / 4; }
  .work-item__caption { padding: 2.5rem 0.8rem 0.8rem; }
  .work-item__caption h3 { font-size: 0.95rem; line-height: 1.25; }
  .work-item__caption p { font-size: 0.75rem; }
}

.work-empty { margin-top: 1.5rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: calc(var(--section-y) * 1.15);
  color: var(--on-dark);
  background: var(--deep);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(var(--deep-rgb), 0.94) 0%, rgba(var(--deep-rgb), 0.86) 60%, rgba(var(--deep-rgb), 0.72) 100%);
}
.cta__content { max-width: 42rem; margin-inline: auto; text-align: center; }
.cta h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; text-wrap: balance; }
.cta p { font-size: var(--fs-lead); color: var(--on-dark-muted); margin-bottom: 2.25rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.75rem; }
.cta__email { display: inline-block; padding-block: 0.6rem; color: var(--on-dark); font-weight: 600; word-break: break-word; }   /* padding gives a full-size tap area */
.cta__email:hover { color: var(--white); text-decoration-thickness: 2px; }
@media (max-width: 575.98px) {
  .cta__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: transparent;
  color: var(--on-dark-muted);
  padding-top: 5rem;
  font-size: 0.975rem;
  border-top: 1px solid var(--on-dark-line);
}
.site-footer__brand { display: inline-block; margin-bottom: 1.5rem; }
.site-footer__logo { width: 190px; height: auto; }
.site-footer__slogan { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--on-dark); margin-bottom: 1.5rem; }
.site-footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}
.site-footer__links,
.site-footer__contact,
.site-footer__social { list-style: none; padding: 0; margin: 0; }
.site-footer__links li + li { margin-top: 0.6rem; }
.site-footer a:not(.btn) { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); }
.site-footer__contact li { display: flex; gap: 0.75rem; align-items: baseline; overflow-wrap: break-word; }
.site-footer__contact li + li { margin-top: 0.75rem; }
.site-footer__contact i { color: var(--on-dark); }
.site-footer__contact strong { color: var(--on-dark); font-weight: 600; }
.site-footer__social { display: flex; gap: 0.75rem; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.site-footer .site-footer__social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
/* Accreditation logos have black type, so each sits on its own white tile */
.site-footer__accreditations { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.site-footer__accreditations li { display: flex; align-items: center; padding: 0.6rem 0.75rem; background: var(--white); border-radius: 8px; }
.site-footer__accreditations img { width: auto; height: 52px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 4rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.875rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__credit { white-space: nowrap; }
.site-footer__credit::before { content: "|"; margin: 0 0.6rem; color: var(--on-dark-line); }
.site-footer .site-footer__credit a { color: var(--on-dark); font-weight: 600; }
.site-footer .site-footer__credit a:hover { color: var(--white); }
@media (max-width: 575.98px) {
  .site-footer__credit { display: block; margin-top: 0.35rem; }
  .site-footer__credit::before { content: none; }
}

/* --------------------------------------------------------------------------
   Mobile quick bar
   -------------------------------------------------------------------------- */
.quick-bar { display: none; }
@media (max-width: 767.98px) {
  .quick-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--deep);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%);
    transition: transform var(--t);
  }
  .quick-bar.is-visible { transform: none; }
  .quick-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--on-dark-line);
    border-radius: var(--radius-sm);
  }
  .quick-bar .quick-bar__primary { background: var(--blue); border-color: var(--blue); }
  .site-footer { padding-bottom: 72px; }
}

/* --------------------------------------------------------------------------
   Reveal animations (only when JS has run, so content is never hidden without it)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@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 [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Page hero: big statement and intro on dark, under the fixed header */
.page-hero {
  padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(2.25rem, 4.5vw, 4rem));
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.page-hero__intro { display: grid; gap: 1.75rem; }
@media (min-width: 992px) {
  .page-hero__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(3rem, 6vw, 7rem); }
}
.page-hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text-muted);
}
.page-hero__title .text-brand { color: var(--white); }
.page-hero__lead { margin: 0; font-size: var(--fs-lead); line-height: 1.65; color: var(--text-muted); }
.page-hero__stats { margin-top: clamp(3rem, 6vw, 5rem); }

/* About: one row per division, photo and text alternating sides */
.expertise-section { padding-top: 0; }
.expertise {
  display: grid;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 992px) {
  .expertise { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .expertise--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .expertise--reverse .expertise__media { order: 2; }
}
.expertise__media { position: relative; margin: 0; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--card); }
.expertise__media img { width: 100%; height: 100%; object-fit: cover; }
/* Bar in the division colour along the bottom of the photo */
.expertise__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--div); }
.expertise__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--heading);
}
.expertise__body > p { max-width: 38rem; color: var(--text-muted); font-size: var(--fs-body); line-height: 1.7; }
.expertise .division__menu { max-width: 38rem; margin-top: 1.75rem; }
@media (max-width: 991.98px) {
  .expertise__media { aspect-ratio: 16 / 10; }
}

/* About: the story statement reuses the Why title style, a little smaller */
.story__quote { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.75rem); }
.why__intro > div > .story__quote { margin: 0; }
#how-we-work .why__points { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* Projects hero: the shared text column beside a panel of roof lines in the four division colours */
.pattern-hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-pattern {
  margin-top: clamp(2rem, 4vw, 3rem);
  aspect-ratio: 4 / 4.4;
  background: url("../images/roof-pattern.svg") center / 72px 176px repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
@media (max-width: 991.98px) { .hero-pattern { display: none; } }   /* decoration only: phones go straight to the projects */

/* Projects page: filter buttons, then a grid of project cards that open a full-screen gallery */
.projects__head { scroll-margin-top: 2rem; display: grid; justify-items: center; gap: 1.75rem; margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.projects__head h2 { margin: 0 0 0.5rem; }
.projects__head p { max-width: 44rem; margin: 0 auto; color: var(--text-muted); }

.project-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.project-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem 0.55rem 1.05rem;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--heading);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.project-filter:hover { border-color: var(--div); }
.project-filter.is-active { color: var(--white); background: var(--div); border-color: var(--div); }
.project-filter__count {
  min-width: 1.5rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
  background: var(--stone);
  border-radius: 999px;
}
.project-filter.is-active .project-filter__count { color: var(--heading); background: var(--white); }
.project-filter:focus-visible { outline: 2px solid var(--div); outline-offset: 2px; }
/* Phones: one row of filters that swipes sideways, rather than three rows of pills */
@media (max-width: 575.98px) {
  .project-filters { justify-self: stretch; justify-content: flex-start; flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .project-filters::-webkit-scrollbar { display: none; }
}

.project-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.js .project-card[hidden] { display: none; }
.project-card.is-entering,
.post-grid > li.is-entering { animation: project-in 0.45s ease both; }
@keyframes project-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.project-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--radius); }
.project-card__open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  cursor: zoom-in;
}
.project-card__open img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.project-card:hover .project-card__open img { transform: scale(1.04); }
.project-card__open:focus-visible { outline-offset: -3px; }
.project-card__division,
.project-card__count {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  border-radius: 999px;
}
.project-card__division { top: 1rem; left: 1rem; background: var(--div); }
.project-card__count {
  right: 1rem;
  bottom: 1rem;
  background: rgba(20, 20, 22, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 2.5vw, 2rem); }
.project-card__title { margin: 0 0 0.6rem; font-size: var(--fs-h3); color: var(--heading); }
.project-card__body > p { margin: 0 0 1.5rem; font-size: var(--fs-small); line-height: 1.65; color: var(--text-muted); }
.project-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.project-card__btn { display: inline-flex; align-items: center; gap: 0.5rem; --bs-btn-padding-y: 0.6rem; --bs-btn-padding-x: 1.15rem; --bs-btn-font-size: 0.925rem; }
.project-card__foot .link-arrow { font-size: 0.925rem; }

/* Gallery modal (compound selector to beat Bootstrap's .modal-content) */
.gallery-modal .modal-content { display: flex; flex-direction: column; color: var(--text); background: #0c0c0d; border: 0; border-radius: 0; }
.gallery-modal__bar { display: flex; align-items: center; gap: 1rem; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
.gallery-modal__title { margin: 0; font-size: 1.15rem; color: var(--white); }
.gallery-modal__counter { margin-right: auto; font-size: 0.9rem; color: var(--text-muted); }
.gallery-modal .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.gallery-modal__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1.25rem 4.5rem; }
.gallery-modal__figure { position: relative; margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery-modal__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-modal__caption:not(:empty) {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-sm);
}
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color var(--t-fast);
}
.gallery-modal__nav:hover { background: rgba(255, 255, 255, 0.18); }
.gallery-modal__nav--prev { left: 1rem; }
.gallery-modal__nav--next { right: 1rem; }
.gallery-modal__thumbs { display: flex; gap: 0.5rem; margin: 0; padding: 0.9rem var(--gutter) 1.1rem; list-style: none; overflow-x: auto; border-top: 1px solid var(--line); }
.gallery-modal__thumbs button { display: block; width: 64px; height: 64px; padding: 0; overflow: hidden; background: var(--card); border: 2px solid transparent; border-radius: var(--radius-sm); opacity: 0.55; transition: opacity var(--t-fast), border-color var(--t-fast); }
.gallery-modal__thumbs button:hover { opacity: 0.85; }
.gallery-modal__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--white); }
.gallery-modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) {
  .gallery-modal__stage { padding: 0.75rem 0.5rem 4.5rem; }
  .gallery-modal__nav { top: auto; bottom: 0.75rem; transform: none; }
  .gallery-modal__nav--prev { left: calc(50% - 60px); }
  .gallery-modal__nav--next { right: calc(50% - 60px); }
}

/* How We Work pages (one per division) */
.process-hero .division-logo { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.process-facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .process-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.process-facts li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .process-facts li { border-bottom: 0; }
  .process-facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.process-facts__icon,
.survey__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--div);
  border-radius: var(--radius-sm);
}

/* The survey: what we look at, on dark */
.survey__inner { display: grid; gap: clamp(2rem, 4vw, 5rem); }
@media (min-width: 992px) {
  .survey__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .survey__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.survey__head h2 { margin-bottom: 1.25rem; }
.survey__head p { color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.65; margin-bottom: 2rem; }
.survey__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .survey__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
.survey__list li { display: flex; gap: 1.1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.survey__icon { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
.survey__list h3 { margin: 0.2rem 0 0.4rem; font-size: 1.1rem; color: var(--white); }
.survey__list p { margin: 0; font-size: 0.975rem; line-height: 1.6; color: var(--text-muted); }

/* The process: numbered stages on stone, numbers in the division colour (readable as text on stone) */
.process__steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process__step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem 2rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .process__step { grid-template-columns: 8rem minmax(0, 1fr); } }
.process__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--div);
}
.process__step h3 { margin: 0.3rem 0 0.6rem; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); color: var(--heading); }
.process__step p { max-width: 46rem; margin: 0; color: var(--text-muted); line-height: 1.7; }
.process__step .process__outcome { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--heading); }
.process__outcome i { color: var(--div); font-size: 1.1rem; }

/* Quality checks and preparation, side by side */
.process-lists { display: grid; gap: clamp(2.5rem, 5vw, 6rem); }
@media (min-width: 992px) { .process-lists { grid-template-columns: 1fr 1fr; } }
.process-lists h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 0.75rem; padding: 0.95rem 0; line-height: 1.55; border-bottom: 1px solid var(--line); }
.checklist i { flex: none; margin-top: 0.15rem; font-size: 1.1rem; color: var(--div); }
.checklist--plain i { color: var(--text-muted); }

/* FAQs */
.faq { display: grid; gap: clamp(2rem, 4vw, 5rem); }
@media (min-width: 992px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.faq__head h2 { margin-bottom: 1rem; }
.faq__head p { color: var(--text-muted); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--div);
  border-bottom: 2px solid var(--div);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-fast);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item p { max-width: 46rem; margin: 0 0 1.5rem; color: var(--text-muted); line-height: 1.7; }

/* Links to the other divisions' process pages */
.process-others { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(3rem, 5vw, 4.5rem); padding-top: 2rem; }
/* Line drawn as a background so it stops at the content edges */
.container-xxl.process-others { background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.process-others--about { border-top: 1px solid var(--line); }
.process-others p { margin: 0; font-weight: 600; color: var(--heading); }
.process-others ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.process-others--about ul { gap: 0.6rem; }

/* Current division in the main menu (division and service pages) */
.mega-item.is-current > .mega-item__toggle { color: var(--white); }
.mega-item.is-current > .mega-item__toggle::after { transform: scaleX(1); }

/* Division landing pages: full-bleed photo hero */
.branch-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(640px, 100svh, 980px);
  padding-top: calc(var(--topbar-h) + var(--header-h));
  color: var(--white);
  background: var(--ink);
}
.branch-hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Dark on the left where the text sits, the work left clear on the right, and a fade at the bottom */
.branch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--deep-rgb), 0.95) 0%, rgba(var(--deep-rgb), 0.82) 36%, rgba(var(--deep-rgb), 0.3) 72%, rgba(var(--deep-rgb), 0.12) 100%),
    linear-gradient(0deg, rgba(var(--deep-rgb), 0.9) 0%, transparent 32%);
}
.branch-hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.branch-hero__title {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--white);
}
.branch-hero__title .text-brand { color: var(--white); }
.branch-hero__lead { max-width: 38rem; margin: 0 0 2.25rem; font-size: var(--fs-lead); line-height: 1.65; color: var(--on-dark-muted); }

/* Phones and tablets: a fixed-height photo band rather than a full screen, darker all over for the text */
@media (max-width: 991.98px) {
  .branch-hero { min-height: 0; }
  .branch-hero::before {
    background:
      linear-gradient(180deg, rgba(var(--deep-rgb), 0.78) 0%, rgba(var(--deep-rgb), 0.86) 60%, rgba(var(--deep-rgb), 0.95) 100%);
  }
  .branch-hero__inner { padding-block: 2.5rem 3rem; }
}

/* Division colour for the statement highlight on stone (all four read as text on stone at 5:1 or more) */
.section--stone[class*="division--"] .why__title .text-brand { color: var(--div); }
.branch-steps { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* Service tiles on the division pages: one row of three or four */
@media (min-width: 992px) {
  .service-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .service-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .service-grid--3 .service-tile { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 991.98px) {
  .service-grid--4 > :first-child { grid-column: auto; }
  .service-grid--4 > :first-child .service-tile { aspect-ratio: 3 / 4; }
}
.service-grid { margin: 0; padding: 0; list-style: none; }
.service-tile__body h3 { text-wrap: balance; }

/* Photo grids run edge to edge and straight into the next section */
.branch-work .work-grid { margin: 0; padding: 0; list-style: none; }
.branch-work,
.branch-services { padding-bottom: 0; }

/* Links to the other three divisions */
.branch-links { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .branch-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.branch-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  border-top: 3px solid var(--div);
  transition: background-color var(--t-fast);
}
.branch-link:hover { background: var(--card-hover); color: var(--text); }
/* The card is a flex column, so stop it stretching the logo to the card width */
.branch-link .division-logo { align-self: flex-start; width: auto; height: clamp(3.25rem, 2.8rem + 1vw, 4rem); margin-bottom: 1.75rem; }
.branch-link__title { margin-bottom: 1.75rem; font-family: var(--font-heading); font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); font-weight: 700; line-height: 1.2; color: var(--white); }
.branch-link__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; font-family: var(--font-heading); font-weight: 600; color: var(--white); }
.branch-link__more i { transition: transform var(--t-fast); }
.branch-link:hover .branch-link__more i { transform: translateX(4px); }

/* Service pages: text on the left, a photo bleeding to the right edge */
.service-hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--topbar-h) + var(--header-h)); }
.service-hero__body { padding: clamp(2.25rem, 4.5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.service-hero .division-logo { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.service-hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.03;
  color: var(--text-muted);
}
.service-hero__title .text-brand { color: var(--white); }
.service-hero__lead { max-width: 38rem; margin: 0 0 2.25rem; font-size: var(--fs-lead); line-height: 1.65; color: var(--text-muted); }
.service-hero__area { display: flex; align-items: center; gap: 0.5rem; margin: 2rem 0 0; font-size: 0.925rem; color: var(--text-muted); }
.service-hero__media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.service-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--div); }
@media (min-width: 992px) {
  .service-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: clamp(620px, 92svh, 900px); }
  .service-hero__body {
    align-self: center;
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-right: clamp(3rem, 5vw, 6rem);
  }
  .service-hero__media { aspect-ratio: auto; }
}

/* Overview: statement and intro, beside what's included */
.overview { display: grid; gap: clamp(2.5rem, 5vw, 6rem); }
@media (min-width: 992px) { .overview { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.overview__title {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-muted);
}
.overview__title .text-brand { color: var(--div); }
.overview p { max-width: 40rem; margin: 0 0 1.1rem; font-size: var(--fs-lead); line-height: 1.7; color: var(--text-muted); }
.overview__list h3 { margin: 0 0 1.25rem; font-size: var(--fs-h3); color: var(--heading); }
@media (min-width: 992px) { .overview__list { padding-top: 0.75rem; } }

/* Options: four cards, a bar in the division colour on top */
.option-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 576px) { .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.option-card { padding: clamp(1.75rem, 2.5vw, 2.25rem) clamp(1.5rem, 2vw, 1.9rem); background: var(--card); border-top: 3px solid var(--div); }
.option-card h3 { margin: 0 0 0.75rem; font-size: 1.25rem; color: var(--white); }
.option-card p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }

/* Related services: landscape tiles, one row */
.service-grid--related { grid-template-columns: 1fr; }
.service-grid--related .service-tile { aspect-ratio: 16 / 10; }
.service-grid--related > :first-child { grid-column: auto; }
.service-grid--related > :first-child .service-tile { aspect-ratio: 16 / 10; }
@media (min-width: 768px) { .service-grid--related { grid-template-columns: repeat(var(--n), 1fr); } }
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-grid--related .service-tile,
  .service-grid--related > :first-child .service-tile { aspect-ratio: 4 / 3.4; }
}
/* Single column: the description has room on phones here, so keep it */
@media (max-width: 575.98px) {
  .service-grid--related .service-tile__reveal p { display: block; }
  .service-grid--related .service-tile__body { padding: 1.25rem 1.1rem; }
}
@media (hover: none) and (max-width: 575.98px) {
  .service-grid--related .service-tile::after { opacity: 1; }
}

/* Contact page: the form on stone, details and next steps beside it */
.contact { display: grid; gap: clamp(3rem, 5vw, 6rem); }
@media (min-width: 992px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.contact__heading { margin: 0 0 0.75rem; font-size: var(--fs-h2); color: var(--heading); }
.contact__intro { margin: 0 0 2rem; color: var(--text-muted); }
.req { color: #a1260d; }   /* rust: 6.4:1 on stone */

.enquiry-form__grid { display: grid; gap: 1.5rem 1.5rem; }
@media (min-width: 768px) { .enquiry-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend {
  display: block;
  float: none;
  width: auto;
  margin-bottom: 0.5rem;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--heading);
}
.field__optional { font-weight: 400; color: var(--text-muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;     /* 16px stops iOS zooming into the field */
  color: var(--stone-ink);
  background: var(--white);
  border: 1px solid rgba(27, 26, 25, 0.28);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1a19' stroke-width='1.8'/%3E%3C/svg%3E") right 1rem center / 12px 8px no-repeat;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(27, 26, 25, 0.5); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(var(--brand-700-rgb), 0.2); }
.field input[type="file"] { display: block; width: 100%; padding: 0.75rem; font-size: 0.95rem; color: var(--text-muted); background: var(--white); border: 1px dashed rgba(27, 26, 25, 0.35); border-radius: var(--radius-sm); }
.field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  background: var(--stone-ink);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.field__hint { margin: 0.45rem 0 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--text-muted); }
.field__error { display: none; margin: 0.45rem 0 0; font-size: var(--fs-meta); font-weight: 600; color: #a1260d; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #a1260d; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.field .choice { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-family: var(--font-body); font-weight: 500; color: var(--text); cursor: pointer; }
.field .choice--consent { display: flex; align-items: flex-start; font-size: 0.95rem; line-height: 1.55; }
.choice input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brand-700); }
.choice--consent input { margin-top: 0.15rem; }
.enquiry-form__submit { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; }
@media (max-width: 575.98px) { .enquiry-form__submit { width: 100%; justify-content: center; } }

.enquiry-sent { display: flex; gap: 1rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--white); border-left: 4px solid var(--brand-700); }
.enquiry-sent[hidden] { display: none; }
.enquiry-sent > i { font-size: 1.6rem; color: var(--brand-700); }
.enquiry-sent p { margin: 0; color: var(--text-muted); }
.enquiry-sent__title { margin-bottom: 0.3rem !important; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--heading) !important; }

/* Contact details: a dark card on the stone, then the next steps */
@media (min-width: 992px) { .contact__aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.contact-card { padding: clamp(1.75rem, 3vw, 2.5rem); color: var(--on-dark); background: var(--ink); }
.contact-card__heading { margin: 0 0 1.75rem; font-size: 1.6rem; color: var(--white); }
.contact-card__list { margin: 0; padding: 0; list-style: none; }
.contact-card__list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-muted); line-height: 1.5; overflow-wrap: break-word; }
.contact-card__list a { color: var(--white); font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-card__list a:hover { text-decoration: underline; color: var(--white); }
.contact-card__label { display: block; margin-bottom: 0.2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--on-dark-muted); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--white); background: var(--blue); border-radius: var(--radius-sm); }
.contact-card__social { display: flex; gap: 0.75rem; margin: 1.25rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--on-dark-line); }
.contact-card__social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--white); border: 1px solid var(--on-dark-line); border-radius: 50%; transition: background-color var(--t-fast); }
.contact-card__social a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.next-steps { margin-top: 2.5rem; }
.next-steps__heading { margin: 0 0 1rem; font-size: 1.35rem; color: var(--heading); }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.next-steps li { counter-increment: step; position: relative; padding: 1rem 0 1rem 3rem; border-top: 1px solid var(--line); color: var(--text-muted); line-height: 1.55; }
.next-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--brand-700); }
.next-steps strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-heading); color: var(--heading); }

/* Privacy policy: contents list beside readable prose */
.legal { display: grid; gap: clamp(2.5rem, 5vw, 6rem); }
@media (min-width: 992px) {
  .legal { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); align-items: start; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.legal__updated { margin: 0 0 1.5rem; font-size: var(--fs-meta); color: var(--text-muted); }
.legal__toc-title { margin: 0 0 0.75rem; font-family: var(--font-heading); font-weight: 700; color: var(--heading); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal__toc a { display: block; padding: 0.55rem 0; font-size: 0.95rem; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.legal__toc a:hover { color: var(--stone-ink); }
.legal__body { max-width: 46rem; }
.legal__section + .legal__section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.legal__section h2 { margin: 0 0 1.25rem; font-size: var(--fs-h2); color: var(--heading); }
.legal__section p,
.legal__section li { line-height: 1.75; color: var(--text-muted); }
.legal__section ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal__section li + li { margin-top: 0.4rem; }
.legal__section strong { color: var(--heading); }

/* 404 */
.not-found { min-height: 70svh; }
.not-found__code { margin: 0 0 1rem; font-family: var(--font-heading); font-size: clamp(5rem, 3rem + 8vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--line); }
.page-hero__lead a { color: var(--white); }
@media (max-width: 575.98px) {
  .contact-card { padding: 1.5rem 1.25rem; }
  .contact-card__list li { gap: 0.85rem; }
  .contact-card__list a { font-size: 0.95rem; }
}
/* Phones: longer highlighted phrases (e.g. "Not A Standard Size") must be allowed to wrap */
@media (max-width: 575.98px) {
  .why__title .text-brand { white-space: normal; }
}

/* ==========================================================================
   Inner pages: minimal. Contained width, plain background, quieter type, fewer sections.
   (body.page-inner is every page except the homepage)
   ========================================================================== */
body.page-inner { background: var(--surface); }
/* Only the page content narrows: the header, menus and footer stay identical to the homepage */
.page-inner main .container-xxl { max-width: 1280px; }
.page-inner .text-brand { color: inherit; }
.page-inner .section { padding-block: clamp(4rem, 7vw, 6.5rem); }
.page-inner main h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
.page-inner .page-hero__title { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.06; color: var(--white); }

/* Second dark section in a row: a hairline at the content edges instead of a colour change */
.page-inner .section--ruled { padding-top: 0; }
.page-inner .inner-hero + .section--stone { padding-top: 0; }
.page-inner .section--ruled > .container-xxl:first-child {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

/* Hero: text beside a contained photo */
.inner-hero { padding: calc(var(--topbar-h) + var(--header-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(3.5rem, 6vw, 5.5rem); }
.inner-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 992px) { .inner-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.inner-hero--text .inner-hero__grid { grid-template-columns: minmax(0, 1fr); }
.inner-hero--text .inner-hero__text { max-width: 46rem; }
.inner-hero .division-logo { height: clamp(3rem, 2.6rem + 1vw, 3.75rem); margin-bottom: 2rem; }
.inner-hero__title { margin: 0 0 1.25rem; font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; color: var(--white); text-wrap: balance; }
.inner-hero__lead { max-width: 36rem; margin: 0 0 2.25rem; font-size: var(--fs-lead); line-height: 1.65; color: var(--text-muted); }
.inner-hero--text .inner-hero__lead:last-child { margin-bottom: 0; }
.inner-hero__media { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-sm); background: var(--card); }
.inner-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Heading on the left, content on the right */
.inner-split { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .inner-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); } }
.inner-split__head h2 { margin: 0 0 1rem; color: var(--heading); text-wrap: balance; }
.inner-split__head p { margin: 0 0 1.25rem; color: var(--text-muted); line-height: 1.65; }
.inner-prose p { max-width: 40rem; margin: 0 0 1.1rem; font-size: var(--fs-lead); line-height: 1.7; color: var(--text-muted); }
.inner-prose .link-arrow { margin-top: 0.75rem; }
.inner-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.inner-head h2 { margin: 0; color: var(--heading); }

/* Division pages: services as a plain list */
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-list a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.75rem 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.service-list h3 { margin: 0 0 0.35rem; font-size: var(--fs-h3); color: var(--white); }
.service-list p { max-width: 38rem; margin: 0; color: var(--text-muted); line-height: 1.6; }
.service-list i { flex: none; font-size: 1.2rem; color: var(--text-muted); transition: transform var(--t-fast), color var(--t-fast); }
.service-list a:hover { color: var(--text); }
.service-list a:hover i { color: var(--white); transform: translateX(4px); }
.service-list a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Three contained photos with a caption underneath */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.photo-grid a { display: block; color: var(--text-muted); text-decoration: none; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); transition: opacity var(--t-fast); }
.photo-grid a:hover img { opacity: 0.85; }
.photo-grid span { display: block; margin-top: 0.85rem; font-size: 0.95rem; }
@media (max-width: 575.98px) { .photo-grid span { display: none; } }

/* About: the four divisions in a ruled 2x2 grid */
.division-grid { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.division-card { display: flex; flex-direction: column; padding: clamp(1.75rem, 3vw, 2.75rem); background: var(--surface); }
.division-card .division-logo { align-self: flex-start; width: auto; height: 3.25rem; margin-bottom: 1.75rem; }
.division-card h3 { margin: 0 0 0.75rem; font-size: var(--fs-h3); color: var(--white); }
.division-card p { margin: 0 0 1.5rem; color: var(--text-muted); line-height: 1.65; }
.division-card .link-arrow { margin-top: auto; }

/* Quieter versions of shared parts */
.page-inner .overview__title { font-size: var(--fs-h2); letter-spacing: -0.025em; line-height: 1.12; color: var(--heading); }
.page-inner .overview p { font-size: var(--fs-body); }
.page-inner .process__steps { border-top-color: var(--line); }
.page-inner .process__step { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 1.5rem 0; }
.page-inner .process__num { font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.9; color: var(--text-muted); }
.page-inner .process__step h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.page-inner .faq__item summary::after { border-color: var(--text-muted); }
.page-inner .checklist i { color: var(--text-muted); }
.page-inner .process-others { padding-top: 2rem; }

/* CTA: a plain dark band, no photo */
/* Same photo-and-overlay band as the homepage, a little shorter */
.page-inner .cta { padding-block: clamp(4.5rem, 8vw, 7rem); }
/* FAQ columns line up with the other heading-left sections */
@media (min-width: 992px) { .page-inner .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); } }

/* ==========================================================================
   Inner pages, light: dark header, then stone and white content, then the dark CTA and footer.
   The tokens are swapped once on <main>, so shared components follow automatically.
   ========================================================================== */
.page-inner main {
  --heading: var(--stone-ink);
  --text: var(--stone-ink);
  --text-muted: var(--stone-ink-muted);
  --line: var(--stone-line);
  --accent: var(--brand-700);
  --surface: var(--white);
  --card: var(--stone);
  color: var(--text);
  background: var(--white);
}
/* Text links only: buttons keep their own hover colours */
.page-inner main a:not(.btn):hover { color: var(--stone-ink); }
/* Anything that stays dark inside <main>: the CTA, the gallery pop-up, the About division cards, the contact card */
.page-inner .cta,
.page-inner .gallery-modal,
.page-inner .division-card,
.page-inner .contact-card {
  --heading: var(--white);
  --text: #f2efe9;
  --text-muted: #a8a39b;
  --line: #36363b;
  --accent: var(--white);
  --surface: #1c1c1f;
  --card: #252529;
}
.page-inner .cta a:not(.btn):hover,
.page-inner .division-card a:not(.btn):hover,
.page-inner .contact-card a:not(.btn):hover { color: var(--white); }

/* Heroes sit on stone, so the dark header above has a clear edge */
.page-inner .inner-hero,
.page-inner .page-hero { background: var(--stone); }
.page-inner .inner-hero__title,
.page-inner .page-hero__title { color: var(--heading); }
.page-inner .page-hero__lead a { color: var(--accent); }
.page-inner .inner-hero .btn-outline-light {
  --bs-btn-color: var(--stone-ink);
  --bs-btn-border-color: rgba(27, 26, 25, 0.35);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--stone-ink);
  --bs-btn-hover-border-color: var(--stone-ink);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--stone-ink);
  --bs-btn-active-border-color: var(--stone-ink);
}

/* Components that used white text on dark */
.page-inner .service-list h3 { color: var(--heading); }
.page-inner .service-list a:hover i { color: var(--heading); }
.page-inner .project-card { background: var(--stone); }
.page-inner .section--stone .project-card,
.page-inner .section--stone .checklist li { background: transparent; }
.page-inner .photo-grid a { color: var(--text-muted); }

/* About: dark division cards (the branch logos have white lettering) */
.page-inner .division-grid { background: #36363b; border-color: #36363b; }
.page-inner .division-card { color: var(--text); background: var(--ink); }
.page-inner .division-card h3 { color: var(--white); }

/* The 404 number reads on stone */
.page-inner .not-found__code { color: rgba(27, 26, 25, 0.12); }
/* Desktop: tighter menu buttons so "Discuss Your Project" and "Explore ..." always stay on one row */
@media (min-width: 992px) {
  .mega__actions { flex-wrap: nowrap; gap: 0.6rem; }
  .mega__actions .btn { --bs-btn-padding-x: 0.9rem; --bs-btn-font-size: 0.85rem; white-space: nowrap; }
}

/* Key points: a row of four, each with an icon tile in the division colour */
.feature-points {
  display: grid;
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 576px) { .feature-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .feature-points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-points__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: var(--white);
  background: var(--div, var(--blue));
  border-radius: var(--radius-sm);
}
.feature-points h3 { margin: 0 0 0.5rem; font-size: var(--fs-h4); color: var(--heading); }
.feature-points p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }

/* Photo carousel: native sideways scroll with snap, the next photo peeking in, arrows and a counter */
.carousel { min-width: 0; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; overflow: hidden; border-radius: var(--radius-sm); background: var(--stone); }
.carousel__slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 575.98px) { .carousel__track { grid-auto-columns: 82%; } }
.carousel__controls { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.carousel__btn:hover:not(:disabled) { color: var(--white); background: var(--div, var(--blue)); border-color: var(--div, var(--blue)); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.carousel__count { margin: 0 0 0 0.5rem; font-family: var(--font-heading); font-size: var(--fs-meta); font-weight: 600; color: var(--text-muted); }

/* Project carousel: each slide is a whole project card */
.work-showcase { align-items: center; }
.carousel--projects .carousel__track { grid-auto-columns: 78%; gap: 1rem; }
@media (max-width: 575.98px) { .carousel--projects .carousel__track { grid-auto-columns: 88%; } }
.project-slide { background: var(--ink); }
/* Photo tile: title always on the photo; the description and gallery button reveal on hover or keyboard focus */
.project-slide__card { position: relative; height: 100%; overflow: hidden; isolation: isolate; }
.project-slide__card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform var(--t-slow); }
.project-slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  color: var(--white);
  background: linear-gradient(180deg, transparent 45%, rgba(20, 20, 22, 0.85) 100%);
  transition: background-color var(--t);
}
.project-slide__title { margin: 0; font-size: var(--fs-h3); color: var(--white); }
.project-slide__reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t), opacity var(--t); }
.project-slide__reveal > div { overflow: hidden; }
.project-slide__reveal p { max-width: 30rem; margin: 0.6rem 0 1.1rem; font-size: var(--fs-small); line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.project-slide__btn { display: inline-flex; align-items: center; gap: 0.5rem; --bs-btn-padding-y: 0.55rem; --bs-btn-padding-x: 1.1rem; --bs-btn-font-size: 0.9rem; }
.project-slide__card:hover > img,
.project-slide__card:focus-within > img { transform: scale(1.04); }
.project-slide__card:hover .project-slide__overlay,
.project-slide__card:focus-within .project-slide__overlay { background-color: rgba(20, 20, 22, 0.45); }
.project-slide__card:hover .project-slide__reveal,
.project-slide__card:focus-within .project-slide__reveal { grid-template-rows: 1fr; opacity: 1; }
/* Touch screens have no hover: show the text and button all the time, on the darker overlay */
@media (hover: none) {
  .project-slide__overlay { background-color: rgba(20, 20, 22, 0.4); }
  .project-slide__reveal { grid-template-rows: 1fr; opacity: 1; }
}
/* Small phones: the tile is too short for the description, so keep the title and button */
@media (max-width: 575.98px) {
  .project-slide__card > img { aspect-ratio: 4 / 3.4; }
  .project-slide__reveal p { display: none; }
  .project-slide__btn { margin-top: 0.75rem; }
}
/* The gallery title is an h2 inside <main>: keep it at its own size, not the inner-page heading size */
.page-inner main .gallery-modal__title { font-size: 1.15rem; letter-spacing: -0.01em; color: var(--white); }

/* Photo wall hero (division landing pages): text on the left, two columns of project photos
   drifting in opposite directions on the right. Small tiles show the range of work and suit phone photos. */
.wall-hero { padding-block: calc(var(--topbar-h) + var(--header-h)) 0; overflow: hidden; }
.wall-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .wall-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); } }
.wall-hero__text { padding-block: clamp(3rem, 6vw, 5rem); }
.wall-hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.wall-hero__facts li { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-heading); font-size: var(--fs-label); font-weight: 600; color: var(--heading); }
.wall-hero__facts i { font-size: 1rem; color: var(--div, var(--blue)); }

.photo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  height: clamp(560px, calc(100svh - var(--topbar-h) - var(--header-h)), 760px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.photo-wall__col { min-width: 0; }
.photo-wall__track { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; animation: wall-up 60s linear infinite; }
.photo-wall__col:nth-child(2) .photo-wall__track { animation-name: wall-down; animation-duration: 70s; }
.photo-wall li { flex: none; overflow: hidden; border-radius: var(--radius-sm); background: var(--white); }
.photo-wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-wall:hover .photo-wall__track { animation-play-state: paused; }
/* Each list holds its photos twice, so moving it by half (plus half a gap) loops without a jump */
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 0.375rem)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 0.375rem)); } to { transform: translateY(0); } }
@keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 0.375rem)); } }

/* Tablets and phones: one strip drifting sideways under the text */
@media (max-width: 991.98px) {
  .wall-hero { padding-bottom: clamp(3rem, 6vw, 4rem); }
  .wall-hero__text { padding-bottom: 0; }
  .photo-wall {
    display: block;
    height: auto;
    margin-inline: calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .photo-wall__col:nth-child(2) { display: none; }
  .photo-wall__track { flex-direction: row; width: max-content; animation-name: wall-left; animation-duration: 45s; }
  .photo-wall li { width: clamp(150px, 38vw, 230px); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-wall__track { animation: none; }
}

/* Service rows (division pages): number, name and summary, and an arrow button; the row tints on hover */
.service-list .service-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 1.5rem;
  padding: 1.6rem 1.25rem;
  margin-inline: -1.25rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background-color var(--t);
}
.service-list--rows { border-top: 1px solid var(--line); }
.service-row__num { align-self: start; padding-top: 0.35rem; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); }
.service-row__text h3 { margin: 0 0 0.35rem; font-size: var(--fs-h3); color: var(--heading); transition: color var(--t-fast); }
.service-row__text p { max-width: 34rem; margin: 0; line-height: 1.6; color: var(--text-muted); }
.service-row__arrow {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.1rem;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.service-row__arrow i { transition: transform var(--t-fast); }
.service-list .service-row:hover,
.service-list .service-row:focus-visible { color: var(--text); background: var(--stone); }
.service-row:hover .service-row__arrow,
.service-row:focus-visible .service-row__arrow { color: var(--white); background: var(--div, var(--blue)); border-color: var(--div, var(--blue)); }
.service-row:hover .service-row__arrow i,
.service-row:focus-visible .service-row__arrow i { transform: translateX(3px); }
/* Phones: no number, arrow beside the text */
@media (max-width: 575.98px) {
  .service-list .service-row { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1.25rem 0; margin-inline: 0; }
  .service-row__num { display: none; }
  .service-row__arrow { width: 2.75rem; height: 2.75rem; }
  .service-list .service-row:hover { background: none; }
}
/* Win over the older plain-list rules (.service-list a / i) still used elsewhere */
.service-list .service-row__arrow i { font-size: 1.1rem; color: inherit; }
.service-list .service-row:hover .service-row__arrow i,
.service-list .service-row:focus-visible .service-row__arrow i { color: var(--white); }
.service-list .service-row:hover h3 { text-decoration: none; }
/* Dividers sit on the list items, so they line up with the list edges (the row itself bleeds out for the hover background) */
.service-list--rows > li { border-bottom: 1px solid var(--line); }
.service-list--rows .service-row { border-bottom: 0; }

/* Button under a split heading's intro */
.inner-split__head .btn { margin-top: 0.5rem; }

/* Inner pages are light, so division buttons go slightly darker on hover instead of brighter */
.page-inner .division--renovations       { --div-hover: #1c0370; }
.page-inner .division--plastering        { --div-hover: #77270c; }
.page-inner .division--damp-proofing     { --div-hover: #225a63; }
.page-inner .division--bespoke-carpentry { --div-hover: #67400b; }

/* Testimonials on division pages: review cards side by side, in the division colour */
.review-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-grid .review { border-top-color: var(--div, var(--blue)); }
.page-inner .review figcaption strong { color: var(--heading); }

/* ==========================================================================
   Division heroes, one concept each (all share the .wall-hero text column and facts row)
   ========================================================================== */
.diag-hero { padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(2rem, 4vw, 3.5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.diag-hero .wall-hero__text { padding-block: clamp(2rem, 4vw, 3rem); }

/* Damp Proofing: text beside a single photo */
.diag-hero__media { position: relative; }
.diag-hero__photo { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: var(--radius); }
.diag-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Single project or review on a division page */
.project-slide--single { border-radius: var(--radius-sm); overflow: hidden; }
.review-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }


/* On division and service pages, links, stars and focus rings follow the division colour (all 4.5:1+ on white and stone) */
.page-inner main [class*="division--"] { --accent: var(--div); }
/* ...except the dark About division cards, where links stay white */
.page-inner main .division-card[class*="division--"] { --accent: var(--white); }

/* Service pages: confident text-only hero (no photo), with the same facts row as the division page */
.service-hero-text { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.service-hero-text__inner { max-width: 56rem; padding-top: clamp(1rem, 3vw, 2.5rem); }
.service-hero-text .inner-hero__lead { max-width: 42rem; }
.service-hero-text .wall-hero__facts { max-width: 42rem; }
.inner-head__lead { margin: 0.75rem 0 0; color: var(--text-muted); }

/* Step-by-step flow chart: numbered nodes joined by a line with arrowheads, a card under each.
   Desktop runs left to right; tablets and phones run top to bottom as a timeline. */
.flow { position: relative; display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.flow__step { position: relative; }
.flow__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  background: var(--div);
  border: 4px solid var(--stone);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--div);
}
.flow__card { padding: 1.5rem 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(27, 26, 25, 0.45); }
.flow__card h3 { margin: 0 0 0.5rem; font-size: var(--fs-h4); line-height: 1.3; color: var(--heading); }
.flow__card p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }

@media (min-width: 992px) {
  .flow { grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 1.25rem; }
  .flow__num { margin: 0 auto 1.5rem; }
  .flow__card { height: calc(100% - 4.75rem); text-align: center; }
  /* Connector from this node to the next, with an arrowhead just before the next node */
  .flow__step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(1.625rem - 1px);
    left: calc(50% + 1.625rem);
    right: calc(-50% + 1.625rem - 1.25rem);
    height: 2px;
    background: var(--div);
  }
  .flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(1.625rem - 5px);
    right: calc(-50% + 1.625rem - 1.25rem + 2px);
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--div);
    border-right: 2px solid var(--div);
    transform: rotate(45deg);
  }
}
@media (max-width: 991.98px) {
  .flow { gap: 0; }
  .flow__step { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.25rem; }
  /* Vertical connector down to the next node */
  .flow__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc(1.625rem - 1px);
    top: 3.25rem;
    bottom: 0;
    width: 2px;
    background: var(--div);
  }
  .flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.625rem - 5px);
    bottom: 2px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--div);
    border-bottom: 2px solid var(--div);
    transform: rotate(45deg);
  }
}
/* Overview: a button under the intro paragraphs */
.overview .btn { margin-top: 1rem; }

/* Service page hero: text on the left, a "Request A Callback" card on the right */
.service-hero-text__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 992px) {
  .service-hero-text__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(3rem, 6vw, 6rem); }
}
.callback-card {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--white);
  border-top: 4px solid var(--div);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -32px rgba(27, 26, 25, 0.45);
}
.page-inner main .callback-card__title { margin: 0 0 0.5rem; font-size: var(--fs-h3); letter-spacing: -0.02em; color: var(--heading); }
.callback-card__intro { margin: 0 0 1.5rem; font-size: var(--fs-small); line-height: 1.55; color: var(--text-muted); }
.callback-form { display: grid; gap: 1rem; }
.callback-form .field label { font-size: 0.9rem; margin-bottom: 0.35rem; }
.callback-form .field input,
.callback-form .field select { min-height: 3rem; background-color: var(--stone); border-color: transparent; }
.callback-form .field input:hover,
.callback-form .field select:hover { border-color: rgba(27, 26, 25, 0.35); }
.callback-form .field input:focus,
.callback-form .field select:focus { background-color: var(--white); }
.callback-form .field.is-invalid input { border-color: #a1260d; }
.callback-form__submit { width: 100%; margin-top: 0.25rem; }
.callback-card__privacy { margin: 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--text-muted); }
.callback-card__phone { margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-muted); }
.callback-card__phone a { font-family: var(--font-heading); font-weight: 700; color: var(--heading); text-decoration: none; }
.callback-card__phone a:hover { text-decoration: underline; }
.callback-card__sent { margin-bottom: 1.25rem; padding: 1.1rem; background: var(--stone); }
@media (max-width: 991.98px) { .callback-card { max-width: 34rem; } }
/* CTA band on division pages: the button takes the division colour, but links stay white on the dark photo */
.page-inner main .cta[class*="division--"] { --accent: var(--white); }

/* ==========================================================================
   What To Expect and Blog
   ========================================================================== */
@media (min-width: 992px) { .feature-points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; } }
.feature-points--3 { margin-top: 0; }
.flow__more { margin: 2rem 0 0; text-align: center; font-size: var(--fs-small); color: var(--text-muted); }

/* Category tag in the division colour */
.post-tag { display: inline-block; padding: 0.3rem 0.75rem; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); background: var(--div, var(--blue)); border-radius: 999px; }
.post-meta { display: block; margin: 0; font-size: var(--fs-meta); color: var(--text-muted); }

/* Blog listing: cards with a photo, tag, title, excerpt and date */
.post-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.js .post-grid > li[hidden] { display: none; }
.post-grid__empty { margin: 0; padding: clamp(2rem, 5vw, 3.5rem) 1rem; text-align: center; color: var(--text-muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { height: 100%; }
.post-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--text); text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow var(--t), transform var(--t); }
.section--stone .post-card__link { border-color: transparent; }
.post-card__link:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(27, 26, 25, 0.45); }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card__link:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 0.85rem; flex: 1; align-items: flex-start; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.page-inner main .post-card__title { margin: 0; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; color: var(--heading); }
.post-card__link:hover .post-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card__excerpt { font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
.post-card .post-meta { margin-top: auto; }

/* Article page */
.post-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); background: var(--stone); }
.post-hero__inner { max-width: 48rem; margin-inline: auto; }
.post-hero__back { margin: 0 0 1.25rem; font-size: var(--fs-meta); }
.post-hero__back a { display: inline-flex; align-items: center; gap: 0.4rem; padding-block: 0.5rem; text-decoration: none; font-weight: 600; }
.post-hero .post-tag { margin-bottom: 1.25rem; }
.post-hero .inner-hero__lead { margin-bottom: 1.25rem; }
.post-body { padding-top: clamp(2.5rem, 5vw, 4rem); }
.post-figure { max-width: 60rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article { max-width: 44rem; margin-inline: auto; }
.page-inner main .article h2 { margin: 2.5rem 0 0.85rem; font-size: var(--fs-h3); letter-spacing: -0.02em; color: var(--heading); }
.article h2:first-child { margin-top: 0; }
.article p,
.article li { font-size: var(--fs-body); line-height: 1.8; color: var(--text-muted); }
.article p { margin: 0 0 1.1rem; }
.article ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.article li + li { margin-top: 0.35rem; }
.article li::marker { color: var(--div, var(--blue)); }
.article-help { margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2rem); background: var(--stone); border-left: 4px solid var(--div, var(--blue)); border-radius: var(--radius); }
.article-help__title { margin: 0 0 0.5rem !important; font-family: var(--font-heading); font-size: var(--fs-h4); font-weight: 700; color: var(--heading) !important; }
.article-help .division__actions { margin-top: 1.25rem; }
/* Pages that aren't tied to one division (What To Expect, Blog) fall back to the logo indigo for division-coloured parts */
.page-inner main { --div: var(--blue); --div-hover: #1c0370; }

/* A division theme set on <main> (What To Expect via ?division=) overrides the neutral default */
.page-inner main.division--renovations       { --div: #250493; --div-hover: #1c0370; }
.page-inner main.division--plastering        { --div: #93300f; --div-hover: #77270c; }
.page-inner main.division--damp-proofing     { --div: #2a6f7b; --div-hover: #225a63; }
.page-inner main.division--bespoke-carpentry { --div: #80500e; --div-hover: #67400b; }

/* What To Expect hero: headline beside four staggered trust tiles, one per division colour */
.expect-hero { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.expect-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 992px) { .expect-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); } }
.trust-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.trust-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  min-height: clamp(9rem, 14vw, 12.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--white);
  background: var(--div);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -30px rgba(27, 26, 25, 0.55);
}
.trust-tile strong { display: flex; align-items: flex-start; gap: 0.3rem; font-family: var(--font-heading); font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.trust-tile strong i { font-size: 0.4em; margin-top: 0.35em; }
.trust-tile span { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, 0.9); }
/* Second column sits lower, for a staggered grid */
@media (min-width: 576px) {
  .trust-tiles { padding-bottom: 2.5rem; }
  .trust-tile:nth-child(even) { transform: translateY(2.5rem); }
}
.no-transitions,
.no-transitions * { transition: none !important; }

/* ==========================================================================
   About: the whole company, so the four division colours are used together
   ========================================================================== */
.about-hero { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.about-hero__inner { max-width: 58rem; padding-top: clamp(1rem, 3vw, 2.5rem); }
.about-hero .inner-hero__title .text-brand { color: var(--brand-700); }   /* logo indigo */
.about-hero .inner-hero__lead { max-width: 42rem; }
/* Four colour bars that read left to right like a timeline */
.colour-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; max-width: 46rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.colour-rail li { padding-top: 0.85rem; border-top: 5px solid var(--div); font-family: var(--font-heading); font-size: var(--fs-label); font-weight: 700; color: var(--heading); }
@media (max-width: 575.98px) { .colour-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; } }

/* Story: photo with a four-colour bar, text with a pull quote */
.story { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 992px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .story__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.story__media { margin: 0; overflow: hidden; border-radius: var(--radius); }
.story__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.story__bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.story__bar i { background: var(--div); }
.story__text h2 { margin: 0 0 1.25rem; color: var(--heading); }
.story__lead { margin: 0 0 1.5rem; font-family: var(--font-heading); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--heading); }
.story__text > p:not(.story__lead) { margin: 0 0 1.1rem; font-size: var(--fs-body); line-height: 1.8; color: var(--text-muted); }
.story__quote { margin: 2rem 0; padding: 1.75rem 1.75rem 1.75rem 2rem; background: var(--stone); border-left: 5px solid #93300f; border-radius: var(--radius); }
.story__quote p { margin: 0 0 0.9rem; font-family: var(--font-heading); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 600; line-height: 1.45; color: var(--heading); }
.story__quote footer { font-size: var(--fs-meta); font-weight: 600; color: var(--text-muted); }

/* How we grew: four steps on one line, each in its division colour */
.growth { position: relative; display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .growth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .growth { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* A line through the icons, changing colour division by division */
  .growth::before { content: ""; position: absolute; top: calc(1.75rem + 1.6rem); left: 1.75rem; right: 1.75rem; height: 3px; background: linear-gradient(90deg, #250493 0 25%, #93300f 25% 50%, #2a6f7b 50% 75%, #80500e 75%); }
}
.growth__step { position: relative; padding: 1.75rem; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--div); box-shadow: 0 18px 40px -30px rgba(27, 26, 25, 0.45); }
.growth__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.25rem; font-size: 1.3rem; color: var(--white); background: var(--div); border-radius: 50%; box-shadow: 0 0 0 6px var(--white); }
.growth__step h3 { margin: 0 0 0.5rem; font-size: var(--fs-h4); color: var(--heading); }
.growth__step p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }

/* Values: a 2x2 grid, each with a bar in a different division colour */
.values { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 576px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.values li { padding: 1.5rem 0 0; border-top: 4px solid var(--div); }
.values h3 { margin: 0 0 0.5rem; font-size: var(--fs-h4); color: var(--heading); }
.values p { margin: 0; line-height: 1.6; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Areas We Cover: map with the two service rings, and the towns in each
   -------------------------------------------------------------------------- */
.areas__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 992px) { .areas__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.areas__map {
  position: relative;
  z-index: 0;   /* keeps the map's own layers under the sticky header */
  height: clamp(340px, 55vw, 560px);
  background: #e7e3dc;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 44px -30px rgba(27, 26, 25, 0.4);
}
.areas__map-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1.5rem; text-align: center; color: var(--stone-ink-muted); }
.areas__map .leaflet-tile-pane { filter: grayscale(0.85) contrast(1.05); }   /* calm the map so the rings stand out */
.areas__map .leaflet-control-attribution { font-size: 0.7rem; }
.areas__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--stone-ink-muted); }
.areas__legend li { display: flex; align-items: center; gap: 0.55rem; }
.areas__swatch { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--brand-700); }
.areas__swatch--core { background: rgba(var(--brand-700-rgb), 0.28); }
.areas__swatch--wider { background: rgba(var(--brand-700-rgb), 0.08); border-style: dashed; }

.areas__lists { display: grid; gap: 2.25rem; }
.areas__group h3 { margin: 0 0 0.4rem; color: var(--stone-ink); }
.areas__group p { margin: 0 0 1rem; color: var(--stone-ink-muted); }
.areas__towns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.areas__towns li {
  padding: 0.4rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-700);
  border-radius: 999px;
}
.areas__towns--wider li { color: var(--brand-700); background: transparent; border: 1px solid rgba(var(--brand-700-rgb), 0.45); }
.areas__note { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--stone-line); color: var(--stone-ink-muted); }
.areas__note a { font-weight: 700; }
.areas__map .areas__tip { font-family: var(--font-heading); font-weight: 700; color: var(--stone-ink); background: #fff; border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.areas__map .areas__tip::before { display: none; }

#frm_mdl .g-recaptcha
 {
    display: flex;
    align-content: center;
    justify-content: center;
}

.enquiry-form .error-msg p {
    margin: 0;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #fff;
}

/* .enquiry-form .success-msg p  {} */

.enquiry-form .error-msg p {
    background: #d63637;
}

.callback-form .error-msg p {
    margin: 0;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #fff;
}

/* .enquiry-form .success-msg p  {} */

.callback-form .error-msg p {
    background: #d63637;
}

.cta__actions .dropdown .dropdown-menu .dropdown-item:hover {

  color: var(--bs-dropdown-link-hover-color);

}