@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #1C2B45;
  --teal: #0F9E8C;
  --teal-text: #0B7A6C;
  --teal-tint: #E7F4F2;
  --zebra: #F3F4F6;
  --border: #C9CCCF;
  --muted: #6B7280;
  --text: #222222;
  --white: #FFFFFF;
  --error: #B42318;
  --teal-on-navy: #3AD0BD;
  --navy-deep: #121D30;
  --muted-on-navy: #B9C5D1;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* The column is at most 1072px of content, plus a gutter on each side. */
.column {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Short pages still put the footer at the bottom of the screen. */
main {
  flex: 1 0 auto;
  width: 100%;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  color: var(--navy);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--teal-text);
  transition: color 150ms, background-color 150ms, border-color 150ms;
}

.icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

a:hover, a:focus-visible { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Header */
.header-band { background: var(--navy); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 4px;
}

.logo-link { display: block; min-width: 0; }

.logo-header {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Author styles keep the popover nav in the page flow on wide screens. */
.site-nav {
  display: block;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible {
  border-bottom-color: var(--teal-on-navy);
  color: var(--teal-on-navy);
}

.site-nav a[aria-current="page"] { border-bottom-color: var(--teal-on-navy); }

.site-header :focus-visible { outline-color: var(--white); }

/* The wave hangs under the header. The negative margin closes the hairline seam. */
.wave {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: -1px;
}

.wave-line {
  fill: none;
  stroke: var(--teal-on-navy);
  stroke-width: 3px;
}

.wave-fill { fill: var(--navy); }

.menu-button { display: none; }

/* Hero and page titles */
.page-title { padding: 32px 0 8px; }

/* Positioned, so the hero text and button paint over the contours behind them. */
.hero { position: relative; padding: 40px 0 24px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12em;
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* The accented words keep their own line, so they are never split. */
.accent {
  display: block;
  color: var(--teal-text);
}

.hero .subtitle { max-width: 34em; margin-bottom: 32px; }

/* A white ground hugging each line keeps contour lines out from behind the grey text. */
.hero .subtitle span {
  background: var(--white);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-title h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 800;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 21px;
}

/* Depth contours sit behind the hero, passing under the end of the headline and running off the right edge.
   They reach up under the header wave, so the header is stacked above them. */
.hero-area { position: relative; }

.site-header {
  position: relative;
  z-index: 1;
}

.contours {
  position: absolute;
  top: -44px;
  left: 0;
  width: 100%;
  height: calc(100% + 44px);
  pointer-events: none;
}

.contour {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1px;
  stroke-opacity: 0.09;
}

.contour-major { stroke-opacity: 0.18; }

.depth {
  fill: var(--teal-text);
  stroke: var(--white);
  stroke-width: 5px;
  paint-order: stroke;
  opacity: 0.7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Home page bands */
.band { padding: 64px 0; }

.band-title {
  margin: 0 0 32px;
  font-size: 38px;
  font-weight: 800;
}

/* Services: a two-column list of linked rows */
.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  border-top: 1px solid var(--border);
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 24px 12px;
  color: var(--text);
  text-decoration: none;
}

.row:hover, .row:focus-visible {
  background: var(--zebra);
  color: var(--text);
}

.row .icon { color: var(--teal-text); }

.row .arrow { align-self: center; }

.row-text { flex: 1; min-width: 0; }

.row-number, .panel-number {
  display: block;
  color: var(--teal-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.row h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.row p {
  margin: 0;
  font-size: 15px;
}

/* Systems: panels on navy, two large above three smaller */
.band-navy { background: var(--navy); }

.band-navy .eyebrow { color: var(--teal-on-navy); }

.band-navy .band-title { color: var(--white); }

.panels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panels li {
  display: flex;
  grid-column: span 2;
}

.panels li:nth-child(-n+2) { grid-column: span 3; }

.panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  background: color-mix(in srgb, var(--white) 5%, transparent);
  color: var(--muted-on-navy);
  text-decoration: none;
}

.panel:hover, .panel:focus-visible {
  border-color: var(--teal-on-navy);
  color: var(--muted-on-navy);
}

.band-navy :focus-visible, .enquiry-band :focus-visible { outline-color: var(--white); }

.panel-number { color: var(--teal-on-navy); }

.panel-total::before { content: "/ "; }

.panel h3 {
  margin: 16px 0 10px;
  color: var(--white);
  font-size: 20px;
}

.panel p {
  margin: 0 0 24px;
  font-size: 15px;
}

.panels li:nth-child(-n+2) .panel { padding: 32px; }

.panels li:nth-child(-n+2) h3 { font-size: 26px; }

.panels li:nth-child(-n+2) p { font-size: 17px; }

.panel-more {
  margin-top: auto;
  color: var(--teal-on-navy);
  font-size: 15px;
  font-weight: 600;
}

/* Enquiry band */
.enquiry-band {
  padding: 56px 0;
  background: var(--navy-deep);
  color: var(--muted-on-navy);
}

.enquiry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.enquiry-band h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 30px;
}

.enquiry-band p { margin: 0; }

/* The band meets the footer without a gap. */
main:has(.enquiry-band) + .site-footer { margin-top: 0; }

/* Numbered sections */
.offer { margin-top: 40px; }

.section-heading {
  display: flex;
  align-items: stretch;
}

.tile {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  align-self: flex-end;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.tile-teal { background: var(--teal-text); }

.tile-navy { background: var(--navy); }

.section-heading h2 {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 6px 0 6px 14px;
  border-bottom: 2px solid var(--navy);
  font-size: 28px;
}

.bullets { padding-left: 22px; }

.bullets li { list-style: disc; }

.bullets li::marker { color: var(--teal); }

/* Meta grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.meta-cell {
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--teal);
}

.meta-cell dt {
  color: var(--teal-text);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-cell dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.meta-cell dd a { color: var(--navy); }

.meta-cell dd a:hover, .meta-cell dd a:focus-visible { color: var(--teal-text); }

/* Button */
.button {
  display: inline-block;
  padding: 10px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--teal-text);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}

.button:hover, .button:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.button:disabled {
  background: var(--muted);
  cursor: default;
}

.button-on-navy {
  background: var(--teal-on-navy);
  color: var(--navy-deep);
}

.button-on-navy:hover, .button-on-navy:focus-visible {
  background: var(--white);
  color: var(--navy-deep);
}

/* Form */
.enquiry { max-width: 640px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-weight: 700;
}

.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--zebra);
  color: var(--text);
  font: inherit;
  transition: border-color 150ms;
}

/* One pixel less padding keeps the text still when the border thickens. */
.field input:focus, .field select:focus, .field textarea:focus {
  padding: 8px 10px;
  border: 2px solid var(--teal);
}

.field textarea { resize: vertical; }

.error {
  margin: 4px 0 0;
  color: var(--error);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile { margin-bottom: 18px; }

.form-status { margin-bottom: 18px; }

.form-status p { margin: 0; }

.notice {
  padding: 16px 20px;
  border-left: 4px solid var(--teal);
  background: var(--teal-tint);
}

.privacy { max-width: 640px; }

/* Footer */
.site-footer { margin-top: 64px; }

.footer-band {
  padding: 18px 0 28px;
  border-top: 3px solid var(--teal-on-navy);
  background: var(--navy);
  color: var(--white);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-footer {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-contact {
  font-size: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
  overflow-wrap: anywhere;
}

.site-footer a { color: var(--white); }

.site-footer a:hover, .site-footer a:focus-visible { color: var(--teal-on-navy); }

.site-footer :focus-visible { outline-color: var(--white); }

.copyright {
  margin: 24px 0 0;
  font-size: 15px;
}

/* Motion, for visitors who have not asked their device to reduce it. */
@media (prefers-reduced-motion: no-preference) {
  /* Slow enough to be seen: it starts after the page has appeared. */
  .wave-line { animation: wave-draw 2.4s ease-in-out 0.4s both; }

  @keyframes wave-draw {
    from { clip-path: inset(-20% 100% -20% 0); }
    to { clip-path: inset(-20% 0 -20% 0); }
  }

  .button, .row, .panel, .arrow { transition: color 150ms, background-color 150ms, border-color 150ms, translate 150ms; }

  /* The list item stays put while its link moves, so the pointer never slips off. */
  .rows li:hover .row, .row:focus-visible { translate: 4px 0; }

  .panels li:hover .panel, .panel:focus-visible { translate: 0 -4px; }

  .button:hover:not(:disabled), .button:focus-visible { translate: 0 -2px; }

  .row:hover .arrow, .row:focus-visible .arrow, .panel:hover .arrow, .panel:focus-visible .arrow, .button:hover .arrow, .button:focus-visible .arrow { translate: 4px 0; }
}

/* An open menu is lifted out of the page. If the screen widens while it is open, put it where the wide menu sits. */
@media (min-width: 720px) {
  .site-nav:popover-open {
    position: fixed;
    inset: 18px max(24px, calc(50% - 536px)) auto auto;
    background: var(--navy);
  }
}

@media (max-width: 959.98px) {
  /* No room beside the headline on narrower screens. */
  .contours { display: none; }

  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .panels li, .panels li:nth-child(-n+2) { grid-column: span 1; }

  .panels li:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (max-width: 719.98px) {
  .band { padding: 48px 0; }

  .band-title { font-size: 30px; }

  .hero .eyebrow { font-size: 12px; letter-spacing: 0.08em; }

  .rows { grid-template-columns: minmax(0, 1fr); }

  /* The arrow moves to the corner, so the text gets the width. */
  .row { position: relative; gap: 12px; padding: 20px 4px; }

  .row .icon { width: 24px; height: 24px; }

  .row .arrow { position: absolute; top: 20px; right: 4px; width: 18px; height: 18px; }

  .panels { grid-template-columns: minmax(0, 1fr); }

  .panels li, .panels li:nth-child(-n+2), .panels li:last-child:nth-child(odd) { grid-column: span 1; }

  .panels li:nth-child(-n+2) .panel { padding: 24px; }

  .panels li:nth-child(-n+2) h3 { font-size: 22px; }

  .meta-grid { grid-template-columns: minmax(0, 1fr); }

  .menu-button {
    display: block;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--white);
    border-radius: 2px;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color 150ms, background-color 150ms, border-color 150ms;
  }

  .menu-button:hover, .menu-button:focus-visible {
    background: var(--white);
    color: var(--navy);
  }

  .site-nav:not(:popover-open) { display: none; }

  /* 70px is the header row: 10px + the 56px logo + 4px. */
  .site-nav:popover-open {
    position: fixed;
    inset: 70px 0 auto 0;
    width: 100%;
    max-height: calc(100% - 70px);
    overflow: auto;
    border-bottom: 3px solid var(--teal-on-navy);
    background: var(--navy);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .footer-contact { text-align: left; }
}
