/* Burger Menu Viewport Adjustment */
{% include '../_variables.css' %}

@media (min-width: 1351px) {
	
	.header-menu > .hs-menu-wrapper {
		display: block!important;
	}
	.header-menu > .hs-menu-wrapper,
	.header-menu .hs-menu-wrapper > ul,
	.header-menu .hs-menu-wrapper > ul > li {
		height: 100%;
	}
	
	.header-menu .hs-menu-wrapper ul {
		margin-top: 0;
	}
	.header-menu .hs-menu-wrapper li {

	}
	.header-menu > .hs-menu-wrapper > ul > li > a,
	.header-menu > .hs-menu-wrapper > ul  > li > .hs-menu-children-wrapper li a {
		color: inherit;
		padding: 1rem;
		font-size: .85rem;
		font-weight: light;
		opacity: 0.8;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		height: 100%;
	}
	.header-menu .hs-menu-wrapper > ul > li {
		position: relative;
	}
	.header-menu > .hs-menu-wrapper > ul > li > a {
		padding: 0px 1rem;
	}
	.header-menu .hs-menu-wrapper li a:hover {
		opacity: 1;
	}
	.header-menu > .hs-menu-wrapper > ul  > li > .hs-menu-children-wrapper li a {
		color: #fff;
	}
	.header .header-menu li.active > a {
	}
	.header-menu > .hs-menu-wrapper > ul  > li > .hs-menu-children-wrapper li.active a,
	.header-menu > .hs-menu-wrapper > ul  > li > .hs-menu-children-wrapper li a:hover {
		opacity: 1;
	}
	
	/* ---------
	 * Level 01
	 * ------------ */
	.header .header-menu > .hs-menu-wrapper > ul > li {
	}
	.header .header-menu > .hs-menu-wrapper > ul > li > a {
		position: relative;
		border-bottom: 1px solid transparent;
	}
	
	/* Active */ 
	.header .header-menu > .hs-menu-wrapper > ul > li:hover > a,
	.header .header-menu > .hs-menu-wrapper > ul > li.active-branch > a,
	.header .header-menu > .hs-menu-wrapper > ul > li.active > a {
		color: inherit;
		border-bottom: 1px solid;
	}
	.header .header-menu > .hs-menu-wrapper > ul > li.active-branch > a:after,
	.header .header-menu > .hs-menu-wrapper > ul > li.active > a:after {
		width: 100%;
		opacity: 1;
	}

	/* Hover */
	.header .header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper {
		position: absolute;
		top: 100%;
		left: 0;
		opacity: 0;
		transform: translateY(10px);
		-webkit-transform: translateY(10px);
		visibility: hidden;
		transition: 0.15s ease;
	}
	.header .header-menu > .hs-menu-wrapper > ul > li:hover > .hs-menu-children-wrapper,
	.header .header-menu > .hs-menu-wrapper > ul > li:focus-within > .hs-menu-children-wrapper {
		transform: translateY(0);
		-webkit-transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}
	
	/* ---------
	 * Level 02
	 * ------------ */
	
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper {
		padding: 1rem 0;
		min-width: 10rem;
		width: auto;
		color: #fff;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li {
		width: 100%;
		margin-top: 0.25rem;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li + li {
		margin-top: .75rem;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li > a {
		display: block;
		padding: 0 1rem;
		font-size: .9rem;
		line-height: 1.25;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li:hover > a {
		color: #fff;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li.hs-item-has-children {
		position: relative;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li.hs-item-has-children:before {
		content: "";
		position: absolute;
		right: 0.5rem;
		top: 0;
		bottom: 0;
		margin: auto;
	}
	
	/* ---------
	 * Level 03
	 * ================= */
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li > .hs-menu-children-wrapper {
		position: absolute;
		left: 100%;
		top: -1rem;
		opacity: 0;
		transform: translateX(10px);
		-webkit-transform: translateX(10px);
		visibility: hidden;
		padding: 1rem 0;
		min-width: 10rem;
		width: auto;
		color: #fff;
		transition: 0.15s ease;
	}
	.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li > .hs-menu-children-wrapper a {
		padding: 0 1rem;
	}
		.header-menu > .hs-menu-wrapper > ul > li > .hs-menu-children-wrapper > li:hover > .hs-menu-children-wrapper {
			left: 100%;
			opacity: 1;
			transform: translateX(0);
			-webkit-transform: translateX(0);
		  visibility: visible;
		}
	
}

@media (max-width: 1350px) {
	.header-menu-wrapper {
		-webkit-box-ordinal-group: 4;
		-ms-flex-order: 3;
		order: 3;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center; 
		align-items: center;
		justify-self: flex-end;
	}
	body:not(.mobile-open) .header-menu .hs-menu-wrapper {
		display: none!important;
	}
}

/* ==========================================================================
   Desktop Menu - Transparent
   ========================================================================== */

@media (min-width: 1351px) {
	.header-menu > .hs-menu-wrapper > ul > li > a {
    color: currentColor;
		opacity: .8;
  }
	.header .header-menu > .hs-menu-wrapper > ul > li:hover > a {
		color: currentColor;
		opacity: 1;
		border-bottom: 1px solid;
	}
}

/* ==========================================================================
   Mobile Menu - Hubspot Standard Toggle Menu
   ========================================================================== */

.child-trigger {
	display: none; /* Hide button on Desktop */
}

.mobile-trigger {
		display: block!important;
	}
@media (min-width: 1351px) {
	.mobile-trigger {
		display: none!important;
	}
}

@media (max-width: 1350px) {
	
	.header-menu > .hs-menu-wrapper {
		max-height: calc( 100vh - var(--header-height) );
		overflow-y: scroll;
	}

  /* Variables
     ========================================================================== */

  {% set menuColorMobile = dark %}   /* Set Mobile Menu Background Color */
  {% set aColorMobile = "#ffffff" %}      /* Set Link Color */
  {% set aColorHoverMobile = "#ffffff" %} /* Set Link Hover Color */

  /* 
    * Menu Reset
    *
    * Remove styling from desktop version of header-menu. Place any 
    * additional CSS you want removed from the mobile menu in this reset 
    */

  .header-menu .hs-menu-wrapper > ul,
  .header-menu .hs-menu-wrapper > ul li,
  .header-menu .hs-menu-wrapper > ul li a {
    display: block;
    float: none;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 0px;
    margin: 0px;
    background-image: none;
    background-color: transparent;
    border: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    -webkit-box-shadow: none;
    -moz-box-shadow:    none;
    box-shadow:         none; 
    max-width: none;
    width: 100%;
    height: auto;
    line-height: 1;  
    font-weight: normal;
    text-decoration: none;
    text-indent: 0px;
    text-align: left;
  }


  /* Toggle Button
     ========================================================================== */
	.hamburger {
		padding: 0!important;
		outline: none!important;
		display: inline-flex;
	}
	.hamburger-box {
		width: 2rem;
	}
	.hamburger-inner, 
	.hamburger-inner:after, 
	.hamburger-inner:before {
    width: 2rem!important;
    height: 1.5px!important;
	}


  /* Child Toggle Button
     ========================================================================== */

  .child-trigger {
    display: block !important;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 55px !important;
    min-width: 55px !important;
    height: 3rem !important;
    padding: 0 !important;
    border-left: 1px dotted rgba(255, 255, 255, .20);
  }
  .child-trigger:hover {
    text-decoration: none;
  }
  .child-trigger i {
    position: relative;
    top: 50%;
    margin: 0 auto !important;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  .child-trigger i:after {
    position: absolute;
    content: '';
  }
  .child-trigger i, .child-trigger i:after {
    width: 10px; /* Icon line width */
    height: 1px; /* Icon line height */
    display: block;

  }
  .child-trigger i:after {
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
  .child-trigger.child-open i:after {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
  }
  .child-trigger.child-open i {
  }

    
  /* Menu Styles on Mobile Devices
     ========================================================================== */  
     
   .header-menu.js-enabled {
   }

  /* Hide menu on mobile */
  .header-menu.js-enabled .hs-menu-wrapper,
  .header-menu.js-enabled .hs-menu-children-wrapper{
    display: none;
  }  

  /* Make child lists appear below parent items */
  .header-menu ul.hs-menu-children-wrapper{
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    display: none;
  }

  /* Mobile Menu Styles */ 
  .header-menu.js-enabled .hs-menu-wrapper{
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
		width: 100%;
    padding: 0;
  }
  .header-menu .hs-menu-wrapper{
    width: 100%;
  }
	.header-menu .hs-menu-wrapper li.active-branch > a {
	  font-weight: bold;
	}

   /* Level 1 Menu List Styles */
  .header-menu .hs-menu-wrapper > ul > li {
  }
  .header-menu .hs-menu-wrapper > ul > li a {
    font-size: 1rem;
    overflow: visible;
  }

  /* Level 1 and Higher Menu List Styles */
  .header-menu .hs-menu-wrapper > ul li {
    border-top: 1px dotted rgba(255, 255, 255, .35);
		position: relative;
  }
  .header-menu .hs-menu-wrapper >  ul li a{
		padding: 1rem;
    color: #fff;
		height: 3rem;
  }
  .header-menu .hs-menu-wrapper > ul li a:hover{
    color: #fff;
  }

  /* Level 2 and Higher Menu List Styles */
  .header-menu .hs-menu-wrapper > ul ul li{
    background-color: rgba(255, 255, 255, .08);
  }
  .header-menu .hs-menu-wrapper > ul ul li a{
    text-indent: 10px;
    font-size: 1rem;
  }

  /* Level 3 and Higher Menu List Styles */
  .header-menu .hs-menu-wrapper > ul ul ul li a{
    text-indent: 30px;
  }
  .header-menu .hs-menu-wrapper > ul ul ul ul li a{
    text-indent: 50px;
  }
}

@media (max-width: 1350px) {
	.header-right {
		margin-left: auto;
		justify-self: flex-end;
	}
	.header-language-switcher-label-current {
		display: none;
	}
}

@media (max-width: 1350px) {
	.header-search-wrapper {
  	order: 3;
	}
}

@media (min-width: 1351px) {
	.header-search-trigger-wrapper {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: stretch;
		-ms-flex-align: stretch;
		align-items: stretch;
		height: 100%;
	}
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */

@media (min-width: 1351px) {
	.header-menu .hs-menu-wrapper > ul > li.has-mega-menu {
		position: static;
	}
	.mega-menu:before {
		content: "";
		position: absolute;
		left: 0;
		bottom: 100%;
		width: 100%;
		height: 1.5rem;
		z-index: 5;
	}
	.header-menu .hs-menu-wrapper > ul > li.has-mega-menu	> ul {
		display: none!important;
	}
}
@media (max-width: 1350px) {
	.mega-menu {
		display: none!important;
	}	
}


@media (max-width: 767px) {
  .header-menu > .hs-menu-wrapper > ul {
    margin-bottom: 7rem!important;
  }
}




