/* Navigation container */

.header_navigation {
  display: flex;
  flex-direction: column-reverse;
  align-items: end;
  gap: 0.75em;
  font-family: var(--serif);
  font-weight: bold;
  filter: drop-shadow(var(--bshadow));
  letter-spacing: 0.25px;
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0,0.5); */
}

/* NC Navmenu */

.header_menu {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.header_menu a {
  transition: 0.5s;
}

.header_menu > li {
  display: flex;
  position:relative;
}

.header_menu > li > a {
  padding:0.5em 0.8em 0.2em;
  color: currentColor;
  display: block;
}

/*
.header_menu > li:hover > a {
  background: var(--green);
}
*/

/* Animated Underlines */

.header_menu > li:not(.menu-item-has-children) > a:after,
 .header_menu-top > li:not(.menu-item-has-children) > a:after{
  content:''; 
  height: 1px; 
  background: var(--green-light);
  width:0;
  transition: 0.5s; 
  display:block; 
  position:absolute;
  bottom: 0.15rem;
}

.header_menu > li:not(.menu-item-has-children):hover > a:after,
 .header_menu-top > li:not(.menu-item-has-children):hover > a:after {
  width:calc(100% - 1.5em); /* minus the padding on both sides of links */
}

/* Submenu */

.header_menu .sub-menu {
    position: absolute;
    margin:0;
    top:100%;
    width: 210px;
    right: 0;
    z-index: 200;
    list-style-type:none;
    padding-left:0;
    background: var(--beige);
    transition: 0.5s;
    opacity: 0;
    color: var(--green-dark);
    transform:scale(1,0);
    transform-origin:center top;
}


.header_menu li.menu-item-has-children:hover .sub-menu {
  z-index:210;
}

.header_menu li:hover > .sub-menu,
.header_menu li > .sub-menu.focused { 
    transform:scale(1,1); 
    opacity: 1;
}

.header_menu .sub-menu li { 
  display:block; 
  position:relative;
}

.header_menu .sub-menu li a { 
  padding:0.75em 1em 0.43em; 
  display:block;
}

.header_menu .sub-menu li:hover > a {
  background: rgba(82, 63, 30,0.07);
  color: var(--brown);
}

.header_menu .sub-menu li:not(:last-child) a { 
  border-bottom: solid 1px #eee; 
}

    /* Submenu indicator */

    .header_menu .menu-item-has-children > a:after { 
      content: '\e902';
      font-family: 'ncicons'; 
      margin-left:0.75em;
      transition:0.5s;
      display:inline-block;
      transform:rotate(90deg);
      color: currentColor;
      font-size: 0.6em;
      font-weight: normal
    }

    .header_menu .menu-item-has-children:hover > a:after {
        transform: rotate(270deg)
    }


/* Secondary Top Menu */

.header_menu-top {
  display: flex;
  gap: 0.5em;
  list-style-type: none;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: var(--txt-small);
}

.header_menu-top > li > a {
  padding: 0.6em 0.75em 0.3em;
  display: block;
  transition: 0.3s;
  position: relative;
}

.header_menu-top > li:nth-last-of-type(-n+2) a {
  background-color: var(--green-dark);
  padding-inline: 2em;
}

.header_menu-top > li:nth-last-of-type(-n+2) a:after {
  display: none;
}

.header_menu-top > li:nth-last-of-type(-n+2):hover a {
  background-color: var(--green);
}

.header_menu-top > li:hover a {
  /* background-color: var(--green); */
}


/* CTA Menu for Mobile */

.mobilecta {
  position: sticky;
  top:-1px;
  z-index: 1000;
  height: 69px;
  overflow: hidden;
  background: var(--beige);
  box-shadow: var(--bshadow);
}

.mobilecta_list {
  display: flex;
  justify-content: stretch;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-weight: bold;
  letter-spacing: 1px;
  font-size: var(--txt-xsmall);
  color: var(--brown);
  padding-right: 1em;
  text-transform: uppercase;
}


.mobilecta_list > li:first-of-type {
  margin-right: auto;
}

.mobilecta_img {
  filter: none;
  position: relative;
  top: -3px;
}

.mobilecta_list .ncicon {
  font-size: 1.25em;
  color: var(--green);
}

.mobilecta_list > li:last-of-type .ncicon {
 font-size: 1em;
}

.mobilecta_list a,
.mobilecta_list label {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column;
  gap:0.5rem;
  height: 100%;
  text-align: center;
  padding:1em 1em 0.6em 1em;
  color:currentColor;
  transition: 0.3s;
  cursor: pointer;
}

.mobilecta_list a:hover,
.mobilecta_list label:hover {
  color: var(--brown);
}
