/* Allware Systems — shared stylesheet.
   Colours live only in the tokens below. Navy and blue come from the logo. */

:root {
  color-scheme: light;

  /* Brand */
  --navy: #1d3a6c;
  --navy-deep: #0f1f3a;
  --navy-ink: #162f58;
  --blue: #749ac2;
  --blue-soft: #dce6f2;
  --blue-wash: #e8eef6;
  --monogram-glow: rgb(116 154 194 / 38%);

  /* Accent: teal.
     --accent is for dark surfaces and fills; --accent-strong for text and
     controls on light surfaces. */
  --accent: #3cc4b0;
  --accent-strong: #0f766e;
  --accent-wash: #e6f5f2;
  --on-accent: #0f1f3a;

  /* Neutrals */
  --paper: #f6f5f1;
  --surface: #ffffff;
  --text: #1d3a6c;
  --text-muted: #46505e;
  --line: #d9dee6;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d4e3;
  --line-dark: rgb(255 255 255 / 16%);

  --focus: #0b62d6;
  --focus-on-dark: #ffd27a;

  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.7rem + 2vw, 3.375rem);
  --step-5: clamp(2.5rem, 1.9rem + 3vw, 4.375rem);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --card-pad: clamp(1.5rem, 2.5vw, 2rem);
  --shadow: 0 1px 2px rgb(16 35 63 / 6%), 0 8px 24px rgb(16 35 63 / 8%);
  --shadow-lift: 0 2px 4px rgb(16 35 63 / 8%), 0 18px 40px rgb(16 35 63 / 14%);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); }

p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

:is(.on-dark, .section-dark) :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }

button, input, textarea, select { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-s);
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container-narrow { max-width: 760px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-primary { background: var(--navy); color: var(--on-dark); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow); }

.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, white); box-shadow: 0 8px 24px rgb(0 0 0 / 20%); }

.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--on-dark); }

.btn-ghost-light { border-color: rgb(255 255 255 / 55%); color: var(--on-dark); background: transparent; }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--navy-deep); border-color: var(--on-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }
:is(.on-dark, .section-dark) .link-arrow { color: var(--on-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}

.nav-list a:hover { background: var(--blue-wash); }
.nav-list a[aria-current="page"] { color: var(--navy); background: var(--blue-soft); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.25rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.975rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone svg { width: 18px; height: 18px; color: var(--navy); }
.header-phone:hover { text-decoration: underline; }
.header-actions .btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.975rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-left: auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-icon { position: relative; width: 18px; height: 12px; }

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 5px; }
.nav-toggle-icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-tint { background: var(--blue-wash); }
.section-white { background: var(--surface); }

.section-dark,
.on-dark {
  background: var(--navy-deep);
  color: var(--on-dark);
}

.section-dark a:not(.btn) { color: var(--on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.3em;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

:is(.on-dark, .section-dark) .eyebrow { color: var(--on-dark-muted); }
:is(.on-dark, .section-dark) .eyebrow::before { box-shadow: 0 0 0 4px rgb(116 154 194 / 30%); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
:is(.on-dark, .section-dark) :is(.lead, p) { color: var(--on-dark-muted); }
:is(.on-dark, .section-dark) :is(h2, h3) { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p:last-child { margin-bottom: 0; }

.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head-split > div { max-width: 720px; }
.section-head-split > :last-child { flex: none; }

.highlight { color: var(--accent-strong); }
:is(.on-dark, .section-dark) .highlight { color: var(--accent); background: none; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(circle at 92% 8%, var(--blue-soft) 0 18rem, transparent 18.05rem),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 { margin-bottom: 0.4em; color: var(--navy-ink); }
.hero .lead { margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 2.25rem; }

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
}

.proof-list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.proof-list svg { width: 18px; height: 18px; flex: none; color: var(--navy); }

/* The "stack": everything Allware looks after, from people to platform. */
.stack {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--navy-deep);
  color: var(--on-dark);
  box-shadow: var(--shadow-lift);
}

.stack-head {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-dark);
}

.stack-title { margin: 0; font-weight: 700; font-size: var(--step-1); }
.stack-note { margin: 0; color: var(--on-dark-muted); font-size: var(--step--1); }

.stack-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.stack-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-s);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 8%);
}

.stack-list li:first-child { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.stack-list li:first-child .stack-label small { color: var(--on-accent); opacity: 0.85; }
.stack-list li:first-child .stack-icon { background: rgb(255 255 255 / 45%); color: var(--navy-deep); }

.stack-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(116 154 194 / 22%);
  color: var(--on-dark);
}

.stack-icon svg { width: 1.25rem; height: 1.25rem; }
.stack-label { display: grid; line-height: 1.3; font-weight: 700; }
.stack-label small { color: var(--on-dark-muted); font-weight: 500; font-size: var(--step--1); }

.stack-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  color: var(--on-dark-muted);
  font-size: var(--step--1);
}

.stack-foot::before { content: ""; width: 0.6rem; height: 0.6rem; flex: none; border-radius: 50%; background: var(--blue); }

/* ---------- Facts band ---------- */

.facts-band { background: var(--navy); color: var(--on-dark); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  gap: 0.15rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line-dark);
}

.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { color: var(--accent); font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; }
.facts span { color: var(--on-dark-muted); font-size: var(--step--1); }

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding-inline: 0 1rem; border-left: 0; border-top: 1px solid var(--line-dark); }
  .facts li:nth-child(-n + 2) { border-top: 0; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  background:
    radial-gradient(circle at 100% 0%, var(--blue-soft) 0 14rem, transparent 14.05rem),
    var(--paper);
}

.page-hero h1 { max-width: 18ch; font-size: var(--step-5); color: var(--navy-ink); }
.page-hero .lead { margin-bottom: 1.75rem; }
.page-hero .hero-actions { margin-bottom: 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card h3 { margin-bottom: 0.45em; font-size: var(--step-2); }
.card p { color: var(--text-muted); }
.card > :last-child { margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
}

.card-icon svg { width: 1.5rem; height: 1.5rem; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.card-tags li {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Whole-card link: the heading link's hit area covers the card. */
.card-linked:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--blue); }
.card-linked h3 a { color: inherit; text-decoration: none; }
.card-linked h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-linked h3 a:focus-visible { outline: none; }
.card-linked:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-linked .link-arrow { pointer-events: none; }

.card-feature {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
}

.card-feature p { color: var(--on-dark-muted); }
.card-feature .card-icon { background: var(--accent); color: var(--on-accent); }
.card-feature .card-tags li { background: rgb(255 255 255 / 12%); color: var(--on-dark); }
.card-feature .link-arrow { color: var(--on-dark); }
.card-feature.card-linked:hover { border-color: var(--navy); }

:is(.on-dark, .section-dark) .card { background: rgb(255 255 255 / 5%); border-color: var(--line-dark); color: var(--on-dark); }
:is(.on-dark, .section-dark) .card p { color: var(--on-dark-muted); }
:is(.on-dark, .section-dark) .card-icon { background: rgb(116 154 194 / 25%); color: var(--on-dark); }

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.split-top { align-items: start; }
.split > * { min-width: 0; }

.check-list { display: grid; gap: 0.85rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--blue-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: calc(0.3em + 0.28rem);
  width: 0.38rem;
  height: 0.62rem;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-list strong { display: block; }
:is(.on-dark, .section-dark) .check-list li::before { background: var(--accent); }
:is(.on-dark, .section-dark) .check-list li::after { border-color: var(--on-accent); }

/* Panel used beside copy for supporting facts. */
.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel h3 { font-size: var(--step-2); }
.panel > :last-child { margin-bottom: 0; }
.panel-tint { background: var(--blue-wash); border-color: transparent; box-shadow: none; }

/* ---------- Promise (no upselling) ---------- */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.promise-intro h2 { font-size: var(--step-4); }
.promise-intro .lead { margin-bottom: 1.5rem; }

.promise-points { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }

.promise-points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border-left: 4px solid var(--accent);
}

.promise-points h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.promise-points p { margin: 0; color: var(--text-muted); }

.promise-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-strong);
}

.promise-icon svg { width: 22px; height: 22px; }

/* ---------- Principles (why Allware) ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.principles li {
  padding: 1.75rem 1.75rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.principles h3 { display: flex; align-items: baseline; gap: 0.75rem; font-size: var(--step-1); margin-bottom: 0.5em; }

.principles .num {
  flex: none;
  color: var(--accent-strong);
  font-size: var(--step--1);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.principles p { margin: 0; color: var(--text-muted); }

/* ---------- Platform (Allware-run services) ---------- */

.platform {
  position: relative;
  overflow: hidden;
}

.platform::before {
  content: "";
  position: absolute;
  right: -12rem;
  top: -12rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(116 154 194 / 26%) 0 45%, transparent 45.5%), radial-gradient(circle, transparent 0 62%, rgb(116 154 194 / 14%) 62.3% 62.8%, transparent 63%);
  pointer-events: none;
}

.platform .container { position: relative; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 800;
}

.steps h3 { font-size: var(--step-1); }
.steps p { margin: 0; color: var(--text-muted); }

/* ---------- Coverage ---------- */

.coverage {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.coverage-dot {
  width: 1rem;
  height: 1rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.coverage li:nth-child(2) .coverage-dot { background: var(--blue); }
.coverage li:nth-child(3) .coverage-dot { background: transparent; border: 2px solid var(--blue); }
.coverage h3 { margin: 0 0 0.25rem; font-size: var(--step-1); }
.coverage p { margin: 0; color: var(--text-muted); }

/* ---------- Quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quote blockquote { margin: 0 0 1.25rem; font-size: var(--step-1); line-height: 1.5; color: var(--text); }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: auto; color: var(--text-muted); font-size: var(--step--1); }
.quote figcaption strong { display: block; color: var(--text); font-size: var(--step-0); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  display: block;
  padding: 1.35rem 3rem 1.35rem 0;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 180ms ease;
}

.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--navy); }
.faq .faq-answer { padding: 0 3rem 1.5rem 0; color: var(--text-muted); max-width: 70ch; }
.faq .faq-answer > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-l);
  background: var(--navy);
  color: var(--on-dark);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; color: var(--on-dark); }
.cta-band p { max-width: 56ch; color: var(--on-dark-muted); font-size: var(--step-1); }
.cta-band .hero-actions { margin: 1.75rem 0 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-methods { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }

.contact-method {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-method .card-icon { margin: 0; }
.contact-method p { margin: 0; color: var(--text-muted); font-size: var(--step--1); }
.contact-method a { font-weight: 700; font-size: var(--step-1); overflow-wrap: anywhere; }

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-card h2 { font-size: var(--step-3); }

.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.field .hint { display: block; margin: -0.2rem 0 0.45rem; color: var(--text-muted); font-size: var(--step--1); font-weight: 400; }
.field .optional { color: var(--text-muted); font-weight: 500; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #768396;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.36rem 0.36rem;
  background-repeat: no-repeat;
}

.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-error { display: block; margin-top: 0.35rem; color: #b3261e; font-size: var(--step--1); font-weight: 600; }
.field-error:empty { display: none; }

.form-note {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-s);
  background: var(--blue-wash);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.form-note svg { width: 20px; height: 20px; flex: none; margin-top: 0.15rem; color: var(--navy); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }

.address { font-style: normal; }

/* ---------- Prose (policy pages) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.5em; }
.prose li { margin-bottom: 0.4em; }

.notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--accent-wash);
  color: var(--text);
}

/* ---------- Call journey ---------- */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Connector running behind the step icons. */
.journey::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--blue));
}

.journey li { position: relative; }

.journey-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: 0 0 0 6px var(--paper);
}

.journey li:nth-child(2) .journey-icon { background: var(--accent-strong); }
.journey-icon svg { width: 1.5rem; height: 1.5rem; }
.journey h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.journey p { margin: 0; color: var(--text-muted); }

.faces-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.faces-link:hover span:last-child { text-decoration: underline; }
.faces { display: flex; }

.faces > * {
  width: 3rem;
  height: 3rem;
  margin-left: -0.6rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.faces > :first-child { margin-left: 0; }

@media (max-width: 860px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .journey::before { top: 1.75rem; bottom: 1.75rem; left: 1.75rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent-strong), var(--blue)); }
  .journey li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1.1rem; }
  .journey-icon { grid-row: span 2; margin: 0; }
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.person-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-s);
  object-fit: cover;
  background: var(--blue-wash);
}

/* Monogram tiles stand in for staff photos. To use a photo instead, replace
   <span class="person-photo person-placeholder" aria-hidden="true">PW</span>
   with <img class="person-photo" src="assets/team/name.jpg" alt="" width="480"
   height="480" loading="lazy" decoding="async"> (a square image, 480px+). */
.person-placeholder {
  display: grid;
  place-items: center;
  background: var(--navy);
  background:
    radial-gradient(130% 100% at 100% 0%, var(--monogram-glow) 0%, transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.person-photo.person-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.75rem, 2.2rem + 1.8vw, 3.75rem);
  letter-spacing: 0.03em;
}

.person-photo.person-placeholder::after {
  content: "";
  width: 1.75rem;
  height: 3px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: var(--accent);
}

.faces .person-placeholder { font-size: 0.8rem; letter-spacing: 0.02em; }
.person h3 { margin-bottom: 0.15em; font-size: var(--step-1); }
.person-role { margin-bottom: 0.75rem; color: var(--accent-strong); font-weight: 700; font-size: var(--step--1); }
.person p:last-child { margin: 0; color: var(--text-muted); font-size: var(--step--1); }

/* ---------- Rating & featured quote ---------- */

.stars { display: block; color: #b45309; font-size: 1.1rem; letter-spacing: 0.1em; line-height: 1; margin-bottom: 0.9rem; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--step--1);
}

.rating .stars { margin: 0; }
.rating strong { color: var(--navy); }

.quote-featured { background: var(--navy); border-color: var(--navy); }
.quote-featured blockquote { color: var(--on-dark); font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.quote-featured figcaption, .quote-featured figcaption strong { color: var(--on-dark-muted); }
.quote-featured figcaption strong { color: var(--on-dark); }
.quote-featured .stars { color: #f5c451; }

/* ---------- Areas ---------- */

.area-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-group {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.area-group:first-child { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.area-group:first-child p { color: var(--on-dark-muted); }
.area-group:first-child .town-list li { background: rgb(255 255 255 / 12%); color: var(--on-dark); }
.area-group h3 { font-size: var(--step-2); }
.area-group p { color: var(--text-muted); }

.town-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.town-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: var(--step--1);
}

.area-group:first-child .town-list li { border-color: transparent; }

/* ---------- Needs chooser ---------- */

.needs-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.needs-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.needs-list li > span { flex: 1 1 18rem; font-weight: 600; }
.needs-list .link-arrow { color: var(--accent-strong); }

.next-steps { margin: 0 0 1rem; padding-left: 1.25rem; }
.next-steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.next-steps li::marker { color: var(--accent-strong); font-weight: 800; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--navy-deep);
  color: var(--on-dark-muted);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand img {
  width: 150px;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-s);
  background: var(--surface);
  box-sizing: content-box;
}

.footer-brand p { max-width: 34ch; }
.site-footer h2 { margin-bottom: 1rem; color: var(--on-dark); font-size: var(--step-0); letter-spacing: 0; }
.footer-links { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgb(255 255 255 / 35%); }
.site-footer a:hover { text-decoration-color: currentColor; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
}

.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* ---------- 404 ---------- */

.error-page { min-height: 60vh; display: grid; align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .header-phone { padding: 0.6rem; border-radius: 50%; }
  .header-phone:hover { background: var(--blue-wash); }
  .nav-list a { padding-inline: 0.6rem; }
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid .stack { max-width: 560px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
}

/* Mobile navigation. Without JS, assets/no-js.css shows the links inline. */
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { width: 130px; }
  .header-inner { gap: 0.5rem; }
  .header-actions { order: 2; margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgb(16 35 63 / 12%);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-list a { padding: 0.85rem 1rem; border-radius: var(--radius-s); font-size: var(--step-1); }
  .primary-nav .nav-mobile-cta { display: block; margin: 0.75rem 0 0; }
  .nav-mobile-cta .btn { width: 100%; }
}

.nav-mobile-cta { display: none; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .principles li { padding-right: 0; }
  .faq summary { padding-right: 2.5rem; }
  .faq .faq-answer { padding-right: 0; }
  .cta-band .btn { width: 100%; }
}

@media (max-width: 360px) {
  .header-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover, .card-linked:hover { transform: none; }
}

@media print {
  .site-header, .skip-link, .nav-toggle, .cta-band, form { display: none !important; }
  body { background: #fff; color: #000; }
  .section-dark, .on-dark, .site-footer { background: #fff; color: #000; }
}

.area-highlight { margin-top: 1.25rem; }
.area-highlight h3 { font-size: var(--step-2); }
.wider-team { margin-top: 1.5rem; }
.wider-team h3 { font-size: var(--step-2); }
.wider-team p:last-child { margin: 0; }

/* ---------- Blog ---------- */

.post .page-hero h1 { max-width: none; font-size: var(--step-4); }
.post-meta { margin: 0; color: var(--text-muted); font-size: var(--step--1); font-weight: 600; }
.post-body { font-size: var(--step-1); line-height: 1.7; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: var(--step-3); margin-top: 1.6em; }
.post-body h3 { font-size: var(--step-2); margin-top: 1.4em; }
.post-body li { margin-bottom: 0.4em; }

.post-body blockquote {
  margin: 1.5em 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--accent-strong);
  background: var(--accent-wash);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-weight: 600;
}

.post-body blockquote p { margin: 0; }
.post-back { margin: 2.5rem 0 0; }
.post-card h2 { margin-bottom: 0.45em; font-size: var(--step-2); }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-linked:has(h2 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.post-card h2 a:focus-visible { outline: none; }

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-size: var(--step--1);
  font-weight: 700;
}

.post-card-meta time { color: var(--text-muted); font-weight: 600; }
.blog-empty { max-width: 640px; }
.blog-empty h2 { font-size: var(--step-2); }

/* Post images: 1600 x 840 JPEGs. */
.post .page-hero:has(.post-figure) { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.post-figure { margin: clamp(1.75rem, 1.25rem + 2vw, 2.5rem) 0 0; }

.post-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-wash);
  box-shadow: var(--shadow);
}

.post-card { overflow: hidden; }

.post-card-image {
  display: block;
  width: calc(100% + 2 * var(--card-pad));
  max-width: none;
  height: auto;
  aspect-ratio: 40 / 21;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 1.25rem;
  object-fit: cover;
  background: var(--blue-wash);
}

/* Tables, code and rules inside posts. */
.post-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.post-body code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--blue-wash); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; }

.post-body pre {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: var(--radius-s);
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: var(--step--1);
  line-height: 1.55;
}

.post-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.post-body .table-wrap { margin: 1.5em 0; overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.post-body th, .post-body td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body thead th { border-bottom: 2px solid var(--navy); }
