@import url("../../styles.css");
@import url("../styles.css");
@import url("/styles.css");

/* ==========================================================================
   NY PLUMBING — HUNTS POINT, BRONX NAVIGATION & DROPDOWN ENGINE
   Dual compatibility for Cloudflare Pages (/assets/...) and local file:///
   ========================================================================== */

@media (min-width: 840px) {
  .hp-nav-list {
    display: flex !important;
  }
  .hp-menu-toggle {
    display: none !important;
  }
}

.hp-nav-item,
.hp-has-dropdown {
  position: relative !important;
}

/* Invisible hover bridge to prevent menu from closing when moving cursor across gap */
.hp-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -10px;
  right: -10px;
  height: 20px;
  display: block;
}

/* Dropdown display on hover, focus, or JS .show class */
.hp-nav-item:hover > .hp-dropdown-menu,
.hp-has-dropdown:hover > .hp-dropdown-menu,
.hp-nav-item:focus-within > .hp-dropdown-menu,
.hp-has-dropdown:focus-within > .hp-dropdown-menu,
.hp-nav-dropdown-toggle:hover + .hp-dropdown-menu,
.hp-dropdown-menu:hover,
.hp-dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Rotate chevron arrow on hover or expand */
.hp-nav-item:hover .hp-chevron,
.hp-has-dropdown:hover .hp-chevron,
.hp-nav-link[aria-expanded="true"] .hp-chevron {
  transform: rotate(180deg) !important;
}

.hp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background-color: #1E3756;
  border: 1px solid #2A486F;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  margin-top: 0.25rem;
  z-index: 1050;
  list-style: none;
}

.hp-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.hp-dropdown-link:hover,
.hp-dropdown-link.active {
  color: #FFFFFF;
  background-color: #2A486F;
}
