/* Hanlon South — WP-managed header menu ([hs_menu]).
   Matches the hand-built header nav. Two contexts:
   • interior pages  → white sticky header, dark nav text (default rules)
   • Home V4         → transparent header over hero, white nav text (.site-top scope)
   Hex values are hardcoded so the menu renders correctly regardless of page vars. */

.hsnav{
  display:flex;gap:1.8rem;align-items:center;
  list-style:none;padding:0;
  /* margin shorthand LAST, with auto on the left — pushes the nav and the
     phone button to the right of the logo. (A bare `margin:0` after
     `margin-left:auto` silently cancels it.) */
  margin:0 0 0 auto;
}
.hsnav li{list-style:none;margin:0}
.hsnav > li{position:relative}

.hsnav > li > a{
  font-family:'Plus Jakarta Sans',sans-serif;font-weight:500;font-size:.8rem;
  color:#57707F;padding:.4rem 0;border-bottom:2px solid transparent;transition:.18s;
  display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;white-space:nowrap;
}
.hsnav > li > a:hover,
.hsnav > li.current-menu-item > a,
.hsnav > li.current_page_item > a,
.hsnav > li.current-menu-ancestor > a{color:#122430;border-color:#189AD6}

/* caret on parent items */
.hsnav .menu-item-has-children > a::after{content:'▾';font-size:.7em;color:#57707F;transition:.18s}
.hsnav .menu-item-has-children:hover > a::after{color:#189AD6}

/* dropdown */
.hsnav .sub-menu{
  position:absolute;top:100%;left:-.75rem;min-width:210px;padding:.5rem;margin:.4rem 0 0;
  background:#fff;border:1px solid #DEE6EC;border-radius:12px;
  box-shadow:0 10px 30px rgba(18,36,48,.14);list-style:none;
  opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s;z-index:60;
}
.hsnav .menu-item-has-children::before{content:'';position:absolute;top:100%;left:0;right:0;height:.6rem}
.hsnav .menu-item-has-children:hover .sub-menu,
.hsnav .menu-item-has-children:focus-within .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.hsnav .sub-menu li{display:block}
.hsnav .sub-menu a{
  display:block;font-family:'Plus Jakarta Sans',sans-serif;font-weight:600;font-size:.9rem;
  color:#122430;padding:.55rem .85rem;border-radius:8px;transition:.15s;text-decoration:none;
}
.hsnav .sub-menu a:hover{background:#EAF5FB;color:#189AD6}

/* Home V4 — transparent header over the hero → white nav */
.site-top .hsnav > li > a{color:rgba(255,255,255,.85)}
.site-top .hsnav > li > a:hover,
.site-top .hsnav > li.current-menu-item > a,
.site-top .hsnav > li.current_page_item > a,
.site-top .hsnav > li.current-menu-ancestor > a{color:#fff;border-color:#5BC4EE}
.site-top .hsnav .menu-item-has-children > a::after{color:rgba(255,255,255,.6)}
.site-top .hsnav .menu-item-has-children:hover > a::after{color:#5BC4EE}

/* below the desktop breakpoint the nav is hidden behind the MENU toggle (as before) */
@media(max-width:1080px){.hsnav{display:none}}
