/* Global dark base */
html, body {
  background-color: #000;
  color: #d0d0d0;
}

/* Sticky header */
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-bottom 300ms ease;
}

#masthead.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #232524;
}

.header-wrap {
  padding: 20px 0 16px;
}

.header-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 4px 4px 4px 4px; */
  border-radius: 12px;
}

.site-branding a {
  display: inline-flex;
  padding: 8px 16px;
  align-items: flex-start;
  border-radius: 8px;
  border: 1px solid #454545;
  color: #FFF;
  font-size: 24px;
  font-family: Helvetica Now Display;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-decoration: none;
}

/* ── Hamburger — hidden on desktop, shown on mobile ── */
.menu-btn {
  display: none;
}

.menu-btn-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid #454545;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: border-color 200ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn-toggle:hover {
  border-color: #888;
  background: rgba(255,255,255,0.04);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #D9D9D9;
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
              opacity   200ms ease,
              width     200ms ease;
  transform-origin: center;
}

/* X state */
.menu-btn-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-btn-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-menu .menu {
  display: flex;
  gap: 8px;
}
.header-menu .menu li a {
  display: flex;
  width: 159px;
  height: 52px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #454545;
  color: #D9D9D9;
  font-size: 16px;
  font-family: Helvetica Now Display;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-decoration: none;
}
.header-menu .menu li:hover a:before {
  margin-right: 8px !important;
  transition: all ease-out 300ms;
}
.header-menu .menu li:last-child a {
  display: flex;
  width: 159px;
  height: 52px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #454545;
  background: var(--linear, linear-gradient(168deg, #00E0FF 0%, #00FF94 100%));
  color: #1E1E1E;
  font-size: 16px;
  font-family: Helvetica Now Display;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
/* Numbered prefixes — desktop nav only */
.header-menu .menu li:nth-child(1) a:before { margin-right: 12px; content: "1 .  "; }
.header-menu .menu li:nth-child(2) a:before { margin-right: 12px; content: "2 .  "; }
.header-menu .menu li:nth-child(3) a:before { margin-right: 12px; content: "3 .  "; }
.header-menu .menu li:nth-child(4) a:before { margin-right: 12px; content: "4 .  "; }
.header-menu .menu li:nth-child(5) a:before { margin-right: 12px; content: "5 .  "; }
.header-menu .menu li:nth-child(6) a:before { margin-right: 12px; content: "6 .  "; }

/* Explicitly strip numbered prefixes from mobile menu */
.second--nav .header-menu-2 .menu li a:before { content: none !important; }

.header-menu .current_page_item a {
  border-radius: 8px;
  border: 2px solid #D9D9D9 !important;
}

/* ── Mobile dropdown nav ── */
.second--nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 0;
}

.second--nav.open {
  max-height: 600px;
  margin-top: 8px;
}

.second--nav .header-menu-2 .menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 8px 0 12px;
  margin: 0;
  gap: 6px;
}

.second--nav .header-menu-2 .menu li {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  /* opacity / transform owned by JS — do not set here */
}

.second--nav .header-menu-2 .menu li a {
  display: flex;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.03);
  color: #D9D9D9;
  font-size: 15px;
  font-family: Helvetica Now Display;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
  box-sizing: border-box;
}

.second--nav .header-menu-2 .menu li a:hover {
  border-color: rgba(0, 224, 255, 0.3);
  background: rgba(0, 224, 255, 0.05);
  color: #fff;
}

/* Active / current page — covers all WP classes */
.second--nav .header-menu-2 .menu li.current-menu-item a,
.second--nav .header-menu-2 .menu li.current_page_item a,
.second--nav .header-menu-2 .menu li.current-menu-ancestor a,
.second--nav .header-menu-2 .menu li.current-page-ancestor a {
  border-color: #555;
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Last item — CTA gradient */
.second--nav .header-menu-2 .menu li:last-child a {
  background: linear-gradient(168deg, #00E0FF 0%, #00FF94 100%);
  border-color: transparent;
  color: #0a0a0a;
  font-weight: 800;
}

.second--nav .header-menu-2 .menu li:last-child a:hover {
  opacity: 0.88;
  border-color: transparent;
  background: linear-gradient(168deg, #00E0FF 0%, #00FF94 100%);
  color: #0a0a0a;
}

/* ── Responsive breakpoints ── */
@media (max-width: 1280px) {
  /* Show hamburger, hide desktop nav */
  .menu-btn        { display: flex; }
  .main-navigation { display: none; }
}

@media (min-width: 1281px) {
  /* Hide mobile menu on desktop */
  .second--nav { display: none !important; }
  .menu-btn    { display: none !important; }
}