.menu-toggle {
  cursor: pointer;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  border: none;
  position: relative;
  z-index: 120;
  display: inline-flex;
  min-height: 45px;
  line-height: 1;
  justify-content: center;
  align-items: center;
}
.menu-toggle .lines {
  width: 35px;
  height: 2px;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  position: relative;
  transition: top 300ms ease 0s, transform 300ms ease 0s,
    background-color 300ms ease 0s;
}
.menu-toggle .lines:before,
.menu-toggle .lines:after {
  content: "";
  display: inline-block;
  width: 35px;
  height: 2px;
  background-color: #fff;
  position: absolute;
  right: 0px;
  transform-origin: 50% 50%;
  transition: top 300ms cubic-bezier(0.165, 0.84, 0.44, 1) 0s,
    transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1) 0s,
    background-color 300ms cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
  mix-blend-mode: multiply;
}
/* Blue version */
.menu-toggle.blue .lines,
.menu-toggle.blue .lines:before,
.menu-toggle.blue .lines:after {
  background-color: #0057b8;
}
/* end Blue version */

.menu-toggle .lines:before {
  width: 25px;
  top: 11px;
}
.menu-toggle .lines:after {
  top: -11px;
}
/* Hover state */
.menu-toggle:hover {
  background: none;
  outline: none;
  border: none;
}
.menu-toggle:hover .lines:before {
  transform: translateY(2px);
}
.menu-toggle:hover .lines:after {
  transform: translateY(-2px);
}

/* Active state */
#ad-menu-toggle.active {
  /* display: none; */
}
.menu-toggle.active .lines {
  background: transparent;
}
.menu-toggle.active .lines:before,
.menu-toggle.active .lines:after {
  transition: top 300ms cubic-bezier(0.165, 0.84, 0.44, 1) 0s,
    transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
  background-color: #0057b8;
  top: 0px;
  width: 40px;
  height: 2px;
}
.menu-toggle.active .lines:before {
  transform: rotate3d(0, 0, 1, 45deg) scale(1.1);
}
.menu-toggle.active .lines:after {
  transform: rotate3d(0, 0, 1, -45deg) scale(1.1);
}
/* Focus state */
.menu-toggle:focus {
  background: none;
  outline: none;
  border: none;
}

/* ad-menu-overlay Menu styles */
.ad-offcanvas {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  pointer-events: none;
  z-index: 110 !important;
}
.ad-offcanvas.active {
  pointer-events: all;
}
.ad-offcanvas div:not(.offcanvas-overlay) {
  opacity: 0;
  transition: 0.4s ease all;
}
.ad-offcanvas.active div:not(.offcanvas-overlay) {
  opacity: 1;
}
.ad-offcanvas .offcanvas-overlay {
  position: absolute;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: #f7f5ef;
  will-change: transform;
  transform: translate3d(0px, -100%, 0px);
  transition: transform 0.6s cubic-bezier(0.43, 0.69, 0.67, 0.85);
}
.ad-offcanvas.active .offcanvas-overlay {
  transform: translate3d(0px, 0%, 0px);
}

/* Inside the menu overlay */
.offcanvas-container {
  width: 1200px;
  max-width: 100%;
  padding: 100px 20px;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.offcanvas-logo {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.offcanvas-logo img {
  width: 150px;
  display: block;
}
.offcanvas-close {
  position: absolute;
  top: 0;
  right: 0;
}
.offcanvas-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.offcanvas-footer .offcanvas-socials {
  display: flex;
}
.offcanvas-footer .offcanvas-socials a {
  display: block;
  margin-right: 0.6em;
  font-size: 2em;
}
.offcanvas-footer .offcanvas-socials a svg {
  display: block;
  margin: 0 auto;
  width: 25px;
  height: auto;
  fill: #d3c18f;
}
.offcanvas-footer .offcanvas-contact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.offcanvas-footer .offcanvas-contact p {
  font-size: 34px;
  color: #0057b7;
  margin: 0 40px 0 0;
  font-family: "brandon-grotesque", sans-serif;
}
.ad-button-button {
  background: #0057b7;
  padding: 18px 36px;
  font-size: 20px;
  color: #fff;
  display: inline-block !important;
  text-decoration: none;
  font-family: "brandon-grotesque", sans-serif;
}
/* Offcanvas Menu */
.offcanvas-menu {
  padding: 30px 0;
  display: inline-flex;
}
.offcanvas-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.offcanvas-menu ul li {
  position: relative;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(1.01) translateY(24px);
  transition: opacity 1s ease-out,
    transform 1.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 250ms, 250ms;
}
.offcanvas-menu ul li a {
  display: block;
  font-size: 80px;
  line-height: 0.9;
  color: #454546;
  text-decoration: none;
  padding: 15px 0;
  text-transform: uppercase;
  transition: color 600ms cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
  font-weight: 700;
}
.offcanvas-menu ul li.current-menu-item a {
  color: #0057b8;
}
.offcanvas-menu ul li a:hover {
  color: #0057b8;
}

.ad-offcanvas.active .offcanvas-nav > ul > li {
  opacity: 1;
  transform: none;
}

.ad-offcanvas.active .offcanvas-nav > ul > li:nth-child(2) {
  transition-delay: 350ms, 350ms;
}

.ad-offcanvas.active .offcanvas-nav > ul > li:nth-child(3) {
  transition-delay: 450ms, 450ms;
}

.ad-offcanvas.active .offcanvas-nav > ul > li:nth-child(4) {
  transition-delay: 550ms, 550ms;
}

.ad-offcanvas.active .offcanvas-nav > ul > li:nth-child(5) {
  transition-delay: 650ms, 650ms;
}

.ad-offcanvas.active .offcanvas-nav > ul > li:nth-child(6) {
  transition-delay: 750ms, 750ms;
}

.ad-offcanvas.active .offcanvas-nav > ul > li:nth-child(7) {
  transition-delay: 550ms, 550ms;
}

.offcanvas-menu ul ul {
  position: absolute;
  left: 100%;
  padding-left: 30px;
  margin-top: 20px;
  /* pointer-events: none; */
  min-width: 390px;
  /*   opacity: 0; */
}
.offcanvas-menu ul li.menu-item-has-children:hover ul {
  /* pointer-events: all; */
}
.offcanvas-menu ul ul.hovered {
  /*   opacity: 1; */
  /* pointer-events: all; */
}
.offcanvas-menu ul ul li {
  display: block;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.6s ease-out,
    transform 1.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.offcanvas-menu ul ul li a {
  font-size: 30px;
  flex-shrink: 0;
  text-transform: none;
  font-weight: 500;
}
.offcanvas-menu ul li.menu-item-has-children:hover ul li {
  opacity: 1;
  transform: translateY(0px);
  transition-delay: 250ms;
}
/* .offcanvas-menu ul ul.hovered li {
  opacity: 1;
  transform: none;
  transition-delay: 250ms;
} */
.offcanvas-menu ul li.menu-item-has-children:hover ul li:nth-child(2) {
  transition-delay: 300ms, 300ms;
}

.offcanvas-menu ul li.menu-item-has-children:hover ul li:nth-child(3) {
  transition-delay: 350ms, 350ms;
}

.offcanvas-menu ul li.menu-item-has-children:hover ul li:nth-child(4) {
  transition-delay: 450ms, 450ms;
}

.offcanvas-menu ul li.menu-item-has-children:hover ul li:nth-child(5) {
  transition-delay: 550ms, 550ms;
}

.offcanvas-menu ul li.menu-item-has-children:hover ul li:nth-child(6) {
  transition-delay: 650ms, 650ms;
}

.offcanvas-menu ul li.menu-item-has-children:hover ul li:nth-child(7) {
  transition-delay: 750ms, 750ms;
}
/* Reverse staggered effect when removing the "hovered" class */
.offcanvas-menu ul ul li {
  transition-delay: 450ms, 450ms;
}
.offcanvas-menu ul ul li:nth-child(2) {
  transition-delay: 400ms, 400ms;
}
.offcanvas-menu ul ul li:nth-child(3) {
  transition-delay: 350ms, 350ms;
}
.offcanvas-menu ul ul li:nth-child(4) {
  transition-delay: 300ms, 300ms;
}
.offcanvas-menu ul ul li:nth-child(5) {
  transition-delay: 250ms, 250ms;
}
.offcanvas-menu ul ul li:nth-child(6) {
  transition-delay: 200ms, 200ms;
}
.offcanvas-menu ul ul li:nth-child(7) {
  transition-delay: 150ms, 150ms;
}
.offcanvas-menu ul ul li.back-button {
  display: none;
}

@media (max-width: 992px) {
  html.overflow-hidden {
    overflow: hidden;
  }
  .offcanvas-logo {
    padding-top: 38px;
  }
}

@media (max-width: 650px) {
  .offcanvas-open header[role="banner"] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 121 !important;
    overflow-x: hidden;
  }
  .offcanvas-container {
    padding: 20px;
    justify-content: flex-start;
  }
  .offcanvas-menu {
    margin-top: 60px;
    overflow-y: auto;
    scroll-behavior: smooth;
  }
  .offcanvas-menu ul li a {
    font-size: 45px;
  }
  .offcanvas-menu ul ul li a {
    font-size: 22px;
  }
  .offcanvas-footer {
    margin-top: 65px;
  }
  .offcanvas-footer .offcanvas-contact {
    display: none;
  }
  .offcanvas-nav {
    transition: 0.3s ease all;
  }
  .offcanvas-menu ul ul li.back-button {
    /*     display: flex; */
  }
  .offcanvas-menu ul.sub-menu {
    position: relative;
    left: inherit;
    padding-left: 15px;
    margin-top: 0px;
    pointer-events: none;
    max-height: 0px;
    overflow: hidden;
    min-width: inherit;
    transition: 0.3s ease all;
  }
  .offcanvas-menu li.submenu-open ul.sub-menu {
    max-height: 2000px;
    pointer-events: all;
  }
}
