/* Menu */

/* Menu items */

.menu__link {
	font-size: 1rem;
	line-height: 1.2rem;
	text-decoration: none;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
	text-decoration: none;
}

.menu__link--active-link,
.menu__link--active-branch {
	font-weight: bold;
}

@media (min-width: 768px) {
	.menu__link {
		font-size: 1rem;
	}
}

@media (max-width: 767px) {

	.menu__wrapper {
		display: grid;
	}

	.menu__item {
		display: block;
		width: 100%;
	}

	.menu__link {
		display: block;
		font-size: 18px;
    font-family: "Hedvig Letters Serif", serif;
    text-transform: none;
    color: #0e2336;
	}
	
	header.header .menu__link:hover {
    font-family: "Hedvig Letters Serif", serif;
    text-transform: none;
    color: #0e2336 !important;
	}
	
	header.header .primary-menu .menu__item:hover > a.menu__link {
		color: #0e2336 !important;
	}

	header.header .primary-menu .menu__item .menu__submenu .menu__link:hover {
		color: #0e2336 !important;
	}

}

/* Menu items - top level */

.menu__item--depth-1 {
	display: inline-block;
	padding: 0;
	text-transform: uppercase;
}

.menu__item--depth-1 > .menu__link--active-link:after {
	bottom: 0;
	content: '';
	height: 2px;
	left: 0;
	position: absolute;
	width: 100%;
}

@media (max-width: 767px) {
	.menu__item--depth-1 {
		border-top: 2px solid #EBEFF3;
		padding: 0;
	}

	.menu__item--depth-1 > .menu__link {
		padding: 16px 0;
	}

	.menu__item--depth-1 > .menu__link--active-link:after {
		content: none;
	}
}

/* Menu items - submenus */

.menu__submenu {
	display: block;
	left: 0;
	position: absolute;
	text-align: left;
	text-transform: none;
	top: 100%;
	width: 200px;
	z-index: 99;
}

.menu__item--open > .menu__submenu {
	display: block;
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
	transform: unset;
}

.menu__submenu .menu__item {
	border-bottom: 1px solid #D1D6DC;
	padding: 0;
	width: 100%;
}

.menu__submenu .menu__link {
	display: block;
	padding: 16px 1rem;
	transition: background-color 0.3s;
	width: 100%;
}

.menu__submenu--level-3 {
	left: 100%;
	top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
	left: auto;
	right: 100%;
	top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
	padding-right: 3rem;
}

@media (min-width: 768px) {
	.menu__item--has-submenu:hover>ul.menu__submenu {
		display: block;
	}

	.hs-search-field form label {
		font-size: 1rem;
	}
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 768px) {

	.menu__submenu {
		height: auto !important;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		position: initial;
	}

	.menu__item--has-submenu:hover>.menu__submenu {

		opacity: 1;
		visibility: visible;
	}



	.menu__item--depth-1 {
		display: flex;
		align-items: center;
		cursor: pointer;
	}


	.menu__submenu .menu__link {
		padding: 12px 1rem;
	}

	.menu__submenu--level-2 > .menu__item:first-child > .menu__link {
		position: relative;
		z-index: 2;
	}
}

@media (min-width: 992px) {
	.menu__item--depth-1 {
	}
}

@media (max-width: 767px) {
	.menu__submenu {
		border: none;
		border-radius: 0;
		box-shadow: none;
		position: static;
		transform: unset;
		width: 100%;
		height: 0;
		overflow: auto;
		transition: all 0.3s ease;
	}

	.menu__submenu .menu__item {
		background-color: #FFF;
		border-bottom: none;
		border-top: 2px solid #EBEFF3;
		padding: 0;
	}

	.menu__submenu .menu__link {
		display: block;
		padding: 16px 1rem;
		transition: none;
		width: 100%;
	}

	.menu__submenu .menu__item .menu__link:hover,
	.menu__submenu .menu__item .menu__link:focus {
		background-color: inherit;
		transition: none;
	}

	.menu__item--has-submenu > .menu__link {
		width: 70%;
	}

	.menu__submenu--level-2 .menu__item .menu__link {
		padding: 16px 0 16px 1rem;
	}
	.menu__submenu--level-3 .menu__item .menu__link {
		padding: 16px 1rem 16px 3rem;
	}
}

/* Menu icons */

@media(min-width: 768px) {
	.menu__submenu .menu__child-toggle {
		margin-left: auto;
		padding: 0 1.05rem;
	}

	.menu__child-toggle {
		position: absolute;
		right: 5px;
		top: 20px;
		z-index: 2;
	}

	.menu__item--depth-1 > .menu__child-toggle {
		position: static;
		right: 0;
		top: 0;
		vertical-align: middle;
		margin-left: 0;
	}

	.menu__child-toggle-icon {
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top-style: solid;
		border-top-width: 7px;
		display: block;
		height: 0;
		margin-left: 1px;
		width: 0;
	}
}

@media (max-width: 767px) {
	.menu__child-toggle {
		background-position: center right 30px;
		background-repeat: no-repeat;
		background-size: 20px;
		border: none;
		cursor: pointer;
		height: 54px;
		padding: 0;
		position: absolute;
		right: 0;
		top: 0;
		width: 30%;
	}

	.menu__child-toggle-icon {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.5002 11.5001L8.42937e-07 11.5002L0 14.5002L11.5001 14.5002L11.5001 26L14.5001 26L14.5002 14.5002H25.9999L26 11.5001H14.5002L14.5002 2.91656e-05L11.5002 0L11.5002 11.5001Z' fill='black'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: contain;
		display: block;
		height: 16px;
		margin-left: auto;
		margin-right: 0;
		transition: transform 0.4s;
		width: 20px;
	}

	{#
  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(45deg);
    transition: transform 0.4s;
  }
	#}

	.menu__child-toggle--open .menu__child-toggle-icon {
		transform: rotate(45deg);
		transition: transform 0.4s;
	}

	nav.menu.secondary-menu {
		margin-top: 50px;
		padding-bottom: 30px;
	}

	nav.menu.secondary-menu li {
		border: none;
	}
	.secondary-menu .menu__item--depth-1 > .menu__link {
		padding: 10px 0;
	}

}





@media (min-width: 768px) {
	
	.header__language-switcher, .header__navigation {
    background-color: #EBECEE;
	}
	
	.header .content-wrapper-bg {
		content: '';
		display: block;
		width: 100%;
		height: 180px;
		position: fixed;
		left: 0;
		top: 0;
		z-index: 3;
		transition: all 0.4s ease;
		background: #EBECEE;
	}

	.header__navigation .menu__child-toggle {
		display: none;
	}
	
	.header__container.menu-light .header__navigation a.menu__link {
		color: #ffffff;
	}
	
	.header__container.menu-light .header__logo {
		filter: brightness(0) invert(1);
	}
	.header__container.menu-light .header__navigation--toggle {
		filter: grayscale(1) invert(1);
	}
	
	.header__container.menu-light .mega-menu_wrapper {
		border-color: #ffffff;
	}
	
	.header__navigation nav.menu {
		padding-left: 32px;
		padding-right: 32px;
	}
	
	.header__navigation nav.menu>ul {
    display: grid;
    gap: 15px;
		position: relative;
		width: 43%;
		max-width: 480px;
	}
	
	.header__navigation .menu__item--depth-1>a {
		width: calc(50% - 36px);
		max-width: 480px;
	}
	
	.header__navigation a.menu__link {
    padding: 10px 0;
    font-family: "Hedvig Letters Serif", serif;
    text-transform: none;
    font-size: 20px;
		line-height: 1.2;
		transition: all 0.3s ease;
	}
	
	
	.header .menu.secondary-menu {
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.header .menu.secondary-menu a.menu__link {
		font-size: 16px;
		padding: 10px 0;
		text-decoration: underline;
	}

	.header .secondary-menu .menu__wrapper {
		gap: 0;
	}

}


@media (min-width: 992px) {

	.header__navigation .menu__item--depth-1>a {
		width: calc(40% - 36px);
	}

	.header.mega-menu .mega-menu_wrapper {
		left: 100%;
		padding-left: 70px;
	}
	
	.header__navigation nav.menu>ul {
		width: 38%;
	}
}



@media (min-width: 1200px) {
	.header__navigation nav.menu {
		padding-top: 60px;
	}

	.header__navigation a.menu__link {
		font-size: 24px;
	}
}


@media (min-width: 1500px) {
	.header__navigation a.menu__link {
		font-size: 30px;
	}
	
	.header.mega-menu .mega-menu_wrapper {
		left: 100%;
		padding-left: 120px;
	}

	.header__navigation .menu__item--depth-1>a {
		padding-right: 50px;
	}

}




/* Menu Sub brand */

.menu_sub_brand {
	align-items: center;
	display: none;
	min-width: 60%;
}

.menu_sub_brand ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 5px;
	margin-right: 30px;
	margin-left: 30px;
	justify-content: end;
	flex-wrap: wrap;
}

.menu_sub_brand ul li {
	margin: 0;
}


.menu_sub_brand ul li a {
	color: #fff;
	text-transform: uppercase;
	font-size: 12px;
	font-family: DM Sans, sans-serif;
	letter-spacing: 4px;
	padding: 5px 10px 1px 10px;
	display: block;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	position: relative;
}

.menu_sub_brand ul li a:before {
	display: block;
	content: '';
	position: absolute;
	left: 50%;
	bottom: -2px;
	width: 50%;
	height: 1px;
	background: #ffffff;
	opacity: 0;
	max-width: 70px;
	transform: translateX(-50%);
	transition: all 0.3s ease;
}

.menu_sub_brand ul li a:hover {
	color: #fff;
	text-decoration: none;
}

.menu_sub_brand ul li a:hover:before {
  opacity: 1;
}

@media (min-width: 768px) {
	.menu_sub_brand {
		display: flex;
	}
	.header__logo {
		min-width: 140px;
		max-width: 140px;
	}
}

@media (min-width: 992px) {
	.header__logo {
		min-width: 180px;
		max-width: 180px;
	}
}