/* Apsley Technical Services — site styles
   Brand colours are sampled from the ATS logo. */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-900.woff2") format("woff2"); }

:root {
  /* Logo colours */
  --brand-blue: #085587;
  --brand-green: #00955e;
  --brand-red: #ea4b5f;
  --brand-grey: #575656;

  /* Accessible working tones derived from them */
  --blue-700: #063f65;
  --blue-900: #0b2a40;
  --green-700: #007a4d;
  --red-700: #c8364a;
  --ink: #14212b;
  --text: #3c4147;
  --muted: #575656;
  --line: #dde3e8;
  --surface: #f2f5f7;
  --white: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c4cc;
  --green-on-dark: #6fd3a4;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 43, 0.06), 0 2px 8px rgba(20, 33, 43, 0.06);
  --shadow-md: 0 6px 24px rgba(20, 33, 43, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
  --max: 1200px;
  --header-h: 72px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; --header-h: 88px; } }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

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

a {
  color: var(--brand-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover { color: var(--blue-700); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.site-footer :focus-visible,
.call-bar :focus-visible { outline-color: var(--white); }

.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: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.nowrap { white-space: nowrap; }

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
}

.measure { max-width: 68ch; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-sm); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--brand-blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }

.btn--secondary { background: var(--white); color: var(--brand-blue); border-color: var(--brand-blue); }
.btn--secondary:hover { background: var(--brand-blue); color: var(--white); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--brand-blue); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn .arrow, .arrow-link .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .arrow-link:hover .arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; border-radius: 6px; }
.brand img { width: 108px; height: auto; }
@media (min-width: 1100px) { .brand img { width: 126px; } }

.menu-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.menu-toggle:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); color: var(--ink); }
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
.is-menu-open .menu-toggle .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.is-menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-toggle .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile navigation: works without JavaScript through :target,
   main.js upgrades it to a button with aria-expanded. */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(20, 33, 43, 0.12);
}
.site-nav:target,
.is-menu-open .site-nav { display: block; animation: nav-slide 0.25s var(--ease); }
@keyframes nav-slide { from { transform: translateY(-8px); } to { transform: none; } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.nav-list { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.nav-list a .arrow { width: 20px; height: 20px; flex: none; color: var(--brand-blue); transition: transform 0.25s var(--ease); }
.nav-list a:hover .arrow { transform: translateX(4px); }
.nav-list a[aria-current="page"] { color: var(--brand-blue); }
.nav-close { display: block; padding: 0 var(--gutter) 20px; }
.nav-close a { font-weight: 700; }
.js .nav-close { display: none; }

.header-call { display: none; }

@media (min-width: 1180px) {
  .menu-toggle, .nav-close { display: none; }
  .site-nav,
  .site-nav:target {
    display: block;
    position: static;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .nav-list { display: flex; gap: 2px; padding: 0; }
  .nav-list a {
    position: relative;
    padding: 10px 12px;
    border: 0;
    font-size: 0.98rem;
    border-radius: 8px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .nav-list a .arrow { display: none; }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover { color: var(--brand-blue); background: var(--surface); }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .header-call { display: inline-flex; min-height: 44px; padding: 10px 18px; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-grid { display: grid; }
.hero-copy { padding: 40px 0 44px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lead { color: var(--on-dark-muted); max-width: 52ch; }
.hero .lead strong { color: var(--white); font-weight: 700; }
.hero-media {
  margin: 0 calc(var(--gutter) * -1);
  aspect-ratio: 16 / 9;
  position: relative;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--brand-red); }
.dots i:nth-child(2) { background: var(--brand-green); }
.dots i:nth-child(3) { background: #2d86c4; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: stretch; min-height: 560px; }
  .hero-copy { padding: 80px 48px 88px 0; align-self: center; }
  .hero-media {
    margin: 0 calc((100vw - min(100vw, calc(var(--max) + var(--gutter) * 2))) / -2 - var(--gutter)) 0 0;
    aspect-ratio: auto;
  }
  .hero-media::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 120px; z-index: 1;
    background: linear-gradient(90deg, var(--ink), rgba(20, 33, 43, 0));
  }
}

/* Key facts strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.facts > div {
  padding: 20px 16px 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.facts > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.facts > div:nth-child(even) { padding-left: 16px; }
.facts dt { font-size: 0.95rem; color: var(--on-dark-muted); order: 2; }
.facts dd { margin: 0 0 2px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; color: var(--white); line-height: 1.15; }
.facts > div { display: flex; flex-direction: column; }
.facts > div dd { order: 1; }
@media (min-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr 1.3fr 1.2fr; }
  .facts > div,
  .facts > div:nth-child(odd),
  .facts > div:nth-child(even) { padding: 26px 24px; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.14); }
  .facts > div:first-child { padding-left: 0; }
  .facts > div:last-child { border-right: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.125rem; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .split--wide-left { grid-template-columns: 1.4fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.4fr; }
  .split--center { align-items: center; }
}

/* ---------- Home: service index ---------- */

.service-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}
.service-link .thumb { display: none; }
.service-link h3 { margin: 0 0 6px; transition: color 0.2s var(--ease); }
.service-link p { margin: 0; color: var(--muted); }
.service-link .go {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--brand-blue);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-link .go svg { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.service-link:hover h3 { color: var(--brand-blue); }
.service-link:hover .go { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.service-link:hover .go svg { transform: translateX(3px); }

@media (min-width: 700px) {
  .service-link { grid-template-columns: 200px 1fr auto; gap: 28px; padding: 26px 0; }
  .service-link .thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
  }
  .service-link .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
  .service-link:hover .thumb img { transform: scale(1.05); }
}

/* Full list of services (two columns, coloured markers from the logo) */
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dot-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.dot-list li::before {
  content: "";
  position: absolute; left: 2px; top: 1.1em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-blue);
}
.dot-list li:nth-child(3n + 1)::before { background: var(--brand-red); }
.dot-list li:nth-child(3n + 2)::before { background: var(--brand-green); }
.dot-list a { color: inherit; }
.dot-list a:hover { color: var(--brand-blue); }
@media (min-width: 640px) { .dot-list--cols { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- Quote / statement ---------- */

.statement {
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 4px solid var(--brand-green);
}
.statement p {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 700;
}
.section--dark .statement p { color: var(--white); }
.statement footer { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.section--dark .statement footer { color: var(--on-dark-muted); }

/* ---------- Inner page header ---------- */

.page-head { padding: 32px 0 0; background: var(--surface); }
@media (min-width: 900px) { .page-head { padding-top: 56px; } }
.breadcrumb { margin: 0 0 18px; font-size: 0.95rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: #9aa4ac; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-blue); }
.page-head-grid { display: grid; gap: 20px; padding-bottom: 36px; }
.page-head h1 { margin-bottom: 0.35em; }
.page-head .lead { max-width: 60ch; }
.page-head .btn-row { margin-top: 20px; }
@media (max-width: 899px) {
  .page-head .btn-row { display: none; }
}
@media (min-width: 900px) {
  .page-head-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; padding-bottom: 48px; }
  .page-head .btn-row { justify-content: flex-end; margin: 0; }
}
.page-banner {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--line);
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .page-banner { aspect-ratio: 1500 / 430; } }

/* ---------- Article layout with side panel ---------- */

.content-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; }
  .content-grid aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--brand-blue); }
.prose ul.dot-list, .prose ul.check-list { padding-left: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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 / 14px no-repeat;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel h2, .panel h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
.panel--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark-muted); }
.panel--dark h2, .panel--dark h3 { color: var(--white); }
.panel--dark a:not(.btn) { color: var(--white); }
.panel .btn { width: 100%; margin-top: 10px; }
.panel-phone {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.panel-phone:hover { text-decoration: underline; }
.panel small { display: block; font-size: 0.92rem; }

/* Key-figure list used on service pages */
.figures { display: grid; gap: 0; margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.figures > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.figures dt { color: var(--muted); font-size: 0.95rem; order: 2; }
.figures dd { margin: 0; color: var(--ink); font-weight: 900; font-size: 1.25rem; order: 1; }
@media (min-width: 640px) {
  .figures { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* Service points: label left, description right */
.points { margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.points > div { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points dt { font-weight: 900; color: var(--ink); font-size: 1.1rem; }
.points dd { margin: 0; }
@media (min-width: 640px) { .points > div { grid-template-columns: 200px 1fr; } }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; margin: 0 0 1.6em; padding: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 900;
}
.steps li::after {
  content: "";
  position: absolute; left: 21px; top: 44px; bottom: 2px;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 4px; font-size: 1.15rem; }
.steps p { margin: 0; }

/* Values: alternating numbered rows */
.values-list { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.values-list li {
  counter-increment: v;
  display: grid;
  gap: 8px 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.values-list li:last-child { border-bottom: 1px solid var(--line); }
.values-list h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); display: flex; align-items: baseline; gap: 16px; }
.values-list h2::before {
  content: "0" counter(v);
  font-size: 1rem;
  font-weight: 900;
  color: var(--green-700);
  min-width: 2ch;
}
.values-list li:nth-child(2) h2::before { color: var(--red-700); }
.values-list li:nth-child(3) h2::before { color: var(--brand-blue); }
.values-list p { margin: 0; font-size: 1.125rem; max-width: 56ch; }
@media (min-width: 900px) {
  .values-list li { grid-template-columns: 5fr 7fr; align-items: baseline; padding: 48px 0; }
}

/* Mission / vision pair */
.pair { display: grid; gap: 24px; }
@media (min-width: 800px) { .pair { grid-template-columns: 1.25fr 1fr; } }
.pair .panel p { font-size: 1.125rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand-blue);
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band .cta-inner { display: grid; gap: 24px; position: relative; z-index: 1; }
.cta-band .btn-row { margin-top: 0; }
@media (min-width: 900px) {
  .cta-band { padding: 72px 0; }
  .cta-band .cta-inner { grid-template-columns: 1.4fr auto; align-items: center; gap: 48px; }
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 0.92rem; color: var(--muted); margin: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #9aa4ac;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314212b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(8, 85, 135, 0.2);
}
.field .error { display: none; margin: 0; color: var(--red-700); font-weight: 700; font-size: 0.95rem; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red-700); }
.field.has-error .error { display: block; }
.form-note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-send-error { margin: 0; color: var(--red-700); font-weight: 700; }
/* Spam trap: hidden from people, filled in by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #e9f7f0;
  border: 1.5px solid var(--green-700);
  color: var(--ink);
  animation: nav-in 0.35s var(--ease);
}
.form-success h2, .form-success h3 { margin-bottom: 0.3em; font-size: 1.35rem; }
.form-success:focus { outline: none; box-shadow: 0 0 0 4px rgba(0, 122, 77, 0.25); }

/* ---------- Contact details ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-blue);
  border: 1px solid var(--line);
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-list p, .contact-list address { margin: 0; font-style: normal; }
.contact-list .big { font-size: 1.35rem; font-weight: 900; text-decoration: none; }
.contact-list .big:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; color: var(--ink); padding-right: 16px; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- Privacy page ---------- */

.toc { font-size: 0.98rem; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal h2 { font-size: 1.5rem; padding-top: 8px; }
.legal h3 { font-size: 1.15rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 64px 0 28px;
  font-size: 0.98rem;
}
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--white); }
.site-footer h2 { font-size: 1rem; color: var(--white); margin: 0 0 14px; font-weight: 700; letter-spacing: 0; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand img { width: 120px; margin-bottom: 20px; }
.footer-brand blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--on-dark-muted); max-width: 42ch; }
.footer-brand blockquote p::before { content: "\201C"; }
.footer-brand blockquote p::after { content: "\201D"; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.footer-links a:hover { text-decoration: underline; transform: translateX(3px); }
.footer-contact address { font-style: normal; margin-bottom: 12px; }
.footer-contact .phone { font-size: 1.25rem; font-weight: 900; text-decoration: none; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Mobile call bar ---------- */

.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(20, 33, 43, 0.1);
}
.call-bar .btn { min-height: 50px; padding: 10px 8px; gap: 6px; font-size: 0.95rem; white-space: nowrap; }
.call-bar .btn:hover { transform: none; box-shadow: none; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 404 ---------- */
.not-found { padding: 96px 0; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .call-bar, .cta-band, .site-footer nav { display: none; }
  body { padding: 0; }
}
