/* ----
--- HEADER ---
---- */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 transparent;
	transition: box-shadow .25s ease;
}
.header.is-scrolled {
	box-shadow: 0 1px 0 var(--line-light);
}
.header-main-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}
.logo-link {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}
.logo-link img {
	display: block;
	height: 34px;
	width: auto;
}

/* ----
--- MAIN MENU (mod_menu layout "megamenu") ---
---- */
.mainmenu {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
	font-size: 14px;
	font-weight: 500;
}
.megamenu {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.megamenu > .nav-item {
	position: relative;
}
/* Home (always the first item) is reached through the logo */
.megamenu > .nav-item:first-child {
	display: none;
}
.megamenu .nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	color: var(--ink);
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .25s ease, background .25s ease;
}
.megamenu .nav-link:hover,
.megamenu .nav-link:focus-visible {
	color: #777;
}
.megamenu > .nav-item.active > .nav-link,
.megamenu > .nav-item.current > .nav-link {
	border-color: var(--ink);
}
.megamenu .has-dropdown > .nav-link:hover {
	border-color: var(--ink);
}
.megamenu .caret {
	display: inline-block;
	font-size: 14px;
	transition: transform .22s ease;
}
.megamenu .has-dropdown.is-open .caret {
	transform: rotate(180deg);
}

/* EN / HR before the Contact pill */
.mainmenu .megamenu {
	display: contents;
}
.mainmenu .megamenu > .nav-item:has(> .nav-cta) {
	order: 2;
}
.mainmenu > :not(.megamenu) {
	order: 1;
}

/* Contact pill (Link Class "nav-cta") */
.megamenu .nav-link.nav-cta {
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
}
.megamenu .nav-link.nav-cta:hover,
.megamenu .nav-link.nav-cta:focus-visible {
	background: #333;
	color: #fff;
}

/* Dropdown */
.megamenu .dropdown {
	position: absolute;
	top: 100%;
	left: -24px;
	padding-top: 14px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.megamenu .has-dropdown.is-open > .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.megamenu .dropdown-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(220px, 1fr));
	gap: 28px;
	width: min(560px, calc(100vw - 40px));
	padding: 24px;
	background: #fff;
	border: 1px solid var(--line-light);
	border-radius: 18px;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.25);
}
.megamenu .dropdown-column {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.megamenu .dropdown-heading {
	padding-bottom: 10px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--line-light);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--grey-500);
	transition: color .2s ease;
}
.megamenu a.dropdown-heading:hover {
	color: var(--ink);
}
.megamenu .dropdown-link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 -12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ink);
	transition: background .25s ease, transform .25s ease;
}
.megamenu .dropdown-link:hover,
.megamenu .dropdown-link:focus-visible,
.megamenu .dropdown-link.current {
	background: var(--grey-50);
	transform: translateX(4px);
}
.megamenu .dropdown-link-title {
	font-size: 14px;
	font-weight: 600;
}
.megamenu .dropdown-link-sub {
	font-size: 12px;
	font-weight: 400;
	color: var(--grey-500);
}

/* ----
--- LANGUAGE SWITCH (Custom module "lang-switch") ---
---- */
.lang-switch {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--grey-500);
}
.lang-switch .is-current,
.lang-switch .lang-active {
	color: var(--ink);
}
.lang-switch a:hover {
	color: var(--ink);
}

/* ----
--- HAMBURGER + MOBILE MENU ---
---- */
.hamburger {
	display: none;
	position: relative;
	z-index: 60;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.hamburger-box {
	position: relative;
	display: block;
	width: 24px;
	height: 14px;
	margin: 0 auto;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
	position: absolute;
	left: 0;
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ink);
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.hamburger-inner {
	top: 6px;
}
.hamburger-inner::before,
.hamburger-inner::after {
	content: "";
}
.hamburger-inner::before {
	top: -6px;
}
.hamburger-inner::after {
	top: 6px;
}
.hamburger.is-active .hamburger-inner {
	transform: rotate(45deg);
}
.hamburger.is-active .hamburger-inner::before {
	top: 0;
	opacity: 0;
}
.hamburger.is-active .hamburger-inner::after {
	top: 0;
	transform: rotate(-90deg);
}

#hamburger-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 96px var(--pad) 40px;
	overflow-y: auto;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
html.menu-overlay-open #hamburger-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
html.menu-overlay-open {
	overflow: hidden;
}
.hambi-menu,
.hambi-menu .dropdown-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hambi-menu > li {
	border-bottom: 1px solid var(--line-light);
}
.hambi-menu > li > a,
.hambi-menu > li > span:not(.parent-item),
.hambi-menu > li > .parent-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font-size: clamp(22px, 6vw, 28px);
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--ink);
}
.hambi-menu .parent-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.hambi-menu .chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 20px;
	cursor: pointer;
	transition: transform .2s ease;
}
.hambi-menu .subopen > .parent-item > .chevron {
	transform: rotate(180deg);
}
.hambi-menu .dropdown-menu .parent-item > a {
	padding: 8px 0;
}
.hambi-menu .dropdown-menu {
	display: none;
	padding: 0 0 16px;
}
.hambi-menu .subopen > .dropdown-menu {
	display: block;
}
.hambi-menu .dropdown-menu a {
	display: block;
	padding: 8px 0;
	font-size: 16px;
	color: var(--grey-700);
}
.hambi-menu .dropdown-menu .dropdown-menu {
	padding: 0 0 8px 14px;
	border-left: 1px solid var(--line-light);
}
.hambi-menu .dropdown-menu .dropdown-menu a {
	font-size: 15px;
	color: var(--grey-500);
}
.hambi-menu a.nav-cta {
	justify-content: center;
	margin-top: 24px;
	padding: 14px 22px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 16px;
}
.hambi-menu > li:has(> a.nav-cta) {
	border-bottom: 0;
}
.mobile-topbar {
	margin-top: auto;
}

@media (max-width: 1100px) {
	.mainmenu {
		display: none;
	}
	.hamburger {
		display: block;
	}
}
