/* ------------------------------------------------------
   HEADER — BenCode Studio
------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-branding img.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transform: scale(2.4);
  transform-origin: left center;
  margin-top: -10px;
}

/* Ensure WordPress custom logo displays larger */
.site-branding img.custom-logo {
  height: 40px !important;
  width: auto !important;
  object-fit: contain;
  transform: scale(2.4);
  transform-origin: left center;
  margin-top: -10px;
}

/* --------------------
   Desktop Navigation
--------------------- */
.desktop-nav {
  display: flex;
}

.primary-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li a {
  text-decoration: none;
  font-weight: 600;
  color: #1f1028;
  transition: 0.25s;
  padding: 4px 0;
}

.primary-menu li a:hover {
  color: #6a1b9a;
}

.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a {
  color: #6e2cff;
  position: relative;
}

.primary-menu li.current-menu-item > a::after,
.primary-menu li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 6px;
  background: rgba(110,44,255,0.35);
  border-radius: 6px;
  filter: blur(6px);
}

/* CTA (Desktop Only) */
.header-cta {
  background: linear-gradient(135deg, #6a1b9a, #4a148c);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin-left: 25px;
  transition: 0.25s;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(106,27,154,0.35);
}

/* --------------------
   MOBILE
--------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  background: #f3e9ff;
  border: 1px solid rgba(110,44,255,0.35);
  border-radius: 8px;
}

.menu-toggle span {
  opacity: 1 !important;
  background: #4a148c !important;
  width: 24px;
  height: 3px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #4a148c !important;
  border-radius: 3px;
  transition: 0.3s;
}

.menu-toggle span {
  box-shadow: 0 0 10px rgba(110, 44, 255, 0.55);
}

.menu-toggle.active span {
  background: #6e2cff !important;
  box-shadow: 0 0 12px rgba(110,44,255,0.6);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu li a {
  text-decoration: none;
  color: #1f1028;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Mobile CTA */
.mobile-cta {
  display: inline-block;
  background: linear-gradient(135deg, #6a1b9a, #4a148c);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

/* --------------------
   ACTIVE STATES
--------------------- */
.mobile-nav.open {
  display: flex;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------
   RESPONSIVE BREAKPOINT
--------------------- */
@media (max-width: 900px) {
  .desktop-nav,
  .desktop-only {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  /* ✅ Proper mobile logo size */
  .site-logo {
    height: 32px;
  }
}
