/*** Custom Menu - Animate ***/
.side__popup-menu {
    float: right;
    height: 25px;
    width: 32px;
    right: 0;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
    cursor: pointer;
}
.side__popup-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #FFFEFE;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
.side__popup-menu span:nth-child(1) {
    top: 0px;
}
.side__popup-menu span:nth-child(2) {
    top: 12px;
}
.side__popup-menu span:nth-child(3) {
    top: 23px;
}
.side__popup-menu.open span:nth-child(1) {
    top: 8px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}
.side__popup-menu.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.side__popup-menu.open span:nth-child(3) {
    top: 8px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

body.elementor-editor-active .menu__wrapper {
    display: none !important;
}
.menu__wrapper {
    z-index: -9999;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    top: 0%;
    bottom: 0%;
    left: 0%;
    right: 0%;
}
.menu__content,
.custom__menu-wrap {
    list-style: none;
    visibility: hidden;
}
.tablet-logo {
    display: inline-block;
}
.custom__menu-wrap {
    position: relative;
    background: #FFFEFE;
    width: calc(50% + 1px);
    margin-right: -1px;
}
.custom__menu {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    height: 100%;
}
.menu__content {
    position: relative;
    background: #DED7AA;
    padding: 50px;
    width: 50%;
}
.sub__menu__content {
    background: #FFFEFE;
    position: absolute;
    inset: 0;
    padding: 50px 0 0;
    z-index: -9999;
    opacity: 0;
    visibility: hidden;
}
.menu__content .inner__wrap {
    height: 100%;
}
.custom__menu .menu__item {
    display: block;
    width: 100%;
}
.custom__menu .menu__item a {
    display: flex;
    align-items: center;
    font-size: clamp(1.5rem, 1.3146rem + 0.6593vw, 1.875rem);
    font-weight: 300;
    color: #231F20;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    padding: 10px 50px;
    height: 100%;
    width: 100%;
    transition: background .3s ease-in-out;
}
.custom__menu .menu__item a:hover,
.sub__menu__content li a:hover {
    color: #FFFEFE;  
}
.custom__menu > .menu__item > a::before,
.sub__menu  > li > a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #FFFEFE;
}
.custom__menu > .menu__item:not(.is-open) > a:hover::before,
.sub__menu > li > a:hover::before {
    background-color: #231F20;
}
.custom__menu > .menu__item.parent__item > a > span::after {
    content: "";
    display: inline-block;
    background: url('../media/caret-down.svg') no-repeat;
    background-size: contain !important;
    filter: grayscale(0) brightness(0) invert(0) !important;
    position: relative;
    margin-left: 25px;
    height: 20px;
    width: 20px;
}
.custom__menu > .menu__item.parent__item > a:hover > span::after {
    filter: grayscale(0) brightness(1) invert(0) !important;
}
.custom__menu .divider,
.sub__menu__content .divider {
    position: absolute;
    bottom: 1px;
    left: 0;
    background-color: #231F20;
    height: 1px;
    width: 0%;
    opacity: 1;
    overflow: hidden;
    transition: width 0.5s ease, opacity .5s ease-in-out;
}
.custom__menu .menu__item:not(.is-open):hover .divider,
.sub__menu__content .sub__menu li:hover .divider {
    background-color: #FFFEFE;
}
.content__panel {
    position: relative;
}
.inner__panel {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
}
.inner__panel .panel__menu-list {
    padding: 0;
}
.inner__panel li {
    display: block;
    margin-bottom: 18px;
}
.inner__panel li a {
    position: relative;
    color: #231F20 !important;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2em;
    letter-spacing: 0.65px;
    text-decoration: none;
}
.bottom__panel a {
    position: relative;
}
.inner__panel li a::before,
.bottom__panel a.link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #231F20;
    bottom: 0;
    -webkit-transition: transform 0.6s cubic-bezier(0.835, -0.005, 0.06, 1) !important;
    -moz-transition: transform 0.6s cubic-bezier(0.835, -0.005, 0.06, 1) !important;
    -o-transition: transform 0.6s cubic-bezier(0.835, -0.005, 0.06, 1) !important;
    transition: transform 0.6s cubic-bezier(0.835, -0.005, 0.06, 1) !important;
    transform-origin: right !important;
    transform: scaleX(0) !important;
    opacity: 1 !important;
}
.inner__panel li a:hover::before,
.sub__menu__content li:hover::before,
.custom__menu .menu__item:hover::before,
.bottom__panel a.link:hover::before {
    transform-origin: left !important;
    transform: scaleX(1) !important;
}
.bottom__panel a.link::before {
    background-color: rgba(35, 31, 32, 0.4);
}
.inner__panel p {
    color: #FFFEFE;
}
.inner__panel p:last-child {
    margin-bottom: 0;
}
.mobile-logo,
.sub__menu {
    display: none;
    visibility: hidden;
}
.menu__logo {
    max-width: 365px;
}
.sub__menu__content .sub__menu  {
    display: block;
    border-top: 1px solid #231F20;
    visibility: visible;
    padding: 0;
}
.sub__menu__content li {
    display: block;
    padding: 0;
}
.sub__menu__content li a {
    font-weight: 300;
    position: relative;
    display: block;
    color: #231F20;
    font-size: 20px;
    line-height: 1.2em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    padding: 15px 50px;
}
.sub__menu__content .back__link {
    font-weight: 300;
    position: relative;
    display: block;
    color: #231F20 !important;
    text-decoration: underline;
    font-size: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 0 50px;
}
.sub__menu__content .back__link:hover {
    opacity: 0.5;
}
.sub__menu__content .back__link::before {
    content: "";
    display: inline-block; 
    content: "←"; background: none;
    background-size: contain !important;
    margin-right: 15px;
    transform: rotate(180deg);
    height: 16px;
    width: 16px;
    transition: transform .35s ease-in-out;
}
.bottom__panel p {
    color: #231F20;
    display: block;
    width: 100%;
}
.bottom__panel p span {
    display: block;
    color: rgba(13, 13, 13, 0.6);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.65px;
}
.bottom__panel .button-container {
    margin-top: 20px;
}
.menu__content .separator {
    position: absolute;
    right: 44%;
    top: 0;
    background-color: #231F20;
    height: 100%;
    width: 1px;
    transform: translateX(-44%);
}
.content__panel .elementor-button,
.content__panel .elementor-button .elementor-button-text {
    background: #231F20;
}
.content__panel .elementor-button:hover .elementor-button-text.hover {
    background: #fff;
}
.close__trigger-icon {
    position: absolute;
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
}
.close__trigger-icon:hover {
    opacity: 1;
}
.close__trigger-icon:before, 
.close__trigger-icon:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #231F20;
}
.close__trigger-icon:before {
    transform: rotate(45deg);
}
.close__trigger-icon:after {
    transform: rotate(-45deg);
}

@media (min-width: 768px) {
    .sub__menu__content .back__link {
        margin-bottom: 10px;
    }
    .mobile-wrap {
        display: none;
    }
}

@media (max-width: 767px) {
    .menu__wrapper {
        /*background-color: #f5f5f5;*/
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        flex-wrap: wrap;
        align-content: flex-start;
    }
    .menu__content,
    .custom__menu-wrap {
        width: 100%;
        height: auto;
        min-height: auto;
        margin-right: 0;
    }
    .custom__menu-wrap {
        position: relative;
        z-index: 2;
    }
    .custom__menu {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        border-top: 1px solid #231F20;
        padding: 0;
    }
    .custom__menu .menu__item {
        display: block;
        position: relative;
        width: 100%;
    }
    .custom__menu .menu__item > a {
        display: block;
        font-size: 18px;
        width: 100%;
        height: auto;
        padding: 20px;
        padding-right: 20px;
        line-height: 1.2em;
    }
    .custom__menu .menu__item.parent__item > a:after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .custom__menu > .menu__item.parent__item > a > span::after {
        height: 14px;
        width: 14px;
        transition: transform .5s ease-in-out;
    }   
    .custom__menu > .menu__item.parent__item.is-open > a > span::after {
        background: url('../media/caret-down.svg') no-repeat;
        transform: rotate(180deg);
    }
    .menu__content {
        margin-top: -1px;
        min-height: calc(100vh - 410px);
        padding: 0 20px 35px 20px;
        z-index: 1;
    }
    .menu__content .inner__wrap {
        height: auto;
    }
    .inner__panel li a {
        font-size: 20px;
    }
    .sub__menu__content {
        display: none !important;
    }
    .custom__menu .sub__menu {
        display: block;
        visibility: visible;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        list-style: none;
        transition: max-height 0.35s ease;
    }
    .custom__menu > .menu__item.parent__item.is-open > a {
        border-bottom: 1px solid #231F20 !important;
    }
    .custom__menu .parent__item.is-open > .sub__menu {
        max-height: 500px;
    }
    .custom__menu .sub__menu li {
        display: block;
        position: relative;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .custom__menu .sub__menu li a {
        display: block;
        margin: 0;
        padding: 15px 40px;
        font-size: 18px;
        line-height: 1.2em;
        text-transform: uppercase;
        text-decoration: none;
        color: #231F20;
        letter-spacing: 0.65px;
        height: auto;
        width: 100%;
    }
    .custom__menu > .menu__item.is-open > a {
        background-color: #FFFEFE;
        color: #231F20;
    }
    .mobile-wrap {
        padding: 20px;
    }
    .mobile-wrap a {
        display: inline-block;
    }
    .menu__content .close__trigger-icon,
    .tablet-logo {
        display: none !important;
    }
}

@media (max-width: 540px) {
    .bottom__panel .button-container,
    .bottom__panel .button-container .elementor-button {
        width: 100%;
    }
}
/* The native accessible toggle owns clicks, keyboard input and menu visibility. */
@media (max-width:1024px) {
  .main_header .scx-primary-menu .elementor-menu-toggle {
    min-width:44px; min-height:44px; padding:9px 6px; overflow:visible;
  }
  .main_header.scroller .side__popup-menu span {background:#231f20}
}
@media (min-width:1025px) {
  .main_header .side__popup-menu {display:none}
}
@media (prefers-reduced-motion:reduce) {
  .side__popup-menu, .side__popup-menu span {transition:none}
}

/* Integration with the existing primary header and native WordPress menu. */
.scx-popup-toggle {display:none}
.menu__wrapper[hidden], .menu__wrapper [hidden] {display:none!important}
body.scx-popup-open {overflow:hidden}
.menu__wrapper {font-family:Aileron,sans-serif}
.menu__wrapper, .menu__wrapper *, .menu__wrapper *::before, .menu__wrapper *::after {box-sizing:border-box}
.menu__wrapper.is-open {z-index:10000;height:100dvh;overflow:auto;overscroll-behavior:contain;background:transparent}
.menu__wrapper.is-open .custom__menu-wrap,
.menu__wrapper.is-open .menu__content {visibility:visible}
.menu__wrapper .menu__logo {width:239px;max-width:100%;height:auto;filter:brightness(0) saturate(100%);display:block}
.menu__wrapper .custom__menu {margin:0;align-content:stretch}
.menu__wrapper .menu__item {position:relative;isolation:isolate}
.menu__wrapper .custom__menu .menu__item > a {position:relative;min-height:60px}
.menu__wrapper .divider {width:100%;pointer-events:none}
.menu__wrapper .sub__menu__content {overflow:auto}
.menu__wrapper .sub__menu__content.is-active {opacity:1;visibility:visible;z-index:3}
.menu__wrapper .sub__menu__content li {position:relative;isolation:isolate}
.menu__wrapper .custom__menu .sub__menu:not([hidden]) {max-height:none}
.menu__wrapper .sub__menu a:hover {background:#231f20;color:#fffefe}
.menu__wrapper .inner__panel li a {text-decoration:none}
.menu__wrapper .bottom__panel a {color:#231f20}
.menu__wrapper .content__panel .elementor-button {background:#231f20;color:#fffefe;padding:14px 24px;border-radius:2px;text-transform:uppercase}
.menu__wrapper a:focus-visible,.scx-popup-toggle:focus-visible {outline:2px solid #b19950;outline-offset:3px}
.menu__wrapper .close__trigger-icon {z-index:5}
.menu__wrapper .menu__content {padding-top:90px}
.menu__wrapper .back__link::before {transform:none}
@media(max-width:1024px) {
  .main_header .scx-primary-menu .scx-popup-toggle {
    display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;
    border:0;padding:9px 6px;border-radius:0;background:transparent;color:inherit;cursor:pointer;
  }
  .main_header.scroller .scx-popup-toggle .side__popup-menu span {background:#231f20}
}
@media(min-width:768px) {
  .menu__wrapper .custom__menu-wrap {min-height:100dvh}
  .menu__wrapper .custom__menu {min-height:100dvh}
  .menu__wrapper .custom__menu .menu__item a {padding-inline:30px}
}
@media(max-width:767px) {
  .menu__wrapper .mobile-wrap {position:relative;padding:20px}
  .menu__wrapper .menu__content {padding-top:25px;min-height:0}
  .menu__wrapper .inner__panel {margin-top:0}
}
@media(min-width:1025px) {.menu__wrapper {display:none!important}}
@media(prefers-reduced-motion:no-preference) {
  .menu__wrapper.is-open .custom__menu-wrap {animation:scx-popup-down .65s cubic-bezier(.65,0,.35,1) backwards}
  .menu__wrapper.is-open .menu__content {animation:scx-popup-up .65s cubic-bezier(.65,0,.35,1) backwards}
}
@keyframes scx-popup-down {from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes scx-popup-up {from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}

@media(max-width:767px) {
  .menu__wrapper.is-open {flex-direction:column;flex-wrap:nowrap;align-content:normal}
  .menu__wrapper .custom__menu-wrap {flex:0 0 auto}
  .menu__wrapper .menu__content {flex:1 0 auto;margin-top:0}
  .menu__wrapper .mobile-wrap > a:not(.close__trigger-icon) {max-width:calc(100% - 56px)}
  .menu__wrapper .mobile-wrap .close__trigger-icon {top:20px;right:20px}
}
