/* ==========================================================================
   Systasis Properties - stylesheet
   Tokens, mobile-first layout, logical section grouping.
   ========================================================================== */

/* -------------------------------------------------------------------------
   0. Reset (hand-written, no CDN)
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  --ink:        #16181A;
  --ink-soft:   #2A2D31;
  --slate:      #676C71;   /* WCAG 1.4.3: 4.71:1 on --bone (was #6B7075 = 4.44:1, failed AA) */
  --line:       #DCD7CE;
  --bone:       #F4F1EC;
  --bone-deep:  #E8E3DA;
  --bone-muted: #A8ADB2;
  --white:      #FFFFFF;
  --brass:      #B8874A;
  --brass-deep: #8C6029;
  --success:    #3F6B4F;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(1.75rem, 1.5rem + 2.4vw, 3.2rem);
  --step-4:  clamp(2.05rem, 1.45rem + 4.2vw, 4.6rem);

  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6rem;
  --s7: 9rem;

  --r-sm: 3px;
  --r-md: 6px;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --font-heading: 'Instrument Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
/* Long words - email addresses, URLs - must never force horizontal scroll. */
p, li, h1, h2, h3, h4, summary, blockquote, dd, dt, figcaption, td, th, a {
  overflow-wrap: break-word;
}

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  font-size: var(--step-0);
  overflow-x: clip;
}

html {
  /* Backstop only. This HIDES horizontal overflow rather than fixing it - it
     masked a real 16px grid burst at 768px until it was measured directly.
     Do not rely on it: test with it disabled. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { max-width: 68ch; }

p, li { color: var(--ink-soft); }

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

section { padding-block: var(--s6); }

/* Focus ring - non-negotiable, everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  background: var(--ink);
  color: var(--bone);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus {
  top: var(--s2);
}

/* Placeholder marker */
[data-placeholder] {
  text-decoration: underline dotted var(--brass-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Reusable eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: var(--s2);
}

.section-head {
  max-width: 60ch;
  margin-bottom: var(--s5);
}
.section-head p { margin-top: var(--s2); color: var(--slate); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0.85em 1.5em;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ink-soft); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--brass-deep); }

.btn-brass {
  background: transparent;
  color: var(--brass-deep);
  border: 1.5px solid var(--brass);
}
.btn-brass:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

/* -------------------------------------------------------------------------
   3. Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(22, 24, 26, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--header-h);
}

.site-logo img {
  height: 34px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-links {
  display: flex;
  gap: var(--s4);
}
.nav-links a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  padding: var(--s1) 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.header-cta { white-space: nowrap; }

/* The drawer is used until the seven-item bar genuinely fits. Measured: the bar
   bursts the header between ~861px and ~950px, so the desktop nav starts at 1024px.
   NOTE: the min-width:860px queries below are hero/process/footer layout, NOT nav. */
@media (max-width: 1023.98px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s3) var(--gutter) var(--s4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--line);
  }
  .header-cta {
    margin-top: var(--s3);
    width: 100%;
    text-align: center;
  }
}

/* -------------------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------------------- */
.hero {
  padding-block: var(--s6) var(--s5);
}
.hero-inner {
  display: grid;
  gap: var(--s5);
  align-items: center;
}
.hero-copy p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: var(--s3);
}
.hero-copy h1 {
  max-width: 16ch;
  /* Tighter than the global --step-4 scale: the hero h1 must not push the
     CTAs below the fold at desktop widths. Upper bound ~3.4rem instead of 4.6rem. */
  font-size: clamp(2.2rem, 1.65rem + 2.1vw, 3.4rem);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s4);
}

.hero-visual {
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(155deg, var(--bone-deep) 0%, var(--bone) 55%, var(--white) 100%);
  border: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
}
.hero-visual svg { width: 100%; height: auto; }

.credibility-strip {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
}
.credibility-strip li {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: .5em;
}
.credibility-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .hero-visual { min-height: 420px; }
}

/* -------------------------------------------------------------------------
   5. Services
   ------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The management section has two cards, not three - don't leave a dead column. */
  #management .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
}
.service-card .card-number {
  font-size: var(--step--1);
  color: var(--brass-deep);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.service-card h3 {
  margin-top: var(--s2);
  /* Reserve room for a two-line title (e.g. "Handyman & maintenance") so the
     rule below always starts at the same height across all cards, even when
     a shorter title wraps to only one line. */
  min-height: 2.35em;
}
.service-card .promise {
  color: var(--slate);
  margin-top: var(--s1);
  font-size: var(--step--1);
}
.service-card ul {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s1);
}
.service-card li {
  font-size: var(--step--1);
  padding-left: 1.1em;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--brass);
}

/* -------------------------------------------------------------------------
   6. Sectors
   ------------------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .sectors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sector-panel {
  padding: var(--s4);
  border-radius: var(--r-md);
}
.sector-panel h3 { margin-bottom: var(--s1); }
.sector-panel .sector-for {
  font-size: var(--step--1);
  margin-bottom: var(--s3);
}
.sector-panel ul { display: grid; gap: var(--s1); margin-top: var(--s3); }
.sector-panel li {
  font-size: var(--step--1);
  padding-left: 1.1em;
  position: relative;
}
.sector-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
}

.sector-panel--commercial {
  background: var(--ink);
  color: var(--bone);
}
.sector-panel--commercial h3 { color: var(--bone); }
.sector-panel--commercial .sector-for { color: var(--brass); }
.sector-panel--commercial p, .sector-panel--commercial li { color: var(--bone-deep); }
.sector-panel--commercial li::before { background: var(--brass); }

.sector-panel--residential {
  background: var(--white);
  border: 1px solid var(--line);
}
.sector-panel--residential .sector-for { color: var(--brass-deep); font-weight: 600; }
.sector-panel--residential li::before { background: var(--brass-deep); }

/* -------------------------------------------------------------------------
   7. Process
   ------------------------------------------------------------------------- */
.process-list {
  display: grid;
  gap: var(--s4);
  counter-reset: step;
}
.process-step {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}
.process-step .step-index {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-deep);
  color: var(--brass-deep);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-0);
  background: var(--bone);
}
.process-step h3 { font-size: var(--step-0); }
.process-step p { font-size: var(--step--1); color: var(--slate); margin-top: .25em; }

@media (min-width: 860px) {
  .process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative;
  }
  .process-list::before {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(12.5% + 0px);
    right: calc(12.5% + 0px);
    height: 1px;
    background: var(--line);
    z-index: 0;
  }
  .process-step {
    flex-direction: column;
    text-align: left;
    position: relative;
    z-index: 1;
  }
  .process-step .step-index { background: var(--bone); }
}

/* -------------------------------------------------------------------------
   8. Areas
   ------------------------------------------------------------------------- */
.areas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.areas-tags li {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6em 1.1em;
}
.areas-note {
  margin-top: var(--s3);
  color: var(--slate);
  font-size: var(--step--1);
}

/* -------------------------------------------------------------------------
   10. FAQ
   ------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: var(--s2);
  max-width: 78ch;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-0);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4em;
  color: var(--brass-deep);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: var(--s2);
  color: var(--slate);
  font-size: var(--step--1);
}

/* -------------------------------------------------------------------------
   11. Contact CTA band
   ------------------------------------------------------------------------- */
.contact-band {
  background: var(--ink);
  color: var(--bone);
}
.contact-band h2 { color: var(--bone); max-width: 20ch; }
.contact-band-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s3);
}
.contact-links a {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--bone);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.15em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-links a:hover { color: var(--brass); }
.contact-hours {
  margin-top: var(--s3);
  color: var(--bone-deep);
  font-size: var(--step--1);
}

/* -------------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-soft);
  color: var(--bone-deep);
  padding-block: var(--s5) var(--s4);
}
.footer-inner {
  display: grid;
  gap: var(--s4);
}
.footer-logo img { height: 30px; width: auto; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s4);
  margin-top: var(--s4);
}
.footer-nav a {
  font-size: var(--step--1);
  color: var(--bone-deep);
}
.footer-nav a:hover { color: var(--bone); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.footer-meta {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(244, 241, 236, 0.12);
  font-size: var(--step--1);
  display: grid;
  gap: var(--s1);
}
/* Beats the base "p, li { color: var(--ink-soft) }" rule (0,1,1) vs
   (0,0,1) so footer paragraphs actually get a legible colour against
   the dark --ink-soft footer background, instead of inheriting a
   colour set on the .footer-meta container that a direct p rule
   always outranks. */
.footer-meta p {
  color: var(--bone-muted);
}

@media (min-width: 860px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .footer-nav { justify-content: flex-end; margin-top: 0; }
  .footer-meta { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------------------
   13. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
  }
}

/* -------------------------------------------------------------------------
   14. Reviews page (reviews.html only - appended, never reorder above)
   ------------------------------------------------------------------------- */

/* Screen-reader-only utility, used for star-rating text alternatives. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.reviews-hero {
  padding-bottom: var(--s4);
}
.reviews-hero h1 { margin-top: var(--s2); max-width: 20ch; }
.reviews-hero p { margin-top: var(--s3); color: var(--slate); max-width: 60ch; }

/* -------------------------------------------------------------------------
   Empty state / filled state toggle.
   Default: .reviews-content--empty shows the empty state, hides the grid.
   To launch: on #reviews-content, remove "reviews-content--empty" and add
   "reviews-content--filled" (see instructions at top of reviews.html).
   Hidden content uses display:none so it is also hidden from assistive
   tech, not just visually.
   ------------------------------------------------------------------------- */
.reviews-content--empty .reviews-filled { display: none; }
.reviews-content--filled .reviews-empty-state { display: none; }

.reviews-empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.reviews-empty-state .container {
  max-width: 60ch;
  padding-block: var(--s5);
  display: grid;
  gap: var(--s2);
}
.reviews-empty-state h2 { font-size: var(--step-2); }
.reviews-empty-state p { color: var(--ink-soft); }
.reviews-empty-state .btn { margin-top: var(--s2); width: fit-content; }

/* Aggregate summary strip - shown only with the filled state. */
.reviews-summary {
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.reviews-summary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s4);
}
.reviews-summary-figure {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
}
.reviews-summary-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--step-2);
  color: var(--ink);
}
.reviews-summary-label {
  font-size: var(--step--1);
  color: var(--slate);
}
.reviews-summary-note {
  font-size: var(--step--1);
  color: var(--slate);
  flex-basis: 100%;
}
@media (min-width: 700px) {
  .reviews-summary-note { flex-basis: auto; margin-left: auto; }
}

.reviews-grid-section { padding-top: var(--s5); }

/* Review card grid - 1-up mobile, 2-up mid, 3-up desktop. */
.reviews-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.review-card blockquote {
  font-size: var(--step-0);
  color: var(--ink-soft);
}
.review-card blockquote::before { content: open-quote; color: var(--brass-deep); }
.review-card blockquote::after { content: close-quote; color: var(--brass-deep); }
.review-card figcaption {
  display: grid;
  gap: 0.15em;
  font-size: var(--step--1);
}
.review-author { font-weight: 600; color: var(--ink); }
.review-role,
.review-job,
.review-date { color: var(--slate); }

/* Star rating. Glyphs render in a neutral grey by default because
   data-rating holds an unset {{...}} placeholder token, not a real
   number - this is intentional, not a bug: there is nothing to fill
   in yet. Once real numeric ratings replace the placeholders, add a
   rule keyed off data-rating (or a filled/empty span pair) to colour
   the earned stars var(--brass-deep). Never hardcode all five stars
   as filled. */
.review-stars-glyphs {
  color: var(--line);
  letter-spacing: 0.12em;
  font-size: var(--step-0);
}


/* -------------------------------------------------------------------------
   15. Legal pages (privacy / cookies / terms / complaints - appended)
   ------------------------------------------------------------------------- */
.legal-main { padding: var(--s6) 0 var(--s7); }
.legal-main .container { max-width: 78ch; }
.legal-main h1 { margin-bottom: var(--s2); }
.legal-updated { color: var(--slate); font-size: var(--step--1); margin-bottom: var(--s5); }
.legal-main h2 {
  margin-top: var(--s6);
  margin-bottom: var(--s2);
  font-size: var(--step-2);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.legal-main h3 { margin-top: var(--s4); margin-bottom: var(--s1); font-size: var(--step-0); }
.legal-main p, .legal-main li { color: var(--ink-soft); }
.legal-main p { margin-bottom: var(--s3); }
.legal-main ul, .legal-main ol { margin: 0 0 var(--s3) 1.25em; display: grid; gap: var(--s1); }
.legal-main li { padding-left: .2em; }
.legal-main a { color: var(--brass-deep); text-underline-offset: 3px; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s5); }
.legal-toc h2 { margin: 0 0 var(--s2); border: 0; padding: 0; font-size: var(--step-0); }
.legal-toc ul { margin: 0 0 0 1.1em; }
.legal-contact { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); }
.legal-contact p:last-child { margin-bottom: 0; }
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s3); }
.footer-legal-nav a { color: var(--bone-muted); font-size: var(--step--1); text-underline-offset: 3px; }
.footer-legal-nav a:hover { color: var(--bone); text-decoration: underline; }


/* -------------------------------------------------------------------------
   16. Touch targets (appended)
   Interactive navigation, contact and logo links get a 48px minimum hit area.
   Links sitting inline inside a sentence are deliberately excluded: WCAG 2.2
   SC 2.5.8 exempts them, and padding them out would break prose line spacing.
   ------------------------------------------------------------------------- */
.nav-links a,
.footer-nav a,
.footer-legal-nav a,
.contact-links a,
.areas-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Spacing between adjacent targets so neighbouring links are not mis-tapped. */
.footer-nav { gap: 0 var(--s3); }
.footer-legal-nav { gap: 0 var(--s3); }
.contact-links { gap: var(--s1) var(--s3); }


/* -------------------------------------------------------------------------
   17. Service pages: breadcrumb, single-column hero, card links (appended)
   ------------------------------------------------------------------------- */
.breadcrumb { margin-bottom: var(--s3); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5em;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--slate);
}
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: var(--line); }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--slate);
  text-underline-offset: 3px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-soft); }

/* Service-page hero has no illustration, so it is one column at every width. */
.hero-inner--simple { display: block; }
.hero-inner--simple .hero-copy { max-width: 60ch; }

/* Card titles link through to the full page. */
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: var(--s2);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brass-deep);
  text-underline-offset: 3px;
}
.card-link::after { content: " 92"; margin-left: .4em; }

/* Current page marked in the nav. */
.nav-links a[aria-current="page"] { color: var(--brass-deep); font-weight: 600; }

/* -------------------------------------------------------------------------
   18. Homepage onward-links list (appended)
   ------------------------------------------------------------------------- */
.explore-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}
.explore-tags a:hover { color: var(--brass-deep); }

/* -------------------------------------------------------------------------
   14. Homepage benefits
   Added with the 2026-08-25 restructure. Appended after the base rules so the
   --five override below beats the 3-column .services-grid rule at 700px.
   ------------------------------------------------------------------------- */
.hero-sub {
  max-width: 60ch;
}

.benefits-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.benefit {
  padding-top: var(--s3);
  border-top: 2px solid var(--brass);
}
.benefit h3 {
  font-size: var(--step-0);
}
.benefit p {
  margin-top: var(--s1);
  font-size: var(--step--1);
  color: var(--slate);
}

/* Five service cards: let them flow rather than forcing three per row. */
@media (min-width: 700px) {
  .services-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .services-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Hub cards carry no bullet list, so the reserved two-line title height that
   keeps the detail-page cards aligned is not needed here. */
.services-grid--five .service-card h3 { min-height: 0; }

/* -------------------------------------------------------------------------
   15. Service hub list
   ------------------------------------------------------------------------- */
.service-hub {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s5);
}
.service-hub-item {
  display: grid;
  gap: var(--s2);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.service-hub-item:last-child { border-bottom: 0; padding-bottom: 0; }
.service-hub-item h3 { font-size: var(--step-1); }
.service-hub-item h3 a { color: inherit; text-decoration: none; }
.service-hub-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.service-hub-item p { color: var(--slate); max-width: 68ch; }
.service-hub-for {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brass-deep);
}
@media (min-width: 860px) {
  .service-hub-item {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    column-gap: var(--s4);
  }
  .service-hub-item h3 { grid-column: 1; }
  .service-hub-item .service-hub-body { grid-column: 2; }
}

/* -------------------------------------------------------------------------
   16. About
   ------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.value h3 { font-size: var(--step-0); }
.value p { margin-top: var(--s1); font-size: var(--step--1); color: var(--slate); }

.company-details {
  display: grid;
  gap: var(--s1) var(--s3);
  margin-top: var(--s3);
  font-size: var(--step--1);
}
.company-details dt {
  font-weight: 600;
  color: var(--ink-soft);
}
.company-details dd {
  color: var(--slate);
  margin: 0 0 var(--s2) 0;
}
@media (min-width: 640px) {
  .company-details {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: baseline;
  }
  .company-details dd { margin-bottom: 0; }
}

/* -------------------------------------------------------------------------
   17. Enquiry form
   ------------------------------------------------------------------------- */
.enquiry-form {
  margin-top: var(--s4);
  max-width: 42rem;
}
.form-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
.field {
  display: grid;
  gap: var(--s1);
}
.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
.field .req { color: var(--brass-deep); }
.field .hint {
  font-size: var(--step--1);
  color: var(--slate);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  width: 100%;
  max-width: 100%;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 1px;
  border-color: var(--brass-deep);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #9B2C2C;
}
.field-error {
  font-size: var(--step--1);
  color: #9B2C2C;
  font-weight: 600;
}

/* Spam honeypot: hidden from people, still reachable by a naive bot.
   Not display:none, because some bots skip those. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}
.form-consent {
  margin-top: var(--s3);
  font-size: var(--step--1);
  color: var(--slate);
  max-width: 60ch;
}

.form-status {
  padding: var(--s3);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: var(--s4);
  font-size: var(--step-0);
}
.form-status h2 { font-size: var(--step-1); }
.form-status p { margin-top: var(--s1); }
.form-status--ok {
  border-left: 4px solid var(--success);
  background: var(--white);
}
.form-status--error {
  border-left: 4px solid #9B2C2C;
  background: var(--white);
}

.contact-direct {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}
@media (min-width: 700px) {
  .contact-direct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-direct-item h3 { font-size: var(--step-0); }
.contact-direct-item a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--brass-deep);
  text-underline-offset: 3px;
}
.contact-direct-item p {
  font-size: var(--step--1);
  color: var(--slate);
}
