/* ============================================================
   BROPHY'S — STYLE ADDITIONS
   Always cool-grey sticky nav + click dropdown
   ============================================================ */


/* ── ALWAYS SOLID COOL-GREY NAV ─────────────────────────────── */

.nav {
  background: #E1E8ED !important;
  border-bottom: 1px solid #d0d8df !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

.nav.is-scrolled {
  background: #E1E8ED !important;
  border-bottom-color: #d0d8df !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

.nav__link {
  color: #002147 !important;
}

.nav:not(.is-scrolled) .nav__link {
  color: #002147 !important;
}

.nav:not(.is-scrolled) .nav__link:hover {
  background: rgba(0, 33, 71, 0.07) !important;
  color: #002147 !important;
}

.nav__hamburger span {
  background: #002147 !important;
}

.nav:not(.is-scrolled) .nav__hamburger span {
  background: #002147 !important;
}


/* ── LOGO SIZE ───────────────────────────────────────────────── */

.nav__logo img {
  height: 56px !important;
  width: auto !important;
}


/* ── SERVICES DROPDOWN PANEL ─────────────────────────────────── */

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #d0d8df;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  z-index: 1001;
}

.nav__dropdown.is-open {
  display: block;
}

.nav__dropdown-item {
  display: block !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #002147 !important;
  padding: 11px 18px;
  text-decoration: none;
  border-bottom: 1px solid #edf0f3;
  transition: background 0.12s ease;
  white-space: nowrap;
}

.nav__dropdown-item:last-child {
  border-bottom: none;
}

.nav__dropdown-item:hover {
  background: #f4f7f9;
}

.nav__dropdown-divider,
.nav__dropdown-item--all {
  display: none !important;
}

.nav__dropdown-wrap.is-open .nav__dropdown-chevron {
  transform: rotate(180deg);
}


/* ── HAMBURGER X ANIMATION ───────────────────────────────────── */

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── MOBILE MENU PANEL ───────────────────────────────────────── */

.nav__mobile {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #d0d8df;
  border-bottom: 1px solid #d0d8df;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 5% 24px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #002147;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
  text-decoration: none;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  text-align: left;
}

.nav__mobile-accordion-panel {
  display: none;
  background: #f4f7f9;
  border-radius: 6px;
  margin: 4px 0 8px;
  overflow: hidden;
}

.nav__mobile-accordion-panel.is-open {
  display: block;
}

.nav__mobile-sub-link {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #002147;
  padding: 11px 16px;
  border-bottom: 1px solid #edf0f3;
  text-decoration: none;
}

.nav__mobile-sub-link:last-child {
  border-bottom: none;
}

.nav__mobile-sub-link--all {
  display: none !important;
}

.nav__mobile-cta-wrap {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav__mobile-accordion-toggle.is-open .nav__dropdown-chevron {
  transform: rotate(180deg);
}
