:root {
  --charcoal: #171e27;
  --blue: #095196;
  --offwhite: #F5F4F0;
  --blue-dark: #073f75;
  --blue-press: #052f58;
  --text-muted: #4a5560;
  --border: #d9d7d0;
  --font-head: "Poppins", Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 2rem);
  --section-pad: clamp(3rem, 1.8rem + 4.6vw, 5rem);
  --gap: clamp(1.5rem, 0.8rem + 3vw, 3.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--charcoal);
  text-wrap: balance;
}
h1 { font-size: clamp(1.875rem, 1.25rem + 3vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 500; }

p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue); text-underline-offset: 3px; }

/* Focus: same clear ring on every interactive element */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cta-band :focus-visible { outline-color: var(--offwhite); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 12px 16px;
  font-family: var(--font-head);
}
.skip-link:focus { top: 8px; color: var(--offwhite); }

/* ---------- Links: underline slides in from the left ---------- */
main p a:not(.btn),
main dd a,
main li a,
.hero-actions .tel,
.site-footer a,
.alert a,
.u-link {
  text-decoration: none;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(color-mix(in srgb, currentColor 45%, transparent), color-mix(in srgb, currentColor 45%, transparent));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0 2px, 100% 1px;
  padding-bottom: 2px;
  transition: background-size 0.25s var(--ease), color 0.2s var(--ease);
}
.hero-actions .tel, .footer-links a, .site-footer address a, .site-footer p a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding-bottom: 0;
  background-position: 0 calc(100% - 9px), 0 calc(100% - 9px);
}
.site-footer p a { line-height: 1.5; padding: 10px 0; background-position: 0 calc(100% - 9px), 0 calc(100% - 9px); }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 11px 22px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; overflow: visible; }
.btn:active { transform: translateY(0) scale(0.98); background: var(--blue-press); border-color: var(--blue-press); box-shadow: none; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }

.btn-light { background: var(--offwhite); border-color: var(--offwhite); color: var(--charcoal); }
.btn-light:focus-visible { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn-light:active { background: #e3e1da; border-color: #e3e1da; }

.btn-outline { background: transparent; color: var(--blue); }
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}
.btn-outline:focus-visible { background: transparent; border-color: var(--blue); color: #fff; }
.btn-outline:focus-visible::before { transform: scaleX(1); }
.btn-outline:active { background: transparent; border-color: var(--blue-press); }

.btn-call { padding: 10px 16px; font-size: 0.9375rem; white-space: nowrap; flex-basis: 100%; order: 4; }

/* Arrow drawn in CSS, part of the button */
.arrow { position: relative; display: inline-block; width: 16px; height: 10px; margin-left: 10px; flex: none; transition: transform 0.22s var(--ease); }
.arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }

/* ---------- Header ---------- */
.site-header {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
}
.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header-bar .brand { margin-right: auto; padding: 4px 0; }

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:active { background: var(--charcoal); color: var(--offwhite); }
.js .nav-toggle { display: inline-flex; }

.site-nav { flex-basis: 100%; order: 5; }
.site-nav ul { list-style: none; border-top: 1px solid var(--border); }
.site-nav li { border-bottom: 1px solid var(--border); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
}
.site-nav a span {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  padding-bottom: 3px;
  transition: background-size 0.25s var(--ease);
}
.site-nav a:focus-visible span { background-size: 100% 2px; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] span { background-size: 100% 2px; }

/* Small screens: menu opens as a full-width panel under the header */
.js .site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--offwhite);
  border-bottom: 1px solid var(--charcoal);
  padding: 0 max(var(--gutter), env(safe-area-inset-left));
  box-shadow: 0 8px 16px rgba(23, 30, 39, 0.08);
}
.js .site-nav.is-open { display: block; }
.js .site-nav ul { border-top: 0; max-width: 1120px; margin: 0 auto; }
.js .site-nav li:last-child { border-bottom: 0; }

/* ---------- Layout helpers ---------- */
.section { padding: var(--section-pad) 0; }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); color: var(--text-muted); }
.note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 12px;
}
.ph { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 2px; background: #ece9e2; }

/* Hero */
.hero { padding: clamp(2rem, 1rem + 4vw, 4rem) 0 0; }
.hero-text { max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 24px; }
.hero-actions .tel { font-family: var(--font-head); font-weight: 500; }
.hero-img { margin-top: clamp(2rem, 1rem + 3vw, 3rem); }

/* Split layout: stacks on small screens, text always first */
.split { display: grid; gap: var(--gap); }

/* Services overview (home) */
.rule-list { list-style: none; border-top: 1px solid var(--charcoal); }
.rule-list li { border-bottom: 1px solid var(--border); padding: 18px 0; }
.rule-list h3 { margin-bottom: 4px; }
.rule-list p { margin: 0; color: var(--text-muted); }

/* Services page rows */
.service-row { display: grid; gap: 20px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; border-top: 1px solid var(--border); }
.service-row:first-child { border-top: 1px solid var(--charcoal); }
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); }
.service-row p:last-child { margin-bottom: 0; }

/* Linked image: scales inside an overflow-hidden frame */
.img-link { display: block; overflow: hidden; border-radius: 2px; }
.img-link img { transition: transform 0.5s var(--ease); }

/* Numbered process */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--charcoal); padding: 16px 0 24px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.steps p { margin: 0; color: var(--text-muted); }

/* Dark call-to-action band (no logo on it) */
.cta-band { background: var(--charcoal); color: var(--offwhite); border-top: 0 !important; }
.cta-band h2 { color: var(--offwhite); }
.cta-band p { color: var(--offwhite); }

.details { margin: 0 0 1.5em; }
.details dt { font-family: var(--font-head); font-weight: 500; font-size: 0.875rem; color: var(--text-muted); margin-top: 16px; }
.details dd { margin: 2px 0 0; }
address { font-style: normal; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1rem; margin-bottom: 6px; }
.field .hint { font-family: var(--font-body); font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid #8a9199;
  border-radius: 2px;
  padding: 10px 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a4262c; border-width: 2px; }
.field-error { color: #a4262c; font-size: 0.9375rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

.alert { border: 1px solid; border-left-width: 4px; border-radius: 2px; padding: 14px 16px; margin-bottom: 24px; background: #fff; }
.alert p { margin: 0 0 6px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-error { border-color: #a4262c; }
.alert-ok { border-color: #1d6b3a; }
.alert-title { font-family: var(--font-head); font-weight: 600; }

/* Map keeps a responsive aspect ratio */
.map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer (light background; logo never sits on dark) ---------- */
.site-footer { border-top: 1px solid var(--charcoal); padding-top: clamp(2rem, 1.4rem + 2.4vw, 2.5rem); background: var(--offwhite); }
.footer-links a { font-family: var(--font-head); font-size: 1rem; }

.prose h2 { margin-top: 1.8em; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.narrow { max-width: 720px; }

/* ---------- Scroll reveal (hidden state only when JS is running) ---------- */
.js:not(.reveal-off) [data-reveal],
.js:not(.reveal-off) [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js:not(.reveal-off) .is-visible { opacity: 1; transform: none; }

/* ---------- Layout changes where the design needs them ---------- */
@media (min-width: 48em) {
  .header-bar { flex-wrap: nowrap; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: block;
    position: static;
    flex-basis: auto;
    order: 0;
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav ul, .js .site-nav ul { display: flex; gap: 28px; border: 0; max-width: none; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav a { min-height: 44px; }
  .header-bar .brand { margin-right: 0; }
  .btn-call { flex-basis: auto; order: 0; }

  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split-wide-left { grid-template-columns: 7fr 5fr; }
  .service-row { grid-template-columns: 5fr 4fr; gap: var(--gap); align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 var(--gap); }
    .map { aspect-ratio: 16 / 7; }
}

@media (min-width: 64em) {
  .service-row { grid-template-columns: 6fr 4fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Short landscape phones: keep the open menu compact */
@media (max-height: 460px) and (orientation: landscape) {
  .hero { padding-top: 1.25rem; }
  .site-nav a { min-height: 44px; }
}

/* ---------- Hover (mouse only) ---------- */
@media (hover: hover) and (pointer: fine) {
  main p a:not(.btn):hover, main dd a:hover, main li a:hover, .hero-actions .tel:hover, .site-footer a:hover, .alert a:hover, .u-link:hover {
    background-size: 100% 2px, 100% 1px;
    color: var(--blue-dark);
  }
  .cta-band a:not(.btn):hover { color: #fff; }
  .site-nav a:hover span { background-size: 100% 2px; }
  .site-nav a:hover { color: var(--blue); }
  .nav-toggle:hover { background: var(--charcoal); color: var(--offwhite); }

  .btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
  .btn-light:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
  .btn-outline:hover { background: transparent; border-color: var(--blue); color: #fff; }
  .btn-outline:hover::before { transform: scaleX(1); }
  .btn:active { background: var(--blue-press); border-color: var(--blue-press); }
  .btn-light:active { background: #e3e1da; border-color: #e3e1da; }
  .btn-outline:active { background: transparent; border-color: var(--blue-press); }
}

/* Movement effects: mouse only, and only if motion is welcome */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(23, 30, 39, 0.18); }
  .btn:hover .arrow { transform: translateX(4px); }
  .img-link:hover img { transform: scale(1.03); }
}

/* ---------- Reduced motion: colour changes only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn, .btn:active, .arrow, .img-link img, .nav-toggle { transition-property: background-color, color, border-color !important; }
  .btn:active { transform: none; }
  .btn-outline::before { transition: none; }
  main p a, main dd a, main li a, .hero-actions .tel, .site-footer a, .alert a, .u-link, .site-nav a span { transition: none; }
  .js:not(.reveal-off) [data-reveal],
  .js:not(.reveal-off) [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Playful layer: colour blocks, big type, logo-bracket shapes
   ===================================================================== */

/* Sticker-style label */
.eyebrow {
  display: inline-block;
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 5px 12px;
  border-radius: 2px;
  transform: rotate(-2deg);
  transition: transform 0.25s var(--ease);
}
.page-hero .eyebrow, .hero .eyebrow { background: var(--offwhite); color: var(--charcoal); }

/* Marker highlight that swipes in */
.hl {
  color: var(--charcoal);
  padding: 0 0.18em;
  background-image: linear-gradient(var(--offwhite), var(--offwhite));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: swipe 0.7s var(--ease) 0.35s both; }
  @keyframes swipe { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
}

/* Shapes drawn from the open "C" bracket in the logo */
.deco { position: absolute; pointer-events: none; }
.deco-c {
  width: clamp(140px, 26vw, 320px);
  aspect-ratio: 1;
  border: clamp(18px, 3.4vw, 40px) solid rgba(245, 244, 240, 0.14);
  border-right-width: 0;
  border-radius: 6px 0 0 6px;
}
.deco-sq { width: clamp(46px, 7vw, 90px); aspect-ratio: 1; background: var(--offwhite); opacity: 0.9; }
.deco-sq.alt { background: transparent; border: 3px solid var(--offwhite); }

/* Coloured blocks for the page intros */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--offwhite);
  border-top: 0 !important;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--offwhite); }
.page-hero p, .page-hero .lede { color: var(--offwhite); }
.page-hero .note { color: var(--offwhite); border-left-color: rgba(245, 244, 240, 0.5); }
.page-hero a { color: #fff; }
.page-hero .deco-c { right: -2%; top: 50%; margin-top: calc(clamp(140px, 26vw, 320px) / -2); }
.page-hero .deco-sq { right: 14%; bottom: 14%; }
.page-hero :focus-visible { outline-color: var(--offwhite); }

/* Home hero: blue block with the photo straddling its lower edge */
.hero { position: relative; padding-bottom: 0; --overlap: clamp(3rem, 9vw, 7rem); }
.hero-bg {
  position: absolute;
  inset: 0 0 var(--overlap) 0;
  background: var(--blue);
  overflow: hidden;
}
.hero-bg .deco-c { right: -3%; top: 12%; }
.hero-bg .deco-sq { right: 24%; bottom: 14%; }
.hero-bg .deco-sq.alt { right: 42%; bottom: 20%; width: clamp(24px, 3.4vw, 44px); }
.hero > .container { position: relative; z-index: 1; }
.hero-text { padding-bottom: clamp(2rem, 1rem + 4vw, 3.5rem); }
.hero h1 { color: var(--offwhite); font-size: clamp(2.125rem, 1.3rem + 4.4vw, 4rem); max-width: 14em; }
.hero .lede { color: var(--offwhite); }
.hero .tel { color: #fff; }
.hero .btn { background: var(--offwhite); border-color: var(--offwhite); color: var(--charcoal); }
.hero .btn:focus-visible { background: #fff; border-color: #fff; color: var(--charcoal); }
.hero .btn:active { background: #e3e1da; border-color: #e3e1da; }
.hero :focus-visible { outline-color: var(--offwhite); }
.hero-img { margin-top: 0; border: 1px solid var(--charcoal); }
.hero + .section { padding-top: calc(var(--section-pad) + 1rem); border-top: 0; }

/* Home: service list becomes big tappable rows */
.rule-list li { padding: 0; }
.service-link {
  position: relative;
  display: block;
  padding: 20px 56px 20px 0;
  color: inherit;
  text-decoration: none;
  background-image: none !important;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), padding 0.25s var(--ease);
}
.service-link h3 { font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.5rem); }
.service-link::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-link:focus-visible { background-color: var(--row-bg); color: #fff; padding-left: 14px; }
.service-link:focus-visible p, .service-link:focus-visible h3 { color: #fff; }
.rule-list li { --row-bg: var(--blue); }
.rule-list li:nth-child(2) { --row-bg: var(--charcoal); }
.rule-list li:nth-child(3) { --row-bg: var(--blue-dark); }
.rule-list li:nth-child(4) { --row-bg: var(--text-muted); }
.service-link:focus-visible::after { border-color: #fff; }

/* Process: big numbers on white cards, uneven rhythm on wide screens */
.section-blue { background: var(--blue); color: var(--offwhite); border-top: 0 !important; }
.section-blue h2 { color: var(--offwhite); }
.section-blue :focus-visible { outline-color: var(--offwhite); }
.steps { gap: 16px; }
.steps li { background: var(--offwhite); border: 1px solid var(--charcoal); border-top: 6px solid var(--charcoal); border-radius: 2px; padding: 20px 20px 24px; }
.steps li::before { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--blue); margin-bottom: 14px; }
.steps li:nth-child(even) { border-top-color: var(--blue-dark); }

/* Call-to-action band with brackets */
.cta-band { position: relative; overflow: hidden; }
.cta-band > .container { position: relative; z-index: 1; }
.cta-band .deco-c { right: -3%; top: 50%; margin-top: calc(clamp(140px, 26vw, 320px) / -2); border-color: rgba(245, 244, 240, 0.08); }
.cta-band .deco-sq { right: 12%; bottom: 14%; background: var(--blue); opacity: 1; }
.cta-band h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }

/* Services page: numbered rows, offset image block, alternating sides */
.services-list { counter-reset: svc; }
.service-row { counter-increment: svc; scroll-margin-top: 1rem; }
.service-row > div:first-child::before {
  content: counter(svc, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--blue);
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  transform: rotate(-3deg);
}
.service-img { position: relative; margin: 0 12px 12px 0; }
.service-img::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--blue);
  border-radius: 2px;
}
.service-row:nth-child(2) .service-img::before, .service-row:nth-child(4) .service-img::before { background: var(--charcoal); }
.service-row:nth-child(3) .service-img::before { background: var(--blue-dark); }
.service-row:nth-child(2) > div:first-child::before, .service-row:nth-child(4) > div:first-child::before { background: var(--charcoal); }
.service-row:nth-child(3) > div:first-child::before { background: var(--blue-dark); }
.service-img .img-link { position: relative; z-index: 1; }

/* About image gets the same offset block */
.about-img { position: relative; margin: 0 14px 14px 0; }
.about-img::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--charcoal); border-radius: 2px; }
.about-img img { position: relative; z-index: 1; }

/* Contact: form on a white panel with a blue top edge */
.form-panel { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: 2px; padding: clamp(1.25rem, 0.8rem + 2vw, 2rem); }
.form-panel .alert { background: var(--offwhite); }

.site-footer { border-top: 6px solid var(--blue); }

@media (min-width: 48em) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
}
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .steps li:nth-child(even) { margin-top: 36px; }
  .service-row:nth-child(even) { grid-template-columns: 4fr 6fr; }
  .service-row:nth-child(even) > div:first-child { order: 2; }
  .service-row:nth-child(even) .service-img { order: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .service-link:hover { background-color: var(--row-bg); color: #fff; padding-left: 14px; }
  .service-link:hover p, .service-link:hover h3 { color: #fff; }
  .service-link:hover::after { border-color: #fff; }
  .eyebrow:hover { transform: rotate(0deg); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-link:hover::after { transform: translateX(4px) rotate(45deg); }
  .steps li { transition: box-shadow 0.25s var(--ease); }
  .steps li:hover { box-shadow: 0 3px 8px rgba(23, 30, 39, 0.25); }
}
@media (prefers-reduced-motion: no-preference) {
  .deco-sq { animation: drift 7s ease-in-out infinite alternate; }
  .deco-sq.alt { animation-duration: 9s; animation-direction: alternate-reverse; }
  @keyframes drift { from { transform: translateY(-8px) rotate(0deg); } to { transform: translateY(8px) rotate(8deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .service-link, .service-link::after { transition: none; }
}

@media (max-width: 47.99em) {
  .hero-bg .deco-sq { display: none; }
}



/* Page intro variants, palette colours only */
.page-hero--deep { background: var(--blue-dark); }
.page-hero--dark { background: var(--charcoal); }
.page-hero--deep .deco-sq { right: auto; left: 44%; bottom: -24px; }

@media (max-width: 47.99em) {
  .page-hero .deco-sq, .cta-band .deco-sq { display: none; }
}

/* =====================================================================
   Extra sections: FAQ, chips, principles, checklists, panels
   ===================================================================== */
.section-head { max-width: 720px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section-head p { color: var(--text-muted); }
.section-head p:last-child { margin-bottom: 0; }

/* Problems we help with */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  background: var(--offwhite);
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.chips li:nth-child(3n + 1) { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips li:nth-child(3n + 2) { background: var(--charcoal); color: var(--offwhite); }
.chips li:nth-child(3n) { background: var(--offwhite); color: var(--charcoal); }

/* What to expect: ruled blocks in two columns */
.principles { list-style: none; display: grid; gap: 0 var(--gap); }
.principles li { border-top: 1px solid var(--charcoal); padding: 18px 0 24px; }
.principles h3 { margin-bottom: 6px; }
.principles p { margin: 0; color: var(--text-muted); }

/* Checklists */
.checklist { list-style: none; margin: 0 0 1.2em; }
.checklist li { position: relative; padding: 6px 0 6px 26px; max-width: 62ch; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 10px; height: 10px; background: var(--blue); }
.includes { margin-top: 14px; }
.includes-title { font-family: var(--font-head); font-weight: 500; font-size: 0.875rem; color: var(--text-muted); margin: 18px 0 2px; }

/* Two panels side by side */
.panels { display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--charcoal); border-top: 6px solid var(--blue); border-radius: 2px; padding: clamp(1.25rem, 0.8rem + 2vw, 2rem); }
.panel:nth-child(even) { border-top-color: var(--charcoal); }
.panel h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); }
.panel .checklist { margin-bottom: 0; }

/* FAQ accordion */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--charcoal); }
.faq details:last-child { border-bottom: 1px solid var(--charcoal); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--blue); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p { margin: 0; color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--blue); } }
@media (prefers-reduced-motion: reduce) { .faq summary, .faq summary::after { transition: none; } }

/* Next-steps list on the contact page */
.next-steps { list-style: none; counter-reset: next; display: grid; gap: 0 var(--gap); }
.next-steps li { counter-increment: next; border-top: 1px solid var(--charcoal); padding: 16px 0 22px; }
.next-steps li::before { content: counter(next); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 10px; background: var(--blue); color: #fff; border-radius: 2px; font-family: var(--font-head); font-weight: 600; }
.next-steps li:nth-child(2)::before { background: var(--charcoal); }
.next-steps li:nth-child(3)::before { background: var(--blue-dark); }
.next-steps p { margin: 0; color: var(--text-muted); }

@media (min-width: 48em) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
  .next-steps { grid-template-columns: repeat(3, 1fr); }
}
.section-bordered { border-top: 1px solid var(--border); }
.after-chips { margin-top: 1.5rem; }

/* Brand: symbol logo plus the name set in type */
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; color: var(--charcoal); }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em; }
@media (min-width: 48em) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.125rem; }
}
.about-logo { width: 120px; height: 120px; }

/* Footer: two horizontal rows */
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 20px; }
.footer-top .brand { margin-right: 0; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-top: 8px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-contact address, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact a { background-position: 0 calc(100% - 9px), 0 calc(100% - 9px); padding-bottom: 0; }
.footer-copy { margin: 0; color: var(--text-muted); }
.site-footer .brand { background-image: none; padding-bottom: 0; }
