/* Shared fixed site header. */

body.np-nav-open {
  overflow: hidden;
}

.np-site-header {
  --np-header-height: 58px;
  --np-header-height-scrolled: 52px;
  --np-logo-height: 52px;
  --np-logo-height-scrolled: 48px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--np-header-height);
  padding: 0 clamp(60px, 7.2vw, 124px);
  color: #151a18;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(22, 35, 31, .08);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  transition: min-height .2s ease, padding .2s ease, background .25s ease, box-shadow .25s ease;
}

.np-site-header.is-scrolled {
  min-height: var(--np-header-height-scrolled);
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

.np-brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-width: 132px;
  color: #18221f;
  text-decoration: none;
}

.np-brand__logo {
  display: block;
  width: auto;
  height: var(--np-logo-height);
  max-width: 100%;
  transition: height .2s ease;
}

.np-site-header.is-scrolled .np-brand__logo {
  height: var(--np-logo-height-scrolled);
}

.np-site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
}

.np-site-nav a {
  position: relative;
  padding: 8px 12px;
  color: rgba(21, 33, 29, .88);
  text-decoration: none;
}

.np-site-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(21, 33, 29, .28);
  transform: translateY(-50%);
}

.np-site-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.np-site-nav a:hover::after,
.np-site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.np-header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.np-lang-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 112px;
  min-width: 112px;
  height: 38px;
  margin-right: 14px;
  padding: 4px;
  border: 1px solid rgba(7, 84, 61, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 28px rgba(12, 66, 52, .08), inset 0 1px 0 rgba(255, 255, 255, .88);
}

.np-lang-switch__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: -1;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: #087556;
  box-shadow: 0 8px 18px rgba(7, 84, 61, .22);
  transition: transform .22s ease;
}

.np-lang-switch[data-locale="en"] .np-lang-switch__indicator {
  transform: translateX(100%);
}

.np-lang-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(7, 84, 61, .72);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: color .18s ease, transform .18s ease;
}

.np-lang-switch__option.is-active {
  color: #fff;
}

.np-lang-switch__option:hover,
.np-lang-switch__option:focus-visible {
  color: #07543d;
}

.np-lang-switch__option.is-active:hover,
.np-lang-switch__option.is-active:focus-visible {
  color: #fff;
}

.np-lang-switch__option:focus-visible {
  outline: 2px solid rgba(7, 84, 61, .3);
  outline-offset: 3px;
}

.np-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid rgba(7, 84, 61, .18);
  border-radius: 999px;
  color: #fff;
  background: #07543d;
  box-shadow: 0 12px 28px rgba(7, 84, 61, .16);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.np-login-link:hover,
.np-login-link:focus-visible {
  background: #0a664b;
  box-shadow: 0 16px 32px rgba(7, 84, 61, .22);
  transform: translateY(-1px);
}

.np-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line, rgba(20, 55, 45, .13));
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
}

.np-nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--green, #07543d);
  transition: transform .25s ease, opacity .25s ease;
}

.np-nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.np-nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 1240px) {
  .np-site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 22px;
  }

  .np-site-nav a {
    padding-inline: 10px;
  }
}

@media (min-width: 1101px) and (max-height: 860px) {
  .np-site-header {
    --np-header-height: 64px;
    --np-header-height-scrolled: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .np-site-header.is-scrolled {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media (max-width: 1100px) {
  .np-site-header {
    --np-header-height: 62px;
    --np-header-height-scrolled: 58px;
    position: fixed;
    padding: 0 16px;
  }

  .np-site-header.is-scrolled {
    position: fixed;
    padding: 0 16px;
  }

  .np-brand {
    margin-left: 8px;
  }

  .np-site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: auto;
    display: grid;
    gap: 8px;
    width: min(286px, calc(100vw - 32px));
    max-height: calc(100svh - 86px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(22, 64, 51, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(29, 44, 38, .16);
    opacity: 0;
    transform: translateY(-12px);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .np-site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .np-site-nav a {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(247, 243, 236, .74);
    white-space: nowrap;
  }

  .np-site-nav a + a::before,
  .np-site-nav a::after {
    display: none;
  }

  .np-nav-toggle {
    display: block;
  }
}

@media (max-width: 620px) {
  .np-site-header {
    --np-header-height: 58px;
    --np-header-height-scrolled: 54px;
    --np-logo-height: 40px;
    --np-logo-height-scrolled: 36px;
    padding-inline: 14px;
  }

  .np-site-header.is-scrolled {
    padding-inline: 14px;
  }

  .np-brand {
    margin-left: 10px;
  }

  .np-header-actions {
    gap: 8px;
  }

  .np-brand {
    min-width: 84px;
    margin-left: 0;
  }

  .np-lang-switch {
    width: 94px;
    min-width: 94px;
    height: 34px;
    margin-right: 8px;
    padding: 3px;
  }

  .np-lang-switch__indicator {
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
  }

  .np-lang-switch__option {
    font-size: 12px;
  }

  .np-site-nav {
    top: calc(100% + 8px);
    right: 14px;
    width: min(232px, calc(100vw - 28px));
    padding: 12px;
  }

  .np-login-link {
    min-height: 34px;
    margin-right: 8px;
    padding-inline: 14px;
    font-size: 13px;
  }

}
