/* ==========================================================================
   Listed Window Refurbishment Ltd
   Design system: "The Conservation Standard"
   Ink navy · limewash · putty stone · aged brass
   Type: Fraunces (display) · Newsreader (body) · Archivo (labels)
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License), latin subset, downloaded from Google Fonts 2026-09-30 (Newsreader replaced 2026-10-02). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/archivo-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader is body text only (14 to 19px, regular, bold and italic), so it uses three
   small static files instead of two variable ones: 69 KB in place of 272 KB. */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour */
  --ink-deep: #12202D;
  --ink: #1B2C3C;
  --ink-70: rgba(27, 44, 60, 0.7);
  --ink-40: rgba(27, 44, 60, 0.4);
  --ink-15: rgba(27, 44, 60, 0.15);
  --body: #37434F;
  --limewash: #F2EFE7;
  --card: #FAF8F2;
  --putty: #E3DECF;
  --putty-line: #D6D0BE;
  --brass: #B59148;
  --brass-deep: #94763A;
  --brass-darker: #7D6130;
  --brass-bright: #DEB772;
  /* Brass for small text and button fills: darkest shade that keeps WCAG AA
     (4.5:1) against limewash, card and white. Decorative brass stays lighter. */
  --brass-text: #82602A;
  --white: #FCFBF7;
  --on-ink: rgba(250, 248, 242, 0.82);
  --on-ink-dim: rgba(250, 248, 242, 0.56);
  --on-ink-line: rgba(250, 248, 242, 0.16);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Motion */
  --ease-sash: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Keep anchor targets clear of the sticky header when jumping via nav links */
[id] { scroll-margin-top: 6rem; }

body {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--limewash);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }

:focus-visible {
  outline: 2px solid var(--brass-text);
  outline-offset: 3px;
  border-radius: 1px;
}
/* On dark backgrounds the keyboard focus ring needs the light brass to stay visible */
.topbar :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section--ink :focus-visible,
.mobile-menu :focus-visible,
.mobile-cta :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--brass-bright); }
/* The call to action band is brass, so the ring needs to be dark there */
.cta-band :focus-visible { outline-color: var(--ink-deep); }

/* Plain links on dark backgrounds default to light brass, so a link added
   later can never end up navy on navy */
.section--ink a:not([class]),
.page-hero a:not([class]) { color: var(--brass-bright); }
.section--ink a:not([class]):hover,
.page-hero a:not([class]):hover { color: var(--white); }
.section--ink li, .section--ink figcaption { color: var(--on-ink); }

::selection { background: var(--brass-bright); color: var(--ink-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ---------- Primitives ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: 86rem; }

.section { padding-block: var(--section-y); }
.section--ink { background: var(--ink); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: var(--on-ink); }
.section--card { background: var(--card); }
.section--putty { background: var(--putty); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.section--ink .eyebrow { color: var(--brass-bright); }
.section--ink .eyebrow::before { background: var(--brass-bright); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: 1.1rem;
}
.section-head .lede { font-size: 1.125rem; color: var(--body); }
.section--ink .section-head .lede { color: var(--on-ink); }

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.section-head--split .lede { margin-bottom: 0.35rem; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--brass-text);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--brass-darker); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink-40);
  color: var(--ink);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(250, 248, 242, 0.4);
  color: var(--white);
}
.btn--ghost-light:hover { background: transparent; border-color: var(--white); color: var(--white); }

.btn--ink {
  background: var(--ink);
  color: var(--white);
}
.btn--ink:hover { background: var(--ink-deep); color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-text);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.3rem;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.text-link .arrow { transition: transform 0.25s var(--ease-out); }

/* Phone number buttons: the number itself is the label, so show it large */
.btn[href^="tel:"] { font-size: 0.95rem; letter-spacing: 0.05em; }
.text-link:hover .arrow { transform: translateX(4px); }

.section--ink .text-link { color: var(--brass-bright); border-color: rgba(222, 183, 114, 0.5); }
.section--ink .text-link:hover { color: var(--white); border-color: var(--white); }

.arrow { display: inline-block; }

/* Meeting rail divider */

.rail {
  border: 0;
  height: 9px;
  margin: 0;
  border-top: 1px solid var(--putty-line);
  border-bottom: 1px solid var(--putty-line);
  background: transparent;
}

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--ink-deep);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--on-ink-dim);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.5rem;
  padding-block: 0.35rem;
}
.topbar-offices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-offices .city {
  color: var(--brass-bright);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.topbar a { color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
.topbar a:hover { color: var(--white); }
.topbar-note { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--limewash);
  border-bottom: 1px solid var(--putty-line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(18, 32, 45, 0.08); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}
/* The header runs as wide as .container--wide so the full size logo and the
   desktop menu fit side by side; the topbar matches it. */
.topbar .container, .site-header .container { max-width: 86rem; }
/* If space ever runs short the logo scales down whole instead of being squeezed */
.site-header .brand { flex: 0 1 auto; min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; color: var(--brass); }
/* Sized by width with height auto, so the logo always keeps its proportions */
.brand-logo { display: block; width: 12.85rem; max-width: 100%; height: auto; }
.brand-name {
  font-family: var(--display);
  font-weight: 520;
  font-size: 1.02rem;
  line-height: 1.12;
  letter-spacing: 0.005em;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 0.3rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 1.3vw, 1.6rem); }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--brass-text); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--brass-text); }
/* .site-nav a sets ink text; the button needs its light text back to be readable on brass */
.site-nav .btn { padding: 0.8rem 1.4rem; color: var(--white); }
.site-nav .btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--putty-line);
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-toggle:hover { border-color: var(--ink-40); }
.nav-toggle svg { display: block; }

/* Mobile menu */

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 150;
  background: var(--ink-deep);
  color: var(--white);
  padding: 1.5rem var(--gutter) 3rem;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
body.nav-open .mobile-menu { display: flex; }
body.nav-open { overflow: hidden; }

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.mobile-menu-head .brand { color: var(--white); }
.mobile-menu-head .brand-name small { color: var(--brass-bright); }
.mobile-menu-head .brand-mark { color: var(--brass-bright); }
.menu-close {
  background: none;
  border: 1px solid var(--on-ink-line);
  color: var(--white);
  padding: 0.65rem;
  cursor: pointer;
}
.menu-close svg { display: block; }

.mobile-nav { display: flex; flex-direction: column; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 420;
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--on-ink-line);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--brass-bright); }

.mobile-menu-offices {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 1.1rem;
}
.mobile-menu-offices .office-line {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--on-ink-dim);
}
.mobile-menu-offices .office-line strong {
  display: block;
  color: var(--brass-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.mobile-menu-offices a { color: var(--white); text-decoration: none; font-size: 1.05rem; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
}
/* Phones get a portrait crop already centred on the same part of the photo */
@media (max-width: 30rem) {
  .hero-media img { object-position: 50% 38%; }
}
.hero-media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(100deg, rgba(18, 32, 45, 0.52) 0%, rgba(18, 32, 45, 0) 58%),
    linear-gradient(180deg, rgba(18, 32, 45, 0.42) 0%, rgba(18, 32, 45, 0.08) 38%, rgba(18, 32, 45, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(1.75rem, 5vh, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  text-shadow: 0 1px 18px rgba(18, 32, 45, 0.45);
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 3px rgba(18, 32, 45, 0.85), 0 1px 14px rgba(18, 32, 45, 0.7);
}
.hero-kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--brass-bright);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 380;
  color: var(--white);
  max-width: 15em;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(250, 248, 242, 0.88);
  max-width: 36em;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-offices {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(250, 248, 242, 0.18);
  background: rgba(18, 32, 45, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-offices .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-office {
  padding: 1.1rem 0;
  font-family: var(--sans);
}
.hero-office + .hero-office { border-left: 1px solid rgba(250, 248, 242, 0.14); padding-left: 1.75rem; }
.hero-office .city {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.25rem;
}
.hero-office a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.45rem);
  letter-spacing: 0.01em;
}
.hero-office a:hover { color: var(--brass-bright); }

/* Headline and survey button are visible from first paint: no intro delay. */

/* ==========================================================================
   Trust rail
   ========================================================================== */

.trust-rail {
  background: var(--card);
  border-bottom: 1px solid var(--putty-line);
}
.trust-rail .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  padding: 1.5rem 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.trust-item + .trust-item { border-left: 1px solid var(--putty-line); padding-left: 1.75rem; }
.trust-item .stars { color: var(--brass-deep); letter-spacing: 0.12em; font-size: 0.8rem; }
.trust-item strong { color: var(--ink); }

/* ==========================================================================
   Manifesto
   ========================================================================== */

.manifesto { position: relative; }
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.manifesto-statement {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.manifesto-statement em {
  font-style: italic;
  font-weight: 420;
  color: var(--brass-deep);
}
.manifesto-figure { position: relative; }
.manifesto-figure img { width: 100%; height: auto; }
.manifesto-figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.framed { position: relative; background: var(--ink); }
.framed img { position: relative; }
.framed::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border: 1px solid rgba(18, 32, 45, 0.12);
  pointer-events: none;
}

/* Ledger stats */

.ledger-stats {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--putty-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ledger-stat {
  padding: 1.75rem 1.75rem 0 0;
  border-bottom: 1px solid var(--putty-line);
  padding-bottom: 1.75rem;
}
.ledger-stat + .ledger-stat { border-left: 1px solid var(--putty-line); padding-left: 1.75rem; }
.ledger-stat .value {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 380;
  color: var(--ink);
  line-height: 1;
}
.ledger-stat .value sup { font-size: 55%; color: var(--brass-text); }
.ledger-stat .label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.service-card {
  background: rgba(250, 248, 242, 0.04);
  border: 1px solid var(--on-ink-line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.service-card:hover { border-color: rgba(222, 183, 114, 0.55); transform: translateY(-4px); color: inherit; }
.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(rgba(250, 248, 242, 0.35), rgba(250, 248, 242, 0.35)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(250, 248, 242, 0.35), rgba(250, 248, 242, 0.35)) 0 50% / 100% 1px no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover .service-media::after { opacity: 1; }
.service-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { color: var(--white); font-size: 1.45rem; margin-bottom: 0.75rem; }
.service-body p { color: var(--on-ink); font-size: 0.98rem; margin-bottom: 1.5rem; }
.service-body .text-link { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Process schedule
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--putty-line);
  border-left: 1px solid var(--putty-line);
}
.process-step {
  border-right: 1px solid var(--putty-line);
  border-bottom: 1px solid var(--putty-line);
  padding: 2rem 1.75rem 2.25rem;
  background: var(--card);
}
.process-step .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass-text);
  display: block;
  margin-bottom: 1.1rem;
}
.process-step h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.process-step p { font-size: 0.95rem; color: var(--body); }

/* ==========================================================================
   Heritage ledger
   ========================================================================== */

.heritage { background: var(--ink); }
.heritage-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-ink-line); }
.heritage-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--on-ink-line);
}
.heritage-list .name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--white);
}
.heritage-list .place {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  white-space: nowrap;
}
.heritage-note {
  margin-top: 1.75rem;
  max-width: 52rem;
  font-size: 1rem;
  /* Readable on light sections; on dark sections `.section--ink p` supplies the light colour */
  color: var(--ink-70);
  font-style: italic;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-feature {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.review-feature blockquote {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 380;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}
.review-attrib {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.review-attrib strong { color: var(--brass-text); }

.review-grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.review-card {
  background: var(--card);
  border: 1px solid var(--putty-line);
  padding: 1.9rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.review-card .stars { color: var(--brass-deep); font-size: 0.85rem; letter-spacing: 0.15em; margin-bottom: 1rem; }
.review-card blockquote {
  margin: 0 0 1.4rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
}
.review-card figcaption {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.review-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--putty-line);
  padding-top: 1.75rem;
}
.google-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-70);
}
.google-badge .score {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
}
.google-badge .stars { color: var(--brass-deep); letter-spacing: 0.1em; }

/* ==========================================================================
   Offices
   ========================================================================== */

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.office-card {
  background: var(--card);
  border: 1px solid var(--putty-line);
  border-top: 3px solid var(--brass);
  padding: 2rem 1.75rem 2.25rem;
}
.office-card h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.office-card address {
  font-style: normal;
  font-size: 0.98rem;
  color: var(--body);
  margin-bottom: 1.4rem;
  min-height: 3.2em;
}
.office-card .phone {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 420;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.office-card .phone:hover { color: var(--brass-text); }
.office-card .hours {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.areas-line {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--putty-line);
  font-size: 1rem;
  color: var(--body);
}
.areas-line strong { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-70); display: block; margin-bottom: 0.5rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--brass);
  color: var(--ink-deep);
}
.cta-band .container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 400;
  color: var(--ink-deep);
  margin-bottom: 0.9rem;
}
.cta-band p { color: #060C12; font-size: 1.1rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.cta-band .btn--ink:hover { background: #0C1620; }
.cta-band .btn--ghost { border-color: rgba(6, 12, 18, 0.55); color: #060C12; }
.cta-band .btn--ghost:hover { border-color: #060C12; color: #060C12; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink-deep);
  color: var(--on-ink-dim);
  font-size: 0.95rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 0.8fr 1.4fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3.5rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer .brand { color: var(--white); margin-bottom: 1.25rem; }
.site-footer .brand-logo, .mobile-menu .brand-logo { width: 11.36rem; }
.site-footer .brand-mark { color: var(--brass-bright); }
.site-footer .brand-name small { color: var(--brass-bright); }
.footer-blurb { max-width: 26em; font-size: 0.95rem; }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--on-ink); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-office { margin-bottom: 1.1rem; }
.footer-office strong { display: block; color: var(--on-ink); font-weight: 600; } /* body font ships in 400 and 600 only */
.footer-office a { color: var(--on-ink); text-decoration: none; }
.footer-office a:hover { color: var(--white); }
.footer-hours { display: grid; gap: 0.35rem; }

.footer-bottom {
  border-top: 1px solid var(--on-ink-line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.footer-bottom a { color: var(--on-ink-dim); }
.footer-bottom a:hover { color: var(--white); }

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

.page-hero {
  background: var(--ink);
  padding-block: clamp(4rem, 8vw, 6.5rem) 0;
  overflow: hidden;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 380;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.page-hero .lede {
  color: var(--on-ink);
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .eyebrow { color: var(--brass-bright); }
.page-hero .eyebrow::before { background: var(--brass-bright); }
.page-hero-media { position: relative; }
.page-hero-media img {
  width: 100%;
  height: clamp(16rem, 32vw, 26rem);
  object-fit: cover;
}
.page-hero--plain { padding-block: clamp(4rem, 8vw, 6.5rem); }
.page-hero--plain .lede { margin-bottom: 0; }
.page-hero--centred { min-height: 70vh; display: flex; align-items: center; }
/* Shown only when the page is opened with its id in the address (#photos-missing) */
.target-only { display: none; }
.target-only:target { display: block; }
.button-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* Spec list plates */

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.spec-item {
  background: var(--card);
  border: 1px solid var(--putty-line);
  padding: 1.9rem 1.75rem;
}
.spec-item h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.spec-item p { font-size: 0.98rem; }

/* Two-column feature rows */

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature-row h2, .feature-row h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature-row--flip .feature-media { order: 2; }
/* Figures carry a default 40px side margin in browsers; remove it so photos fill their column */
.feature-media, .manifesto-figure { margin: 0; }
.feature-media img { width: 100%; height: auto; }
.feature-media figcaption {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.section--ink .feature-media figcaption { color: var(--on-ink); }
/* The email address is one long word: let it break on the narrowest screens */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Before and after pairs */

.ba-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.ba-pair + .ba-pair { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ba-item { position: relative; margin: 0; }
.ba-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.4rem 0.75rem;
  background: var(--ink-deep);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ba-item--after .ba-tag { background: var(--brass); color: var(--ink-deep); }
.ba-item figcaption {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
}
@media (max-width: 40rem) {
  .ba-pair { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Detail list (checkmark-free, ledger style) */

.detail-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.detail-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--putty-line);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 1rem;
}
.detail-list li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 1px;
  background: var(--brass);
  transform: translateY(-0.25em);
}

/* Spec table */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--putty-line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
  width: 11rem;
}

/* FAQ */

.faq { max-width: 50rem; }
.faq details {
  border-bottom: 1px solid var(--putty-line);
}
.faq details:first-of-type { border-top: 1px solid var(--putty-line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 420;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brass-deep);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; max-width: 46rem; }

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery-item { position: relative; overflow: hidden; background: var(--ink); margin: 0; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.7s var(--ease-out), opacity 0.4s ease;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--wide img { aspect-ratio: 8 / 5; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(18, 32, 45, 0) 0%, rgba(18, 32, 45, 0.72) 100%);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Review wall */

.review-wall {
  columns: 3;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
}
.review-wall .review-card {
  break-inside: avoid;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  display: block;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--putty-line);
  border-top: 3px solid var(--brass);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.contact-form h2 { font-size: 1.7rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-top: 1.75rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--putty-line);
  padding: 0.85rem 1rem;
  border-radius: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B59148' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brass-text);
  outline-offset: 0;
  border-color: var(--brass);
}
.form-note { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-70); }
.contact-form .btn { margin-top: 1.5rem; width: 100%; }

.contact-aside h2 { font-size: 1.7rem; }
.contact-office {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--putty-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
}
.contact-office h3 { font-size: 1.25rem; margin: 0; }
.contact-office address { font-style: normal; font-size: 0.95rem; color: var(--body); grid-column: 1; }
.contact-office .phone {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.contact-office .phone:hover { color: var(--brass-text); }
.contact-meta { margin-top: 1.75rem; display: grid; gap: 0.6rem; font-size: 0.98rem; }
.contact-meta strong { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-70); display: block; margin-bottom: 0.2rem; }
.contact-meta a { color: var(--ink); }

/* Areas */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.area-card {
  background: var(--card);
  border: 1px solid var(--putty-line);
  padding: 1.9rem 1.75rem;
}
.area-card h3 { font-size: 1.35rem; }
.area-card p { font-size: 0.98rem; }
.area-card .towns {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  line-height: 2;
}

/* About extras */

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.credential {
  border-top: 1px solid var(--on-ink-line);
  padding-top: 1.5rem;
}
.credential h3 { color: var(--white); font-size: 1.25rem; }
.credential p { color: var(--on-ink); font-size: 0.98rem; }

/* ==========================================================================
   Gallery lightbox
   ========================================================================== */

.gallery-item { cursor: zoom-in; }

.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 200;
  background: rgba(18, 32, 45, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.lightbox img {
  max-width: min(94vw, 70rem);
  max-height: 80vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox .lightbox-caption {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  background: none;
  border: 1px solid var(--on-ink-line);
  color: var(--white);
  padding: 0.8rem;
  cursor: pointer;
  line-height: 0;
}
.lightbox-close:hover { border-color: var(--white); }

/* ==========================================================================
   Press strip ("As featured in")
   ========================================================================== */

.featured-strip { background: var(--card); border-bottom: 1px solid var(--putty-line); }
.featured-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2.25rem;
  padding-block: 1.15rem;
}
.featured-strip .label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.featured-strip .item { font-family: var(--display); font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.featured-strip a.item:hover { color: var(--brass-text); }

/* ==========================================================================
   Form additions
   ========================================================================== */

.form-field .opt { font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--ink-70); }
.form-field .hint { font-size: 0.85rem; color: var(--ink-70); margin: 0; }
.form-field input[type="file"] { padding: 0.75rem 1rem; font-size: 0.92rem; cursor: pointer; }
.form-note--error { color: #8A2D1F; }

/* ==========================================================================
   Guides and long-form pages
   ========================================================================== */

.prose { max-width: 40rem; } /* about 85 characters a line: comfortable for long reads */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration-color: var(--brass); }
.prose .spec-table { margin: 1.25rem 0 1.5rem; }
.prose .spec-table th { width: auto; white-space: normal; }

.callout {
  background: var(--card);
  border: 1px solid var(--putty-line);
  border-left: 3px solid var(--brass);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.callout h3 { margin-top: 0; }
/* Callouts and guide cards that follow straight on from the page title use an
   h2 for a correct outline, styled at the smaller size */
.callout h2, .guide-card h2 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.callout p:last-child { margin-bottom: 0; }

.guide-meta {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-dim);
}

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--putty-line); }
.sources h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.sources li, .sources p { font-size: 0.9rem; color: var(--ink-70); }

.guide-card { display: block; text-decoration: none; transition: border-color 0.25s ease; }
.guide-card:hover { border-color: var(--brass); color: inherit; }
.guide-card p { color: var(--body); }

/* ==========================================================================
   Cookie consent banner (only shown while Google Ads tracking is switched on)
   ========================================================================== */

.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 44rem;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--putty-line);
  border-top: 3px solid var(--brass);
  box-shadow: 0 12px 40px rgba(18, 32, 45, 0.22);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 20rem; margin: 0; font-size: 0.95rem; color: var(--body); }
.consent-actions { display: flex; gap: 0.75rem; flex: 0 0 auto; }
.consent-actions .btn { padding: 0.85rem 1.4rem; }
@media (max-width: 40rem) {
  /* Sit above the sticky call bar (3.6rem) so "Call us now" stays usable, and stay compact */
  .consent-banner { left: 0.5rem; right: 0.5rem; bottom: 4.1rem; padding: 0.8rem 1rem; gap: 0.6rem 1rem; }
  .consent-banner p { flex-basis: 100%; font-size: 0.85rem; line-height: 1.45; }
  .consent-actions { flex: 1 1 100%; }
  .consent-actions .btn { flex: 1; padding: 0.7rem 1rem; }
}

/* ==========================================================================
   Sticky mobile call-to-action bar
   ========================================================================== */

.mobile-cta { display: none; }

@media (max-width: 40rem) {
  /* The stacked three-office top bar costs ~200px of prime mobile screen;
     numbers stay available in the hero strip, menu, footer and sticky bar. */
  .topbar { display: none; }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    box-shadow: 0 -6px 24px rgba(18, 32, 45, 0.18);
  }
  .mobile-cta .btn { width: 100%; padding: 1.05rem 0.5rem; font-size: 0.84rem; letter-spacing: 0.1em; }
  .mobile-cta .btn--ink:hover { background: var(--ink-deep); }
  body { padding-bottom: 3.6rem; }
  /* Pages without the call bar (thank-you) need neither the gap nor the raised banner */
  body.no-cta { padding-bottom: 0; }
  body.no-cta .consent-banner { bottom: 0.5rem; }
}

/* Very small phones: keep long page titles to a sensible number of lines */
@media (max-width: 22.5rem) {
  .hero h1, .page-hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

/* Only hide content for the entrance animation when the script that reveals it
   is running: the .js class is set in the page head and removed again if
   main.js fails to load, so nothing can be left invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .service-media img, .gallery-item img, .text-link .arrow { transition: none; }
  .service-card:hover, .service-card:hover .service-media img, .gallery-item:hover img, .text-link:hover .arrow { transform: none; }
}

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: static; }
  .topbar, .mobile-cta, .consent-banner, .mobile-menu, .lightbox, .nav-toggle, .skip-link { display: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* The full menu needs about 80rem beside the full size logo; below that the
   Menu button takes over */
@media (max-width: 80rem) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 72rem) {
  .topbar-note { display: none; }
}
@media (max-width: 30rem) {
  .site-header .container { gap: 1rem; }
}

@media (max-width: 64rem) {
  .manifesto-grid, .feature-row, .page-hero-inner, .contact-grid { grid-template-columns: 1fr; }
  .feature-row--flip .feature-media { order: 0; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }

  .services-grid, .offices-grid, .areas-grid, .credentials { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review-wall { columns: 2; }
  .trust-rail .container { grid-template-columns: 1fr 1fr; }
  .trust-item { padding-block: 1rem; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--wide { grid-column: span 2; }
  /* A single row of three stays three across on tablets, so no tile is left on its own */
  .gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .ledger-stats { grid-template-columns: 1fr; }
  .ledger-stat + .ledger-stat { border-left: 0; padding-left: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-media img { height: clamp(14rem, 40vw, 20rem); }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }

  .topbar .container { justify-content: center; }
  .topbar-offices { gap: 0.3rem 1rem; justify-content: center; }
  .topbar-offices .city { margin-right: 0.35rem; }

  .hero { min-height: 88vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  /* Keep button labels on one line on narrow phones */
  .btn { padding-inline: 1rem; letter-spacing: 0.08em; }
  .hero-offices .container { grid-template-columns: 1fr; gap: 0; }
  .hero-office { padding: 0.7rem 0; display: flex; align-items: center; justify-content: space-between; }
  .hero-office + .hero-office { border-left: 0; padding-left: 0; border-top: 1px solid rgba(250, 248, 242, 0.14); }
  .hero-office .city { margin-bottom: 0; }
  /* Comfortable tap targets for phone links on touch screens */
  .hero-office a, .topbar-offices a, .footer-office a, .mobile-menu-offices a {
    display: inline-block;
    padding-block: 0.55rem;
    margin-block: -0.25rem;
  }

  .services-grid, .offices-grid, .areas-grid, .review-grid, .credentials { grid-template-columns: 1fr; }
  .review-wall { columns: 1; }
  .spec-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-rail .container { grid-template-columns: 1fr 1fr; gap: 0; }
  .trust-item { border-left: 0 !important; padding-left: 0 !important; font-size: 0.78rem; }
  /* Bigger invisible tap area for small text links, without moving their underline */
  .text-link, .featured-strip a.item { position: relative; }
  .text-link::after, .featured-strip a.item::after { content: ""; position: absolute; inset: -0.6rem -0.25rem; }
  .form-field input[type="file"] { font-size: 1rem; }
  /* Keep "Edinburgh 0131 378 8348" style buttons on one line on narrow phones */
  .btn[href^="tel:"] { font-size: 0.9rem; letter-spacing: 0.02em; padding-inline: 1rem; }
  .mobile-cta .btn[href^="tel:"] { font-size: 0.84rem; letter-spacing: 0.1em; padding-inline: 0.5rem; }
  .featured-strip .label { font-size: 0.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-item--wide img { aspect-ratio: 4 / 3; }
  .gallery-item img { aspect-ratio: 4 / 3; }

  .form-grid { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band-actions { justify-content: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 2.25rem; }
  .heritage-list li { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
  .contact-office { grid-template-columns: 1fr; }
  .contact-office .phone { grid-column: 1; grid-row: auto; }
  /* Phone numbers are the main thing people tap: give them a full-size touch target */
  .office-card .phone, .contact-office .phone { padding-block: 0.4rem; }
  .spec-table th { width: 8rem; }
}

/* Job photo sets on area pages: a pair sits two across from tablet up */
@media (min-width: 40.01rem) {
  .gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.job-title { margin: 0 0 1.25rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.job-title--next { margin-top: clamp(2.5rem, 5vw, 4rem); }
/* Stacked on phones, so show each job photo whole rather than cropped to 4:3 */
@media (max-width: 40rem) {
  .gallery-grid--3 .gallery-item img,
  .gallery-grid--2 .gallery-item img { aspect-ratio: auto; height: auto; }
}

/* The cta band stacks on small tablets too, so its buttons keep their labels on one line */
@media (max-width: 56rem) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band-actions { justify-content: flex-start; }
}

/* Area pages: the places we cover sit in two columns from tablet up */
@media (min-width: 40.01rem) {
  .place-list { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); max-width: 56rem; margin-top: 0; }
  .place-list li { break-inside: avoid; }
}

/* Job photos taken landscape keep a wide frame instead of the default portrait tile */
.gallery-grid--landscape .gallery-item img { aspect-ratio: 16 / 9; height: auto; }

/* Before and after pairs shot in portrait keep their height instead of the default 3:2 band */
.ba-pair--portrait .ba-item img { aspect-ratio: 4 / 5; }

/* Footer legal links: at least 24px tall to tap (WCAG 2.2 target size) */
.footer-bottom a { display: inline-block; padding-block: 0.4rem; }

/* While the cookie banner is open, keep the end of the page clear of it (WCAG 2.4.11) */
body.has-consent-banner { padding-bottom: var(--consent-space, 0); }
html { scroll-padding-bottom: var(--consent-space, 0); }

/* Phones and tablets: the hero photo sits right behind the text, so a dark panel fades in
   behind it to keep the intro readable over bright glass and sky (hero text panel, WCAG 1.4.3) */
@media (max-width: 64rem) {
  .hero-content {
    padding-top: clamp(4rem, 9vh, 5.5rem);
    background: linear-gradient(180deg, rgba(18, 32, 45, 0) 0, rgba(18, 32, 45, 0.84) 3.5rem, rgba(18, 32, 45, 0.66) 10rem, rgba(18, 32, 45, 0.74) 100%);
  }
}

/* Desktop: deepen the shade on the left, where the hero text sits over bright glass (hero text shade, desktop) */
@media (min-width: 64.01rem) {
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(18, 32, 45, 0.84) 0%, rgba(18, 32, 45, 0.78) 42%, rgba(18, 32, 45, 0.6) 70%, rgba(18, 32, 45, 0.2) 82%, rgba(18, 32, 45, 0) 90%),
      linear-gradient(180deg, rgba(18, 32, 45, 0.42) 0%, rgba(18, 32, 45, 0.08) 38%, rgba(18, 32, 45, 0.82) 100%);
  }
}

/* Before and after pairs of tall subjects (two windows stacked) keep a 2:3 frame */
.ba-pair--tall .ba-item img { aspect-ratio: 2 / 3; }
.ba-pair--taller .ba-item img { aspect-ratio: 3 / 5; }

/* ==========================================================================
   Window anatomy (home page) and coverage map (Areas page)
   ========================================================================== */
.anatomy {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .anatomy { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
}
.anatomy-figure {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--putty-line);
}
.anatomy-figure figcaption { margin-top: 1rem; font-family: var(--sans); font-size: 0.9rem; color: var(--body); text-align: center; }
.anatomy-svg { display: block; width: 100%; max-width: 380px; margin-inline: auto; }
.anatomy-svg .ln { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s, stroke-width 0.25s; }
.anatomy-svg .ln-thin { stroke-width: 0.8; opacity: 0.7; }
.anatomy-svg .ln-dash { stroke-dasharray: 4 4; }
.anatomy-svg .ln-joint { stroke: var(--putty-line); stroke-width: 3; opacity: 1; }
.anatomy-svg .stone .ln { stroke: var(--ink-40); }
.anatomy-svg .fill-soft { fill: rgba(27, 44, 60, 0.04); transition: fill 0.25s; }
.anatomy-svg [data-part].is-active .ln { stroke: var(--brass); stroke-width: 2.6; opacity: 1; }
.anatomy-svg [data-part].is-active .ln-joint { stroke-width: 5; }
.anatomy-svg [data-part].is-active .fill-soft { fill: rgba(181, 145, 72, 0.2); }
.anatomy-svg .hot { cursor: pointer; }
.anatomy-svg .hot .dot { fill: var(--ink); transition: fill 0.25s; }
.anatomy-svg .hot .halo { fill: none; stroke: var(--ink); stroke-opacity: 0.25; transform-box: fill-box; transform-origin: center; }
.anatomy-svg .hot.is-active .dot { fill: var(--brass-text); }
.anatomy-svg .hot.is-active .halo { stroke: var(--brass); stroke-opacity: 0.7; }
.anatomy-svg .hot text { fill: var(--white); font: 700 10px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .anatomy-svg .hot.is-active .halo { animation: lwr-halo 2.2s ease-out infinite; }
}
@keyframes lwr-halo { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

.parts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--putty-line); }
.parts-list li { border-bottom: 1px solid var(--putty-line); }
.parts-list h3 { margin: 0; font-size: inherit; }
.part-btn {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 2.25rem 1fr 18px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.25;
  cursor: pointer;
}
.part-btn::after {
  content: "";
  width: 14px;
  height: 14px;
  justify-self: end;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  opacity: 0.6;
  transition: transform 0.3s var(--ease-out);
}
.part-btn .n {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font: 600 0.8rem var(--sans);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.part-btn:hover { color: var(--brass-text); }
.part-btn[aria-expanded="true"] .n { background: var(--brass-text); border-color: var(--brass-text); color: var(--white); }
.part-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.part-panel p { padding: 0 0 1.25rem 3rem; color: var(--body); max-width: 38em; margin: 0; }

/* Collapsing only starts once the script has run; without it every panel stays open */
.anatomy-ready .part-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.anatomy-ready .part-panel > div { overflow: hidden; visibility: hidden; transition: visibility 0s 0.4s; }
.anatomy-ready .part-panel.is-open { grid-template-rows: 1fr; }
.anatomy-ready .part-panel.is-open > div { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .anatomy-ready .part-panel, .anatomy-ready .part-panel > div { transition: none; }
}

/* --------------------------------------------------------------------------
   4. Coverage map
   -------------------------------------------------------------------------- */
.coverage-map { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.route-svg { display: block; width: 100%; max-width: 860px; height: auto; margin-inline: auto; overflow: visible; }
.route-svg .water { fill: rgba(27, 44, 60, 0.07); stroke: rgba(27, 44, 60, 0.14); }
.route-svg .water-label { fill: var(--ink-70); font: italic 400 15px var(--serif); letter-spacing: 0.04em; }
.route-svg .region-label { fill: var(--ink-40); font: italic 400 16px var(--serif); }
.route-svg .route { fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.route-svg .town circle { fill: var(--card); stroke: var(--ink); stroke-width: 2; transition: fill 0.2s; }
.route-svg .town.hub circle { fill: var(--ink); stroke: var(--card); stroke-width: 2.5; }
.route-svg .town.workshop circle { fill: var(--brass); stroke: var(--ink); stroke-width: 2.5; }
.route-svg .town text { fill: var(--ink); font: 500 15px var(--sans); }
.route-svg .town.hub text { font: 400 24px var(--display); }
.route-svg a { cursor: pointer; }
.route-svg a:hover text { fill: var(--brass-text); text-decoration: underline; }
.route-svg a:hover circle { fill: var(--brass-bright); }
.coverage-map figcaption {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 1.25rem;
  font-family: var(--sans); font-size: 0.9rem; color: var(--body);
}
.coverage-map .key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); vertical-align: -1px; margin-right: 0.4rem; }
.coverage-map .key--hub { background: var(--ink); }
.coverage-map .key--workshop { background: var(--brass); }
@media (max-width: 40rem) {
  .route-svg .town:not(.hub) text, .route-svg .water-label, .route-svg .region-label { display: none; }
  .route-svg .town.hub text { font-size: 40px; }
  .route-svg .town circle { r: 10; }
  .route-svg .town.hub circle { r: 15; }
  .route-svg .route { stroke-width: 3; }
}

/* Areas hub page */
.area-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--putty-line); }
@media (min-width: 48rem) { .area-index { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); } }
.area-index-item { padding: 1.5rem 0; border-bottom: 1px solid var(--putty-line); }
.area-index-item h3 { margin: 0 0 0.4rem; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.area-index-item h3 a { color: var(--ink); text-decoration: none; }
.area-index-item h3 a:hover { color: var(--brass-text); text-decoration: underline; }
.area-index-item p { margin: 0; color: var(--body); }
.area-index-line { margin-top: 0.5rem !important; font-family: var(--sans); font-size: 0.95rem; }
.area-index-line a { color: var(--ink); font-weight: 600; }

/* Routes draw once when the map scrolls into view (class added by the script) */
.route-ready .route-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-sash); }
.route-ready .town:not(.workshop) { opacity: 0; transition: opacity 0.5s ease; }
.route-ready.is-drawn .route-draw { stroke-dashoffset: 0; }
.route-ready.is-drawn .town { opacity: 1; }
