/* nav-mega.css — mega-menu navbar styling.
   Loaded site-wide by fmv_gold_enqueue_mockup_baseline().
   Source: extracted from page-features.php inline styles on 2026-04-26
   when the mega-menu was promoted to the site-wide default navbar.
*/
.nav-link-fmv.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.4em;
  vertical-align: 0.1em;
  content: "";
  border-top: 0.32em solid currentColor;
  border-right: 0.32em solid transparent;
  border-bottom: 0;
  border-left: 0.32em solid transparent;
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-item.dropdown:hover .nav-link-fmv.dropdown-toggle::after,
.nav-item.dropdown.show .nav-link-fmv.dropdown-toggle::after {
  transform: rotate(180deg);
  opacity: 1;
}
.dropdown-menu-fmv {
  min-width: 320px;
  max-width: 360px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(26, 31, 58, 0.12);
  margin-top: 8px !important;
  background: #ffffff;
}
.dropdown-item-fmv {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fmv-dark, #1a1f3a);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.dropdown-item-fmv:hover,
.dropdown-item-fmv:focus {
  background: rgba(197, 160, 40, 0.08);
  color: var(--fmv-dark, #1a1f3a);
}
.dropdown-item-fmv + .dropdown-item-fmv { margin-top: 2px; }
.dropdown-icon-fmv {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(197, 160, 40, 0.1);
  color: var(--fmv-gold-dark, #a07f1e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.dropdown-title-fmv {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fmv-dark, #1a1f3a);
  line-height: 1.3;
  margin-bottom: 0.15rem;
  display: block;
}
.dropdown-desc-fmv {
  font-size: 0.82rem;
  color: var(--fmv-muted, #6c757d);
  line-height: 1.4;
  display: block;
}
.dropdown-footer-fmv {
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dropdown-footer-fmv a {
  color: var(--fmv-gold-dark, #a07f1e);
  text-decoration: none;
  font-weight: 600;
}
.dropdown-footer-fmv a:hover { color: var(--fmv-gold, #c5a028); }
@media (min-width: 992px) {
  .dropdown-menu-fmv {
    opacity: 0;
    transform: translateY(6px);
    display: block;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-item.dropdown:not(:hover):not(.show) > .dropdown-menu-fmv {
    display: none;
  }
  .nav-item.dropdown:hover > .dropdown-menu-fmv,
  .nav-item.dropdown.show > .dropdown-menu-fmv {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Bridge the hover gap so the panel doesn't close while moving cursor down */
  .nav-item.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}
.nav-link-fmv.is-active {
  color: var(--fmv-gold-dark, #a07f1e);
  position: relative;
}
.nav-link-fmv.is-active::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--fmv-gold, #c5a028);
  border-radius: 2px;
}
