/* public/css/nav.css
 * Owns: hamburger menu toggle + mobile drawer for site navigation.
 * Does NOT own: desktop nav layout — that stays in each page's inline styles.
 */

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}
.hamburger-btn svg {
  width: 28px;
  height: 28px;
  stroke: #CDFF64;
  stroke-width: 2;
  fill: none;
}

/* Mobile drawer overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
}

/* Mobile drawer panel */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #1A1A1A;
  border-left: 1px solid #2A2A2A;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

/* Drawer header with close button */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2A2A2A;
}
.drawer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #CDFF64;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.drawer-close svg {
  width: 24px;
  height: 24px;
  stroke: #999;
  stroke-width: 2;
  fill: none;
}
.drawer-close:hover svg {
  stroke: #F5F5F0;
}

/* Drawer nav links */
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-links a {
  display: block;
  padding: 14px 16px;
  color: #999;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.drawer-links a:hover,
.drawer-links a.active {
  color: #F5F5F0;
  background: #2A2A2A;
}
.drawer-links .drawer-cta {
  display: block;
  margin-top: 16px;
  background: #CDFF64;
  color: #0D0D0D;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}
.drawer-links .drawer-cta:hover {
  opacity: 0.88;
  background: #CDFF64;
  color: #0D0D0D;
}

/* ====== Mobile breakpoint ====== */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav links */
  .hamburger-btn {
    display: block;
  }
  .nav-links {
    display: none !important;
  }
  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: block;
  }
}
