/* Nav tweaks layered after styles.css. The design's dropdown/mega styles are
   class-based and already cover the data-driven Header (step3). The only new
   case is a CLICKABLE mega-menu column heading (a.nav-mega-title) — e.g.
   "Functional Appliances", which links to its single page. Make the anchor
   render identically to the <p> heading, with a maroon hover like the links. */
a.nav-mega-title {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
a.nav-mega-title:hover { color: var(--maroon); }

/* ── Menu overlay ──
   Dark scrim behind all nav dropdowns (mega + simple). JS in main.js adds
   .trigged on mouseenter of any .has-mega/.has-dropdown nav item and removes
   it on .nav-list mouseleave. The header (z-index: 100) and its dropdown panels
   (z-index: 120) render on top of the overlay (z-index: 98), so the header's
   white background naturally masks the overlay in the header area — only the
   page content below gets darkened. */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.menu-overlay.trigged {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
