/* Equal side columns keep the wordmark centered regardless of menu width. */
.site-header {
  --header-paper: #f7f5f0;
  --header-rule: #dedbd2;
  --brand-space: 180px;
  position: sticky;
  top: 0;
  z-index: 30;
  color: #2d3029;
  background: var(--header-paper);
  border-bottom: 1px solid var(--header-rule);
}
.header-inner {
  height: calc(var(--header-height) - 1px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--brand-space) minmax(0, 1fr);
  align-items: center;
  padding-inline: 48px;
}
.wordmark {
  grid-area: 1 / 2;
  justify-self: center;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 48px;
}
.wordmark strong {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -2.5px;
  line-height: 1;
}
.site-nav {
  grid-area: 1 / 1 / 2 / 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--brand-space) minmax(0, 1fr);
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .015em;
}
.nav-group { display: flex; align-items: center; gap: 40px; }
.nav-group-left { grid-column: 1; justify-content: flex-start; }
.nav-group-right { grid-column: 3; justify-content: flex-end; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.site-nav a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a[aria-current='page']::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }
.site-header a:hover { opacity: 1; }
.site-nav .nav-contact {
  justify-content: space-between;
  gap: 22px;
  padding: 6px 7px 6px 18px;
  min-height: 46px;
  min-width: 136px;
  border: 1px solid #3b4938;
  border-radius: 12px;
  background: #3b4938;
  color: #fffdf6;
  box-shadow: 0 2px 0 #2634210d;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.nav-contact .arrow {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 7px;
  border-radius: 50%;
  background: #ffffff16;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}
.site-nav .nav-contact[aria-current='page'] { background: #303f2d; border-color: #728365; box-shadow: inset 0 0 0 1px #ffffff12; }
.site-nav .nav-contact:hover,
.site-nav .nav-contact:focus-visible { color: #fffdf6; background: #2f3e2c; border-color: #2f3e2c; box-shadow: 0 5px 14px #2f3e2c16; transform: translateY(-1px); }
.site-nav .nav-contact:focus-visible { outline: 2px solid #788b62; outline-offset: 4px; }
.nav-contact:hover .arrow,
.nav-contact:focus-visible .arrow { color: #384833; background: #f0edde; transform: translate(1px, -1px); }
.menu-toggle {
  display: none;
  grid-area: 1 / 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}
.menu-toggle span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: currentColor;
  transition: transform .2s ease;
}
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1050px) {
  .header-inner { padding-inline: 32px; }
  .nav-group { gap: 26px; }
}
@media (min-width: 701px) and (max-width: 850px) {
  .site-header { --brand-space: 150px; }
  .header-inner { padding-inline: 24px; }
  .wordmark strong { font-size: 36px; }
  .site-nav { font-size: 12px; letter-spacing: 0; }
  .nav-group { gap: 20px; }
  .site-nav .nav-contact { min-width: 122px; padding-inline: 15px 7px; gap: 14px; }
}
@media (max-width: 700px) {
  .header-inner { padding-inline: 20px; }
  .wordmark strong { font-size: 34px; letter-spacing: -2px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    padding: 8px 24px 24px;
    background: var(--header-paper);
    border-bottom: 1px solid var(--header-rule);
    box-shadow: 0 12px 20px #2d30290a;
    font-size: 15px;
  }
  .site-nav.open {
    display: block;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: header-menu-in .22s ease-out;
  }
  .nav-group { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.nav-contact) { min-height: 55px; border-bottom: 1px solid var(--header-rule); }
  .site-nav a:not(.nav-contact)::after { display: none; }
  .site-nav a[aria-current='page']:not(.nav-contact)::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-right: 10px;
    border-radius: 50%;
    background: #8b825c;
  }
  .site-nav .nav-contact { min-height: 54px; margin-top: 20px; padding: 10px 11px 10px 20px; }
  .nav-contact .arrow { padding: 8px; }
}
@keyframes header-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::after { animation: none !important; transition: none !important; }
}
