.site-header { z-index: 20; overflow: visible; }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: visible; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; align-items: center; gap: 36px; }

@media (min-width: 961px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
  }
  .nav-actions { display: contents; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; flex-shrink: 0; }
  .nav-links {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    gap: 36px;
  }
  .nav-actions > .button { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav-links .nav-mobile-only { display: none; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: background .2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  border: 0;
  background: rgba(16, 37, 29, .34);
}
.nav-overlay.visible { display: block; }
body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .nav-actions > .button { display: none; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    z-index: 19;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 70px);
    padding: 12px 14px 18px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 18px 40px rgba(12, 72, 49, .12);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: var(--green-soft);
    color: var(--green-dark);
  }
}

@media (max-width: 720px) {
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
}
