/*
 * OHPAG header / menu responsive rules
 * ------------------------------------------------------------------
 * Restores the template's header behaviour that normally lives in
 * responsive.css (which is currently empty on the server):
 *   - desktop (>= 1200px): dropdown submenus show on hover
 *   - below 1200px: compact bar with logo + hamburger, slide-in mobile menu
 * Safe to keep even if the original responsive.css is restored later.
 * Loaded from includes/header.php after responsive.css.
 */

/* ---------- Desktop: dropdowns on hover ---------- */
@media only screen and (min-width: 1200px) {
  .main-menu .navigation > li > ul,
  .main-menu .navigation > li > ul > li > ul,
  .main-menu .navigation > li > .megamenu {
    display: block !important;
  }
}

/* ---------- Tablet & phone: compact header + hamburger ---------- */
@media only screen and (max-width: 1199px) {
  .main-header .main-menu,
  .main-header .sticky-header,
  .main-header .menu-right-content {
    display: none !important;
  }

  .main-header .header-lower .outer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 8px 0px;
  }

  .main-header .header-lower .logo-box {
    padding: 0px;
  }

  .main-header .menu-area .mobile-nav-toggler {
    display: block;
    float: none;
    padding: 12px 8px;
    margin: 0px;
    line-height: 1;
    background: transparent;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }

  .main-header .menu-area .mobile-nav-toggler .icon-bar {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--secondary-color, #143248);
  }
}

/* ---------- Mobile menu panel ---------- */
.mobile-menu .close-btn {
  background: transparent;
  border: none;
  padding: 0px;
  width: 30px;
  font-size: 20px;
}

.mobile-menu .nav-logo {
  padding: 40px 25px 30px;
}

.mobile-menu .contact-info {
  padding: 40px 25px 20px;
}

.mobile-menu .navigation li > a {
  text-transform: none;
}

/* Whole row of a dropdown parent toggles its submenu (not just the small arrow box) */
.mobile-menu .navigation li.dropdown .dropdown-btn {
  left: 0px;
  right: 0px;
  top: 0px;
  width: auto;
  height: 44px;
  padding-right: 6px;
  text-align: right;
  line-height: 44px;
  background: transparent;
}

.mobile-menu .navigation li.dropdown .dropdown-btn.open {
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}

.mobile-menu .navigation li.dropdown .dropdown-btn span {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  vertical-align: middle;
  border-radius: 2px;
  background: rgba(255,255,255,0.10);
  transition: transform 300ms ease;
}

.mobile-menu .navigation li.dropdown .dropdown-btn.open span {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.mobile-menu .navigation li ul li > a {
  font-size: 15px;
}
