/* ==========================================================================
   HEADER & NAVIGATION STYLES (FULL-HEIGHT DRAWER WITH GROUPED CTA)
   ========================================================================== */

:root {
  --bg: #080808;
  --green: #39ff14;
  --white: #ffffff;
  --gray: #a1a1aa;
  --border: rgba(255, 255, 255, 0.07);
  --font: 'Geist', 'Segoe UI', sans-serif;
}

nav, nav *, nav *::before, nav *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Lock background scrolling when sidebar menu is open */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none;
}

/* ===================== BASE NAVBAR ===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990 !important;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

/* SCROLLED STATE BACKGROUND */
nav.scrolled {
  border-bottom: 1px solid var(--border) !important;
  background: rgba(8, 8, 8, 0.95) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  padding: 12px 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: auto;
  width: 200px;
  display: block;
}

/* WordPress Desktop Menu */
.desktop-menu-wrap {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
  transition: color .3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width .3s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links .current-menu-item > a::after {
  width: 100%;
}

/* Primary CTA Button */
.nav-cta {
  background: var(--green);
  color: #000;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .3s ease, transform .25s ease;
}

.nav-cta:hover {
  background: #fff;
  transform: scale(1.04);
}

/* Hamburger Toggle Icon */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 9995 !important;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* ===================== SIDEBAR DRAWER (100VH FULL HEIGHT) ===================== */
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9998 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh; /* Retains full 100vh screen height */
  background: #0d0d0d !important;
  border-left: 1px solid var(--border);
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Stacks items top-down */
  gap: 20px; /* Space between header, links, and CTA */
  padding: 30px 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-sidebar-drawer.active {
  transform: translateX(0);
}

/* Sidebar Sections */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo img {
  height: auto;
  width: 160px;
  display: block;
}

.menu-close-btn {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.menu-close-btn:hover {
  color: var(--green);
}

.sidebar-body {
  flex: 0 0 auto; /* Keeps layout tight so CTA sits right below */
  padding: 10px 0 0 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links .current-menu-item > a {
  color: var(--green);
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-cta {
  width: 100%;
  justify-content: center;
}

/* ===================== BREAKPOINT: TABLET & MOBILE (<= 1024px) ===================== */
@media screen and (max-width: 1024px) {
  nav {
    padding: 14px 24px !important;
  }

  nav.scrolled {
    padding: 14px 24px !important;
  }

  .desktop-menu-wrap,
  .main-nav-cta,
  nav .nav-links {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .nav-logo img {
    height: auto;
    width: 170px;
    display: block;
  }
}