/* =========================================================================
   Main navigation dropdowns (Oct 31, 2026). Markup: includes/header.php
   ========================================================================= */
.navbar .dropdown-toggle::after { border: 0; width: 7px; height: 7px; margin-left: 7px; vertical-align: 2px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .7; }
.navbar-nav .nav-link.active { color: var(--gold-ink); }
.mx-menu { --mx-pad: 22px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(6,29,48,.18); background: var(--paper); padding: var(--mx-pad); }
.mx-head { display: block; font-size: .8125rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-ink); margin: 2px 10px 8px; }
.mx-link { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.3; transition: background-color .15s, color .15s; }
.mx-link b { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--navy); }
.mx-link small { display: block; font-size: .9375rem; color: var(--steel); margin-top: 1px; }
.mx-link--sm { font-size: 1rem; font-weight: 550; color: var(--navy); padding: 7px 10px; }
.mx-link:hover, .mx-link:focus-visible { background: var(--gold-tint); color: var(--navy); }
.mx-link:hover b { color: var(--gold-ink); }
.mx-all { display: inline-block; margin: 10px 10px 0; font-size: 1rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; }
.mx-all:hover { color: var(--navy); }
.mx-cols { display: grid; gap: 6px 18px; }

@media (min-width: 992px) {
  .navbar .nav-item.dropdown { position: relative; }
  .navbar .nav-item.dropdown.mx-static { position: static; }
  .navbar .mx-menu { position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%); margin: 0; display: none; z-index: 1050; }
  .navbar .mx-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
  .navbar .nav-item.dropdown:hover > .mx-menu, .navbar .nav-item.dropdown:focus-within > .mx-menu, .navbar .mx-menu.show { display: grid; animation: mxIn .16s ease-out; }
  .navbar .nav-item.dropdown:hover > .dropdown-toggle::after, .navbar .nav-item.dropdown:focus-within > .dropdown-toggle::after { transform: rotate(-135deg); vertical-align: -1px; }
  .mx-services { width: min(1000px, 96vw); grid-template-columns: 1fr 280px; gap: 22px; }
  .mx-services .mx-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-specialties { width: min(900px, 96vw); grid-template-columns: 1fr; }
  .mx-specialties .mx-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-resources { width: 620px; grid-template-columns: 1fr; }
  .mx-resources .mx-cols { grid-template-columns: 1fr 1.15fr; }
  .mx-about { width: 300px; grid-template-columns: 1fr; padding: 12px; }
  .mx-promo { border-radius: 14px; background: var(--navy); color: var(--on-dark); padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
  .mx-promo .mx-head { color: var(--gold); margin: 0 0 8px; }
  .mx-promo p { font-size: 1rem; color: var(--on-dark); margin: 0 0 14px; }
  .mx-promo .mx-all { color: var(--gold); margin: auto 0 0; padding-top: 14px; }
  .mx-promo .mx-all:hover { color: #fff; }
  .mx-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--steel); }
  .mx-foot .mx-all { margin: 0; white-space: nowrap; }
}
@keyframes mxIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

/* Mobile and tablet: stacked lists inside the collapsed menu */
@media (max-width: 991.98px) {
  #site-nav { max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .navbar .mx-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--gold-tint); border-radius: 0; padding: 4px 0 8px 12px; margin: 0 0 8px 8px; background: transparent; }
  .navbar .mx-menu.show { display: block; }
  .navbar .dropdown-toggle.show::after { transform: rotate(-135deg); vertical-align: -1px; }
  .mx-cols { grid-template-columns: 1fr; gap: 0; }
  .mx-head { margin: 10px 8px 4px; }
  .mx-link { padding: 7px 8px; }
  .mx-link small { display: none; }
  .mx-link b { font-size: 1rem; }
  .mx-promo { padding: 6px 8px; }
  .mx-promo p, .mx-promo .btn { display: none; }
  .mx-promo .mx-head { display: none; }
  .mx-foot span { display: none; }
  .mx-all { margin: 6px 8px 4px; }
}
@media (prefers-reduced-motion: reduce) { .navbar .mx-menu { animation: none !important; } }
