:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --surface-alt: #dfe8f2;
  --surface-blue: #e9f0f8;
  --ink: #10243f;
  --ink-soft: #42546a;
  --muted: #4e6076;
  --line: #b8c4d1;
  --line-strong: #7d91a8;
  --blue: #2f69b2;
  --blue-hover: #1e4f8d;
  --blue-dark: #143866;
  --blue-pale: #dce8f5;
  --white: #ffffff;
  --error: #a53232;
  --success: #226348;
  --focus: #c65127;
  --rail-width: 17.5rem;
  --container: 88rem;
  --reading: 48rem;
  --font-display: Tahoma, Verdana, sans-serif;
  --font-body: "Trebuchet MS", Arial, sans-serif;
  --font-label: Verdana, Tahoma, sans-serif;
  --text-small: clamp(.76rem, .73rem + .08vw, .82rem);
  --text-body: clamp(1rem, .97rem + .12vw, 1.08rem);
  --text-lead: clamp(1.1rem, 1.03rem + .28vw, 1.3rem);
  --h3: clamp(1.16rem, 1.08rem + .26vw, 1.38rem);
  --h2: clamp(1.6rem, 1.4rem + .55vw, 2rem);
  --h1: clamp(2.25rem, 1.77rem + 1.55vw, 3.4rem);
  --space-1: .5rem;
  --space-2: .8rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.6rem;
  --space-6: 4rem;
  --space-7: 5.6rem;
  --button-radius: 999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  min-width: 20rem;
  margin: 0;
  padding-left: var(--rail-width);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

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

img { height: auto; }

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

a:hover { text-decoration-color: var(--blue); }

button,
input,
select { font: inherit; }

button { cursor: pointer; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.noscript {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff4d5;
  color: #4d3a08;
  font-size: .9rem;
  text-align: center;
}

.container {
  width: min(calc(100% - 4rem), var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: var(--reading); }

main,
.site-footer { min-width: 0; }

.section {
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.section--compact { padding-block: var(--space-5); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--blue-dark); color: var(--white); }
.section--danube { background: var(--blue); color: var(--white); }

.eyebrow,
.kicker,
.section-index,
.meta-line {
  margin: 0 0 var(--space-2);
  font-family: var(--font-label);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--blue);
}

.eyebrow::before {
  width: 1.1rem;
  height: .38rem;
  background: currentColor;
  content: "";
}

.section--ink .eyebrow { color: #a9c9ec; }
.section--danube .eyebrow { color: var(--white); }

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { max-width: 22ch; font-size: var(--h1); letter-spacing: -.035em; }
h2 { max-width: 27ch; font-size: var(--h2); letter-spacing: -.026em; }
h3 { font-size: var(--h3); letter-spacing: -.014em; }
h4 { font-size: 1.08rem; }

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

.lead {
  max-width: 62ch;
  font-size: var(--text-lead);
  line-height: 1.55;
}

.muted { color: var(--muted); }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.2rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding-block: .25rem;
  border-bottom: 2px solid var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.text-link::after { content: "↗"; }
.text-link:hover { gap: 1rem; color: var(--blue-hover); }

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .76rem 1.35rem;
  border: 2px solid var(--blue);
  border-radius: var(--button-radius);
  background: var(--blue);
  color: var(--white);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
  transform: translateY(-2px);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--blue-dark);
}

.button--light:hover {
  border-color: var(--surface-blue);
  background: var(--surface-blue);
}

.button--outline {
  background: transparent;
  color: var(--blue-dark);
}

.section--ink .button--outline,
.section--danube .button--outline { color: var(--white); border-color: var(--white); }

.button--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: var(--space-4);
}

/* Vertical procurement-style navigation */
.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail-width);
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
  overflow-y: auto;
}

.rail-head {
  display: flex;
  min-height: 7rem;
  align-items: center;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; text-decoration: none; }
.brand img { width: 100%; max-width: 13.4rem; }

.rail-kicker {
  margin: 0;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--font-label);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rail-nav { display: flex; flex-direction: column; }

.rail-nav__label {
  padding: 1.5rem 1.5rem .65rem;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rail-nav a {
  position: relative;
  display: block;
  padding: .82rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: padding-left .18s ease, background .18s ease, color .18s ease;
}

.rail-nav a:last-child { border-bottom: 1px solid var(--line); }

.rail-nav a:hover {
  padding-left: 1.8rem;
  background: var(--surface-blue);
}

.rail-nav a[aria-current="page"] {
  background: var(--blue-dark);
  color: var(--white);
}

.rail-nav a[aria-current="page"]::before {
  position: absolute;
  top: 50%;
  left: .65rem;
  width: .42rem;
  height: .42rem;
  background: #8fb9e7;
  content: "";
  transform: translateY(-50%);
}

.rail-contact {
  margin-top: auto;
  padding: 1.35rem 1.5rem 1.15rem;
  border-top: 1px solid var(--line-strong);
  background: var(--surface-alt);
}

.rail-contact .meta-line { color: var(--muted); }

.rail-phone {
  display: block;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.rail-cta:hover { background: var(--blue-hover); }

.rail-note {
  margin-top: .9rem;
  color: var(--ink-soft);
  font-size: .74rem;
}

.menu-toggle { display: none; }
.mobile-panel { display: none; }

/* Heroes */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.hero__inner { position: relative; z-index: 2; }

.hero--home {
  display: block;
  min-height: 41rem;
}

.hero--home .hero__image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  height: 100%;
  border-left: 1px solid var(--line-strong);
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(.96);
}

.hero--home .hero__inner {
  display: grid;
  min-height: 41rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .88fr);
  align-items: center;
}

.hero__copy {
  max-width: 49rem;
  padding: 5.5rem clamp(2rem, 5vw, 6rem) 5.5rem 0;
}

.hero__copy h1 { margin-bottom: 1.55rem; }
.hero__copy .lead { color: var(--ink-soft); }

.hero__facts {
  align-self: end;
  margin: 0 0 2.8rem 2.8rem;
  padding: 1.7rem;
  border-top: .45rem solid #8fb9e7;
  background: var(--blue-dark);
  color: var(--white);
}

.hero__facts .meta-line { color: #b9d5f1; }
.hero__facts dl { margin: 0; }

.hero__facts dl div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.hero__facts dt { color: #c9d9e9; }
.hero__facts dd { margin: 0; font-weight: 700; }

.hero--editorial {
  display: grid;
  min-height: 36rem;
  grid-template-columns: minmax(24rem, 5fr) minmax(30rem, 7fr);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6.5rem);
  background: var(--surface);
}

.hero__panel h1 { margin-bottom: 1.5rem; }

.hero__visual {
  position: relative;
  min-height: 36rem;
  border-left: 1px solid var(--line-strong);
  background: var(--blue-pale);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.74) contrast(.96);
}

.hero__stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 8.5rem;
  padding: 1.2rem 1.4rem;
  border-top: .4rem solid #9ac2eb;
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-label);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero--text { background: var(--surface-blue); }

.hero--text .hero__inner {
  display: grid;
  min-height: 29rem;
  grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.hero--text h1 { margin-bottom: 1.4rem; }

.hero__aside {
  padding: 2.1rem;
  border-left: .45rem solid var(--blue);
  background: var(--surface);
  box-shadow: none;
}

.hero__aside .meta-line { color: var(--blue); }

/* Content compositions */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-strong);
}

.section-heading > p { max-width: 38rem; color: var(--ink-soft); }
.section--ink .section-heading > p,
.section--danube .section-heading > p { color: #f4f8fc; }

.split-story {
  display: grid;
  grid-template-columns: minmax(18rem, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.split-story--reverse { grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr); }
.split-story > figure { margin: 0; }
.split-story > .cards { grid-template-columns: 1fr; }

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
}

.image-frame::after {
  position: absolute;
  inset: .7rem;
  border: 1px solid rgba(255, 255, 255, .55);
  content: "";
  pointer-events: none;
}

.image-frame--arch,
.image-frame--cut { border-radius: 0; clip-path: none; }

.image-frame img {
  width: 100%;
  min-height: 24rem;
  object-fit: cover;
  filter: saturate(.78);
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.card {
  position: relative;
  padding: 1.5rem 0 2rem;
  border-top: 3px solid var(--line-strong);
  background: transparent;
  transition: border-color .18s ease, padding-left .18s ease;
}

.card:hover {
  padding-left: .6rem;
  border-color: var(--blue);
}

.card__label {
  margin-bottom: .75rem;
  color: var(--blue);
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section--danube .card__label { color: var(--white); }

.card h3 { margin-bottom: .85rem; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.fact {
  min-height: 12rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.fact strong {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.3vw, 3rem);
  line-height: 1;
}

.fact span { display: block; max-width: 20ch; color: var(--ink-soft); }

.service-index { border-top: 1px solid var(--line-strong); }

.service-row {
  display: grid;
  grid-template-columns: 4rem minmax(12rem, 16rem) minmax(18rem, 1fr) 2rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 6.6rem;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

a.service-row:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.service-row__number { color: var(--blue); font-family: var(--font-label); font-size: .76rem; font-weight: 700; }
a.service-row:hover .service-row__number { color: #9dc5ef; }
.service-row__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.service-row__desc { color: var(--ink-soft); }
a.service-row:hover .service-row__desc { color: #d9e6f3; }
.service-row__arrow { font-size: 1.4rem; text-align: right; }

.timeline {
  counter-reset: plan;
  border-top: 1px solid currentColor;
}

.timeline__step {
  display: grid;
  grid-template-columns: 4rem minmax(13rem, 18rem) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.45rem 0;
  border-bottom: 1px solid currentColor;
  counter-increment: plan;
}

.timeline__step::before {
  color: #9fc6ed;
  content: "0" counter(plan);
  font-family: var(--font-label);
  font-size: .76rem;
  font-weight: 700;
}

.timeline__step p { color: inherit; opacity: .82; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.mosaic figure {
  min-height: 20rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
}

.mosaic figure:nth-child(1) { grid-column: span 7; }
.mosaic figure:nth-child(2) { grid-column: span 5; }
.mosaic figure:nth-child(3) { grid-column: 3 / span 8; min-height: 24rem; }

.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76); }
.mosaic figure:hover img { filter: saturate(1); }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.package {
  display: flex;
  min-height: 25rem;
  flex-direction: column;
  padding: 1.8rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.package__name { color: var(--blue); }
.package__price { min-height: 4.2rem; margin-bottom: 1.4rem; }
.package ul { padding-left: 1.2rem; }
.package .text-link { margin-top: auto; align-self: flex-start; }

.case-note {
  padding: 1.7rem;
  border-left: .4rem solid var(--blue);
  background: var(--surface-blue);
}

.programme-matrix {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: .94rem;
}

.programme-matrix th,
.programme-matrix td {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.programme-matrix th {
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.programme-matrix tbody tr:hover { background: var(--surface-blue); }
.programme-matrix td:first-child { color: var(--blue-dark); font-weight: 700; }

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 3fr) minmax(0, 9fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.chapter-nav {
  position: sticky;
  top: 2rem;
  border-top: 4px solid var(--blue);
  background: var(--surface);
}

.chapter-nav .meta-line { padding: 1.1rem 1.1rem .5rem; color: var(--blue); }

.chapter-nav a {
  display: block;
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.chapter-nav a:hover { background: var(--surface-blue); color: var(--blue-dark); }

.chapter { padding: 0 0 var(--space-6); }
.chapter + .chapter { padding-top: var(--space-6); border-top: 1px solid var(--line-strong); }
.chapter h2 { margin-bottom: 1.2rem; }
.section-index { color: var(--blue); }

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.contact-strip > div {
  padding: 1.35rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.contact-strip small { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.contact-strip strong,
.contact-strip a { overflow-wrap: anywhere; font-weight: 700; }

/* Enquiry funnel */
.enquiry-zone {
  display: grid;
  grid-template-columns: minmax(18rem, 4fr) minmax(30rem, 8fr);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.enquiry-zone__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--blue-dark);
  color: var(--white);
}

.enquiry-zone__intro .eyebrow { color: #9fc6ed; }
.enquiry-zone__intro h2 { margin-bottom: 1.3rem; }
.enquiry-zone__intro a { color: inherit; }

.enquiry-form { padding: clamp(2.5rem, 5vw, 5rem); }

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.field { min-width: 0; }

.field label {
  display: block;
  margin-bottom: .2rem;
  color: var(--blue-dark);
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.3rem;
  padding: .65rem .1rem;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.field input:focus,
.field select:focus { border-bottom-color: var(--blue); outline: 0; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-bottom-color: var(--error); }

.field-error {
  display: block;
  min-height: 1.25rem;
  padding-top: .3rem;
  color: var(--error);
  font-size: .76rem;
}

.checkboxes {
  display: grid;
  gap: .8rem;
  margin: 2rem 0;
}

.checkbox {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: .1rem .75rem;
  align-items: start;
}

.checkbox input { width: 1.15rem; height: 1.15rem; margin: .3rem 0 0; accent-color: var(--blue); }
.checkbox label { color: var(--ink-soft); font-size: .9rem; }
.checkbox .field-error { grid-column: 2; }
.form-status { min-height: 1.4rem; margin-top: 1rem; color: var(--error); font-weight: 700; }
.enquiry-form button[disabled] { cursor: wait; opacity: .72; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item h3 { margin: 0; }

.faq-question {
  position: relative;
  width: 100%;
  padding: 1.35rem 4rem 1.35rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.faq-question::after {
  position: absolute;
  top: 50%;
  right: .5rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  content: "+";
  font-size: 1.25rem;
  line-height: 1.55rem;
  text-align: center;
  transform: translateY(-50%);
}

.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { max-width: 60rem; padding: 0 4rem 1.4rem 0; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--surface); }

.footer-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr);
  gap: 3rem;
  align-items: end;
  padding: clamp(3rem, 6vw, 6rem);
  background: var(--blue);
  color: var(--white);
}

.footer-lead .meta-line { color: var(--white); }
.footer-lead__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-lead__actions > a:last-child { font-weight: 700; }

.footer-directory {
  display: grid;
  grid-template-columns: minmax(18rem, 1.5fr) repeat(3, minmax(10rem, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.footer-directory > div {
  min-width: 0;
  padding: 2.2rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.footer-brand img { width: min(100%, 15rem); margin-bottom: 1.5rem; }
.footer-brand p,
.footer-brand address { color: var(--ink-soft); font-size: .9rem; font-style: normal; }

.footer-rail h2 {
  margin-bottom: 1.2rem;
  color: var(--blue-dark);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-rail nav { display: flex; flex-direction: column; }

.footer-rail a,
.footer-rail button {
  padding: .52rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: .84rem;
  text-align: left;
  text-decoration: none;
}

.footer-rail a:hover,
.footer-rail button:hover { color: var(--blue); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2.2rem;
  background: var(--blue-dark);
  color: #d9e5f1;
  font-size: .75rem;
}

.footer-legal p { margin: 0; }

/* Legal, confirmation and utility pages */
.legal-shell {
  display: grid;
  grid-template-columns: minmax(15rem, 3fr) minmax(0, 9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-block: var(--space-7);
}

.legal-sidebar {
  position: sticky;
  top: 2rem;
  padding: 1.5rem;
  border-top: .45rem solid var(--blue);
  background: var(--surface-blue);
}

.legal-sidebar nav { margin-top: 1.3rem; border-top: 1px solid var(--line); }

.legal-sidebar nav a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-sidebar nav a[aria-current="page"] { color: var(--blue); }

.legal-content {
  min-width: 0;
  padding: clamp(2rem, 5vw, 5rem);
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  overflow-wrap: anywhere;
}

.legal-content h1 { margin-bottom: .8rem; }
.legal-content h2 { margin-top: 2.8rem; margin-bottom: 1rem; font-size: clamp(1.4rem, 1.2rem + .5vw, 1.85rem); }
.legal-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.legal-content ul,
.legal-content ol { padding-left: 1.25rem; }
.legal-content code { white-space: normal; overflow-wrap: anywhere; }
.legal-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.legal-content th,
.legal-content td {
  min-width: 9rem;
  padding: .75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-updated { margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.thank-you {
  min-height: 70vh;
  padding-block: var(--space-7);
  background: var(--surface-blue);
}

.thank-you__card {
  max-width: 58rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-top: .55rem solid var(--blue);
  background: var(--surface);
  text-align: center;
}

.thank-you__card h1 { margin: 0 auto 1.2rem; }
.thank-you__card .lead { margin-inline: auto; }
.thank-you__mark { color: var(--blue); font-family: var(--font-display); font-size: 3rem; font-weight: 700; }

/* Consent interface */
.cookie-banner {
  position: fixed;
  z-index: 120;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(44rem, calc(100vw - var(--rail-width) - 3rem));
  border: 1px solid var(--line-strong);
  border-top: .45rem solid var(--blue);
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem rgba(16, 36, 63, .16);
}

.cookie-banner__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.4rem; }
.cookie-banner h2 { margin-bottom: .5rem; font-size: 1.15rem; }
.cookie-banner p { color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }

.cookie-actions { display: flex; flex-direction: column; gap: .5rem; }

.cookie-actions button,
.consent-dialog__footer button {
  min-height: 2.7rem;
  padding: .55rem .9rem;
  border: 1px solid var(--blue);
  border-radius: var(--button-radius);
  background: var(--blue);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
}

.cookie-actions button:nth-child(2),
.cookie-actions button:nth-child(3) { background: transparent; color: var(--blue-dark); }

.consent-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 28, 51, .7);
}

.consent-dialog {
  width: min(46rem, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border-top: .5rem solid var(--blue);
  background: var(--surface);
}

.consent-dialog__header,
.consent-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.consent-dialog__header h2 { font-size: 1.45rem; }
.consent-dialog__close { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.4rem; }
.consent-dialog__body { padding: 1.5rem; }

.consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.consent-category h3 { margin-bottom: .35rem; font-size: 1rem; }
.consent-category p { color: var(--ink-soft); font-size: .82rem; }
.switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--blue); }
.consent-dialog__footer { border-top: 1px solid var(--line); border-bottom: 0; }

@media (max-width: 1180px) {
  :root { --rail-width: 15.5rem; }
  .rail-head { padding-inline: 1.1rem; }
  .rail-nav a,
  .rail-kicker,
  .rail-contact { padding-left: 1.1rem; padding-right: 1.1rem; }
  .footer-directory { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-directory > div { padding: 1.6rem; }
}

@media (max-width: 1040px) {
  :root { --rail-width: 0rem; }

  html { scroll-padding-top: 6rem; }
  body { padding-left: 0; }

  .site-header {
    position: sticky;
    inset: 0 auto auto;
    width: 100%;
    height: 5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    overflow: visible;
  }

  .rail-head {
    min-height: 5rem;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    border: 0;
  }

  .brand img { width: 13rem; }
  .rail-kicker,
  .rail-nav,
  .rail-contact { display: none; }

  .menu-toggle {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    gap: .7rem;
    padding: .55rem .85rem;
    border: 1px solid var(--blue-dark);
    border-radius: var(--button-radius);
    background: transparent;
    color: var(--blue-dark);
    font-size: .82rem;
    font-weight: 700;
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 1.15rem;
    border-top: 2px solid currentColor;
    content: "";
  }

  .menu-toggle__bars::before { transform: translateY(-.4rem); }
  .menu-toggle__bars::after { transform: translateY(.28rem); }

  .mobile-panel {
    position: fixed;
    z-index: 55;
    inset: 5rem 0 0;
    display: grid;
    grid-template-columns: minmax(16rem, .8fr) minmax(20rem, 1.2fr);
    grid-template-rows: 1fr auto;
    gap: 2rem 4rem;
    padding: clamp(2rem, 7vw, 5rem);
    background: var(--surface);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity .2s ease, transform .2s ease;
  }

  .mobile-panel.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-panel__intro { padding-right: 2rem; border-right: 1px solid var(--line); }
  .mobile-panel__brand { display: block; width: min(100%, 15rem); margin-bottom: 2rem; }
  .mobile-panel__intro .meta-line { color: var(--blue); }
  .mobile-panel nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
  .mobile-panel nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
  .mobile-panel nav a[aria-current="page"] { color: var(--blue); }
  .mobile-panel__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem; }
  .mobile-panel__actions > a:last-child { font-weight: 700; }

  .cookie-banner { width: min(44rem, calc(100vw - 3rem)); }
  .chapter-nav { top: 6.5rem; }

  .footer-directory { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-rail--legal { grid-column: 2 / -1; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .section { padding-block: 3.6rem; }

  h1 { font-size: clamp(2rem, 1.65rem + 1.6vw, 2.65rem); }
  h2 { font-size: clamp(1.55rem, 1.35rem + .8vw, 1.95rem); }

  .mobile-panel {
    display: block;
    overflow-y: auto;
    padding: 2rem 1.25rem;
  }

  .mobile-panel__intro { margin-bottom: 1.5rem; padding: 0 0 1.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .mobile-panel__actions { display: flex; flex-direction: column; align-items: stretch; margin-top: 2rem; }

  .hero--home {
    display: flex;
    min-height: 0 !important;
    flex-direction: column;
  }

  .hero--home .hero__image {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: 20rem;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .hero--home .hero__inner {
    display: block;
    min-height: 0;
    order: 1;
    padding-block: 3.6rem;
  }

  .hero__copy { max-width: none; padding: 0; }
  .hero__facts { margin: 2.5rem 0 0; }

  .hero--editorial { display: flex; min-height: 0; flex-direction: column; }
  .hero__panel { padding: 3.6rem 1.25rem; }
  .hero__visual { min-height: 21rem; border-top: 1px solid var(--line-strong); border-left: 0; }

  .hero--text .hero__inner { display: block; min-height: 0; padding-block: 3.6rem; }
  .hero__aside { margin-top: 2.5rem; }

  .section-heading,
  .split-story,
  .split-story--reverse,
  .chapter-grid,
  .legal-shell,
  .footer-lead,
  .enquiry-zone { grid-template-columns: 1fr; }

  .section-heading { gap: 1.5rem; align-items: start; }
  .split-story { gap: 2.5rem; }
  .split-story > .image-frame:first-child,
  .split-story > figure:first-child { order: 2; }

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

  .service-row {
    grid-template-columns: 2.5rem 1fr 1.5rem;
    gap: 1rem;
  }

  .service-row__desc { grid-column: 2 / -1; }

  .timeline__step {
    grid-template-columns: 2.5rem 1fr;
    gap: .75rem 1rem;
  }

  .timeline__step p { grid-column: 2; }

  .mosaic { grid-template-columns: 1fr; }
  .mosaic figure:nth-child(n) { grid-column: auto; min-height: 18rem; }

  .package-grid { grid-template-columns: 1fr; }
  .package { min-height: 0; }

  .chapter-nav { position: static; }
  .chapter-grid { gap: 3rem; }

  .contact-strip { grid-template-columns: 1fr; }
  .enquiry-zone__intro,
  .enquiry-form { padding: 3rem 1.25rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1.3rem; }

  .programme-matrix { display: block; overflow-x: auto; white-space: normal; }
  .programme-matrix th,
  .programme-matrix td { min-width: 12rem; }

  .footer-directory { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-rail--legal { grid-column: auto; }
  .footer-legal { flex-direction: column; gap: .4rem; }

  .legal-sidebar { position: static; }
  .legal-content { padding: 2rem 1.25rem; border-left: 0; border-top: 1px solid var(--line-strong); }

  .cookie-banner { right: 1rem; bottom: 1rem; width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); overflow: auto; }
  .cookie-banner__inner { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: row; flex-wrap: wrap; }
  .consent-dialog__footer { flex-wrap: wrap; }
}

@media (max-width: 500px) {
  .site-header { height: 4.5rem; }
  .rail-head { min-height: 4.5rem; padding-inline: .9rem; }
  .brand img { width: 10.8rem; }
  .mobile-panel { top: 4.5rem; }
  .menu-toggle { padding: .5rem .7rem; }

  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .text-link { align-self: flex-start; }

  .hero__facts dl div { grid-template-columns: 1fr; gap: .15rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { min-height: 9rem; }
  .fact strong { margin-bottom: 1.4rem; }

  .photo-caption { flex-direction: column; gap: .15rem; }
  .footer-directory { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-rail--legal { grid-column: auto; }
  .footer-directory > div { padding: 1.5rem 1.25rem; }
  .footer-lead { padding: 3rem 1.25rem; }
  .footer-legal { padding-inline: 1.25rem; }
}

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