/* Consistent outlined navigation buttons, with one shared brand destination. */
body .nav-inner { min-height: 72px; gap: 24px; justify-content: space-between; }
body .nav-inner nav { gap: 12px; justify-content: flex-start; }
#primary-navigation > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #6c8598; border-radius: 6px; background: #18384f; color: var(--cream, #f5f0e6); font-size: 17px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; box-sizing: border-box; transition: background-color .15s, border-color .15s; }
#primary-navigation > a.property-scientist-link { display: block; }
body .nav-inner > a.nav-about { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--cream, #f5f0e6); font-size: 15px; font-weight: 400; line-height: 1.4; text-decoration: none; white-space: nowrap; }
body .nav-inner > a.nav-about:hover { background: none; color: #b9e0f0; text-decoration: none; }
#primary-navigation > a.mobile-only-nav { display: none; }
#primary-navigation > a::after { display: none; content: none; }
#primary-navigation > a:hover { border-color: #a3c9dc; background: #284b63; text-decoration: none; }
#primary-navigation > a[aria-current="page"] { border-color: #6c8598; background: #18384f; color: var(--cream, #f5f0e6); }
#primary-navigation > a:focus-visible, body .nav-inner > a.nav-about:focus-visible, body .nav-inner > .menu-toggle:focus-visible { outline: 2px solid #b9e0f0; outline-offset: 3px; }
.property-scientist-link .property-scientist-brand { display: inline; white-space: nowrap; }
.property-scientist-link .property-scientist-audience { display: inline; padding: 0; border: 0; background: none; color: inherit; font-size: 15px; font-weight: 400; line-height: inherit; letter-spacing: normal; text-transform: none; white-space: nowrap; opacity: .9; }
.property-scientist-link .property-scientist-separator { margin-inline: .2em; opacity: .7; }
.footer-links > a.property-scientist-link, .footer-links > a.property-scientist-link:hover { display: block; line-height: inherit; text-decoration: none; }
body .nav-inner > .menu-toggle { display: none; }
@media (max-width: 1180px) {
  body .nav-inner { position: relative; min-height: 68px; justify-content: space-between; }
  body .nav-inner > .menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #6c8598; border-radius: 6px; background: #18384f; color: var(--cream, #f5f0e6); font-size: 17px; font-weight: 500; line-height: 1.4; }
  body .nav-inner > a.nav-about { display: none; }
  body .nav-inner nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 12px; border: 1px solid #45637a; border-radius: 0 0 8px 8px; background: var(--navy, #102a43); gap: 8px; max-height: calc(100dvh - 160px); overflow-y: auto; box-shadow: 0 12px 22px #102a4326; }
  body .nav-inner nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  #primary-navigation > a, #primary-navigation > a.property-scientist-link, #primary-navigation > a.mobile-only-nav { display: block; width: 100%; min-height: 48px; padding: 12px 14px; text-align: left; white-space: normal; }
  #primary-navigation > a.mobile-menu-quote { margin: 0; border: 1px solid #6c8598; border-radius: 6px; background: #18384f; font-weight: 500; }
}
@media (prefers-reduced-motion: reduce) { #primary-navigation > a, body .nav-inner > a.nav-about { transition: none; } }

#primary-navigation { position: relative; }
.nav-services { flex: none; }
.nav-services > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #6c8598;
  border-radius: 6px;
  background: #18384f;
  color: var(--cream, #f5f0e6);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 2px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-services[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.nav-services > summary:hover, .nav-services[open] > summary { background: #284b63; border-color: #a3c9dc; }
.nav-services > summary:focus-visible { outline: 2px solid #b9e0f0; outline-offset: 3px; }

.nav-services-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(720px, calc(100vw - 64px));
  max-height: min(68dvh, var(--main-nav-room, 68dvh));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid #bdc4c3;
  border-radius: 8px;
  background: var(--light-cream, #f8f2e8);
  color: var(--ink, #10263d);
  box-shadow: 0 12px 28px #102a4340;
}
.nav-services:not([open]) > .nav-services-panel { display: none; }
.nav-services-group > p {
  margin: 0;
  padding: 4px 9px;
  color: #145570;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nav-services-group ul { margin: 0; padding: 0; list-style: none; }
.nav-services-group li { margin: 0; min-width: 0; }
.nav-services-group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
}
.nav-services-group a:hover, .nav-services-group a:focus-visible,
.nav-services-group a[aria-current="page"] {
  background: #deedf2;
  color: #102a43;
}
.nav-services-group a:focus-visible { outline-offset: -2px; }

@media (max-width: 1180px) {
  body .nav-inner #primary-navigation {
    position: absolute;
    max-height: var(--main-nav-room, calc(100dvh - 160px));
    overscroll-behavior: contain;
  }
  .nav-services > summary { min-height: 48px; padding: 12px 14px; }
  .nav-services-panel {
    position: static;
    grid-template-columns: 1fr;
    gap: 9px;
    width: auto;
    max-height: none;
    margin-top: 6px;
    padding: 8px;
    box-shadow: none;
  }
  .nav-services-group + .nav-services-group { padding-top: 6px; border-top: 1px solid #bdc4c3; }
  .nav-services-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .nav-services-group a { padding-inline: 7px; font-size: .8125rem; }
}
