/* Shared header and navigation used by every public page. */
.top {
  padding: 9px 24px;
  color: #d8e2ec;
  background: var(--deep, var(--navy-deep, #071b2e));
  font-size: 13px;
}

.top .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.top strong {
  color: var(--gold);
}

.top-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #102a43;
  background: var(--gold);
  box-shadow: 0 3px 10px rgba(7, 27, 46, .14);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.top-call:hover {
  background: #ffca3a;
  box-shadow: 0 6px 14px rgba(7, 27, 46, .18);
  transform: translateY(-1px);
}

.top-call:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, background .35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(7, 27, 46, .14);
}

.site-header .site-nav {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 13px 20px;
  border-radius: 5px;
  color: #102a43;
  background: var(--gold);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-header .site-cta:hover {
  background: #ffca3a;
  box-shadow: 0 8px 18px rgba(16, 42, 67, .14);
  transform: translateY(-2px);
}

.site-header .site-cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-logo {
  display: block;
  width: 150px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-header .light-logo {
  display: block;
}

.site-header .dark-logo {
  display: none;
}

body.dark-mode .site-header .light-logo {
  display: none;
}

body.dark-mode .site-header .dark-logo {
  display: block;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334e68;
  font-size: 14px;
  font-weight: 750;
}

.site-navigation a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-navigation a:hover {
  color: #b77900;
}

.site-cta {
  flex: 0 0 auto;
}

.site-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.dark-mode .site-header {
  background: #182635;
  border-color: var(--line);
}

body.dark-mode .top-call {
  color: #102a43;
}

body.dark-mode .site-navigation {
  color: #f4b41a;
}

body.dark-mode .site-menu-toggle {
  color: #f4b41a;
  background: #182635;
  border-color: #34495c;
}

@media (max-width: 900px) {
  .site-header .site-nav > .site-cta {
    display: none;
  }

  .site-menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 100px 28px 40px;
    background: var(--deep, var(--navy-deep, #071b2e));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation a {
    width: min(360px, 100%);
    padding: 14px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 18px;
    text-align: center;
  }

  .site-navigation a:last-child {
    color: #102a43;
    background: #f4b41a;
    border: 0;
  }
}

body.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .top {
    display: block;
    padding: 8px 17px;
  }

  .top .container {
    justify-content: flex-end;
  }

  .top .container > span {
    display: none;
  }
}
