/* =========================================================
   ThetaSound Native Menu — keeps current premium aesthetic
========================================================= */

.theta-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background:
    linear-gradient(180deg, rgba(3,3,5,.76), rgba(3,3,5,.30));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease;
}

.theta-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(155,232,255,.10), transparent 30%),
    radial-gradient(circle at 82% 50%, rgba(180,156,255,.08), transparent 32%);
  opacity: .75;
  pointer-events: none;
}

.theta-header.is-scrolled {
  background: rgba(3,3,5,.88);
  border-bottom-color: rgba(155,232,255,.16);
  box-shadow:
    0 22px 70px rgba(0,0,0,.42),
    0 0 36px rgba(155,232,255,.08);
}

.theta-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theta-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.theta-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #030305;
  background: linear-gradient(135deg, #9be8ff, #b49cff);
  box-shadow: 0 0 26px rgba(155,232,255,.22);
  font-size: 18px;
  line-height: 1;
}

.theta-logo-text {
  letter-spacing: .24em;
  font-size: 12px;
  text-transform: uppercase;
}

.theta-menu,
.theta-menu-list {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.theta-menu li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.theta-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .25s ease, text-shadow .25s ease;
  padding: 10px 0;
}

.theta-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #9be8ff, #b49cff);
  box-shadow: 0 0 14px rgba(155,232,255,.45);
  transition: width .28s ease;
}

.theta-menu a:hover,
.theta-menu .current-menu-item > a,
.theta-menu .current_page_item > a,
.theta-menu .current-menu-ancestor > a {
  color: #9be8ff;
  text-shadow: 0 0 20px rgba(155,232,255,.22);
}

.theta-menu a:hover::after,
.theta-menu .current-menu-item > a::after,
.theta-menu .current_page_item > a::after,
.theta-menu .current-menu-ancestor > a::after {
  width: 100%;
}

/* Submenus */
.theta-menu .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(155,232,255,.12), transparent 35%),
    rgba(8,8,14,.94);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.theta-menu li:hover > .sub-menu,
.theta-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.theta-menu .sub-menu li {
  display: block;
}

.theta-menu .sub-menu a {
  display: flex;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 10px;
  letter-spacing: .16em;
}

.theta-menu .sub-menu a::after {
  display: none;
}

.theta-menu .sub-menu a:hover {
  background: rgba(155,232,255,.08);
}

.theta-menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(155,232,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  padding: 0 11px;
}

.theta-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  margin: 6px 0;
  transition: transform .25s ease, opacity .25s ease;
}

.theta-menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.theta-menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hide old hero menu from legacy HTML/widgets */
.theta-hero .theta-nav,
.theta-home .theta-hero .theta-nav,
.theta-hero-simple .theta-nav,
.theta-hero-simple nav.theta-nav {
  display: none !important;
}

@media (max-width: 900px) {
  .theta-header-inner {
    padding: 15px 18px;
  }

  .theta-logo-mark {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  .theta-logo-text {
    font-size: 11px;
    letter-spacing: .18em;
  }

  .theta-menu-toggle {
    display: block;
  }

  .theta-menu {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    padding: 22px;
    border-radius: 22px;
    background:
      radial-gradient(circle at 20% 0%, rgba(155,232,255,.12), transparent 35%),
      rgba(8,8,14,.94);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 30px 90px rgba(0,0,0,.58);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity .25s ease, transform .25s ease;
  }

  .theta-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .theta-menu-list,
  .theta-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .theta-menu a {
    font-size: 12px;
    letter-spacing: .18em;
  }

  .theta-menu .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 4px 0 0 14px;
    padding: 8px 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .theta-menu li:hover > .sub-menu,
  .theta-menu li:focus-within > .sub-menu {
    transform: none;
  }
}
