/* =====================================================
   MOBILE NAV FIX – Hassan Legacy Projects
   Upload this file and add in <head> AFTER styles.css:
   <link rel="stylesheet" href="css/mobile-fix.css">
   ===================================================== */

/* Always show hamburger on phones & tablets */
@media (max-width: 1024px) {
  .nav {
    display: none !important;
  }
  .header-cta .btn {
    display: none !important;
  }
  .phone-link {
    display: inline-block !important;
  }
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 10px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 10050 !important;
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
  }
  .menu-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2.5px !important;
    background: #303442 !important;
    border-radius: 2px !important;
    pointer-events: none !important;
  }
  .header-inner {
    height: 64px !important;
  }
}

/* Force full-screen mobile menu panel when open */
.mobile-nav.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 64px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  height: calc(100vh - 64px) !important;
  height: calc(100dvh - 64px) !important;
  min-height: calc(100vh - 64px) !important;
  min-height: calc(100dvh - 64px) !important;
  max-height: none !important;
  background: #ffffff !important;
  padding: 1.25rem 1.5rem 3rem !important;
  z-index: 10040 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
}

.mobile-nav.open a {
  display: block !important;
  padding: 1rem 0 !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #303442 !important;
  border-bottom: 1px solid #e5e3df !important;
  text-decoration: none !important;
}

.mobile-nav.open a:active,
.mobile-nav.open a:hover {
  color: #F47629 !important;
}

.mobile-nav.open .btn {
  display: flex !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
  justify-content: center !important;
}

/* Base hidden state */
.mobile-nav:not(.open) {
  display: none !important;
}

/* Prevent body scroll when menu open */
body.menu-open,
html.menu-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
}

.site-header {
  overflow: visible !important;
  z-index: 10030 !important;
}
