/* mobile-menu.css - Mobile menu toggle and responsive menu styles */

/* Mobile Menu Toggle Button - Only visible on mobile */
.menu-toggle {
  display: none;
  background: #666666;
  color: #FFFFFF;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
}

.hamburger {
  display: inline-block;
  width: 25px;
  height: 20px;
  position: relative;
  margin-right: 10px;
  vertical-align: middle;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.menu-toggle.active .hamburger span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Mobile menu behavior - applies to both portrait and landscape */
@media (max-width: 1024px) {
  #ja-header,
  #ja-mainnav,
  #ja-container,
  #ja-footer {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  #ja-header {
    height: auto;
    padding: 15px 10px;
  }

  h1.logo a {
    width: 250px;
    height: 60px;
    background-size: contain;
    position: relative;
  }

  #ja-headtools {
    position: relative;
    top: 10px;
    right: auto;
    margin-top: 10px;
  }

  /* Show mobile menu toggle */
  .menu-toggle {
    display: block !important;
  }

  /* Hide desktop menu by default on mobile */
  #ja-mainnav {
    display: none !important;
  }

  /* Show menu when active */
  #ja-mainnav.active {
    display: block !important;
  }

  #ja-cssmenu li {
    float: none !important;
    border-right: none !important;
    border-bottom: 1px solid #CCCCCC;
  }

  #ja-cssmenu li a {
    padding: 12px 15px !important;
  }

  /* Mobile submenu */
  #ja-cssmenu li ul {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    display: none;
    background: #555555;
    border: none;
  }

  #ja-cssmenu li.active > ul {
    display: block;
  }

  #ja-cssmenu li ul li {
    width: 100% !important;
    padding: 0 !important;
  }

  #ja-cssmenu li ul a {
    width: 100% !important;
    padding-left: 30px !important;
  }

  #ja-footer {
    padding: 20px 10px;
    height: auto;
    min-height: 200px;
  }

  #ja-footer table {
    width: 100%;
  }

  #ja-footer table td {
    padding: 5px;
  }
}