:root {
  --global-navy: #090b10;
  --global-navy-2: #273752;
  --global-blue: #5577aa;
  --global-blue-dark: #344e78;
  --global-blue-light: #8db5e7;
  --global-mist: #e8edf5;
  --global-line: #d9e0e9;
  --global-white: #fff;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(9, 11, 16, .1);
  background: rgba(246, 247, 249, .94);
  backdrop-filter: blur(14px);
}

.global-nav-wrap {
  width: min(calc(100% - 40px), 1160px);
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.global-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  text-decoration: none;
}

.global-brand img {
  display: block;
  width: clamp(190px, 22vw, 270px);
  height: auto;
}

.global-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, .8vw, 12px);
}

.global-links > .global-link[href$="#about"] { order: 1; }
.global-links > .global-link[href$="#approach"] { order: 2; }
.global-links > .global-link[href$="#pricing"] { order: 3; }
.global-links > .global-resource-menu { order: 4; }
.global-links > .global-portal-link { order: 5; }
.global-links > .global-menu:not(.global-resource-menu):not(.global-mobile-menu) { order: 6; }
.global-links > .global-cta { order: 7; }
.global-links > .global-mobile-menu { order: 8; }

.global-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--global-navy);
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.global-link:hover {
  background: var(--global-mist);
  color: var(--global-blue-dark);
}

.global-portal-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--global-blue);
  border-radius: 999px;
  background: linear-gradient(145deg, #f8fbff, var(--global-mist));
  color: var(--global-blue-dark) !important;
  font-size: .91rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(52, 78, 120, .14);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.global-portal-link:hover {
  background: var(--global-blue-dark);
  color: var(--global-white) !important;
  transform: translateY(-1px);
}

.global-menu {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
}

.global-menu:last-child { border: 0 !important; }

.global-mobile-menu { display: none; }

.global-mobile-trigger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(9, 11, 16, .14);
  border-radius: 50%;
  background: var(--global-white);
  color: var(--global-navy);
  list-style: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(9, 11, 16, .08);
}

.global-mobile-trigger::-webkit-details-marker { display: none; }
.global-mobile-trigger::after { content: none !important; }

.global-mobile-bars {
  width: 19px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.global-mobile-bar {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
}

.global-mobile-menu[open] .global-mobile-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.global-mobile-menu[open] .global-mobile-bar:nth-child(2) { opacity: 0; }
.global-mobile-menu[open] .global-mobile-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

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

.global-trigger {
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0;
  padding: 10px 12px !important;
  border: 0;
  border-radius: 999px;
  color: var(--global-navy) !important;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.1;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.global-trigger::-webkit-details-marker { display: none; }
.global-trigger::after {
  content: "" !important;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23090b10' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  transition: transform .18s ease;
}

.global-menu[open] > .global-trigger::after { transform: rotate(180deg); }

.global-trigger-book {
  padding-inline: 20px !important;
  background: var(--global-blue);
  color: var(--global-white) !important;
  box-shadow: 0 8px 20px rgba(52, 78, 120, .2);
}

.global-trigger-book::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.global-trigger-resources:hover { background: var(--global-mist); }
.global-trigger-book:hover { background: var(--global-blue-dark); }

/* The selected state mirrors the portal tabs: a pale rounded pill with a soft blue shadow. */
.global-link[aria-current="page"],
.global-link[aria-current="location"],
.global-menu[open] > .global-trigger,
.global-menu[data-nav-active="true"] > .global-trigger {
  background: linear-gradient(145deg, #f8fbff, var(--global-mist));
  color: var(--global-blue-dark) !important;
  box-shadow: 0 8px 20px rgba(52, 78, 120, .16);
}

.global-link[aria-current="page"]:hover,
.global-link[aria-current="location"]:hover,
.global-menu[open] > .global-trigger:hover,
.global-menu[data-nav-active="true"] > .global-trigger:hover {
  transform: translateY(-1px);
}

.global-menu[open] > .global-trigger::after,
.global-menu[data-nav-active="true"] > .global-trigger::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344e78' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.global-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 110;
  width: 320px;
  display: block !important;
  padding: 10px;
  border: 1px solid var(--global-line);
  border-radius: 18px;
  background: var(--global-white);
  box-shadow: 0 22px 50px rgba(9, 11, 16, .2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.global-panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
}

.global-resource-menu .global-panel { width: 350px; }
.global-mobile-panel { width: 350px; }

.global-menu[open] > .global-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.global-menu:focus-within > .global-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.global-menu:focus-within > .global-trigger::after { transform: rotate(180deg); }

.global-panel-label {
  display: block;
  padding: 9px 12px 5px;
  color: #6b7482;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.global-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--global-navy) !important;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.global-panel a:hover,
.global-panel a:focus-visible,
.global-panel a[aria-current="page"] {
  background: linear-gradient(145deg, #f8fbff, var(--global-mist));
  color: var(--global-blue-dark) !important;
}

.global-panel a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(52, 78, 120, .08);
}

.global-panel-divider {
  height: 1px;
  margin: 7px 10px;
  background: var(--global-line);
}

.global-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--global-navy);
  color: white !important;
  font-size: .91rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(9, 11, 16, .2);
}

.global-cta:hover { background: var(--global-navy-2); }

.floating-enquire {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--global-blue-light);
  border-radius: 50%;
  background: var(--global-navy);
  color: var(--global-white) !important;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(9, 11, 16, .28);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.floating-enquire-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#f8fbff, #eef4fb) padding-box,
    conic-gradient(from 215deg, var(--global-blue-light), var(--global-blue-dark), #c9ddf5, var(--global-blue-light)) border-box;
  box-shadow: inset 0 0 0 1px rgba(9, 11, 16, .05);
}

.floating-enquire-bubble {
  position: relative;
  width: 29px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 13px;
  background: var(--global-navy);
}

.floating-enquire-bubble::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: -4px;
  width: 0;
  height: 0;
  border-top: 7px solid var(--global-navy);
  border-left: 7px solid transparent;
  transform: rotate(-8deg);
}

.floating-enquire-dot {
  position: relative;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.floating-enquire:hover {
  background: var(--global-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(9, 11, 16, .32);
}

.floating-enquire:focus-visible {
  outline: 3px solid var(--global-blue-light);
  outline-offset: 4px;
}
.global-trigger:focus-visible,
.global-mobile-trigger:focus-visible,
.global-cta:focus-visible,
.global-portal-link:focus-visible,
.global-link:focus-visible,
.global-brand:focus-visible {
  outline: 3px solid var(--global-blue-light);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .global-menu:hover > .global-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .global-menu:hover > .global-trigger::after { transform: rotate(180deg); }
}

@media (max-width: 940px) {
  .global-nav-wrap {
    gap: 12px;
  }

  .global-brand img { width: clamp(118px, 26vw, 180px); }
  .global-links { gap: 6px; }
  .global-links > .global-link:not(.global-portal-link),
  .global-links > .global-resource-menu { display: none; }
  .global-mobile-menu { display: block; }

  .global-mobile-panel {
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
}

@media (max-width: 650px) {
  .global-nav-wrap {
    width: min(calc(100% - 24px), 1160px);
    min-height: 68px;
    gap: 4px;
    padding: 7px 0;
  }

  .global-brand { flex: 1 1 auto; }
  .global-brand img { width: clamp(68px, 18vw, 96px); }
  .global-links { gap: 3px; }
  .global-portal-link,
  .global-trigger,
  .global-cta {
    min-height: 38px;
    padding: 6px !important;
    font-size: clamp(.52rem, 2.2vw, .7rem);
    box-shadow: none;
  }
  .global-link[aria-current="page"],
  .global-link[aria-current="location"],
  .global-menu[open] > .global-trigger,
  .global-menu[data-nav-active="true"] > .global-trigger {
    box-shadow: 0 5px 14px rgba(52, 78, 120, .14);
  }
  .global-portal-link,
  .global-trigger-book,
  .global-cta { padding-inline: clamp(6px,1.8vw,9px) !important; }
  .global-mobile-trigger { width: 38px; height: 38px; }
  .global-panel,
  .global-resource-menu .global-panel,
  .global-mobile-panel {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .global-panel::before { display: none; }

  .floating-enquire {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
  }

  .floating-enquire-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

@media (max-width: 350px) {
  .global-nav-wrap { width: min(calc(100% - 16px), 1160px); }
  .global-brand img { width: 76px; }
  .global-mobile-trigger {
    width: 40px;
    height: 40px;
  }
  .global-trigger,
  .global-cta { font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .global-panel,
  .global-trigger::after,
  .global-mobile-bar,
  .floating-enquire { transition: none; }
}
