/* Natige — split navigation: centred brand with menu clusters on both sides.

   At the top of the page the bar is edge-to-edge with square corners. As soon
   as the page scrolls it docks inset, with side gaps, air above, and rounded
   corners. Returning to the top restores the full-width bar.

   --nav-stack is the space from the top of the viewport to the bottom of
   the header bar, so homepage banners can sit flush against the menu. */

:root {
	--nav-top: 16px;
	--nav-bar: 90px;
	--nav-stack: calc(var(--nav-top) + var(--nav-bar));
	--nav-dock-ease: cubic-bezier(0.35, 0, 0.14, 1);
}

.navigation-wrap.cbp-af-header {
	top: 0;
	left: 0;
	right: 0;
	width: auto;
	border-radius: 0;
	background-color: #fff;
	overflow: visible;
	isolation: isolate;
	box-shadow: none;
	filter: drop-shadow(0 8px 28px rgba(0, 36, 80, 0.12));
	transition:
		top 360ms var(--nav-dock-ease),
		left 360ms var(--nav-dock-ease),
		right 360ms var(--nav-dock-ease),
		border-radius 360ms var(--nav-dock-ease);
}

.navigation-wrap.cbp-af-header .padding-on-scroll {
	position: relative;
	z-index: 2;
	overflow: visible;
}

.navigation-wrap.cbp-af-header .nav-bump-clip,
.navigation-wrap.cbp-af-header .nav-bump {
	display: block;
}

.navigation-wrap.cbp-af-header.is-floating,
.navigation-wrap.cbp-af-header.cbp-af-header-shrink {
	top: 16px;
	left: 24px;
	right: 24px;
	width: auto;
	border-radius: 24px;
	box-shadow: none;
}

@media (max-width: 1199.98px) {
	:root {
		--nav-top: 8px;
		--nav-bar: 64px;
		--nav-stack: calc(var(--nav-top) + var(--nav-bar));
	}

	.navigation-wrap.cbp-af-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		border-radius: 0;
		z-index: 10000;
	}
	.navigation-wrap.cbp-af-header.is-floating,
	.navigation-wrap.cbp-af-header.cbp-af-header-shrink {
		top: 8px;
		left: 8px;
		right: 8px;
		border-radius: 16px;
	}
	.navigation-wrap.cbp-af-header .padding-on-scroll,
	.navigation-wrap.cbp-af-header.is-floating .padding-on-scroll,
	.navigation-wrap.cbp-af-header.cbp-af-header-shrink .padding-on-scroll {
		padding-top: 8px;
		padding-bottom: 8px;
	}
	.navigation-wrap.cbp-af-header .nav-bump-clip,
	.navigation-wrap.cbp-af-header .nav-bump,
	.nav-bump {
		display: none;
	}
}

/* Natige — split navigation: centred brand with menu clusters on both sides */

.nav-split {
	position: relative;
	width: 100%;
	min-height: 45px;
	/* Central gap held for the logo. Both clusters split whatever is left evenly,
	   so this must stay wider than the logo to keep clear space around it. */
	--nav-brand-space: 230px;
	--nav-item-gap: 18px;
}

.nav-split__brand {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	height: auto;
	margin: 0;
	padding: 0;
	z-index: 2;
}

.nav-split__brand img {
	display: block;
	height: 58px;
	width: auto;
	transition: height 360ms var(--nav-dock-ease);
}

.nav-split__spacer {
	display: none;
}

/* Fat-percentage switcher: three codes in a carton-label pill, parked where
   the search icon used to sit. */
.nav-lang {
	position: relative;
	z-index: 30;
	margin-left: auto;
}

.nav-lang__now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid rgba(58, 120, 186, 0.28);
	border-radius: 999px;
	background-color: #ffffff;
	color: #3A78BA;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	cursor: pointer;
}

.nav-lang.is-open .nav-lang__now,
.nav-lang__now:hover {
	border-color: #3A78BA;
	color: #2A5C94;
}

.nav-lang__now:focus-visible {
	outline: 2px solid #FCB43C;
	outline-offset: 2px;
}

.nav-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: flex;
	flex-direction: column;
	min-width: 72px;
	padding: 4px;
	border: 1px solid rgba(58, 120, 186, 0.18);
	border-radius: 12px;
	background-color: #ffffff;
	z-index: 31;
}

.nav-lang__menu[hidden] {
	display: none;
}

.nav-lang__opt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #3A78BA;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	cursor: pointer;
}

.nav-lang__opt:hover {
	background-color: rgba(58, 120, 186, 0.08);
	color: #2A5C94;
}

.nav-lang__opt:focus-visible {
	outline: 2px solid #FCB43C;
	outline-offset: 0;
}

/* Strip under the bar: bulge can hang down, left/right stay clipped to the header. */
.nav-bump-clip {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 24px;
	margin-top: -2px;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}
.nav-bump {
	position: absolute;
	top: 0;
	left: 0;
	width: 400px;
	height: 22px;
	transform: translateX(calc(var(--nav-bump-x, 50%) - 200px));
	transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-bump path {
	fill: #fff;
}

@media (max-width: 1199.98px) {
	.navigation-wrap.cbp-af-header .nav-bump-clip,
	.navigation-wrap.cbp-af-header .nav-bump,
	.nav-bump {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.navigation-wrap.cbp-af-header,
	.nav-bump,
	.nav-split__brand img {
		transition: none;
	}
}

.nav-split .nav-link:focus-visible,
.nav-lang__now:focus-visible,
.nav-lang__opt:focus-visible,
.nav-split__brand:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 6px;
}

/* Mobile / tablet: burger left, brand centred, language right, menu stacked below.
   The lists keep Bootstrap's flex-column display on purpose — switching them to
   block lets the theme's collapsed dropdown (max-height:0, overflow:visible)
   push its items back into the flow. */
@media (max-width: 1199.98px) {
	.nav-split {
		min-height: 48px;
	}
	.nav-split .nav-link {
		font-size: 17px;
		font-weight: 600;
	}
	/* Pinned to the first row so the brand stays put when the menu expands below it */
	.nav-split__brand {
		top: 0;
		height: 48px;
		display: flex;
		align-items: center;
		transform: translateX(-50%);
	}
	.nav-split__brand img {
		height: 48px;
	}
	.nav-split__collapse {
		flex-basis: 100%;
	}
	.nav-split__side {
		width: 100%;
		margin: 0;
	}
	.nav-split__side--left {
		padding-top: 14px;
	}
	.nav-split__side--right {
		padding-bottom: 14px;
	}
	.nav-lang {
		position: relative;
		z-index: 30;
	}
	.nav-lang__now {
		height: 40px;
	}
}

/* Desktop: equal columns on both sides of the logo, language parked to the right. */
@media (min-width: 1200px) {
	.nav-split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--nav-brand-space) minmax(0, 1fr);
		grid-template-areas: "left brand right";
		align-items: center;
		column-gap: 16px;
		flex-wrap: nowrap;
		padding: 0 120px;
	}
	.nav-split__brand {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		grid-area: auto;
		height: auto;
		margin: 0;
	}
	.nav-split__brand img {
		height: 78px;
	}
	.navigation-wrap.cbp-af-header.is-floating .nav-split__brand,
	.cbp-af-header.cbp-af-header-shrink .nav-split__brand {
		top: 50%;
		transform: translate(-50%, -50%);
	}
	.navigation-wrap.cbp-af-header.is-floating .nav-split__brand img,
	.cbp-af-header.cbp-af-header-shrink .nav-split__brand img {
		height: 58px;
	}
	.navbar-expand-xl .navbar-collapse.nav-split__collapse {
		display: contents !important;
	}
	.nav-split__side {
		display: flex;
		align-items: center;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.nav-split__side--left {
		grid-area: left;
		justify-content: space-evenly;
	}
	.nav-split__side--right {
		grid-area: right;
		justify-content: space-evenly;
	}
	.nav-split__spacer {
		display: block;
		grid-area: brand;
		width: var(--nav-brand-space);
		height: 1px;
		visibility: hidden;
		pointer-events: none;
	}
	.nav-lang {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		margin: 0;
	}

	.nav-split .nav-item {
		margin: 20px 0;
	}
	.cbp-af-header.cbp-af-header-shrink .nav-split .nav-item {
		margin: 15px 0;
	}
	.cbp-af-header.cbp-af-header-shrink .nav-split__brand,
	.cbp-af-header.cbp-af-header-shrink .navbar-brand {
		height: auto;
	}

	.nav-split .nav-link {
		font-size: 18px;
		font-weight: 600;
		letter-spacing: 0.01em;
		white-space: nowrap;
	}

	.nav-split .nav-link::before {
		left: 50%;
		bottom: -8px;
		width: 0;
		height: 2px;
		transform: translateX(-50%);
		background-color: var(--primary);
		opacity: 1;
		transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
	}
	.nav-split .nav-link:hover::before,
	.nav-split .nav-link.active::before {
		width: 100%;
	}
	.nav-split .nav-link.active {
		color: var(--dark) !important;
	}
}

.nav-cata > .dropdown-toggle::after {
	display: none;
}

@media (min-width: 1200px) {
	.nav-split .nav-cata .nav-cata__menu,
	.nav-split .nav-cata:hover .nav-cata__menu,
	.nav-split .nav-cata:focus-within .nav-cata__menu,
	.nav-split .nav-cata.show .nav-cata__menu {
		display: none !important;
	}
}

@media (max-width: 1199.98px) {
	.nav-cata .nav-cata__menu {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nav-split .nav-link::before,
	.nav-split__spacer,
	.nav-lang__opt,
	.nav-split .nav-cata .nav-cata__menu {
		transition: none;
	}
}
