/* Mobile Menu Styles */

/* By default, show desktop nav and hide mobile elements */
.desktop-nav, .desktop-btn {
  display: flex;
}

.mobile-menu-button {
  display: none;
}

/* Hide desktop navigation and show mobile button on small screens */
@media (max-width: 768px) {
  .desktop-nav, .desktop-btn {
    display: none !important;
  }
  
  .mobile-menu-button {
    display: block !important;
  }
}

/* Mobile Menu Button */
.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  padding: 0;
  position: relative;
  width: 30px;
  z-index: 1000;
}

.mobile-menu-button span {
  background-color: var(--black);
  border-radius: 2px;
  display: block;
  height: 4px;
  margin-bottom:6px;
  transition: var(--transition-normal);
  width: 100%;
}

/* Hamburger animation */
.mobile-menu-button.open span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 80px; /* Adjust based on your header height */
  transition: max-height 0.3s ease, opacity 0.3s ease;
  width: 100%;
  z-index: 999;
}

.mobile-menu .nav-link {
  padding: var(--space-md);
  width: 100%;
  border-bottom: 1px solid var(--gray-200);
  font-weight: var(--font-weight-medium);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

/* When menu is open, add slight opacity to the main content */
body.menu-open::after {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* Footer mobile adjustments */
@media (max-width: 768px) {
  footer [style*="display: flex; justify-content: space-between;"] {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  footer [style*="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;"] {
    flex-direction: column;
    align-items: flex-start;
  }
}

