/* Styles that handle the primary website navigational elements */





/* Slide-in nav */

.page-header .header-nav-wrap {
  position: fixed;
  top: var(--page-header-bottom);
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: left;
  background-color: #F1F1F1;
  z-index: 1000;
  overflow: hidden;
  display: block;
  /* visibility: hidden; */
}

.has-sticky-nav .page-header .navigation {
  position: fixed;
  top: 0;
  bottom: auto;
}

.page-header .mobile-menu-toggle-wrap .mobile-menu-toggle {
  display: none;
}

.mobile-nav-active .header-nav-wrap {
  overflow: auto;
  padding-bottom: 6em;
}

.mobile-nav-fade-in .header-nav-wrap {
  height: 0;
}

.mobile-nav-fade-in.mobile-nav-active .header-nav-wrap {
  height: auto;
}

.mobile-nav-fade-in .page-header .header-nav-wrap {
  left: 0;
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.mobile-nav-slide-right .page-header .header-nav-wrap {
  left: -100vw;
  transition: left 0.75s;
}

.mobile-nav-fade-in .page-header .header-nav-wrap.on {
  opacity: 1;
  max-height: 100vh;
  visibility: visible;
}

.mobile-nav-slide-right .page-header .header-nav-wrap.on {
  left: 0;
}




/* Tier one */

.page-header .header-nav-wrap .header-nav {
  list-style: none;
}

.page-header .header-nav-wrap .header-nav > .menu-item {
  margin: 0;
}

.page-header .header-nav-wrap .header-nav > .menu-item > a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--primary-100);
  text-decoration: none;
}


.header-nav-wrap .header-nav .menu-item-has-children > a::after {
  display: inline-block;
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.3em;
  margin-bottom: 0.3em;
  vertical-align: middle;
  transition: transform 0.25s ease-in-out;
  background-image: var(--mobile-menu-has-children-icon);
}

.header-nav-wrap .header-nav .menu-item-has-children.on > a::after {
  transform: rotate(-180deg);
}


/* Teir two */

.header-nav-wrap .header-nav .menu-item > .sub-menu {
  list-style: none;
  display: none;
  padding-top: 0;
  transition: max-height 0.5s ease-in-out, padding 0.15s ease-out;
}

.header-nav-wrap .header-nav .menu-item.on > .sub-menu {
  display: block;
}


.header-nav-wrap .header-nav .menu-item > .sub-menu > .menu-item > a {
  display: block;
  padding: 0.8rem 0.5rem;
  text-decoration: none;
}
  



/* Mobile Menu Search */

.page-header .navigation .mobile-search-form {
  display: flex;
  justify-content: center;
}

.page-header .navigation .mobile-search-form .search-form {
  display: flex;
  padding-left: var(--spacing-700);
  padding-right: var(--spacing-700);
  font-size: 1.125rem;
  line-height: 1.4;
  border-radius: 1.5em;
  background-color: #fff;
  overflow: hidden;
}

.page-header .navigation .mobile-search-form .search-field-wrap {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: auto;
}

.page-header .navigation .mobile-search-form .search-field {
  width: 100%;
  padding: var(--spacing-600) 4px;
  border: none;
}

.page-header .navigation .mobile-search-form .search-field:focus { outline: none; }

.page-header .navigation .mobile-search-form .search-submit {
  padding: 0 var(--spacing-300);
  border: none;
  color: #000;
  background-color: transparent;
}
.page-header .navigation .mobile-search-form .search-submit::after {
  display: inline-block;
  content: '';
  width: 1em;
  height: 1em;
  background-image: var(--search-icon);
}

.page-header .navigation .mobile-search-form .search-submit span {
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
}

.menu-wrap-404 .menu-404 .menu-item.search-menu {
  display: none;
}






/* Mobile Nav fixed */


.mobile-nav-fixed-wrap {
  display: block;
  grid-area: mobile-nav-fixed;
  width: 100%;
  height: var(--mobile-nav-fixed-height);
  line-height: 0;
  background-color: #fff;
  z-index: 10;
  padding-left: 10px;
  padding-right: 10px;
}


.mobile-nav-fixed {
  display: flex;
  width: 100%;
  height: 100%;
  text-align: justify;
  margin: 0;
  padding: 0;
  color: #d1c1d7; 
  justify-content: flex-end;
  align-items: center;
}



.mobile-nav-fixed .menu-item {
  display: inline-block;
  vertical-align: middle;
  line-height: 60px;
}

.mobile-nav-fixed .menu-item a {
  display: flex;
  width: 100%;
  height: 100%;
  font-size: 1.6875rem;
  color: #87c2e1;
  text-decoration: none;
  justify-content: space-between;
}

.mobile-nav-fixed .menu-item a span { display: none; }



.mobile-nav-fixed .mobile-logo {
  width: 100%;
  max-width: 218px;
  height: 48px;
  margin-right: auto;
}

.mobile-nav-fixed .mobile-logo a {
  width: 100%;
  height: 100%;
  background-image: var(--mobile-menu-logo);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mobile-nav-fixed .mobile-menu {  }

.mobile-nav-fixed .mobile-menu a {color: #4A3723;}

.mobile-nav-fixed .mobile-menu a::before,
.mobile-nav-fixed li.mobile-contact a::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 16px;
  margin-right: 16px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.mobile-nav-fixed .mobile-menu a::before {
  background-image: var(--mobile-menu-toggle-icon);
}

.mobile-nav-fixed li.mobile-contact a::before {
  background-image: var(--mobile-menu-contact-icon);
}


.mobile-nav-fixed.on .mobile-menu a::before { background-image: var(--mobile-menu-toggle-off-icon); }


.mobile-nav-fixed li.mobile-contact {  }

.mobile-nav-fixed li.mobile-contact a {color: #2879A4;}






.mobile-nav-footer-wrap {
  bottom: 0;
  left: 0;
  position: fixed;
  width: 100%;
  background-color: #4D4D4D; 
  z-index: 10;
}


.mobile-nav-footer-wrap .mobile-nav-footer {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 0.5em 0.5em;
} 



.mobile-nav-footer-wrap .mobile-nav-footer .menu-item {
  list-style-type: none;
  display: block;
  width: 33.3%;
}



.mobile-nav-footer-wrap .mobile-nav-footer .menu-item a {
  display: block;
  padding: 0.75em 1em;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.2rem;
}




.mobile-nav-footer-wrap .mobile-nav-footer .menu-item a span {
  display: block;
}

.mobile-nav-footer-wrap .mobile-nav-footer .menu-item a::before {
  content: '';
  display: block;
  width: 0.75em;
  height: 0.75em;
  margin: 0 auto 0.5em auto;
  background-image: var(--mobile-nav-footer-icon);
  filter: invert(100%) sepia(83%) saturate(97%) hue-rotate(284deg) brightness(116%) contrast(100%);
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
}



/* Mobile only */
@media (max-width: 1024px) {

  .header-nav-wrap .header-nav > .menu-item-has-children.on > .sub-menu > .menu-item.on > a {
    padding-bottom: 0;
  }
  
  .header-nav-wrap .header-nav > .menu-item-has-children.on > .sub-menu > .menu-item.on {
    padding-bottom: 10px;
  }
  
  .header-nav-wrap .header-nav .menu-item > .sub-menu > .menu-item .sub-menu .menu-item a {
    padding: 0.4rem;
  }

  .mobile-nav-active .page-header .header-nav-wrap .header-nav {
    margin: 0;
    padding: 16px;
  }

  .page-header .row .inner .mobile-menu-toggle-wrap {
    text-align: right;
  }

  .page-header .mobile-menu-toggle-wrap .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
  }
  
  .page-header .mobile-menu-toggle-wrap .mobile-menu-toggle::after {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    margin-left: 10px;
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTAgOTZDMCA3OC4zIDE0LjMgNjQgMzIgNjRsMzg0IDBjMTcuNyAwIDMyIDE0LjMgMzIgMzJzLTE0LjMgMzItMzIgMzJMMzIgMTI4QzE0LjMgMTI4IDAgMTEzLjcgMCA5NnpNMCAyNTZjMC0xNy43IDE0LjMtMzIgMzItMzJsMzg0IDBjMTcuNyAwIDMyIDE0LjMgMzIgMzJzLTE0LjMgMzItMzIgMzJMMzIgMjg4Yy0xNy43IDAtMzItMTQuMy0zMi0zMnpNNDQ4IDQxNmMwIDE3LjctMTQuMyAzMi0zMiAzMkwzMiA0NDhjLTE3LjcgMC0zMi0xNC4zLTMyLTMyczE0LjMtMzIgMzItMzJsMzg0IDBjMTcuNyAwIDMyIDE0LjMgMzIgMzJ6Ii8+PC9zdmc+");
    filter: invert(1);
  }

  .page-header .header-nav-wrap .header-nav > .menu-item > a {
    padding: 0.5rem 0.6rem;
    color: #3a4639;
  }

  .page-header .header-nav-wrap .header-nav .menu-item {
    border-bottom: 1px solid #cecece;
  }
  .page-header .header-nav-wrap .header-nav .menu-item:last-child {
    border-bottom: none;
  }


  .page-header .header-nav-wrap .header-nav > .menu-item > .sub-menu > .menu-item > .sub-menu > .menu-item  {
    border-bottom: none;
  }
  
  
  .page-header .navigation .nav-meta-wrap {
    margin: 20px;
  }


  .page-header .navigation .mobile-search-form .search-form {
    max-width: 90%;
    width: 100%;
    border-radius: 0;
  }
  
  .page-header .navigation .mobile-search-form .search-field {
    margin: 10px;
    box-shadow: none;
  }

}


.page-header .nav-dropdown.search-dropdown { display: none; }


/* Desktop only */

@media (min-width: 1025px) {


  .page-header .navigation {
    overflow: visible;
  }
  
  
  .page-header .navigation .nav-meta-wrap {
    display: none;
  }



  /* Page Header Nav */

  .page-header .header-nav-wrap {
    position: static;
    opacity: 1;
    visibility: visible;
    max-height: unset;
    background-color: transparent;
    text-align: center;
    padding: 0;
  }

  .mobile-nav-fade-in .page-header .header-nav-wrap {
    opacity: 1;
  }

  .mobile-nav-fade-in .header-nav-wrap {
    height: auto;
  }

  .page-header .header-nav-wrap .header-nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
    gap: 0.3em;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .page-header .header-nav-wrap .header-nav .menu-item {
    font-size: clamp(0.75rem, -0.415rem + 1.82vw, 1rem);
    display: inline-block;
    margin: 0;
    white-space: nowrap;
    list-style: none;
    line-height: 1;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item.search-menu a::after {
    filter: invert(1);
  }

  .page-header .header-nav-wrap .header-nav > .menu-item.search-menu a::after {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    background-image: var(--search-icon);
  }

  .page-header .header-nav-wrap .header-nav .menu-item a {
    display: inline-block;
    padding: 0.75em;
  }

  .page-header .header-nav-wrap .header-nav .menu-item.current-menu-item > a,
  .page-header .header-nav-wrap .header-nav .menu-item.current-menu-parent > a,
  .page-header .header-nav-wrap .header-nav .menu-item.on > a {
    text-decoration: underline;
  }


  /* Second Tier */

  .page-header .header-nav-wrap .header-nav > .menu-item.menu-item-has-children {
    position: relative;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item.menu-item-has-children > a::after {
    display: none;
    /*
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    margin-left: 0.3em;
    font-family: 'fontello';
    vertical-align: middle;
    background-image: var(--mobile-menu-has-children-icon);
    */
  }

  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu {
    width: auto;
    /* max-width: 15em; */
    position: absolute;
    left: 0;
    margin: 0;
    padding-top: 0;
    min-width: 180px;
    padding-bottom: 0;
    text-align: left;
    background-color: #fff;
    z-index: 10;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item > .sub-menu {
    top: 100%;
  }
  

  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu > .menu-item {
    display: block;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 1px solid #efefef;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu > .menu-item a:hover {
    color: #fff;
    background-color: #9aa582;
    opacity: 1;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item > .sub-menu > li:last-child { border-bottom: none; }

  .page-header .header-nav-wrap .header-nav > .menu-item  .sub-menu > .menu-item > a {
    display: block;
    box-sizing: border-box;
    padding: 0.6em 0.8em;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu .menu-item.menu-item-has-children {
    position: relative;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu .menu-item.menu-item-has-children:hover {
    overflow: visible;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu .menu-item.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu .menu-item.menu-item-has-children > a::after {
    display: inline-block;
    content: '';
    width: 0.3rem;
    height: 0.45rem;
    margin-top: 0.25em;
    margin-left: 0.3em;
    font-family: 'fontello';
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTczIDM5Yy0xNC44LTkuMS0zMy40LTkuNC00OC41LS45UzAgNjIuNiAwIDgwTDAgNDMyYzAgMTcuNCA5LjQgMzMuNCAyNC41IDQxLjlzMzMuNyA4LjEgNDguNS0uOUwzNjEgMjk3YzE0LjMtOC43IDIzLTI0LjIgMjMtNDFzLTguNy0zMi4yLTIzLTQxTDczIDM5eiIvPjwvc3ZnPg==");  
    background-repeat: no-repeat;
    opacity: 0.7;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item .sub-menu .menu-item.menu-item-has-children > a:hover::after {
    filter: invert(1);
  }




  /* Third tier */

  .page-header .header-nav-wrap .header-nav > .menu-item > .sub-menu > .menu-item.menu-item-has-children > .sub-menu {
    overflow: visible;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item > .sub-menu > .menu-item .sub-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 100%;
    top: 0;
    margin: 0;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item > .sub-menu > .menu-item.menu-item-has-children:hover .sub-menu {
    display: flex;
  }
  







  /* Wide menu */

  .header-nav-wrap .header-nav > .menu-item.wide-menu.on > .sub-menu {
    display: flex;
  }


  .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu {
    width: 100vw;
    max-width: 60em;
    left: 50%;
    padding: 20px 40px;
    gap: 24px;
    transform: translateX(-50%);
  }
  
  .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu::before {
    position: absolute;
    left: 50%;
    top: 50%;
    content: '';
    width: 1px;
    height: calc(100% - 60px);
    background-color: #ccc;
    z-index: 10;
    transform: translateY(-50%);
  }
  
  .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item {
    flex-basis: 50%;
    border-bottom: none;
  }
  
  .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item > a {
    font-size: 1.1rem;
    font-weight: bold;
  }
  
  .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item.menu-item-has-children > a::after {
    display: none;
  }
  
  .page-header .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item > .sub-menu {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    position: static;
    flex-wrap: wrap;
  }
  
  
  .page-header .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item > .sub-menu > .menu-item {
    flex-basis: 50%;
    max-width: 100%;
    width: auto;
    border-bottom: none;
  }
  
  
  .page-header .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item > .sub-menu > .menu-item a {
    white-space: wrap;
    font-size: 0.9em;
    line-height: 1.4;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item.menu-item-9321 > .sub-menu > li:last-child {
    flex-basis: 100%!important;
    font-size: 1.15em;
  }

  .page-header .header-nav-wrap .header-nav > .menu-item.wide-menu > .sub-menu > .menu-item.menu-item-9321 > .sub-menu > li:last-child a {
    font-weight: bold;
  }


  
  
  




  /* Search Dropdown */

  .page-header .nav-dropdown.search-dropdown {
    display: block;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    max-width: 1150px;
    max-height: 0px;
    padding-left: 24px;
    padding-right: 24px;
    transition: max-height 0.5s;
    background-color: #fff;
    overflow: hidden;
    z-index: 5;
  }
  
  .page-header .nav-dropdown.search-dropdown.on {
    max-height: 5em;
  }
  
   .page-header .nav-dropdown.search-dropdown .search-form {
    display: flex;
    align-items: center;
  }
  
  .page-header .nav-dropdown.search-dropdown .search-field-wrap {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
  }
  
  .page-header .nav-dropdown.search-dropdown .search-field {
    width: 100%;
    margin: 10px 0;
    padding: 16px 4px;
    flex-grow: 1;
    font-size: 1.7rem;
    border: 0;
    box-shadow: none;
  }
  
  .page-header .nav-dropdown.search-dropdown .search-field:focus { outline: none; }
  
  .page-header .nav-dropdown.search-dropdown .search-field::placeholder { font-size: 1.2rem; }
  
  .page-header .nav-dropdown.search-dropdown .search-submit {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5em;
    border: none;
    background-color: var(--btn-secondary-default);
    color: #000;
  }
  
  .page-header .nav-dropdown.search-dropdown .search-submit::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: var(--search-icon);
  }







  .mobile-nav-fixed-top .page-header {
    margin-top: var(--mobile-nav-fixed-height);
  }

  .mobile-nav-fixed-wrap,
  .mobile-nav-footer-wrap { display: none; }





  /* Footer Nav */

  .page-footer .footer-nav .menu {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0;
  }
  
  
  .page-footer .footer-nav .menu .menu-item a {
    color: #000;
  }





} /* min-width: 650px */





/* Large Desktop */

@media (min-width: 1321px) {

  .page-header .header-nav-wrap .header-nav .menu-item {
    font-size: clamp(0.76rem, -0.396rem + 1.48vw, 0.94rem);
  }

}