/* WISEVOC — header and navigation */

.wv-sentinel {
	position: absolute;
	width: 1px;
	height: 1px;
	top: 0;
	left: 0;
	pointer-events: none;
	visibility: hidden;
}

.wv-header {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1000;
	padding-block: var(--wv-space-5);
	transition: background var(--wv-dur-base) var(--wv-ease-out), backdrop-filter var(--wv-dur-base) var(--wv-ease-out), border-color var(--wv-dur-base) var(--wv-ease-out);
}

.wv-header--scrolled {
	background: var(--wv-glass-bg);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid var(--wv-glass-border);
}

.wv-header .wv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wv-space-6);
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--wv-space-8);
}

.wv-header__logo a,
.wv-header__logo svg,
.wv-header__logo img {
	display: block;
	max-height: 40px;
	width: auto;
}

.wv-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.wv-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--wv-space-6);
	align-items: center;
}

.wv-nav a {
	font-family: var(--wv-font-ui);
	font-weight: 500;
	font-size: 16px;
	color: var(--wv-color-text-secondary);
	text-decoration: none;
	position: relative;
	transition: color var(--wv-dur-fast) var(--wv-ease-out);
}

.wv-nav a:hover,
.wv-nav a[aria-current="page"] {
	color: var(--wv-color-text-primary);
}

.wv-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: var(--wv-color-teal);
	transition: width var(--wv-dur-base) var(--wv-ease-spring);
}

.wv-nav a:hover::after,
.wv-nav a[aria-current="page"]::after {
	width: 100%;
}

.wv-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wv-space-3);
}

.wv-hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--wv-color-border);
	background: var(--wv-color-surface);
	color: var(--wv-color-text-primary);
	cursor: pointer;
	transition: border-color var(--wv-dur-fast) var(--wv-ease-out), background var(--wv-dur-fast) var(--wv-ease-out);
}

.wv-hamburger:hover {
	border-color: var(--wv-color-teal);
	background: var(--wv-color-surface-raised);
}

.wv-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: var(--wv-color-obsidian);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--wv-dur-slow) var(--wv-ease-out);
}

.wv-mobile-menu--open {
	opacity: 1;
	pointer-events: auto;
}

.wv-mobile-menu__close {
	position: absolute;
	top: var(--wv-space-6);
	right: var(--wv-space-6);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--wv-color-border);
	background: var(--wv-color-surface);
	color: var(--wv-color-text-primary);
	cursor: pointer;
}

.wv-mobile-menu__links {
	list-style: none;
	margin: 0;
	padding: 80px var(--wv-space-10);
	display: flex;
	flex-direction: column;
	gap: var(--wv-space-2);
}

.wv-mobile-menu__link {
	display: block;
	font-family: var(--wv-font-display);
	font-weight: 800;
	font-size: clamp(2rem, 8vw, 3rem);
	color: var(--wv-color-text-primary);
	text-decoration: none;
	transform: translateX(-40px);
	opacity: 0;
	transition: color var(--wv-dur-fast) var(--wv-ease-out), transform var(--wv-dur-reveal) var(--wv-ease-spring), opacity var(--wv-dur-reveal) var(--wv-ease-spring);
}

.wv-mobile-menu__link:hover {
	color: var(--wv-color-teal);
}

.wv-mobile-menu--open .wv-mobile-menu__link {
	transform: translateX(0);
	opacity: 1;
}

.wv-mobile-menu--open .wv-mobile-menu__links li:nth-child(1) .wv-mobile-menu__link { transition-delay: calc(var(--wv-stagger) * 0); }
.wv-mobile-menu--open .wv-mobile-menu__links li:nth-child(2) .wv-mobile-menu__link { transition-delay: calc(var(--wv-stagger) * 1); }
.wv-mobile-menu--open .wv-mobile-menu__links li:nth-child(3) .wv-mobile-menu__link { transition-delay: calc(var(--wv-stagger) * 2); }
.wv-mobile-menu--open .wv-mobile-menu__links li:nth-child(4) .wv-mobile-menu__link { transition-delay: calc(var(--wv-stagger) * 3); }
.wv-mobile-menu--open .wv-mobile-menu__links li:nth-child(5) .wv-mobile-menu__link { transition-delay: calc(var(--wv-stagger) * 4); }
.wv-mobile-menu--open .wv-mobile-menu__links li:nth-child(6) .wv-mobile-menu__link { transition-delay: calc(var(--wv-stagger) * 5); }

.wv-mobile-menu__link.wv-btn {
	margin-top: var(--wv-space-6);
	height: 52px;
	font-size: 16px;
}

.wv-header-minimal {
	border-bottom: 1px solid rgba(0, 229, 195, 0.35);
	padding-block: var(--wv-space-6);
	background: var(--wv-color-obsidian);
}

.wv-header-minimal .wv-header__inner {
	display: flex;
	justify-content: center;
	align-items: center;
}

.wv-header-minimal .wv-header__logo {
	text-align: center;
}

/* Base Responsive rules for Nav */
@media (max-width: 1024px) {
	.wv-nav,
	.wv-header__actions .wv-btn {
		display: none;
	}
	.wv-hamburger {
		display: flex;
	}
}
