/* Site header — GNB */

.vl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.vl-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: clamp(24px, 4vw, 56px);
	min-height: 68px;
}

/* ---------- Brand ---------- */
.vl-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--vl-ink);
}
.vl-brand__img,
.vl-brand img {
	display: block;
	height: 26px;
	width: auto;
	max-width: none;
}

/* ---------- Primary menu ---------- */
.vl-header__nav { display: flex; justify-content: center; }

.vl-menu--primary {
	display: inline-flex;
	gap: clamp(18px, 2vw, 32px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.vl-menu--primary > li { position: relative; }
.vl-menu--primary > li > a {
	display: inline-flex;
	align-items: center;
	padding: 10px 0;
	color: var(--vl-ink-700);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: -0.005em;
	transition: color .18s var(--vl-ease);
	position: relative;
}
.vl-menu--primary > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--vl-ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .25s var(--vl-ease);
}
.vl-menu--primary > li > a:hover::after,
.vl-menu--primary > li.current-menu-item > a::after,
.vl-menu--primary > li.current-menu-parent > a::after,
.vl-menu--primary > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}
.vl-menu--primary > li > a:hover,
.vl-menu--primary > li.current-menu-item > a,
.vl-menu--primary > li.current-menu-parent > a,
.vl-menu--primary > li.current-menu-ancestor > a {
	color: var(--vl-ink);
}
.vl-menu--primary > li.menu-item-has-children > a::before {
	content: "";
	display: inline-block;
	margin-left: 6px;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	order: 1;
	transition: transform .2s var(--vl-ease);
	opacity: .7;
}
.vl-menu--primary > li.menu-item-has-children:hover > a::before {
	transform: rotate(225deg) translate(-1px, -1px);
}

/* Submenus */
.vl-menu--primary .sub-menu {
	position: absolute;
	top: calc(100% + 2px);
	left: 50%;
	transform: translate(-50%, 6px);
	margin: 0;
	padding: 8px;
	list-style: none;
	min-width: 220px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.18), 0 2px 4px rgba(15, 23, 42, 0.04);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s var(--vl-ease), transform .18s var(--vl-ease), visibility .18s var(--vl-ease);
	z-index: 5;
}
.vl-menu--primary li:hover > .sub-menu,
.vl-menu--primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.vl-menu--primary .sub-menu li a {
	display: block;
	padding: 9px 12px;
	color: var(--vl-ink-700);
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color .15s var(--vl-ease), color .15s var(--vl-ease);
}
.vl-menu--primary .sub-menu li a:hover,
.vl-menu--primary .sub-menu li.current-menu-item a {
	background: rgba(15, 23, 42, 0.04);
	color: var(--vl-ink);
}

/* ---------- Header actions ---------- */
.vl-header__actions {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

/* Language switcher — minimal, no pill */
.vl-lang-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
}
.vl-lang-switcher li {
	display: inline-flex;
	align-items: center;
}
.vl-lang-switcher li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 11px;
	background: rgba(15, 23, 42, 0.2);
	margin: 0 10px;
}
.vl-lang-switcher li a,
.vl-lang-switcher li span {
	color: var(--vl-muted);
	text-decoration: none;
	text-transform: uppercase;
	transition: color .15s var(--vl-ease);
}
.vl-lang-switcher li a:hover { color: var(--vl-ink); }
.vl-lang-switcher li.current-lang a,
.vl-lang-switcher li.current-lang span {
	color: var(--vl-ink);
}

/* CTA — editorial outlined style, not a big blue pill */
.vl-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 18px;
	border-radius: 999px;
	background: transparent;
	color: var(--vl-ink);
	border: 1px solid rgba(15, 23, 42, 0.18);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background-color .18s var(--vl-ease), border-color .18s var(--vl-ease), color .18s var(--vl-ease);
}
.vl-header__cta::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .18s var(--vl-ease);
}
.vl-header__cta:hover {
	background: var(--vl-ink);
	color: #fff;
	border-color: var(--vl-ink);
}
.vl-header__cta:hover::after { transform: translateX(2px) rotate(45deg); }

/* ---------- Mobile toggle ---------- */
.vl-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.vl-nav-toggle span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--vl-ink);
	position: relative;
}
.vl-nav-toggle span::before,
.vl-nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 1.5px;
	background: var(--vl-ink);
	transition: transform .2s var(--vl-ease), top .2s var(--vl-ease);
}
.vl-nav-toggle span::before { top: -6px; }
.vl-nav-toggle span::after  { top:  6px; }
.vl-header.is-open .vl-nav-toggle span { background: transparent; }
.vl-header.is-open .vl-nav-toggle span::before { top: 0; transform: rotate(45deg); }
.vl-header.is-open .vl-nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.vl-header__inner {
		grid-template-columns: auto 1fr auto;
		column-gap: 16px;
	}
	.vl-nav-toggle { display: inline-flex; }
	.vl-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid rgba(15, 23, 42, 0.08);
		padding: 16px 24px 24px;
		display: none;
		box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.15);
	}
	.vl-header.is-open .vl-header__nav { display: block; }
	.vl-menu--primary {
		flex-direction: column;
		gap: 0;
	}
	.vl-menu--primary > li > a {
		padding: 14px 0;
		width: 100%;
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
		font-size: 16px;
	}
	.vl-menu--primary > li > a::after { display: none; }
	.vl-menu--primary > li:last-child > a { border-bottom: 0; }
	.vl-menu--primary > li.menu-item-has-children > a::before { margin-left: auto; }
	.vl-menu--primary .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 8px 12px;
		min-width: 0;
	}
	.vl-header__cta { padding: 8px 14px; font-size: 13px; }
	.vl-header__cta::after { display: none; }
}

@media (max-width: 640px) {
	.vl-brand__img { height: 22px; }
	.vl-header__cta { padding: 6px 12px; }
	.vl-header__actions { gap: 10px; }
}
