:root {
  --green-950: #002916;
  --gold: #ffc41d;
  --cream: #fff3d3;
  --paper: #f7ebca;
  --ink: #10150d;
  --nav-font: Barlow, Arial, sans-serif;
  --nav-cta-width: clamp(197px, 13.7vw, 210px);
  --nav-link-gap: clamp(22px, 2.16vw, 40px);
  --nav-cta-gap: clamp(36px, 3.3vw, 62px);
}

@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/shared/fonts/barlow-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("assets/shared/fonts/barlow-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("assets/shared/fonts/barlow-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("assets/shared/fonts/barlow-700-latin.woff2") format("woff2");
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--cream);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: var(--nav-cta-width) minmax(360px, 1fr) var(--nav-cta-width);
  align-items: center;
  column-gap: var(--nav-cta-gap);
  height: 92px;
  min-height: 92px;
  padding: 14px var(--page-gutter, clamp(24px, 6vw, 110px));
  border-bottom: 1px solid rgba(255, 196, 29, 0.1);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 196, 29, 0.1), transparent 24%),
    linear-gradient(rgba(0, 31, 16, 0.72), rgba(0, 31, 16, 0.72)),
    var(--green-950);
  background-color: var(--green-950);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("assets/shared/patterns/navbar-pattern.webp");
  background-repeat: repeat;
  background-size: 760px 760px;
  background-position: center;
  content: "";
  filter: contrast(0.78);
  mix-blend-mode: screen;
  opacity: 0.34;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: clamp(120px, 11.1vw, 174px);
  height: auto;
  aspect-ratio: 562 / 180;
  object-fit: contain;
  filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, 0.28));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--nav-link-gap);
  font-family: var(--nav-font);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.095em;
  line-height: 1;
  text-transform: uppercase;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  padding: 8px 0 12px;
  color: rgba(255, 243, 211, 0.9);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.main-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: calc(100% - 8px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: end;
  width: var(--nav-cta-width);
  min-width: 0;
  min-height: 46px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 72, 0.78);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--nav-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-cta:hover {
  background: #ffcf32;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.nav-cta-icon {
  display: block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: currentColor;
  fill: currentColor;
}

@media (min-width: 1121px) {
  .brand {
    grid-column: 1;
  }

  .main-nav {
    grid-column: 2;
  }

  .nav-cta {
    grid-column: 3;
  }

  .main-nav a:nth-child(1) {
    min-width: 56px;
  }

  .main-nav a:nth-child(2) {
    min-width: 105px;
  }

  .main-nav a:nth-child(3) {
    min-width: 84px;
  }

  .main-nav a:nth-child(4) {
    min-width: 65px;
  }

  .main-nav a:nth-child(5) {
    min-width: 90px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    --nav-link-gap: 18px;
    --nav-cta-gap: 30px;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    height: 92px;
    min-height: 92px;
    column-gap: var(--nav-cta-gap);
  }

  .brand {
    grid-column: 1;
  }

  .main-nav {
    grid-column: 2;
    justify-content: flex-end;
    gap: var(--nav-link-gap);
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    grid-column: 3;
    width: 190px;
    padding: 0 22px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: fixed;
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: auto;
    padding: 12px clamp(14px, 4vw, 22px) 6px;
    transform: translate3d(0, 0, 0);
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
    background:
      radial-gradient(circle at 50% 26%, rgba(255, 196, 29, 0.14), transparent 24%),
      linear-gradient(rgba(0, 31, 16, 0.72), rgba(0, 31, 16, 0.72)),
      var(--green-950);
  }

  .site-header.site-header--hidden {
    transform: translate3d(0, calc(-100% - 2px), 0);
  }

  .site-header.site-header--animating {
    transition: none;
  }

  .brand,
  .nav-cta {
    grid-column: auto;
    justify-self: center;
  }

  .brand-logo {
    width: clamp(111px, 29.8vw, 117px);
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-top: 7px;
    padding: 0;
    font-size: clamp(0.66rem, 2.85vw, 0.78rem);
    letter-spacing: 0.06em;
  }

  .main-nav a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    transform: none;
  }

  .main-nav a.active::after,
  .main-nav a.active:hover::after {
    width: min(30px, 64%);
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .site-header {
    transition-duration: 1ms;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-top: 10px;
    padding-bottom: 5px;
  }

  .brand-logo {
    width: clamp(104px, 29.8vw, 111px);
  }

  .main-nav {
    margin-top: 6px;
    font-size: clamp(0.65rem, 2.8vw, 0.72rem);
  }

  .main-nav a {
    min-height: 44px;
  }
}
