/* Technology dropdown in the main nav. Loaded after colors_and_type.css on every page.
   Desktop only: below 960px the nav collapses to Services + Contact and the menu is hidden
   (the pages stay reachable from the footer and the Technology page). */

.nav__links a.is-active { color: var(--bq-royal); }

.nav__drop { position: relative; display: flex; align-items: center; }
.nav__drop-top::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--bq-transition-fast);
}
.nav__drop:hover .nav__drop-top::after,
.nav__drop:focus-within .nav__drop-top::after { transform: translateY(0) rotate(-135deg); }

.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -18px; z-index: 60;
  min-width: 290px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--bq-mist); border-radius: var(--bq-radius-lg);
  box-shadow: 0 14px 36px rgba(10, 25, 41, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--bq-transition-fast), transform var(--bq-transition-fast), visibility var(--bq-transition-fast);
}
/* invisible bridge so the menu stays open while the pointer crosses the gap */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }

.nav__links .nav__menu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: var(--bq-radius-md);
  color: var(--bq-navy);
}
.nav__links .nav__menu a:hover,
.nav__links .nav__menu a:focus-visible { background: var(--bq-aqua-pale); color: var(--bq-royal); }
.nav__links .nav__menu a.is-active { background: var(--bq-paper); color: var(--bq-royal); }
.nav__menu b { font-family: var(--bq-font-display); font-size: var(--bq-text-sm); font-weight: 600; }
.nav__menu span {
  font-family: var(--bq-font-body); font-size: var(--bq-text-xs); font-weight: 400;
  color: var(--bq-slate); line-height: 1.4;
}

@media (max-width: 960px) { .nav__drop { display: none; } }
