/* ==========================================================================

    Off-Canvas Menu                              

   ========================================================================== */
.row-fluid > .off-canvas-menu {
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    margin: 0 !important;
    height: 100%;
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    background-color:rgba(0,0,0,.97);
    padding: 1em;
    font-size: 1.15em;
    box-shadow: 1px 6px 8px rgba(0, 0, 0, 0);
    transform: translate3d(-300px,0,0);
    transition: all 250ms ease;
    will-change: transform;
    overflow: scroll;
}

/* Show menu */
.show-menu .row-fluid > .off-canvas-menu {
    background-color:rgba(0,0,0,.97);
	transform: translate3d(0,0,0);
    /*box-shadow: 1px 6px 8px rgba(0, 0, 0, 0.24);*/
}
.row-fluid > .off-canvas-menu ul li a {
    border-bottom: 1px dotted rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    display: block;
    position: relative;
    padding: 10px 0!important;
}

/* Second level menu */
.off-canvas-menu .hs-menu-depth-1.hs-item-has-children {
    perspective: 1000px;
}
.off-canvas-menu .hs-menu-depth-1 > ul.hs-menu-children-wrapper {
    /*transform-origin: 50% 0;
    transform-style: preserve-3d;
    transform: scale(1,0) rotateX(-90deg);
    transition: all .2s ease;
    opacity: 0 !important; /* important to overwrite hubspot styles */
    /*max-height: 0;*/
    will-change: transform;
}

/* Show second level menu */
.off-canvas-menu .hs-menu-depth-1.show-menu > ul.hs-menu-children-wrapper {
    transform: scale(1,1) rotateX(0deg);
    opacity: 1 !important; /* important to overwrite hubspot styles */
    max-height: 440px; /* hack to animate height - change this if your second level menu is taller than 220px */
}
.off-canvas-menu .hs-menu-depth-1.hs-item-has-children {
	padding-right: 0.5em;
}
.off-canvas-menu .hs-menu-depth-1.hs-item-has-children > a:after {
    display: none;
    width: 0px;
    height: 0px;
    border-top: 4px dashed ;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: " ";
    position: absolute;
    top: 1.2em;
    right: 0.5em;
    transform: rotate(0);
    transition: all 500ms;
}
.off-canvas-menu .hs-menu-depth-1.hs-item-has-children.show-menu > a:after {
    transform: rotate(180deg);
}




.off-canvas-menu > ul > li:first-child {
padding-top:10px;
}

.off-canvas-menu > ul > li:last-child {
padding-bottom:10px;
}

.off-canvas-menu > ul > li:last-child a {
border-bottom:0;
}

.off-canvas-menu ul li a {
border-bottom:1px dotted rgba(255,255,255,0.2);
color:rgba(255,255,255,0.6);
font-size:12px;
display:block;
position:relative;
padding:10px 0!important;
}

.off-canvas-menu ul li ul {
margin-left:0;
}

.off-canvas-menu ul li ul {
padding-left: 20px;
}

.off-canvas-menu ul li ul ul {
padding-left: 30px;
}

.off-canvas-menu ul li a:hover,.off-canvas-menu ul li a:hover [class^=icon-],.off-canvas-menu li.open > a,.off-canvas-menu ul li.current-menu-item > a,.off-canvas-menu ul li.current-menu-ancestor > a {
color:#fff;
}

.container.menu-toggle {
    position: absolute;
    top: 30px;
    right: 10px;
}

.bar1, .bar2, .bar3 {
    width: 16px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}
