/*-- -------------------------- -->
<---         Navigation          -->
<--- -------------------------- -*/

/* Transparent bar, absolutely-positioned over the hero so the hero
   artwork shows straight through it -- three-column layout (links /
   logo / CTA), logo centred as its own focal mark rather than sitting
   on the left like the other templates in this set. Text/logo colour
   stays navy since the hero's pale "sky" area sits directly behind
   the nav strip. */
@media only screen and (min-width: 0rem) {
  #cs-navigation {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background: transparent;
    --cs-nav-text: #006358;
  }
  #cs-navigation .cs-nav-container {
    width: 100%;
    max-width: 90rem;
    margin: auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  #cs-navigation .cs-toggle {
    width: 2.25rem;
    height: 2.25rem;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    z-index: 101;
  }
  #cs-navigation .cs-line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--cs-nav-text, var(--navy));
    display: block;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
  }
  #cs-navigation .cs-toggle[aria-expanded="true"] .cs-line1 {
    transform: translateY(3.5px) rotate(45deg);
  }
  #cs-navigation .cs-toggle[aria-expanded="true"] .cs-line3 {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Logo: small mark above a serif wordmark + script subtext, centred
     as its own column */
  #cs-navigation .cs-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
  }
  #cs-navigation .cs-logo-mark {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--cs-nav-text, var(--navy));
    margin-bottom: 0.25rem;
  }
  #cs-navigation .cs-logo-word {
    font-family: var(--headingFont);
    font-size: 1.1875rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cs-nav-text, var(--navy));
    line-height: 1.1em;
  }
  #cs-navigation .cs-logo-script {
    font-family: var(--scriptFont);
    font-size: 1.0625rem;
    color: var(--cs-nav-text, var(--navy));
    line-height: 1.3em;
    margin-top: -0.0625rem;
  }

  /* Mobile: links collapse into a dropdown panel, logo stays centred,
     CTA is hidden (desktop-only), toggle takes the links' place on the
     left */
  #cs-navigation .cs-toggle {
    order: 1;
  }
  #cs-navigation .cs-contact-group {
    display: none;
  }
  #cs-navigation .cs-ul-wrapper {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--cream);
    transition: max-height 0.3s;
  }
  #cs-navigation .cs-ul-wrapper.cs-open {
    max-height: 20rem;
    box-shadow: 0 0.5rem 1rem rgba(38, 49, 58, 0.12);
  }
  #cs-navigation .cs-ul {
    width: 100%;
    margin: 0;
    padding: 1rem 1.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  #cs-navigation .cs-li-link {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--cs-nav-text, var(--navy));
    padding: 0.625rem 0;
    display: block;
  }
  #cs-navigation .cs-button-solid {
    min-width: 0;
    line-height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    background-color: #006358;
    color: #fff;
  }
  #cs-navigation .cs-button-solid:before {
    background: #004840;
  }
  #cs-navigation .cs-button-solid:hover {
    color: #fff;
  }
  #cs-navigation .cs-cta-full {
    display: none;
  }
}

/* Desktop - 64rem: full three-column layout, links visible inline on
   the left, no toggle */
@media only screen and (min-width: 64rem) {
  #cs-navigation .cs-nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2.5rem;
  }
  #cs-navigation .cs-toggle {
    display: none;
  }
  #cs-navigation .cs-ul-wrapper {
    max-height: none;
    overflow: visible;
    position: static;
    background-color: transparent;
    order: 1;
    justify-self: start;
  }
  #cs-navigation .cs-ul {
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
  }
  #cs-navigation .cs-li-link {
    padding: 0;
    color: var(--cs-nav-text, var(--navy));
  }
  #cs-navigation .cs-logo {
    order: 2;
    justify-self: center;
  }
  #cs-navigation .cs-contact-group {
    display: block;
    order: 3;
    justify-self: end;
  }
  #cs-navigation .cs-cta-full {
    display: inline;
  }
  #cs-navigation .cs-cta-short {
    display: none;
  }
}
