.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 16px 0;
}

.site-header-container {
  display: flex;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.site-header-logo {
  display: block;
  flex: 0 0 auto;
  width: 106px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-header-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.12;
}

.site-header-brand-name {
  color: #fff;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-header-brand-tagline {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header-item--dropdown {
  position: relative;
}

.site-header-dropdown-toggle {
  display: inline-flex;
  padding: 0;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.site-header-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.site-header-item--dropdown.open .site-header-dropdown-toggle svg {
  transform: rotate(180deg);
}

.site-header-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 20;
  width: 320px;
  display: none;
  margin: 0;
  padding: 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(4, 29, 40, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  list-style: none;
}

.site-header-item--dropdown.open .site-header-dropdown {
  display: grid;
  gap: 3px;
}

.site-header-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: #041d28;
}

.site-header-dropdown a {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 42px;
  padding: 10px 12px;
  align-items: center;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.site-header-dropdown a:hover,
.site-header-dropdown a:focus-visible,
.site-header-dropdown a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.09);
  color: #efc74c;
  outline: none;
}

.site-header-link--cta {
  padding: 10px 15px;
  border: 1px solid rgba(239, 199, 76, 0.7);
  border-radius: 999px;
  color: #fff;
}

.site-header-link.site-header-link--cta:hover,
.site-header-link.site-header-link--cta:focus-visible {
  border-color: #efc74c;
  background: #efc74c;
  color: #082d3b;
  outline: none;
}

.site-header-link:hover,
.site-header-link.active,
.site-header-link[aria-current="page"] {
  color: #efc74c;
}

.site-header-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.site-header-toggle span {
  width: 23px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header-nav.open .site-header-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header-nav.open .site-header-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header-nav.open .site-header-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header-logo {
    width: 92px;
  }

  .site-header-brand-name {
    font-size: 0.77rem;
  }

  .site-header-brand-tagline {
    font-size: 0.63rem;
  }

  .site-header-toggle {
    display: flex;
  }

  .site-header-links {
    display: none;
  }

  .site-header-nav.open .site-header-links {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: flex;
    max-height: calc(100vh - 84px);
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 29, 40, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  }

  .site-header-nav.open .site-header-link {
    display: block;
    min-height: 46px;
    padding: 12px;
    border-radius: 8px;
  }

  .site-header-nav.open .site-header-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

  .site-header-dropdown {
    position: static;
    width: auto;
    margin: 2px 0 6px 12px;
    padding: 5px;
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }

  .site-header-dropdown::before {
    display: none;
  }

  .site-header-dropdown a {
    min-height: 40px;
    padding: 9px 11px;
  }

  .site-header-link--cta {
    border-radius: 8px;
  }

  .site-header-nav.open .site-header-link:hover,
  .site-header-nav.open .site-header-link.active,
  .site-header-nav.open .site-header-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
  }

  .site-header-nav.open .site-header-link.site-header-link--cta:hover,
  .site-header-nav.open .site-header-link.site-header-link--cta:focus-visible {
    background: #efc74c;
    color: #082d3b;
  }

  body.site-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 11px 0;
  }

  .site-header-container {
    width: min(100% - 28px, 1140px);
  }

  .site-header-logo {
    width: 72px;
  }

  .site-header-brand {
    gap: 9px;
  }

  .site-header-brand-name {
    font-size: 0.67rem;
  }

  .site-header-brand-tagline {
    margin-top: 3px;
    font-size: 0.57rem;
  }
}

@media (max-width: 370px) {
  .site-header-brand-name {
    max-width: 138px;
    white-space: normal;
  }

  .site-header-brand-tagline {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-link,
  .site-header-toggle span {
    transition: none;
  }
}
