/*-- -------------------------- -->
<---     Mobile Navigation      -->
<--- -------------------------- -*/
/* Mobile - 1023px */
@media only screen and (max-width: 1023.5px) {
  body.cs-open {
    overflow: hidden;
  }
  #cs-navigation {
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem;
    background-color: #fcfbf2;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    border-bottom: 1px solid rgba(28, 26, 22, 0.1);
    transition: box-shadow 0.3s;
  }
  body.scroll #cs-navigation {
    box-shadow: 0 0.25rem 1rem rgba(28, 26, 22, 0.08);
  }
  #cs-navigation .cs-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
  #cs-navigation .cs-logo {
    width: auto;
    max-width: 12.5rem;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
  }
  #cs-navigation .cs-logo img {
    width: auto;
    height: 1.75rem;
    object-fit: contain;
  }
  #cs-navigation .cs-toggle {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
  }
  #cs-navigation .cs-nav {
    order: 3;
  }
  #cs-navigation .cs-active .cs-line1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
  }
  #cs-navigation .cs-active .cs-line2 {
    top: 50%;
    transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
    transform-origin: center;
  }
  #cs-navigation .cs-active .cs-line3 {
    opacity: 0;
    bottom: 100%;
  }
  #cs-navigation .cs-box {
    width: clamp(1.5rem, 2vw, 1.75rem);
    height: 1rem;
    position: relative;
  }
  #cs-navigation .cs-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--navy);
    border-radius: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  #cs-navigation .cs-line1 {
    top: 0;
    transition: transform 0.5s, top 0.3s, left 0.3s;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-direction: normal;
    animation-fill-mode: forwards;
    transform-origin: center;
  }
  #cs-navigation .cs-line2 {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: top 0.3s, left 0.3s, transform 0.5s;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-direction: normal;
    animation-fill-mode: forwards;
  }
  #cs-navigation .cs-line3 {
    bottom: 0;
    transition: bottom 0.3s, opacity 0.3s;
  }
}

/*-- -------------------------- -->
<---   Mobile Navigation Menu   -->
<--- -------------------------- -*/
@media only screen and (max-width: 1023.5px) {
  #cs-navigation .cs-ul-wrapper {
    width: 100%;
    height: auto;
    padding-bottom: 2.4em;
    background-color: #fcfbf2;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    overflow: hidden;
    transform: scaleY(0);
    transition: transform 0.4s;
    transform-origin: top;
  }
  #cs-navigation.cs-active .cs-ul-wrapper {
    opacity: 1;
    transform: scaleY(1);
    transition-delay: 0.05s;
  }
  #cs-navigation.cs-active .cs-li {
    opacity: 1;
    transform: translateY(0);
  }
  #cs-navigation .cs-ul {
    width: 100%;
    height: auto;
    max-height: 65vh;
    margin: 0;
    padding: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    overflow: auto;
  }
  #cs-navigation .cs-li {
    text-align: center;
    list-style: none;
    width: 100%;
    margin-right: 0;
    opacity: 0;
    transform: translateY(-1.5rem);
    transition: transform 0.5s, opacity 0.6s;
  }
  #cs-navigation .cs-li:nth-of-type(1) { transition-delay: 0.05s; }
  #cs-navigation .cs-li:nth-of-type(2) { transition-delay: 0.1s; }
  #cs-navigation .cs-li:nth-of-type(3) { transition-delay: 0.15s; }
  #cs-navigation .cs-li:nth-of-type(4) { transition-delay: 0.2s; }
  #cs-navigation .cs-li:nth-of-type(5) { transition-delay: 0.25s; }
  #cs-navigation .cs-li-link {
    font-family: 'Sentient', serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.2em;
    text-transform: capitalize;
    text-decoration: none;
    margin: 0;
    color: var(--navy);
    display: inline-block;
    position: relative;
    padding: 0.25rem;
  }
  #cs-navigation .cs-li-link.cs-active {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
  }
}

/*-- -------------------------- -->
<---     Desktop Navigation     -->
<--- -------------------------- -*/
@media only screen and (min-width: 1024px) {
  #cs-navigation {
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    background-color: #fcfbf2;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  body.scroll #cs-navigation {
    border-bottom-color: rgba(28, 26, 22, 0.1);
    box-shadow: 0 0.25rem 1rem rgba(28, 26, 22, 0.05);
  }
  #cs-navigation .cs-container {
    width: 100%;
    max-width: 90rem;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
  #cs-navigation .cs-toggle {
    display: none;
  }
  #cs-navigation .cs-logo {
    height: 1.75rem;
    display: flex;
    align-items: center;
    z-index: 100;
  }
  #cs-navigation .cs-logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
  }
  #cs-navigation .cs-ul-wrapper {
    display: flex;
    align-items: center;
  }
  #cs-navigation .cs-ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(1.75rem, 3vw, 2.75rem);
  }
  #cs-navigation .cs-li {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    flex: none;
  }
  #cs-navigation .cs-li-link {
    font-family: 'Sentient', serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    text-decoration: none;
    margin: 0;
    color: var(--navy);
    display: block;
    position: relative;
    transition: opacity 0.3s;
  }
  #cs-navigation .cs-li-link:hover {
    opacity: 0.65;
  }
  #cs-navigation .cs-li-link.cs-active {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
  }
}
