/* ============================================
   MOBILE MENU - FULL SCREEN OVERLAY FIX
   Pixabay-style clean full-screen menu
   ============================================ */

/* Hide mobile nav sheet by default on desktop */
.mobile-nav-sheet {
  display: none !important;
}

@media (max-width: 768px) {
  /* Full screen overlay menu - override all other styles */
  body .navbar .nav-links,
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    display: none;
    flex-direction: column;
    padding: 0 !important;
    gap: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .nav-links.active,
  body.nav-open .nav-links,
  body.menu-open .nav-links {
    display: flex !important;
  }
  
  /* Mobile nav sheet header with logo and close button */
  .mobile-nav-sheet {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-nav-sheet__logo {
    display: flex;
    align-items: center;
  }
  
  .mobile-nav-sheet__logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
  }
  
  .mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.04);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark);
    transition: all 0.2s ease;
  }
  
  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    background: rgba(0,0,0,0.08);
  }
  
  .mobile-nav-close span {
    line-height: 1;
    margin-top: -2px;
  }
  
  /* Menu content wrapper */
  .nav-links > *:not(.mobile-nav-sheet) {
    margin: 0 20px;
  }
  
  /* Menu items styling */
  .nav-link {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 18px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: left;
    text-decoration: none;
  }
  
  /* Dropdown styling in mobile menu */
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: 0 20px !important;
  }
  
  .nav-dropdown-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }
  
  .nav-dropdown-trigger i,
  .nav-dropdown-trigger .dropdown-icon {
    font-size: 14px;
    color: var(--gray-500);
    transition: transform 0.3s ease;
  }
  
  .nav-dropdown.is-open .nav-dropdown-trigger i,
  .nav-dropdown.is-open .nav-dropdown-trigger .dropdown-icon {
    transform: rotate(180deg);
  }
  
  /* Dropdown menu items */
  .nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 0 16px 0 !important;
    display: none;
    min-width: auto !important;
    border: none !important;
  }
  
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }
  
  .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 12px 8px;
    font-size: 15px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  
  .nav-dropdown-item:hover,
  .nav-dropdown-item:active {
    background: rgba(0,0,0,0.02);
  }
  
  .nav-dropdown-item i,
  .nav-dropdown-item .menu-icon {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 16px;
  }
  
  .nav-dropdown-item > div {
    display: flex;
    flex-direction: column;
  }
  
  .nav-dropdown-item strong {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
  }
  
  .nav-dropdown-item span {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
  }
  
  .nav-dropdown-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 8px 0;
  }
  
  /* Close button styling - ensure it's visible */
  .mobile-menu-btn {
    z-index: 1000000 !important;
    position: relative;
  }
  
  /* When menu is open, body should not scroll */
  body.nav-open,
  body.menu-open {
    overflow: hidden !important;
    touch-action: none;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  /* Ensure navbar stays above everything when menu closed */
  .navbar {
    z-index: 1000;
  }
  
  /* Ensure menu button is always clickable */
  .mobile-menu-btn {
    pointer-events: auto !important;
  }
}
