/* Layout and components. Loads after tokens.css.
   Every colour comes from a token. Do not introduce a literal here. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: break-word;
}

/* ---- Skip link. First thing in the tab order. ---- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  text-decoration: underline;
}
.skip:focus {
  left: 0;
}

/* ---- Layout ---- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

main { display: block; }

.prose {
  max-width: var(--measure);
}

/* ---- Header. Dark: background var(--navy). ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  margin-right: auto;
}
.brand-link img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-on-navy);
  border-radius: 2px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: var(--w-semibold);
  color: var(--on-navy);
  cursor: pointer;
  min-height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex: 1 1 auto;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav > ul > li { position: relative; }

.site-nav a {
  display: inline-block;
  padding-block: 6px;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--on-navy);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.site-nav a:visited { color: var(--on-navy); }

/* ---- Disclosure menus: Services, Sectors ---- */

.nav-disclosure {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--on-navy);
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-disclosure::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.nav-disclosure:hover,
.nav-disclosure[aria-expanded="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.disclosure-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 10px;
  padding: 10px;
  background: var(--navy-lift);
  border: 1px solid var(--rule-on-navy);
  border-radius: 2px;
  z-index: 60;
}
.disclosure-menu[data-open="true"] { display: block; }
.disclosure-menu ul {
  display: block;
  gap: 0;
}
.disclosure-menu li { margin: 0; }
.disclosure-menu a {
  display: block;
  padding: 8px 10px;
}

.header-enquire {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid var(--rule-on-navy);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav li + li { border-top: 1px solid var(--rule-on-navy); }
  .site-nav a, .nav-disclosure { padding-block: 13px; min-height: 44px; width: 100%; }
  .disclosure-menu {
    position: static;
    margin-top: 0;
    border: 0;
    background: none;
    padding: 0 0 0 14px;
  }
  .header-enquire { width: 100%; text-align: center; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--navy);
}
@media (min-width: 700px) {
  .hero { min-height: 70vh; }
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      rgba(27, 42, 65, 0.93) 0%,
      rgba(27, 42, 65, 0.86) 34%,
      rgba(27, 42, 65, 0.52) 68%,
      rgba(27, 42, 65, 0.30) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero-text {
  max-width: 36ch;
}
.hero h1 { overflow-wrap: normal; }   /* never break inside a word in the headline */
.hero h1 {
  font-weight: var(--w-light);
  font-size: var(--hero-size);
  line-height: 1.15;
  color: var(--on-navy);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero-support {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--on-navy-muted);
  margin: 0 0 28px;
}
.hero .actions { margin-top: 0; }

/* ---- Band and title band ---- */

.band {
  background: var(--bg);
  padding-block: clamp(56px, 8vw, 120px);
}
.band--panel { background: var(--bg-panel); }

/* A page with no bands of its own (the legals, the funding article) gets one
   plain band. Centre its column: a 633px column hard against the left of a
   1120px wrap is what made every page look lopsided. */
.band--plain .prose { margin-inline: auto; }

/* First heading in a band already has the band's own top padding above it. */
.band .prose > h2:first-child,
.band .prose > h3:first-child { margin-top: 0; }

.band--navy {
  background: var(--navy);
  color: var(--on-navy);
}
.band--navy h1, .band--navy h2, .band--navy h3, .band--navy h4 {
  color: var(--on-navy);
}
.band--navy a { color: var(--on-navy); }
.band--navy .eyebrow { color: var(--on-navy-muted); }

.hero-band {
  padding-block: clamp(40px, 6vw, 72px);
}
.hero-band h1 {
  font-weight: var(--w-light);
  font-size: var(--hero-size);
  line-height: 1.15;
  color: var(--on-navy);
  margin: 0;
  max-width: 30ch;
  letter-spacing: -0.02em;
}

/* ---- Eyebrow ---- */

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

/* ---- Typography in flow ---- */

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
h2 { font-size: var(--h2-size); font-weight: var(--w-semibold); letter-spacing: -0.02em; margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: var(--w-semibold); margin-top: 1.5em; }
p, ul, ol, table { margin: 0 0 1.15em; }
p { line-height: 1.6; }
li { margin-bottom: 0.4em; }
strong { font-weight: var(--w-semibold); }

/* ---- Buttons. Filled navy on light; outlined on-navy on navy. ---- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: var(--w-semibold);
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  background: var(--navy-lift);
  border-color: var(--navy-lift);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--on-navy);
  color: var(--on-navy);
}
.btn--outline:hover {
  background: var(--rule-on-navy);
  color: var(--on-navy);
}

/* A .btn placed on a navy ground outside .hero/.band--navy (e.g. the
   header Enquire button) needs the on-navy pairing, not the light-ground
   fill, or it disappears against the header. */
.site-header .btn {
  background: var(--on-navy);
  border-color: var(--on-navy);
  color: var(--navy);
}
.site-header .btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* ---- Grids and cards ---- */

.grid-3, .grid-2 {
  display: grid;
  gap: 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(138, 133, 120, 0.35);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  padding: 24px 22px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(27, 42, 65, 0.10);
}
.card h3 a { text-decoration-thickness: 1px; }
.card:hover h3 a { text-decoration-thickness: 2px; }

/* ---- Spec table. Two-column table for the services pages. ---- */

.spec-table th:first-child,
.spec-table td:first-child {
  color: var(--text-secondary);
}

/* ---- Project entries ---- */

.project img { display: block; width: 100%; height: auto; margin-bottom: 16px; }
.project .eyebrow { margin-bottom: 6px; }
.project h3 { margin-top: 0; }
.project ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project ul li {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 6px 11px;
  font-size: 0.875rem;
  margin: 0;
}

/* ---- Credentials strip ---- */

.creds {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.creds li {
  padding: 10px 16px;
  font-size: 0.9375rem;
  margin: 0;
  border-left: 1px solid var(--rule);
}
.creds li:first-child { border-left: 0; }
@media (max-width: 700px) {
  .creds { grid-template-columns: repeat(3, 1fr); }
  .creds li:nth-child(3n+1) { border-left: 0; }
  .creds li:nth-child(n+4) { border-top: 1px solid var(--rule); padding-top: 14px; }
}

/* ---- Callout ---- */

.callout {
  background: var(--bg-panel);
  border-left: 4px solid var(--navy);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

.callout-urgent { border-left-color: var(--urgent); }
.callout-urgent p strong { color: var(--urgent); }

/* ---- Tables scroll rather than breaking the page ---- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.15em;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { font-weight: var(--w-semibold); color: var(--heading); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Footer. Dark: background var(--navy). ---- */

.site-footer {
  margin-top: 0;
  padding-block: clamp(32px, 5vw, 52px);
  background: var(--navy);
  color: var(--on-navy);
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 12px;
  color: var(--on-navy-muted);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  font-size: 0.9375rem;
  color: var(--on-navy);
}

.legal-entity {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-on-navy);
  font-size: 0.8125rem;
  color: var(--on-navy-muted);
  max-width: 70ch;
}
.site-footer .creds { border-color: var(--rule-on-navy); }
.site-footer .creds li { border-left-color: var(--rule-on-navy); }
.site-footer .creds li:nth-child(n+4) { border-top-color: var(--rule-on-navy); }

/* ---- Enquiry form ---- */

.enquiry-form {
  max-width: 560px;
  margin: 24px 0;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: var(--w-semibold);
  color: var(--heading);
  margin-bottom: 6px;
}

.form-row .required {
  font-weight: var(--w-regular);
  color: var(--text-secondary);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="file"],
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 12px;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--focus-outer);
  outline-offset: 1px;
}

.form-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

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

.form-row--submit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row--submit .btn {
  border: none;
  cursor: pointer;
}

.form-row--submit .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-weight: var(--w-semibold);
}

.form-status--error {
  color: var(--urgent);
}

/* ---- Utility ---- */

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

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

/* ---- Full-width escape from the prose column ---- */

.wide { margin: 24px 0 0; }
.wide table { font-size: 0.9375rem; }

/* ---- Numbered process steps ---- */

.steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 28px 32px;
  grid-template-columns: repeat(2, 1fr);
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.band--navy .steps li::before { color: var(--on-navy-muted); }
.band--navy .steps li { border-top-color: var(--rule-on-navy); }
@media (max-width: 700px) {
  .steps ol { grid-template-columns: 1fr; }
}

/* ---- Photo gallery and single figures ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 28px 0 0;
}
.gallery figure, .figure { margin: 0; }
.figure { margin: 28px 0 0; }
.gallery img, .figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.gallery figcaption, .figure figcaption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 10px;
}
.band--navy .gallery figcaption,
.band--navy .figure figcaption { color: var(--on-navy-muted); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---- The dealer statement, directly under the hero ---- */

.dealer {
  padding-block: clamp(22px, 3vw, 34px);
  background: var(--bg-panel);
}
.dealer .prose {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}
.dealer .prose p {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-secondary);
}

/* ---- Closing call to action ---- */

.cta .prose { max-width: 54ch; margin-inline: auto; text-align: center; }
.cta .actions { justify-content: center; }

/* Buttons on a navy ground: the .band--navy anchor colour would otherwise
   flatten the filled button into the background. */
.band--navy .btn {
  background: var(--on-navy);
  border-color: var(--on-navy);
  color: var(--navy);
  text-decoration: none;
}
.band--navy .btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.band--navy .btn--outline {
  background: transparent;
  border-color: var(--on-navy);
  color: var(--on-navy);
}
.band--navy .btn--outline:hover { background: var(--rule-on-navy); }

/* ---- Tables: banding so long spec tables stay readable ---- */

.prose table tbody tr:nth-child(odd) td,
.wide table tbody tr:nth-child(odd) td {
  background: var(--bg-panel);
}
.band--panel .prose table tbody tr:nth-child(odd) td,
.band--panel .wide table tbody tr:nth-child(odd) td {
  background: var(--white);
}

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