/* Header sticky + glass */

.ps-site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  margin: 0;
  background: transparent;
}

.ps-site-header-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ps-header-fill);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--ps-border);
  box-shadow: inset 0 1px 0 var(--ps-glass);
}

body.admin-bar .ps-site-header-wrap {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ps-site-header-wrap {
    top: 46px;
  }
}

.ps-site-header {
  position: relative;
  width: 100%;
  height: 76px;
  z-index: 1;
  background: transparent;
  margin: 0;
}

.ps-site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1140px, calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
}

.ps-site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  z-index: 2;
}

.ps-site-header__logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.ps-site-header__logo-text {
  color: var(--ps-heading);
  font-size: 16px;
  font-weight: 700;
}

.ps-site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ps-heading);
  cursor: pointer;
  z-index: 2;
}

.ps-site-header__toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.ps-site-header__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ps-site-header__toggle-bars span:nth-child(1) { top: 0; }
.ps-site-header__toggle-bars span:nth-child(2) { top: 7px; }
.ps-site-header__toggle-bars span:nth-child(3) { top: 14px; }

.ps-site-header.is-open .ps-site-header__toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.ps-site-header.is-open .ps-site-header__toggle-bars span:nth-child(2) {
  opacity: 0;
}

.ps-site-header.is-open .ps-site-header__toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.ps-site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.ps-site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-site-header__menu > li > a {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--ps-nav) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.ps-site-header__menu > li > a:hover,
.ps-site-header__menu > li.current-menu-item > a,
.ps-site-header__menu > li.current_page_item > a {
  color: var(--ps-nav-hover) !important;
}

.ps-site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid rgba(123, 183, 255, 0.72);
  background: rgba(123, 183, 255, 0.035);
  color: var(--ps-cta-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.ps-site-header__cta:hover {
  background: rgba(123, 183, 255, 0.12);
  border-color: var(--ps-primary);
}

.ps-site-header__cta--mobile {
  display: none;
}

body.ps-nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .ps-site-header-wrap,
  .ps-site-header,
  .ps-site-header__inner {
    height: 68px;
  }

  .ps-site-header__inner {
    width: calc(100% - 32px);
  }

  .ps-site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .ps-site-header__cta--desktop {
    display: none;
  }

  .ps-site-header__nav {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 0;
    background: var(--ps-header-fill);
    backdrop-filter: blur(22px);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .ps-site-header.is-open .ps-site-header__nav {
    max-height: min(78vh, 560px);
    opacity: 1;
    visibility: visible;
    padding: 12px 20px 22px;
    overflow-y: auto;
  }

  .ps-site-header__menu {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-site-header__menu > li > a {
    width: 100%;
    padding: 14px 12px !important;
    color: var(--ps-heading) !important;
    font-size: 16px !important;
  }

  .ps-site-header__cta--mobile {
    display: inline-flex;
    margin-top: 8px;
    width: 100%;
  }
}
