.navbar {
  position: sticky;
  top: 0;
  z-index: 100000;
  height: 56px;
  background-color: rgba(244, 244, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar .page-container {
  height: 100%;
}

.navbar__grid {
  height: 56px;
  align-items: center;
}

/* =========================
   LOGO
========================= */

.logo {
  grid-column: 1 / span 1;
  display: inline-flex;
  align-items: center;
  z-index: 10;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* =========================
   DESKTOP NAV
========================= */

.navbar__nav {
  grid-column: 2 / span 11;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar__nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar__nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5A6061;
  transition: color 0.25s ease;
}

.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background-color: #5F5E5E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar__nav a:hover::after,
.navbar__nav a.active::after,
.navbar__nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* =========================
   TOGGLE MOBILE
========================= */

.navbar__toggle {
  display: none;
  grid-column: 12 / span 1;
  justify-self: end;

  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;

  flex-direction: column;
  justify-content: space-between;

  z-index: 1000000;
}

.navbar__toggle span {
  display: block;
  width: 32px;
  height: 2px;
  background: #111;
  transition: 0.25s ease;
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .navbar {
    height: 56px;
   position: relative;
  z-index: 10000;
  }

  .navbar__grid {
    height: 56px;
    align-items: center;
  }

  .logo {
    grid-column: auto;
    display: flex;
    align-items: center;
    z-index: 1000002;
  }

  .logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    display: block;
  }

  .navbar__toggle {
    display: inline-flex;
    z-index: 1000002;
  }

  .navbar__toggle span {
    background: #111;
  }

  .navbar__toggle.is-open span {
    background: #fff;
  }

  .navbar__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100vw;
    height: 100vh;

    z-index: 1000000;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 100px 32px 48px;

    background: #000;

    transform: translateX(100%);
    transition: transform 0.45s ease;

    overflow-y: auto;
  }

  .navbar__nav.is-open {
    transform: translateX(0);
    z-index: 1000001;
  }

  .navbar__nav ul {
    flex-direction: column;
    gap: 28px;
  }

  .navbar__nav a {
    color: #fff;
    font-size: 1.8rem;
    text-transform: none;
  }

  .navbar__nav a::after {
    display: none;
  }
}