/* NorthStead — Services drop-down menu (see services-menu.js) */
.nsm { position: relative; }
.nsm-top::after {
  content: '\25BE';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7em;
  opacity: 0.65;
  transition: transform 0.2s;
}
.nsm-list a { text-decoration: none; }

/* Desktop: hover / keyboard focus drop-down */
@media (min-width: 901px) {
  .nsm-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px 0;
    background: rgba(14,14,14,0.97);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    z-index: 1200;
  }
  .nsm::before {               /* hover bridge so the list doesn't close in the gap */
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
  }
  .nsm:hover .nsm-list,
  .nsm:focus-within .nsm-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nsm-list a {
    display: block !important;
    width: auto !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255,255,255,0.78) !important;
    background: none;
  }
  .nsm-list a:hover,
  .nsm-list a:focus { color: #fff !important; background: rgba(92,154,58,0.18); }
  .nsm-list .nsm-cur { color: #7a9f55 !important; }
  .nsm-list .nsm-all { display: none !important; }
}

/* Phone menu: list opens in place under "Services" */
.nsm-list { display: none; }
@media (min-width: 901px) { .nsm-list { display: block; } }
@media (max-width: 900px) {
  .nsm { width: 100%; }
  .nsm.nsm-open .nsm-list { display: block; }
  .nsm.nsm-open .nsm-top::after { transform: rotate(180deg); }
  .nsm-list {
    margin: 2px 0 8px;
    padding-left: 14px;
    border-left: 2px solid #5c9a3a;
  }
  .nsm-list a {
    display: block !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-transform: none !important;
    padding: 9px 12px !important;
    border-bottom: none !important;
    color: rgba(255,255,255,0.82) !important;
  }
  .nsm-list a:hover { color: #7a9f55 !important; }
  .nsm-list .nsm-all { color: #7a9f55 !important; }
  .nsm-list .nsm-cur { color: #c9a84c !important; }
}
/* Homepage phone drawer uses large type — keep the list readable but smaller */
#navMobile .nsm-list a { font-size: 1.15rem !important; }
