/* RAM Mobile Navigation Accessibility Fix V1
   Fixes dark-mode white-on-white menu text and fixed contact bar overlap.
   Scoped to the React mobile navigation; no changes to site content/SEO. */
@media (max-width: 1024px) {
  /* Keep the menu above the floating phone/WhatsApp bar (z-index 9995). */
  header.header { z-index: 10010 !important; }
  header.header .header-nav {
    background: rgba(255, 255, 255, .98) !important;
    border-color: #dce5ea !important;
  }
  header.header .mobile-menu-btn { color: #173147 !important; }

  header.header .mobile-menu-dropdown {
    background: #ffffff !important;
    color: #173147 !important;
    border-color: #dce5ea !important;
    z-index: 10011 !important;
    max-height: calc(100vh - 116px - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  @supports (height: 100dvh) {
    header.header .mobile-menu-dropdown {
      max-height: calc(100dvh - 116px - env(safe-area-inset-bottom, 0px));
    }
  }
  header.header .mobile-nav-links { gap: .3rem !important; }
  header.header .mobile-nav-links > a:not(.mobile-quote-btn),
  header.header .mobile-nav-links .accordion-content a,
  header.header .mobile-nav-links .accordion-btn,
  header.header .mobile-nav-links .mqc-item span {
    color: #173147 !important;
  }
  header.header .mobile-nav-links .accordion-btn {
    width: 100%;
    min-height: 42px;
    align-items: center;
  }
  header.header .mobile-nav-links .accordion-content {
    gap: .25rem;
    border-color: #c9e7e0;
  }
  header.header .mobile-nav-links .mobile-quote-btn {
    background: #0b7a6f !important;
    color: #ffffff !important;
    margin-top: .5rem;
  }
  header.header .mobile-quick-contact { border-color: #dce5ea !important; padding-bottom: .75rem; }
  header.header .mobile-quick-contact .mqc-title { color: #64748b !important; }
  header.header .mobile-quick-contact .mqc-item a { color: #0b7a6f !important; }
  header.header .mobile-menu-dropdown a:focus-visible,
  header.header .mobile-menu-dropdown button:focus-visible {
    outline: 3px solid #f5c55b;
    outline-offset: 2px;
  }
}
