.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid currentColor;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.button-link:hover { background: var(--ce-dark); border-color: var(--ce-dark); }

.floating-dock {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 70;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 72px 170px 64px;
  height: 50px;
  background: var(--ce-dark);
  color: var(--white);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.dock-brand,
.dock-home,
.dock-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock-brand { border-right: 1px solid rgba(255,255,255,.15); }
.dock-brand img {
  width: 48px;
  max-height: 22px;
  object-fit: contain;
  filter: none;
}
.dock-home {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.dock-menu {
  border: 0;
  border-left: 1px solid rgba(255,255,255,.15);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.dock-menu span { width: 18px; height: 1px; background: currentColor; display: block; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(8, 12, 20, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-popover {
  position: absolute;
  left: 50%;
  bottom: 92px;
  width: min(430px, calc(100vw - 34px));
  padding: 28px 30px 28px;
  background: var(--ce-dark);
  color: var(--white);
  transform: translate(-50%, 18px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.menu-overlay.is-open .menu-popover { transform: translate(-50%, 0); opacity: 1; }
.menu-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
}
.menu-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: var(--white);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.menu-primary { padding-bottom: 22px; }
.menu-primary a {
  display: block;
  width: fit-content;
  font-size: clamp(36px, 4.2vw, 50px);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.menu-primary a:hover { color: rgba(255,255,255,.66); }
.menu-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 26px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.menu-quicklinks a { font-size: 12px; color: rgba(255,255,255,.64); }
.menu-quicklinks a:hover { color: var(--white); }
.menu-cta {
  margin-top: 20px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.menu-cta:hover { background: rgba(255,255,255,.06); }

.testimonial-controls { display: flex; gap: 8px; }
.testimonial-controls button,
.tab-button {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.testimonial-controls button { width: 44px; height: 44px; font-size: 18px; }
.tab-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tab-button.is-active,
.tab-button:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 640px) {
  .floating-dock { grid-template-columns: 64px 142px 58px; height: 48px; bottom: 18px; }
  .menu-popover { bottom: 78px; padding: 24px 24px 24px; }
  .menu-primary a { font-size: 38px; }
  .menu-quicklinks { gap: 8px 18px; }
}

/* Menu refinement: preserve the approved compact pop-up direction but tighten alignment and fit. */
.menu-popover {
  width: min(420px, calc(100vw - 34px));
  max-height: calc(100svh - 118px);
  overflow-y: auto;
  padding: 26px 30px 26px;
}
.menu-head { margin-bottom: 16px; }
.menu-primary { padding-bottom: 20px; }
.menu-primary a { font-size: clamp(34px, 3.5vw, 44px); line-height: 1.04; }
.menu-quicklinks { padding: 18px 0; }
.menu-cta { margin-top: 18px; }

@media (max-width: 640px) {
  .menu-popover { padding: 22px 24px 22px; max-height: calc(100svh - 96px); }
  .menu-primary a { font-size: 36px; }
}
.menu-cta::after,
.journey-row > a::after,
.partner-list a::after,
.news-row a::after,
.accolade-list a::after {
  content: "↗";
  margin-left: 12px;
  font-size: 12px;
}

/* Banner refinement V5: hero-exit dock and menu polish. */
html { scrollbar-gutter: stable; }
.floating-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 88px);
  transition: transform .46s cubic-bezier(.22,.8,.25,1), opacity .32s ease;
}
body.is-after-hero .floating-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.menu-close {
  justify-self: end;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 25px;
  opacity: .82;
}
.menu-close:hover { opacity: 1; }
.menu-cta { justify-content: flex-start; }
.menu-cta::after { content: none; }

/* Keep the browser scrollbar present while the modal menu is open; prevents horizontal page jump. */
body.menu-open { overflow-y: scroll; }
.menu-overlay { overscroll-behavior: contain; touch-action: none; }
.menu-popover { overscroll-behavior: contain; touch-action: pan-y; }

/* =========================================================
   MENU REFINEMENT V7
   The collapsed dock and expanded menu share one bottom-centre origin.
   ========================================================= */
.floating-dock {
  transition: none;
  transform: translateX(-50%);
}
body.is-after-hero .floating-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}
body.menu-open .floating-dock {
  opacity: 0;
  pointer-events: none;
}

.menu-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 17px 26px;
}
.menu-shell {
  width: min(420px, calc(100vw - 34px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  opacity: 0;
  transform: translateY(18px) scale(.76);
  transform-origin: 50% 100%;
  transition: transform .28s cubic-bezier(.22,.78,.25,1), opacity .2s ease;
}
.menu-overlay.is-open .menu-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.menu-popover {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-height: calc(100svh - 96px);
  padding: 30px;
  transform: none;
  opacity: 1;
  transition: none;
}
.menu-overlay.is-open .menu-popover {
  transform: none;
  opacity: 1;
}
.menu-primary { padding-top: 0; }
.menu-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ce-dark);
  color: var(--white);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
}
.menu-close:hover { background: #203963; }

@media (max-width: 640px) {
  .menu-overlay { padding-bottom: 18px; }
  .menu-shell { width: min(390px, calc(100vw - 28px)); }
  .menu-popover { max-height: calc(100svh - 82px); padding: 24px; }
  .menu-close { width: 40px; height: 40px; font-size: 22px; }
}

/* =========================================================
   MENU REFINEMENT V8
   A calmer expansion from the collapsed dock, with a clean close control.
   ========================================================= */
.menu-overlay {
  transition: opacity .38s cubic-bezier(.16,1,.3,1), backdrop-filter .38s ease;
}
.menu-shell {
  transform: translateY(10px) scale(.93);
  opacity: 0;
  transform-origin: 50% 100%;
  transition:
    transform .52s cubic-bezier(.16,1,.3,1),
    opacity .28s ease;
}
.menu-overlay.is-open .menu-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.menu-popover {
  box-shadow: 0 26px 70px rgba(5,12,24,.24);
}
.menu-close {
  width: 34px;
  height: 34px;
  background: var(--ce-dark);
  border: 0;
  outline: 0;
  box-shadow: none;
  font-size: 20px;
  opacity: .86;
  transition: opacity .2s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.menu-overlay.is-open .menu-close { transform: scale(1); }
.menu-close:hover { background: var(--ce-dark); opacity: 1; }
.menu-close:focus { outline: none; box-shadow: none; }
.menu-close:focus-visible {
  outline: 1px solid rgba(255,255,255,.72);
  outline-offset: 3px;
}
body.menu-open .floating-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(.96);
}

/* Footer-triggered menu stays visually present without trapping the user at the bottom. */
.menu-overlay.is-footer-auto {
  pointer-events: none;
  background: rgba(8, 12, 20, .34);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  touch-action: pan-y;
}
.menu-overlay.is-footer-auto .menu-shell { pointer-events: auto; }

/* =========================================================
   REFINEMENT V9
   Keep the collapsed navigation dock available from page load.
   ========================================================= */
.floating-dock,
body.is-after-hero .floating-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}
body.menu-open .floating-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(.96);
}

/* =========================================================
   NAV RADIUS REFINEMENT V14
   Keep the approved geometry, just soften it very slightly.
   ========================================================= */
.floating-dock {
  border-radius: 4px;
  overflow: hidden;
}

.menu-popover {
  border-radius: 4px;
}

/* =========================================================
   NAV COLOUR V21
   Use the brighter primary Chas blue for the persistent dock and
   expanded menu, while the horizontal chapter remains dark #182F58.
   ========================================================= */
.floating-dock,
.menu-popover,
.menu-close,
.menu-close:hover {
  background: #2C5697;
}

/* =========================================================
   MENU CTA V22
   Keep the approved bright-blue menu, with the primary CMA action
   clearly distinguished in Chas red.
   ========================================================= */
.menu-cta,
.menu-cta:hover,
.menu-cta:focus-visible {
  background: #E00034;
  border-color: #E00034;
  color: #fff;
}
.menu-cta:hover { background: #c9002f; border-color: #c9002f; }

/* =========================================================
   OPTION 1 V1 — MOTION LANGUAGE V33
   The dock and expanded menu share the same bottom-centre origin.
   The transition should read as one navigation object changing state,
   not two unrelated layers appearing and disappearing.
   ========================================================= */
:root {
  --ce-motion-ease: cubic-bezier(.22, 1, .36, 1);
  --ce-motion-fast: 220ms;
  --ce-motion-medium: 520ms;
}

.floating-dock,
body.is-after-hero .floating-dock {
  transition:
    opacity .22s ease,
    transform .46s var(--ce-motion-ease),
    box-shadow .34s ease;
  transform-origin: 50% 100%;
}

body.menu-open .floating-dock {
  opacity: 0;
  transform: translateX(-50%) translateY(7px) scale(.91);
}

.menu-overlay {
  transition:
    opacity .32s ease,
    backdrop-filter .42s ease,
    -webkit-backdrop-filter .42s ease;
}

.menu-shell {
  transform: translateY(12px) scale(.88);
  opacity: 0;
  transform-origin: 50% 100%;
  transition:
    transform .52s var(--ce-motion-ease),
    opacity .24s ease;
}

.menu-overlay.is-open .menu-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.menu-primary a,
.menu-quicklinks a,
.menu-cta {
  opacity: 0;
  transform: translate3d(0, 7px, 0);
  transition:
    opacity .34s ease,
    transform .44s var(--ce-motion-ease),
    color .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.menu-overlay.is-open .menu-primary a,
.menu-overlay.is-open .menu-quicklinks a,
.menu-overlay.is-open .menu-cta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.menu-overlay.is-open .menu-primary a:nth-child(1) { transition-delay: 70ms, 70ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-primary a:nth-child(2) { transition-delay: 95ms, 95ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-primary a:nth-child(3) { transition-delay: 120ms, 120ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-primary a:nth-child(4) { transition-delay: 145ms, 145ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-primary a:nth-child(5) { transition-delay: 170ms, 170ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-primary a:nth-child(6) { transition-delay: 195ms, 195ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-primary a:nth-child(7) { transition-delay: 220ms, 220ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-quicklinks a { transition-delay: 205ms, 205ms, 0ms, 0ms, 0ms; }
.menu-overlay.is-open .menu-cta { transition-delay: 235ms, 235ms, 0ms, 0ms, 0ms; }

.menu-close {
  opacity: 0;
  transform: translate3d(0, -4px, 0) scale(.94);
  transition:
    opacity .24s ease,
    transform .36s var(--ce-motion-ease),
    background .2s ease;
}

.menu-overlay.is-open .menu-close {
  opacity: .86;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 170ms, 170ms, 0ms;
}

.menu-overlay.is-open .menu-close:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .floating-dock,
  .menu-overlay,
  .menu-shell,
  .menu-primary a,
  .menu-quicklinks a,
  .menu-cta,
  .menu-close {
    transition: none !important;
  }
}

/* =========================================================
   OPTION 1 — LARGE HEADER MENU
   Same navigation content, expanded into a top-origin panel so the
   new header hamburger behaves like the larger Concept 2 menu while
   retaining Concept 1's typography and colour language.
   ========================================================= */
.menu-overlay {
  display: block;
  padding: 0;
  background: rgba(7,13,23,.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
}
.menu-shell {
  position: relative;
  width: 100%;
  min-height: min(76svh, 760px);
  display: block;
  opacity: 0;
  transform: translate3d(0, -28px, 0);
  transform-origin: 50% 0;
  transition: opacity .24s ease, transform .52s cubic-bezier(.22,1,.36,1);
}
.menu-overlay.is-open .menu-shell {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.menu-popover {
  position: relative;
  width: 100%;
  max-height: min(76svh, 760px);
  min-height: min(76svh, 760px);
  overflow-y: auto;
  padding: clamp(104px, 12vh, 132px) var(--gutter) clamp(52px, 7vh, 76px);
  border-radius: 0 0 8px 8px;
  background: #2C5697;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(5,12,24,.2);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  grid-template-rows: auto auto;
  column-gap: clamp(70px, 9vw, 150px);
  row-gap: 28px;
}
.menu-primary {
  grid-row: 1 / 3;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 2px;
}
.menu-primary a {
  font-size: clamp(42px, 5.3vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}
.menu-quicklinks {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.menu-quicklinks a {
  font-size: 11px;
  color: rgba(255,255,255,.76);
}
.menu-cta {
  align-self: start;
  margin: 0;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 4px;
  justify-content: flex-start;
}
.menu-close {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: var(--gutter);
  width: 42px;
  height: 42px;
  background: transparent;
  color: #fff;
  font-size: 30px;
  opacity: .9;
}
.menu-overlay.is-open .menu-close:hover {
  background: transparent;
  opacity: .62;
}

/* Header and dock triggers can both control the same overlay. */
body.menu-open .site-menu-trigger { opacity: 0; }

@media (max-width: 820px) {
  .menu-shell,
  .menu-popover {
    min-height: 100svh;
    max-height: 100svh;
  }
  .menu-popover {
    padding: 88px 24px 42px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 28px;
  }
  .menu-primary { grid-row: auto; }
  .menu-primary a { font-size: clamp(40px, 12vw, 58px); }
  .menu-quicklinks { align-self: auto; }
  .menu-close { top: 20px; right: 20px; }
}

/* =========================================================
   OPTION 1 — COMPACT MEGA MENU REFINEMENT
   A shorter, structured Concept-2-style menu without imagery.
   ========================================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 0;
  display: block;
  background: rgba(7,13,23,.24);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .36s;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .24s ease, visibility 0s linear 0s;
}
.menu-shell {
  position: relative;
  width: 100%;
  min-height: 0;
  opacity: 1;
  transform: none;
}
.menu-popover {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: clamp(92px, 9vh, 112px) var(--gutter) clamp(36px, 5vh, 52px);
  border-radius: 0 0 8px 8px;
  background: #2C5697;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(5,12,24,.16);
  display: block;
  transform: translate3d(0, -100%, 0);
  transition: transform .52s cubic-bezier(.22,1,.36,1);
}
.menu-overlay.is-open .menu-popover {
  transform: translate3d(0, 0, 0);
}
.menu-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.18fr .95fr .9fr .9fr 1.05fr;
  gap: clamp(24px, 3vw, 46px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.28);
}
.menu-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.menu-label {
  margin: 0 0 14px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.menu-column a {
  color: rgba(255,255,255,.86);
  font-size: clamp(12px, .92vw, 14px);
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .2s ease;
}
.menu-column a:hover {
  color: #fff;
  transform: translateX(2px);
}
.menu-column .menu-strong {
  color: #fff;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 650;
}
.menu-cma {
  margin-top: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E00034;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-cma:hover {
  background: #c9002f;
  transform: none !important;
}
.menu-close {
  position: absolute;
  z-index: 4;
  top: 26px;
  right: var(--gutter);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  opacity: .9;
  cursor: pointer;
  transform: scale(.8) rotate(-22deg);
  transition: opacity .2s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.menu-overlay.is-open .menu-close {
  transform: scale(1) rotate(0);
}
.menu-close:hover {
  background: transparent;
  opacity: .62;
}
body.menu-open .site-menu-trigger { opacity: 0; }

@media (max-width: 1100px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }
  .menu-popover {
    max-height: 84svh;
    overflow-y: auto;
  }
}

@media (max-width: 820px) {
  .menu-popover {
    min-height: 100svh;
    max-height: 100svh;
    padding: 78px 24px 42px;
    overflow-y: auto;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .menu-close { top: 18px; right: 18px; }
}


/* =========================================================
   FINAL HERO-EXIT DOCK BEHAVIOUR
   Keep the compact bottom navigation completely hidden during
   the opening hero and reveal it only after the hero completes.
   ========================================================= */
.floating-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity .24s ease,
    transform .36s cubic-bezier(.22,1,.36,1),
    visibility 0s linear .24s;
}

body.is-after-hero .floating-dock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity .24s ease,
    transform .36s cubic-bezier(.22,1,.36,1),
    visibility 0s linear 0s;
}

body.menu-open .floating-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(7px) scale(.94);
}

/* =========================================================
   OPTION 1 — REFINEMENT PASS 1 / FLOATING DOCK SCALE
   Same component, slightly stronger presence after the hero.
   ========================================================= */
@media (min-width: 821px) {
  .floating-dock,
  body.is-after-hero .floating-dock {
    grid-template-columns: 88px 194px 74px;
    height: 58px;
  }
  .dock-brand img {
    width: 60px;
    max-height: 29px;
  }
  .dock-home {
    font-size: 11.5px;
    letter-spacing: .18em;
  }
  .dock-menu {
    gap: 6px;
  }
  .dock-menu span {
    width: 24px;
    height: 1.5px;
  }
}


/* =========================================================
   OPTION 1 — FINAL POST-HERO TOP NAVIGATION
   The compact navigation now becomes a full-width inset bar at
   the top of the viewport after the hero has completed.
   ========================================================= */
.floating-dock {
  left: var(--gutter);
  right: var(--gutter);
  top: 16px;
  bottom: auto;
  width: auto;
  height: 60px;
  grid-template-columns: 92px 150px minmax(0, 1fr) 72px;
  transform: translateY(-10px);
  transform-origin: 50% 0;
}

body.is-after-hero .floating-dock {
  transform: translateY(0);
}

body.menu-open .floating-dock {
  transform: translateY(-6px) scale(.985);
}

.dock-brand {
  border-right: 1px solid rgba(255,255,255,.16);
}

.dock-brand img {
  width: 62px;
  max-height: 30px;
}

.dock-home {
  justify-content: flex-start;
  padding-left: 26px;
  border-right: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  letter-spacing: .18em;
}

.dock-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(17px, 1.6vw, 28px);
  padding: 0 clamp(22px, 2.2vw, 36px);
  white-space: nowrap;
}

.dock-links a {
  position: relative;
  color: rgba(255,255,255,.9);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
  transition: color .18s ease;
}

.dock-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .24s ease;
}

.dock-links a:hover {
  color: #fff;
}

.dock-links a:hover::after {
  right: 0;
}

.dock-menu {
  width: 72px;
}

.dock-menu span {
  width: 24px;
  height: 1.5px;
}

@media (max-width: 1120px) {
  .floating-dock {
    grid-template-columns: 84px 132px minmax(0, 1fr) 66px;
    height: 56px;
  }

  .dock-links {
    gap: 14px;
    padding: 0 18px;
  }

  .dock-links a {
    font-size: 8.5px;
  }

  .dock-menu { width: 66px; }
}

@media (max-width: 900px) {
  .floating-dock {
    left: 18px;
    right: 18px;
    top: 12px;
    grid-template-columns: 78px 1fr 62px;
  }

  .dock-home {
    justify-content: flex-start;
    padding-left: 22px;
  }

  .dock-links { display: none; }
  .dock-menu { width: 62px; }
}

/* =========================================================
   OPTION 1 — POST-HERO NAV STABILISATION
   Reset the old centred-dock transforms and make the navigation
   a clean inset top bar aligned to the site's established gutters.
   ========================================================= */
.floating-dock {
  position: fixed !important;
  z-index: 70;
  left: var(--gutter) !important;
  right: var(--gutter) !important;
  top: 14px !important;
  bottom: auto !important;
  width: auto !important;
  height: 58px !important;
  display: grid !important;
  grid-template-columns: 92px 148px minmax(0, 1fr) 70px !important;
  align-items: stretch;
  overflow: hidden;
  background: var(--ce-blue, #2C5697);
  color: #fff;
  box-shadow: 0 10px 30px rgba(24,47,88,.16);
  border-radius: 3px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) !important;
  transform-origin: 50% 0 !important;
  transition:
    opacity .24s ease,
    transform .34s cubic-bezier(.22,1,.36,1),
    visibility 0s linear .24s !important;
}

body.is-after-hero .floating-dock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) !important;
  transition:
    opacity .24s ease,
    transform .34s cubic-bezier(.22,1,.36,1),
    visibility 0s linear 0s !important;
}

body.menu-open .floating-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) !important;
}

.floating-dock .dock-brand,
.floating-dock .dock-home,
.floating-dock .dock-menu {
  min-width: 0;
  height: 100%;
}

.floating-dock .dock-brand {
  border-right: 1px solid rgba(255,255,255,.16);
}

.floating-dock .dock-brand img {
  width: 62px;
  max-width: 62px;
  max-height: 30px;
  object-fit: contain;
}

.floating-dock .dock-home {
  justify-content: flex-start;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  letter-spacing: .18em;
  white-space: nowrap;
}

.floating-dock .dock-links {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.45vw, 26px);
  padding: 0 clamp(20px, 2vw, 34px);
  overflow: hidden;
  white-space: nowrap;
}

.floating-dock .dock-links a {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: .105em;
}

.floating-dock .dock-menu {
  width: 70px !important;
  border-left: 1px solid rgba(255,255,255,.14);
}

.floating-dock .dock-menu span {
  width: 24px;
  height: 1.5px;
}

@media (max-width: 1120px) {
  .floating-dock {
    grid-template-columns: 84px 132px minmax(0, 1fr) 64px !important;
    height: 56px !important;
  }

  .floating-dock .dock-links {
    gap: 12px;
    padding: 0 16px;
  }

  .floating-dock .dock-links a {
    font-size: 8px;
  }

  .floating-dock .dock-home {
    padding: 0 18px;
  }

  .floating-dock .dock-menu {
    width: 64px !important;
  }
}

@media (max-width: 900px) {
  .floating-dock {
    left: 18px !important;
    right: 18px !important;
    top: 12px !important;
    grid-template-columns: 78px minmax(0, 1fr) 62px !important;
  }

  .floating-dock .dock-links {
    display: none !important;
  }

  .floating-dock .dock-home {
    padding: 0 20px;
  }

  .floating-dock .dock-menu {
    width: 62px !important;
  }
}


/* =========================================================
   OPTION 1 — COMPACT BOTTOM DOCK RESTORE
   Restore the approved post-hero navigation signature:
   logo | active page | menu, centred at the bottom.
   ========================================================= */
.floating-dock,
body.is-after-hero .floating-dock {
  position: fixed !important;
  z-index: 70;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 26px !important;
  width: auto !important;
  height: 58px !important;
  display: grid !important;
  grid-template-columns: 88px 194px 74px !important;
  align-items: stretch;
  overflow: hidden;
  border-radius: 4px;
  background: #2C5697;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) !important;
  transform-origin: 50% 100% !important;
  transition:
    opacity .24s ease,
    transform .36s cubic-bezier(.22,1,.36,1),
    visibility 0s linear .24s !important;
}

body.is-after-hero .floating-dock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
  transition:
    opacity .24s ease,
    transform .36s cubic-bezier(.22,1,.36,1),
    visibility 0s linear 0s !important;
}

body.menu-open .floating-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(7px) scale(.94) !important;
}

.floating-dock .dock-brand,
.floating-dock .dock-home,
.floating-dock .dock-menu {
  min-width: 0;
  height: 100%;
}

.floating-dock .dock-brand {
  border-right: 1px solid rgba(255,255,255,.15);
}

.floating-dock .dock-brand img {
  width: 60px;
  max-width: 60px;
  max-height: 29px;
  object-fit: contain;
}

.floating-dock .dock-home {
  justify-content: center;
  padding: 0;
  border-right: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
  text-transform: uppercase;
}

.floating-dock .dock-links {
  display: none !important;
}

.floating-dock .dock-menu {
  width: 74px !important;
  border-left: 1px solid rgba(255,255,255,.15);
  gap: 6px;
}

.floating-dock .dock-menu span {
  width: 24px;
  height: 1.5px;
}

@media (max-width: 640px) {
  .floating-dock,
  body.is-after-hero .floating-dock {
    bottom: 18px !important;
    height: 48px !important;
    grid-template-columns: 64px 142px 58px !important;
  }

  .floating-dock .dock-brand img {
    width: 48px;
    max-width: 48px;
    max-height: 22px;
  }

  .floating-dock .dock-home {
    font-size: 10px;
  }

  .floating-dock .dock-menu {
    width: 58px !important;
  }

  .floating-dock .dock-menu span {
    width: 18px;
    height: 1px;
  }
}

/* =========================================================
   OPTION 1 — BOTTOM-DOCK EXPANDING NAVIGATION
   The large navigation grows out from the compact post-hero dock,
   keeping the dock itself as the visual and interactive anchor.
   ========================================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--gutter) 26px;
  background: rgba(8, 12, 20, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity .3s ease,
    visibility 0s linear .62s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity .3s ease,
    visibility 0s linear 0s;
}

.menu-shell {
  position: relative;
  width: min(1120px, 100%);
  min-height: 0;
  display: block;
  opacity: 1;
  transform: none;
}

.menu-popover {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  min-height: min(430px, 54svh);
  max-height: min(620px, 66svh);
  overflow-y: auto;
  padding: 42px 44px 92px;
  border-radius: 6px;
  background: #2C5697;
  color: #fff;
  box-shadow: 0 28px 80px rgba(5, 12, 24, .28);
  transform: none;
  opacity: 1;
  transform-origin: 50% 100%;
  clip-path: inset(calc(100% - 58px) calc(50% - 178px) 0 calc(50% - 178px) round 4px);
  transition: clip-path .56s cubic-bezier(.16, 1, .3, 1);
}

.menu-overlay.is-open .menu-popover {
  transform: none;
  opacity: 1;
  clip-path: inset(0 0 0 0 round 6px);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.15fr .92fr .92fr .9fr 1.08fr;
  gap: clamp(24px, 3vw, 44px);
  padding-top: 0;
  border-top: 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .2s ease,
    transform .34s cubic-bezier(.22, 1, .36, 1);
}

.menu-overlay.is-open .menu-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .18s, .18s;
}

.menu-column a {
  opacity: 1;
  transform: none;
}

.menu-close {
  display: none;
}

/* Keep the compact dock visible as the base of the expanded panel. */
.floating-dock {
  z-index: 1300 !important;
}

body.is-after-hero.menu-open .floating-dock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
}

/* Morph the dock hamburger into the close icon in place. */
.floating-dock .dock-menu {
  position: relative;
}

.floating-dock .dock-menu span {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform-origin: center;
  transition:
    transform .34s cubic-bezier(.16, 1, .3, 1),
    opacity .18s ease;
}

.floating-dock .dock-menu span:nth-child(1) {
  transform: translate(-50%, -7px);
}
.floating-dock .dock-menu span:nth-child(2) {
  transform: translate(-50%, 0);
}
.floating-dock .dock-menu span:nth-child(3) {
  transform: translate(-50%, 7px);
}

body.menu-open .floating-dock .dock-menu span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}
body.menu-open .floating-dock .dock-menu span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, 0) scaleX(.2);
}
body.menu-open .floating-dock .dock-menu span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

@media (max-width: 1100px) {
  .menu-popover {
    min-height: min(500px, 62svh);
    max-height: min(680px, 72svh);
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }
}

@media (max-width: 820px) {
  .menu-overlay {
    padding: 0 14px 18px;
  }

  .menu-shell {
    width: 100%;
  }

  .menu-popover {
    min-height: min(620px, 76svh);
    max-height: min(760px, 82svh);
    padding: 34px 26px 78px;
    clip-path: inset(calc(100% - 48px) calc(50% - 132px) 0 calc(50% - 132px) round 4px);
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay,
  .menu-popover,
  .menu-grid,
  .floating-dock .dock-menu span {
    transition: none !important;
  }
}

/* =========================================================
   OPTION 1 — BOTTOM MENU OPEN-STATE REFINEMENT
   Once expanded, the compact dock fully resolves into the menu:
   only a clean close X remains at the bottom centre.
   ========================================================= */

/* The expanded panel can now be considerably shorter because the
   compact dock no longer needs to remain visible inside its footprint. */
.menu-popover {
  min-height: 0 !important;
  max-height: min(520px, 58svh) !important;
  padding: 30px 44px 58px !important;
}

/* Bring the navigation content lower into the panel and remove the
   excessive empty area below it. */
.menu-grid {
  align-content: end;
  padding-top: 0 !important;
}

/* The compact dock is the origin of the opening motion, then disappears
   once the panel has taken over. */
body.is-after-hero.menu-open .floating-dock,
body.menu-open .floating-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(4px) scale(.94) !important;
  box-shadow: none !important;
  transition:
    opacity .16s ease,
    transform .26s cubic-bezier(.22,1,.36,1),
    visibility 0s linear .16s !important;
}

/* Use the existing menu close control as the single bottom-centre X. */
.menu-close {
  display: grid !important;
  place-items: center;
  position: absolute !important;
  z-index: 6;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 14px !important;
  width: 42px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 32px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px) scale(.86) !important;
  transition:
    opacity .2s ease .24s,
    transform .34s cubic-bezier(.22,1,.36,1) .2s !important;
}

.menu-overlay.is-open .menu-close {
  opacity: .94 !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

.menu-overlay.is-open .menu-close:hover {
  opacity: .68 !important;
  background: transparent !important;
}

.menu-close:focus,
.menu-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  .menu-popover {
    min-height: 0 !important;
    max-height: min(650px, 72svh) !important;
    padding: 30px 30px 58px !important;
  }
}

@media (max-width: 820px) {
  .menu-popover {
    min-height: 0 !important;
    max-height: min(720px, 82svh) !important;
    padding: 28px 24px 58px !important;
  }

  .menu-close {
    bottom: 12px !important;
  }
}

/* =========================================================
   CONCEPT 1 - COMPACT DOCK PROPERTY SEARCH V7
   Keep the active page as the primary dock label and add a quiet,
   text-only shortcut to the same property-search view underneath it.
   ========================================================= */
.floating-dock,
body.is-after-hero .floating-dock {
  grid-template-columns: 88px 210px 74px !important;
  height: 62px !important;
}

.floating-dock .dock-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  line-height: 1;
}

.floating-dock .dock-home-link {
  display: block;
  color: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.floating-dock .dock-property-search {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.floating-dock .dock-property-search:hover,
.floating-dock .dock-property-search:focus-visible {
  color: #fff;
}

.floating-dock .dock-property-search:focus-visible {
  outline: 1px solid rgba(255,255,255,.75);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .floating-dock,
  body.is-after-hero .floating-dock {
    height: 52px !important;
    grid-template-columns: 64px 164px 58px !important;
  }

  .floating-dock .dock-home {
    gap: 3px;
    padding-inline: 8px;
  }

  .floating-dock .dock-home-link {
    font-size: 9.5px;
  }

  .floating-dock .dock-property-search {
    font-size: 7px;
    letter-spacing: .055em;
  }
}
