body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(23,54,47,.045);
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 42px !important; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 29px 0;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.nav-links > li > a:hover { color: var(--ink); }
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  min-width: 124px;
  min-height: 44px;
  padding: 0 20px !important;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff !important;
  line-height: 1;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #244a41; color: #fff !important; transform: translateY(-1px); }
.dropdown { position: relative; }
.dropdown::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 15px; }
.dropdown-menu,
.submenu {
  position: absolute;
  z-index: 200;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown-menu {
  top: calc(100% - 10px);
  right: 0;
  left: auto;
  transform: translateY(9px);
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a,
.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.dropdown-menu a:hover,
.submenu a:hover { color: var(--ink); background: var(--sage); }
.has-submenu { position: relative; }
.has-submenu::after { content: ""; position: absolute; top: -10px; right: 100%; left: auto; width: 22px; height: calc(100% + 20px); }
.submenu {
  top: -10px;
  right: calc(100% + 8px);
  left: auto;
  transform: translateX(7px);
}
.has-submenu:hover .submenu,
.submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.submenu-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(135deg);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 760px) {
  body > nav { min-height: 70px; padding: 0 20px; }
  .logo img { height: 38px !important; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(23,54,47,.12);
    transition: max-height .25s ease, padding .25s ease;
  }
  .nav-links.open {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 12px 20px 20px;
  }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { width: 100%; padding: 12px 0; }
  .nav-links > li > a::after { bottom: 6px; }
  .nav-cta { width: 100%; margin-top: 4px; }
  .dropdown-menu,
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 6px 14px;
    padding: 6px 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .dropdown-menu.open,
  .submenu.open { display: block; }
  .dropdown:hover .dropdown-menu,
  .dropdown-menu:hover,
  .has-submenu:hover .submenu,
  .submenu:hover {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}
