/* =========================================================================
   A.C. Heating Services Ltd — site stylesheet
   Palette and type follow the website brief. Red is reserved for the logo.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Brand palette (brief §3) */
  --navy: #142B3F;
  --slate: #304B61;
  --blue: #087FA8;
  --blue-dark: #066A8C;
  --white: #FFFFFF;
  --grey: #F4F6F8;
  --grey-line: #DCE2E8;
  --text: #253440;
  --text-soft: #4A5B68;
  --amber: #F2A541;
  --amber-dark: #E0922A;

  /* Logo red, as sampled from the supplied logo (used in the logo files only) */
  --logo-red: #BD1522;

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

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-lift: 0 18px 40px -22px rgba(20, 43, 63, 0.45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

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

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-soft); line-height: 1.6; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--navy); padding: 0.75rem 1rem;
  font-weight: 700; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); color: var(--navy); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--slate); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-dark .btn-outline { color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.text-link {
  font-family: var(--font-head); font-weight: 700; color: var(--blue);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.text-link::after {
  content: ""; width: .5em; height: .5em; border-right: 2px solid; border-top: 2px solid;
  transform: rotate(45deg); transition: transform .2s;
}
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .wrap { max-width: 1400px; }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--navy); margin-right: auto; flex: none; }
.brand-logo { height: 52px; width: auto; display: block; }
@media (max-width: 1280px) { .brand-logo { height: 46px; } }
.brand .brand-tag { padding-left: 1rem; border-left: 1px solid var(--grey-line); line-height: 1.3; max-width: 9.5rem; white-space: normal; }
.brand-tag { font-size: 0.8rem; color: var(--text-soft); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.6rem 0.7rem; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap;
}
.primary-nav a:hover { color: var(--navy); background: var(--grey); }
.primary-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-careers { display: inline-flex !important; align-items: center; gap: .45rem; }
.hiring-pill {
  font-size: 0.7rem; font-weight: 700; line-height: 1; padding: .3rem .5rem; border-radius: 999px;
  background: #FDF1DE; color: #7A4A06;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cta { white-space: nowrap; }
.header-phone {
  display: none; width: 48px; height: 48px; border-radius: 999px;
  align-items: center; justify-content: center;
  background: var(--blue); color: var(--white);
}
.header-phone svg { width: 22px; height: 22px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 999px;
  background: var(--grey); border: 0; cursor: pointer; color: var(--navy);
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s, opacity .25s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1480px) {
  .brand-tag { display: none; }
  .primary-nav a { padding: 0.6rem 0.5rem; font-size: 0.9rem; }
}

@media (max-width: 1280px) {
  .header-phone, .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 20px 30px -20px rgba(20, 43, 63, .35);
    display: none; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .js .primary-nav:not(.is-open) { display: none; }
  .primary-nav ul { flex-direction: column; padding: 0.75rem var(--gutter) 1.25rem; gap: 0; }
  .primary-nav a { padding: 0.95rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--grey); border-radius: 0; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: .9rem; }
  .nav-mobile-cta { display: block !important; padding-top: 1rem; }
  .nav-mobile-cta .btn { width: 100%; }
}
.nav-mobile-cta { display: none !important; }
/* Without JavaScript the mobile menu stays visible as a plain list */
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 1280px) { html:not(.js) .primary-nav { display: block; position: static; box-shadow: none; } html:not(.js) .header-inner { flex-wrap: wrap; } }

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .header-inner { gap: 0.75rem; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand-logo { height: 42px; max-width: 100%; }
  .header-phone, .nav-toggle { width: 44px; height: 44px; }
}

/* ---------- Image placeholders (see assets/js/config.js) ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(8,127,168,.12), rgba(20,43,63,.06)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(48,75,97,.05) 14px 15px),
    #E6EBF0;
  aspect-ratio: 4 / 3;
}
.ph.r-16x9 { aspect-ratio: 16 / 9; }
.ph.r-3x2 { aspect-ratio: 3 / 2; }
.ph.r-4x5 { aspect-ratio: 4 / 5; }
.ph.r-1x1 { aspect-ratio: 1 / 1; }
.ph.r-21x9 { aspect-ratio: 21 / 9; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  position: absolute; inset: auto 1rem 1rem 1rem;
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: 0.85rem; line-height: 1.4; color: var(--slate);
  background: rgba(255,255,255,.88); padding: .65rem .8rem; border-radius: var(--r-sm);
}
.ph-label svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.ph.has-image .ph-label { display: none; }
.ph-dark { background: linear-gradient(135deg, #1E3A52, #142B3F); }
.ph-dark .ph-label { background: rgba(255,255,255,.9); }

/* ---------- Hero (home) ---------- */
.hero { background: var(--navy); color: #DCE6EE; position: relative; overflow: hidden; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(7rem, 11vw, 9rem);
}
.hero-sub {
  font-family: var(--font-head); font-weight: 700; color: var(--amber);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin-bottom: 1.25rem;
}
.hero-intro p { color: #C9D6E1; max-width: 60ch; }
.hero-intro p:first-child { color: var(--white); font-size: 1.15rem; }
.hero .ph { border-radius: var(--r-lg); min-height: 100%; aspect-ratio: 4 / 5; }
.hero .ph-label { background: rgba(255,255,255,.92); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-media { animation: settle 1s cubic-bezier(.2,.7,.2,1) .1s both; }
  .plate { animation: rise .7s cubic-bezier(.2,.7,.2,1) .35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 8rem; }
  .hero .ph { aspect-ratio: 16 / 10; }
  .hero h1 { max-width: 18ch; }
}

/* ---------- The "plate": trust strip styled like an installation schedule ---------- */
.plate-wrap { margin-top: -5rem; position: relative; z-index: 2; }
.plate {
  list-style: none; margin: 0; padding: 0;
  background: var(--white); border-radius: var(--r-md);
  border: 1px solid var(--grey-line);
  box-shadow: 0 24px 50px -30px rgba(20,43,63,.5);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.plate-item { padding: 1.4rem 1.5rem; border-left: 1px solid var(--grey-line); }
.plate-item:first-child { border-left: 0; }
.plate-key { display: block; font-size: 0.8rem; color: var(--text-soft); margin-bottom: .2rem; }
.plate-val { display: block; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.12rem; line-height: 1.25; }
.plate-note { display: block; font-size: 0.82rem; color: var(--text-soft); margin-top: .25rem; line-height: 1.4; }
.plate-item.restricted .plate-val { color: var(--navy); }
.plate-item.restricted .plate-note { color: #7A4A06; font-weight: 600; }
@media (max-width: 960px) {
  .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate-item:nth-child(3) { border-left: 0; }
  .plate-item:nth-child(n+3) { border-top: 1px solid var(--grey-line); }
}
@media (max-width: 480px) {
  .plate { grid-template-columns: 1fr; }
  .plate-item { border-left: 0; }
  .plate-item + .plate-item { border-top: 1px solid var(--grey-line); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-grey { background: var(--grey); }
.section-navy { background: var(--navy); color: #C9D6E1; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.section-navy .section-head p { color: #C9D6E1; }

.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.split.flip > :first-child { order: 2; }
.split.top { align-items: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

/* ---------- Services (home) ---------- */
.services {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.service {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--r-md);
  padding: 1.75rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service.feature { grid-column: span 3; padding: 2.25rem; }
.service.feature.dark { background: var(--navy); border-color: var(--navy); color: #C9D6E1; }
.service.feature.dark h3 { color: var(--white); }
.service.feature.dark .text-link { color: #7FD3EF; }
.service:hover { border-color: #B8C6D3; box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.service p { color: var(--text-soft); flex: 1; }
.service.dark p { color: #C9D6E1; }
.service .text-link { margin-top: 1.25rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.25rem;
  display: grid; place-items: center; background: #E3F1F7; color: var(--blue);
}
.icon svg { width: 26px; height: 26px; }
.service.dark .icon { background: rgba(255,255,255,.08); color: #7FD3EF; }
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service.feature { grid-column: span 1; }
  .service.feature { grid-column: span 2; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .service, .service.feature { grid-column: span 1; padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service:hover { transform: none; }
}

/* ---------- Features (why choose us) ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.feature-item { padding-top: 1.25rem; border-top: 2px solid var(--navy); }
.feature-item h3 { margin-bottom: .35rem; }
.feature-item p { color: var(--text-soft); }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Ticks lists ---------- */
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: #E3F1F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087FA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 620px) { .ticks.cols { grid-template-columns: 1fr; } }
.section-navy .ticks li::before { background-color: rgba(255,255,255,.1); }

/* ---------- Band / callouts ---------- */
.band {
  background: var(--navy); color: #C9D6E1; border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.75rem); position: relative; overflow: hidden;
}
.band h2, .band h3 { color: var(--white); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

.notice {
  border-left: 4px solid var(--amber); background: #FFF8EC; color: #4A3200;
  padding: 1rem 1.25rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 1.5rem 0;
}
.notice strong { color: #3A2700; }
.section-navy .notice, .band .notice { background: rgba(242,165,65,.12); color: #F7E3C4; }
.section-navy .notice strong, .band .notice strong { color: var(--white); }

/* ---------- Accreditation ---------- */
.accred {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; background: var(--white); border: 1px solid var(--grey-line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem);
}
.logo-slot {
  aspect-ratio: 3 / 2; border: 2px dashed #B8C6D3; border-radius: var(--r-md);
  display: grid; place-items: center; text-align: center; padding: 1rem;
  font-size: .85rem; color: var(--text-soft); background: var(--grey);
}
.logo-slot.has-image { border: 0; background: transparent; padding: 0; }
.logo-slot img { width: 100%; max-width: 220px; height: auto; }
.schemes { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.schemes li {
  font-size: .9rem; font-weight: 600; color: var(--navy);
  border: 1px solid var(--grey-line); background: var(--grey);
  padding: .45rem .8rem; border-radius: 999px;
}
@media (max-width: 700px) { .accred { grid-template-columns: 1fr; } .logo-slot { max-width: 260px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #C9D6E1; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.page-hero .kicker { color: #9FB3C4; font-size: 1rem; margin-bottom: .8rem; font-weight: 500; }
.page-hero .lead { color: #C9D6E1; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* In-page section nav */
.subnav { border-bottom: 1px solid var(--grey-line); background: var(--white); position: sticky; top: 76px; z-index: 40; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: 1rem .9rem; text-decoration: none;
  color: var(--text-soft); font-weight: 600; font-size: .92rem;
}
.subnav a:hover { color: var(--navy); }

/* ---------- Content blocks ---------- */
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.sub-card { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--r-md); padding: 1.6rem; }
.section-grey .sub-card { border-color: transparent; }
.sub-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.sub-card p { color: var(--text-soft); font-size: 1rem; }
@media (max-width: 700px) { .sub-grid { grid-template-columns: 1fr; } }

/* Fire alarm overview tiles */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden; margin-top: 2.5rem; }
.tile { background: var(--navy); padding: 1.4rem 1.2rem; text-decoration: none; color: #C9D6E1; transition: background .2s; }
.tile:hover { background: var(--slate); color: var(--white); }
.page-hero a.tile { color: #C9D6E1; }
.page-hero a.tile:hover { color: var(--white); }
.tile strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.02rem; margin-bottom: .2rem; }
.tile span { font-size: .88rem; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:last-child { grid-column: span 2; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile:last-child { grid-column: auto; } }

/* Steps — a genuine sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; padding: 4.25rem 1.5rem 1.6rem; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--grey-line); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: 1.4rem; left: 1.5rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 2.5rem; left: 4.2rem; right: -1.25rem; height: 2px;
  background: linear-gradient(90deg, var(--grey-line), var(--grey-line));
}
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { color: var(--text-soft); font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } }
@media (max-width: 420px) { .team { grid-template-columns: 1fr; } }
.person .ph { border-radius: var(--r-md); margin-bottom: 1rem; }
.person h3 { margin-bottom: .1rem; font-size: 1.15rem; }
.person .role { display: block; color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.person p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Careers ---------- */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.role-card {
  border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white); border: 1px solid var(--grey-line);
  display: flex; flex-direction: column;
}
.role-card.dark { background: var(--navy); border-color: var(--navy); color: #C9D6E1; }
.role-card.dark h3 { color: var(--white); }
.role-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.role-card .btn { align-self: flex-start; margin-top: auto; }
.role-card .ticks { margin-bottom: 1.5rem; }
.role-card > p:last-of-type { margin-bottom: 1.75rem; }
@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--grey); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.info-card dl { margin: 0; display: grid; gap: 1.35rem; }
.info-card dt { font-size: .85rem; color: var(--text-soft); margin-bottom: .2rem; }
.info-card dd { margin: 0; font-weight: 600; color: var(--navy); }
.info-card dd a { color: var(--navy); }
.info-card address { font-style: normal; }
.info-card .muted { font-weight: 400; color: var(--text-soft); font-size: .95rem; }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-size: .95rem; }
.req { color: #A3261B; font-weight: 700; }
.opt { font-weight: 400; color: var(--text-soft); font-size: .88rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem .9rem; min-height: 48px; border-radius: var(--r-sm);
  border: 1.5px solid #B8C6D3; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,168,.25); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .hint { font-size: .87rem; color: var(--text-soft); margin: .35rem 0 0; }
.field .error { font-size: .9rem; color: #B3261E; margin: .4rem 0 0; font-weight: 600; }
.field .error:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.choice { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.check { display: flex; gap: .75rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; flex: none; margin-top: .15rem; accent-color: var(--blue); }
.check label { font-weight: 500; color: var(--text); margin: 0; }
.subform { border-top: 1px solid var(--grey-line); padding-top: 1.25rem; }
.subform-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: .25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--text-soft); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }

.error-summary { border: 2px solid #B3261E; border-radius: var(--r-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: #FDF2F1; }
.error-summary h2 { font-size: 1.05rem; color: #8C1D18; margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: #8C1D18; font-weight: 600; }

.form-result { border-radius: var(--r-md); padding: 1.5rem; margin-top: 1.5rem; }
.form-result.ok { background: #EAF6EF; border: 1px solid #A9D9BC; color: #14432A; }
.form-result.warn { background: #FFF8EC; border: 1px solid #F0D2A2; color: #4A3200; }
.form-result.bad { background: #FDF2F1; border: 1px solid #EFB7B2; color: #5E1410; }
.form-result h2 { font-size: 1.2rem; color: inherit; margin-bottom: .4rem; }
.form-result pre { white-space: pre-wrap; font: inherit; font-size: .9rem; background: rgba(255,255,255,.7); padding: .9rem; border-radius: var(--r-sm); max-height: 260px; overflow: auto; margin: .9rem 0; }

.map-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.map-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- Closing CTA ---------- */
.cta-final { text-align: left; }
.cta-final .band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta-final .hours { display: inline-block; margin-top: .5rem; font-weight: 600; color: var(--white); }
.cta-final .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-final .band { grid-template-columns: 1fr; } .cta-final .btn-row { justify-content: flex-start; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.draft-banner { background: #FFF8EC; border: 1px solid #F0D2A2; color: #4A3200; padding: 1rem 1.25rem; border-radius: var(--r-sm); margin-bottom: 2rem; }
.tbc { background: #FDF1DE; padding: 0 .25em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #0F2232; color: #A9BBCA; padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: #D7E2EB; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid address { font-style: normal; line-height: 1.6; }
.footer-brand .brand { color: var(--white); margin-bottom: 1.25rem; }
.footer-brand .brand-logo { height: 48px; }
.footer-brand .brand-tag { display: none; }
.footer-small { font-size: .88rem; color: #8DA2B4; margin-top: .75rem; }
.footer-accred { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .9rem .5rem .5rem; background: var(--white); border-radius: var(--r-sm); color: var(--navy); font-weight: 700; font-size: .88rem; line-height: 1.3; }
.footer-accred img { height: 36px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (one subtle effect, honours reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Draft components page */
.draft-only { outline: 2px dashed var(--amber); outline-offset: 8px; }
.testimonial { background: var(--white); border-radius: var(--r-md); padding: 2rem; border: 1px solid var(--grey-line); }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); font-weight: 600; line-height: 1.45; }
.testimonial figcaption { color: var(--text-soft); font-size: .95rem; }
.case-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--grey-line); }
.case-card .ph { border-radius: 0; }
.case-body { padding: 1.5rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 1rem; padding: 0; list-style: none; }
.case-meta li { font-size: .85rem; background: var(--grey); padding: .3rem .65rem; border-radius: 999px; }

@media print {
  .site-header, .subnav, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  .hero, .page-hero, .section-navy, .band { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1, .band h2 { color: #000 !important; }
}

/* Three-up service row (maintenance page) */
.services.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services.three .service { grid-column: auto; }
@media (max-width: 960px) { .services.three { grid-template-columns: 1fr; } }

/* Links inside dark panels */
.band a:not(.btn), .section-navy a:not(.btn), .page-hero a:not(.btn) { color: #7FD3EF; }
.band a:not(.btn):hover, .section-navy a:not(.btn):hover, .page-hero a:not(.btn):hover { color: var(--white); }
.map-card p { display: flex; align-items: center; gap: .5rem; }
.map-card p svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.form-note a { font-weight: 600; }
