/* ══════════════════════════════════════
   MOBILE NAV — slide-in drawer + overlay
   Activated by .menu-btn (see 01-nav.css / 11-responsive.css,
   which already hides .nav ul and shows .menu-btn under 960px).
   ══════════════════════════════════════ */

.mobile-nav-wrapper {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav-wrapper.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 26, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-wrapper.is-open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(320px, 84vw);
  background: var(--graphene);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 22px 28px;
  overflow-y: auto;
}
.mobile-nav-wrapper.is-open .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav-title {
  font-family: Poppins;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.mobile-nav-close {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.08);
}
.mobile-nav-close span {
  position: absolute;
  left: 8px;
  top: 17px;
  width: 20px;
  height: 2px;
  background: #fff;
}
.mobile-nav-close span:first-child {
  transform: rotate(45deg);
}
.mobile-nav-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav-links a {
  display: block;
  padding: 14px 4px;
  color: #c7d0e2;
  text-decoration: none;
  font-size: 1rem;
}
.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  color: #fff;
}

.mobile-nav-cta {
  margin-top: 14px !important;
  background: linear-gradient(97deg, var(--blue), var(--magenta));
  color: #fff !important;
  border-radius: 8px;
  text-align: center;
  font-family: Poppins;
  font-weight: 500;
  padding: 13px 4px !important;
}
.mobile-nav-links li:has(.mobile-nav-cta) {
  border-bottom: 0;
  margin-top: 6px;
}

/* Locks background scroll while the drawer is open */
body.nav-open {
  overflow: hidden;
}
