@media only screen and (max-width: 53.9375rem) {
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 4rem;

    width: 100%;
    z-index: 9;
    background-color: var(--bodyTextColorWhite);
  }

  .navbar {
    display: flex;

    align-items: center;
    width: 100%;
    padding: 0 1rem;
    margin: auto;
    max-width: 80rem;
    z-index: 10;
    justify-content: space-between;
  }

  .nav-toggle {
    /* filter: brightness(0) invert(1); */
    cursor: pointer;
    background-color: transparent;
    border: none;
  }

  .nav-wrapper {
    background-color: var(--primary);
    height: 100vh;
    padding: 1rem 0;
    position: absolute;
    min-width: 50%;

    top: 0;

    right: -100%;
    transition: right 300ms ease-out;

    /* left: auto;
    z-index: 10;
    overflow: hidden;
    right: 0;
    transform: scaleX(0);
    transition: transform 0.4s, opacity 0.3s;
    transform-origin: top right;
  */
  }

  .nav-wrapper.show {
    right: 0;

    /* opacity: 1;
  transform: scaleX(1);
  transition-delay: 0.2s; */
  }

  .nav-wrapper.show ~ #overlay {
    display: block;
  }

  .cta-button {
    display: none;
  }

  .nav-wrapper .nav-ul {
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    flex-direction: column;
    /* 20px - 36px */
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
  }
  .nav-wrapper .nav-li a {
    text-decoration: none;
    color: var(--bodyTextColorWhite);
    /* 16px - 24px */
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.2em;
  }

  .nav-close {
    cursor: pointer;
    background-color: transparent;
    border: none;
  }

  #overlay {
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    position: fixed;
    inset: 0;
    z-index: -1;
  }
}

@media only screen and (min-width: 53.9376rem) {
  .nav-container {
    z-index: 1;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    height: 4.75rem;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bodyTextColorWhite);
  }

  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2.5rem;
    margin: auto;
    max-width: 80rem;
  }

  .nav-wrapper {
    display: flex;
    align-content: center;
    justify-content: space-evenly;
    gap: 1.5rem;
  }

  .nav-wrapper .nav-ul {
    display: flex;
    list-style: none;

    justify-content: space-evenly;

    /* 20px - 36px */
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
  }

  .nav-wrapper .nav-li a {
    position: relative;
    text-decoration: none;
    color: var(--bodyTextColor) x;
    /* 16px - 24px */
    font-size: clamp(0.875rem, 1vw, 1rem);
  }

  .cta-button {
    height: 100%;
    align-self: center;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    line-height: 1.5em;
    min-width: 8rem;
    cursor: pointer;
    color: var(--bodyTextColorWhite);
    background-color: var(--primary);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }
  .cta-button:hover {
    background-color: var(--primaryDark);
  }

  .nav-toggle,
  .nav-close {
    display: none;
  }

  #overlay {
    display: none;
  }

  .nav-wrapper .nav-li a::before {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--primary);
    opacity: 1;
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width 0.3s;
    z-index: 2;
  }

  .nav-wrapper .nav-li a:hover::before {
    width: 100%;
  }
}
