/* ====== IPHONE HAMBURGER FIX ====== */
/* This file fixes hamburger animation issues on iPhone and iOS devices */

/* ====== iOS SPECIFIC FIXES ====== */
@media (max-width: 768px) {
  /* Force hamburger container for iOS */
  .mobile-nav .hamburger {
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    gap: 4px !important;
    padding: 8px !important;
    z-index: 1001 !important;
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    justify-content: center !important;
    align-items: center !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  
  /* iOS specific hamburger lines */
  .mobile-nav .hamburger div {
    width: 25px !important;
    height: 3px !important;
    background: #123458 !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    margin: 0 !important;
    transform-origin: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-transform-origin: center !important;
    -webkit-transition: all 0.3s ease !important;
  }
  
  /* iOS X ANIMATION - When hamburger is active */
  .mobile-nav .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
    -webkit-transform: rotate(45deg) translate(5px, 5px) !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    background: #123458 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .mobile-nav .hamburger.active div:nth-child(2) {
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    visibility: hidden !important;
    display: none !important;
  }
  
  .mobile-nav .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
    -webkit-transform: rotate(-45deg) translate(7px, -6px) !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    background: #123458 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* iOS HAMBURGER STATE - When not active */
  .mobile-nav .hamburger:not(.active) div:nth-child(1) {
    transform: none !important;
    -webkit-transform: none !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    background: #123458 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .mobile-nav .hamburger:not(.active) div:nth-child(2) {
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    background: #123458 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .mobile-nav .hamburger:not(.active) div:nth-child(3) {
    transform: none !important;
    -webkit-transform: none !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    background: #123458 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Force override for iOS */
  .mobile-nav .hamburger div[style*="transform"] {
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    transform-origin: center !important;
    -webkit-transform-origin: center !important;
  }
  
  .mobile-nav .hamburger div[style*="opacity"] {
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
  }
}

/* ====== iOS SAFARI SPECIFIC FIXES ====== */
@supports (-webkit-touch-callout: none) {
  .mobile-nav .hamburger {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  
  .mobile-nav .hamburger div {
    -webkit-transform-origin: center !important;
    -webkit-transition: all 0.3s ease !important;
  }
  
  .mobile-nav .hamburger.active div:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(5px, 5px) !important;
    -webkit-transition: all 0.3s ease !important;
  }
  
  .mobile-nav .hamburger.active div:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(7px, -6px) !important;
    -webkit-transition: all 0.3s ease !important;
  }
}

/* ====== iOS HAMBURGER STYLES ====== */
/* Clean styles for production */
