#mobileNav {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(135deg, #0B3D2E 0%, #144d3a 100%);
  color: #F9F5EC;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out, visibility .3s ease-in-out;
  -webkit-overflow-scrolling: touch;
}

#mobileNav.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mobileNav .nav-link,
#mobileNav .submenu-toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #F9F5EC;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .25s ease, background-color .25s ease;
}

#mobileNav .nav-link:hover,
#mobileNav .nav-link:focus-visible,
#mobileNav .submenu-toggle:hover,
#mobileNav .submenu-toggle:focus-visible {
  color: #D4A843;
  background: rgba(255, 255, 255, .04);
}

#mobileNav .nav-active { color: #D4A843; }

#mobileNav .nav-active::before {
  content: "";
  position: absolute;
  left: -.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 3px;
  border-radius: 9999px;
  background: #D4A843;
}

#mobileNav .mobile-mega {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease, padding-bottom .3s ease;
}

#mobileNav .has-mega.open .mobile-mega {
  max-height: 34rem;
  padding-bottom: .6rem;
  opacity: 1;
}

#mobileNav .has-mega.open > button svg { transform: rotate(180deg); }

#mobileNav .mobile-mega a {
  display: block;
  padding: .35rem 0;
  color: rgba(249, 245, 236, .9);
  font-size: .95rem;
  transition: color .2s ease;
}

#mobileNav .mobile-mega a:hover,
#mobileNav .mobile-mega a:focus-visible { color: #D4A843; }

@media (max-width: 767px) {
  #mobileNav { padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) {
  #mobileNav,
  #mobileNav .mobile-mega { transition: none; }
}
