/**
 * Mobile Fixes CSS
 * Prevents zoom issues and improves mobile touch interactions
 */

/* Prevent zoom on double tap and input focus */
* {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Ensure proper touch targets (minimum 44x44px) */
button, a, input, select, textarea {
  min-height: 44px;
  min-width: 44px;
}

/* Mobile menu button specific styles */
#mobileToggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobileToggle:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

/* Prevent text size adjustment on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Prevent zoom on input focus (iOS Safari) */
input, select, textarea {
  font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Mobile menu overlay improvements */
#mobile-nav {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

#mobile-nav.open {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

html.menu-open {
  overflow: hidden !important;
}

/* Improve touch targets for mobile menu items */
#mobile-nav a,
#mobile-nav button,
#mobile-nav summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Prevent accidental zoom on form inputs */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Smooth transitions for mobile */
@media (prefers-reduced-motion: no-preference) {
  * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}

