/* Fixed top navigation */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background-color: var(--forest);
  border-bottom: 1px solid var(--hairline-dark);
  z-index: 100;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  padding-inline: var(--gutter);
}

/* Brand */

/* The logo file carries the deer mark and the wordmark together, so the
   brand link holds a single image and no text lockup. Intrinsic width and
   height stay on the <img> so the browser reserves the box before the
   file loads and the nav never reflows. */

.site-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* The source file carries more transparent padding below the artwork than
   above, so the ink sits high in the box. translateY re-centres it optically;
   the percentage resolves against the image's own height, so one value holds
   at every size below, and a transform cannot disturb the bar's layout. */

.site-nav__logo {
  display: block;
  height: 54px;
  width: auto;
  transform: translateY(3%);
}

/* Centre links */

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  transition: color 0.2s ease;
}

.site-nav__links a:hover {
  color: var(--gold);
}

/* CTA */

.site-nav__cta {
  padding: 0.75rem 1.375rem;
}

/* Hamburger, shown below 992px */

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  cursor: pointer;
}

.site-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--on-dark);
}

/* Full screen overlay menu (custom, not Bootstrap) */

.site-nav__overlay {
  position: fixed;
  inset: 0;
  background-color: var(--forest);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-nav__overlay[hidden] {
  display: none;
}

.site-nav__close {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-nav__overlay-links {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.site-nav__overlay-links li + li {
  margin-top: 2rem;
}

.site-nav__overlay-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
}

.site-nav__overlay-links a:hover {
  color: var(--gold);
}

/* Lock page scroll while the overlay is open */

body.nav-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .site-nav__links,
  .site-nav__cta {
    display: none;
  }

  .site-nav__toggle {
    display: flex;
  }

  .site-nav__logo {
    height: 44px;
  }
}
