.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1rem;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header .logo {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  height: clamp(56px, 6vw, 100px) !important;
}

.site-header .logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
}

.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--main-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
}

.nav-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(80vw, 340px);
  background: var(--main-bg);
  box-shadow: -16px 0 32px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .35s ease;
  padding: 2rem;
  overflow-y: auto;
  z-index: 10000;
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.nav-panel a {
  font-family: "BBH Sans Hegarty", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--main-light);
  text-decoration: none;
  transition: color .2s ease;
}

.nav-panel a:hover,
.nav-panel a.active { color: var(--text-red); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 900;
}

.nav-backdrop[hidden] { display: none; }

body.menu-open { overflow: hidden; }
body.menu-open .nav-panel { transform: translateX(0); }
body.menu-open .nav-backdrop { opacity: 1; display: block; }

.site-header.scrolled {
  background: var(--main-bg);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

@media (min-width: 1620px) {
  .site-header { padding-inline: 6rem; }

  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }

  .nav-panel {
    position: static;
    height: auto; width: auto;
    transform: none !important;
    box-shadow: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    z-index: auto;
  }

  .nav-panel ul {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
  }
  .nav-panel a { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-backdrop, .site-header {
    transition-duration: .01ms !important;
  }
}