/* HairTC Mobile Quick Nav — mobile only (under 767px) */

.hairtc-mqn { display: none; }

@media (max-width: 767px) {
  /* Unstick the GP header on mobile so the logo scrolls away.
     Body prefix bumps specificity over .site-header rules in inline styles. */
  body header#masthead.site-header,
  body header.site-header,
  body #masthead,
  html body header.site-header {
    position: relative !important;
    top: auto !important;
    box-shadow: none !important;
  }

  /* Quick nav becomes the sticky element on mobile */
  body .hairtc-mqn {
    display: block !important;
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-sizing: border-box;
  }
  .hairtc-mqn-scroll {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px;
    box-sizing: border-box;
  }
  .hairtc-mqn-scroll::-webkit-scrollbar { display: none; }
  .hairtc-mqn-item {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #475569;
    background: #F3F4F6;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: background .15s ease, color .15s ease;
  }
  .hairtc-mqn-item:active { background: #E5E7EB; }
  .hairtc-mqn-item.active {
    background: #0E2A47;
    color: #FFFFFF;
  }

  /* Hide the broken GeneratePress mobile hamburger toggle on mobile only */
  .menu-toggle,
  .mobile-menu-control-wrapper,
  .main-navigation .menu-toggle,
  .inside-navigation button.menu-toggle,
  button.menu-toggle {
    display: none !important;
  }
}

/* When the WP admin bar is showing, push the quick nav below it on mobile */
@media (max-width: 767px) {
  body.admin-bar .hairtc-mqn { top: 46px !important; }
}

/* HAIRTC_MQN_5PILL_V2 */
@media (max-width: 767px) {
  body .hairtc-mqn-scroll { gap: 4px !important; padding: 8px 10px !important; justify-content: space-between !important; overflow-x: visible !important; }
  body .hairtc-mqn-item { flex: 0 0 auto !important; min-width: auto !important; max-width: none !important; padding: 7px 9px !important; font-size: 11px !important; letter-spacing: 0.02em !important; text-align: center !important; white-space: nowrap !important; overflow: visible !important; text-overflow: unset !important; }
}
