/* UPLIFT 1.1.0: persistent language links and viewport-safe navigation. */
:root { --uplift-header-h: 86px; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--uplift-header-h);
  background: #05042f;
  color: #fff;
  border-bottom: 1px solid rgba(201,184,255,.22);
  transition: background-color .2s ease,box-shadow .2s ease;
  /* A backdrop filter here would contain the fixed mobile menu. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: #05042f;
  box-shadow: 0 12px 36px rgba(0,0,0,.24);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
  height: auto;
  min-height: calc(var(--uplift-header-h) + env(safe-area-inset-top));
  padding-block: 10px;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.site-header .brand-lockup { display: flex; min-width: 0; gap: 10px; }
.site-header .brand-mark { flex: 0 0 auto; width: 50px; height: 46px; object-fit: contain; }
.site-header .brand-copy { min-width: 0; }
.site-header .brand-copy strong { color: #fff; font-size: 16px; letter-spacing: .19em; white-space: nowrap; }
.site-header .brand-copy small { color: #c9b8ff; font-size: 10px; letter-spacing: .26em; white-space: nowrap; }
.site-header .primary-nav {
  display: block;
  position: static;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.site-header .primary-nav[hidden] { display: none !important; }
.site-header .uplift-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .uplift-nav-list > li { position: relative; min-width: 0; }
.site-header .uplift-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: #e2def3;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 6px;
}
.site-header .uplift-nav-list a:hover,
.site-header .uplift-nav-list a:focus-visible,
.site-header .uplift-nav-list a[aria-current="page"],
.site-header .uplift-nav-list .current-menu-item > a,
.site-header .uplift-nav-list .current_page_item > a {
  color: #dbcfff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.site-header .uplift-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  width: 260px;
  max-height: calc(100vh - var(--uplift-header-bottom,var(--uplift-header-h)) - 20px);
  max-height: calc(100dvh - var(--uplift-header-bottom,var(--uplift-header-h)) - 20px);
  overflow: auto;
  padding: 12px 18px;
  margin: 0;
  list-style: none;
  background: #0c093c;
  border: 1px solid rgba(201,184,255,.35);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0,0,0,.3);
}
.site-header .uplift-nav-list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.site-header .uplift-nav-list li:hover > .sub-menu,
.site-header .uplift-nav-list li:focus-within > .sub-menu { display: block; }
.site-header .uplift-nav-list .sub-menu a { overflow-wrap: anywhere; }
.site-header .uplift-nav-list .sub-menu .sub-menu {
  display: block;
  position: static;
  width: auto;
  max-height: none;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 1px solid rgba(201,184,255,.25);
  border-radius: 0;
  box-shadow: none;
}
.site-header .header-tools { display: flex; align-items: center; justify-self: end; gap: 12px; min-width: 0; }
.site-header .lang-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  border: 1px solid rgba(201,184,255,.45);
  border-radius: 10px;
  background: #0c093c;
}
.site-header .lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  min-height: 44px;
  color: #f0ebff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}
.site-header .lang-switch a:first-child { border-radius: 9px 0 0 9px; }
.site-header .lang-switch a:last-child { border-radius: 0 9px 9px 0; }
.site-header .lang-switch a + a { border-left: 1px solid rgba(201,184,255,.45); }
.site-header .lang-switch a:hover { background: #211447; color: #fff; }
.site-header .lang-switch a[aria-current="true"] { background: #c9b8ff; color: #160e37; }
.site-header .lang-switch a:focus-visible { z-index: 1; }
.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  max-width: 170px;
  padding: 10px 14px;
  border: 1px solid rgba(201,184,255,.5);
  border-radius: 10px;
  background: rgba(113,71,200,.14);
  color: #f5f1ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.site-header .header-cta > span { flex: 0 0 auto; }
.site-header .header-cta:hover { background: rgba(113,71,200,.28); }
.site-header .nav-toggle {
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201,184,255,.45);
  border-radius: 10px;
  background: #0c093c;
  cursor: pointer;
}
.site-header .nav-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  background: #f0ebff;
  transform-origin: center;
  transition: transform .18s ease;
}
.site-header .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.site-header .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.site-header .nav-toggle:hover { background: #211447; }
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 3px solid #dbcfff; outline-offset: 3px; }
.site-header .nav-kicker,
.site-header .menu-cta,
.site-header .menu-contact { display: none; }
.admin-bar .site-header { top: var(--uplift-admin-offset,32px); }
section[id],#main { scroll-margin-top: calc(var(--uplift-header-bottom,var(--uplift-header-h)) + 18px); }

@media (min-width:1200px) and (max-width:1350px) {
  .site-header .header-inner { gap: 16px; }
  .site-header .uplift-nav-list { gap: 12px; }
  .site-header .uplift-nav-list a { font-size: 11px; }
  .site-header .brand-mark { width: 44px; height: 42px; }
  .site-header .brand-copy strong { font-size: 15px; }
  .site-header .brand-copy small { font-size: 9px; }
  .site-header .header-tools { gap: 10px; }
  .site-header .header-cta { max-width: 152px; padding-inline: 12px; }
}

@media (max-width:1199px) {
  :root { --uplift-header-h: 80px; }
  /* Without JavaScript the complete navigation is an ordinary page block. */
  .site-header { position: relative; }
  .admin-bar .site-header { top: 0; }
  .site-header .header-inner {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 0 16px;
    width: calc(100% - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right)));
  }
  .site-header .header-tools { grid-row: 1; grid-column: 2; gap: 10px; }
  .site-header .header-cta { display: none; }
  .site-header .primary-nav { grid-row: 2; grid-column: 1/-1; padding: 16px 0 24px; }
  .site-header .uplift-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
  }
  .site-header .uplift-nav-list > li { width: 100%; border-bottom: 1px solid rgba(201,184,255,.2); }
  .site-header .uplift-nav-list > li > a {
    min-height: 60px;
    padding: 16px 4px;
    color: #f0ebff;
    font-size: clamp(20px,3.3vw,26px);
    font-weight: 650;
    letter-spacing: -.015em;
    line-height: 1.35;
    overflow-wrap: break-word;
  }
  .site-header .uplift-nav-list a:hover,
  .site-header .uplift-nav-list a:focus-visible,
  .site-header .uplift-nav-list a[aria-current="page"],
  .site-header .uplift-nav-list .current-menu-item > a,
  .site-header .uplift-nav-list .current_page_item > a {
    color: #dbcfff;
    text-decoration: none;
    background-color: rgba(113,71,200,.12);
  }
  .site-header .uplift-nav-list .sub-menu,
  .site-header .uplift-nav-list .sub-menu .sub-menu {
    display: block;
    position: static;
    width: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 0 14px 4px;
    padding: 0 0 0 16px;
    border: 0;
    border-left: 1px solid rgba(201,184,255,.35);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-header .uplift-nav-list .sub-menu li { border: 0; }
  .site-header .uplift-nav-list .sub-menu a { min-height: 44px; padding: 10px 4px; font-size: 16px; line-height: 1.5; }
  .site-header .nav-kicker {
    display: block;
    max-width: 760px;
    margin: 0 auto 14px;
    color: #c1b6df;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: uppercase;
  }
  .site-header .menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    min-height: 54px;
    margin: 26px auto 0;
    padding: 16px 20px;
    border: 1px solid #c9b8ff;
    border-radius: 10px;
    background: #c9b8ff;
    color: #160e37;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .site-header .menu-cta > span { flex: 0 0 auto; }
  .site-header .menu-contact { display: grid; gap: 0; max-width: 760px; margin: 18px auto 0; }
  .site-header .menu-contact a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
    color: #ddd5f3;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  html:not(.uplift-nav-ready) .hero { padding-top: 0; }
  html:not(.uplift-nav-ready) section[id] { scroll-margin-top: 18px; }
  html.uplift-nav-ready .site-header { position: fixed; }
  html.uplift-nav-ready .admin-bar .site-header { top: var(--uplift-admin-offset,32px); }
  html.uplift-nav-ready .site-header .nav-toggle { display: flex; }
  html.uplift-nav-ready .site-header .primary-nav {
    display: none;
    position: fixed;
    top: var(--uplift-header-bottom,var(--uplift-header-h));
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--uplift-header-bottom,var(--uplift-header-h)));
    height: calc(100dvh - var(--uplift-header-bottom,var(--uplift-header-h)));
    max-height: calc(100dvh - var(--uplift-header-bottom,var(--uplift-header-h)));
    margin: 0;
    padding: 26px max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));
    background: #05042f;
    border-top: 1px solid rgba(201,184,255,.2);
    border-bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }
  html.uplift-nav-ready .site-header .primary-nav.is-open { display: block; }
  html.uplift-menu-open,
  html.uplift-menu-open body { overflow: hidden; overscroll-behavior: none; }
  .nav-open .back-to-top { visibility: hidden; }
}
@media (max-width:782px) {
  .admin-bar .site-header,
  html.uplift-nav-ready .admin-bar .site-header { top: var(--uplift-admin-offset,46px); }
  html:not(.uplift-nav-ready) .admin-bar .site-header { top: 0; }
}
@media (max-width:680px) {
  :root { --uplift-header-h: 76px; }
  .site-header .header-inner {
    gap: 0 8px;
    width: calc(100% - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)));
  }
  .site-header .header-tools { gap: 6px; }
  .site-header .brand-lockup { gap: 8px; }
  .site-header .brand-mark { width: clamp(34px,10.5vw,46px); height: clamp(34px,10.5vw,46px); }
  .site-header .brand-copy strong { font-size: clamp(12px,3.9vw,16px); letter-spacing: .14em; }
  .site-header .brand-copy small { font-size: clamp(8px,2.5vw,10px); letter-spacing: .22em; }
  html.uplift-nav-ready .site-header .primary-nav {
    padding-top: 22px;
    padding-right: max(20px,env(safe-area-inset-right));
    padding-left: max(20px,env(safe-area-inset-left));
  }
}
@media (max-width:1199px) and (max-height:480px) {
  :root { --uplift-header-h: 66px; }
  .site-header .header-inner { padding-block: 8px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .site-header .brand-mark { width: 38px; height: 38px; }
  html.uplift-nav-ready .site-header .primary-nav { padding-top: 16px; }
  .site-header .nav-kicker { margin-bottom: 6px; }
  .site-header .uplift-nav-list > li > a { min-height: 50px; padding-block: 12px; font-size: 20px; }
  .site-header .menu-cta { margin-top: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  .site-header .nav-toggle > span { transition: none; }
}
