/* Header styles for 'ASPO' JOANNA POPS */

.vch-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	background: linear-gradient(
		120deg,
		rgba(5, 6, 10, 0.88),
		rgba(5, 6, 10, 0.96)
	);
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.vch-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-3);
	gap: var(--space-4);
}

/* Brand / logo */

.vch-header__brand {
	display: flex;
	align-items: center;
}

.vch-header__logo-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
}

.vch-header__logo-mark {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background:
		radial-gradient(circle at 20% 0, rgba(40, 84, 255, 0.5), transparent 55%),
		#020617;
	box-shadow: var(--shadow-glow-blue);
	overflow: hidden;
}

.vch-header__logo-chip {
	position: absolute;
	border-radius: 999px;
	border: 2px solid rgba(15, 23, 42, 0.9);
}

.vch-header__logo-chip--blue {
	width: 22px;
	height: 22px;
	top: 6px;
	left: 4px;
	background: conic-gradient(
		from 160deg,
		var(--color-primary),
		#38bdf8,
		var(--color-primary)
	);
}

.vch-header__logo-chip--gold {
	width: 18px;
	height: 18px;
	right: 4px;
	bottom: 6px;
	background: conic-gradient(
		from 220deg,
		var(--color-accent-gold),
		#fef3c7,
		#d97706
	);
	box-shadow: var(--shadow-glow-gold);
}

.vch-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.vch-header__logo-title {
	font-family: var(--font-display);
	font-size: var(--font-size-lg);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vch-header__logo-subtitle {
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-text-muted);
}

/* Navigation */

.vch-header__nav {
	display: flex;
}

.vch-header__nav-list {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.vch-header__nav-link {
	position: relative;
	font-size: var(--font-size-sm);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	padding-block: 0.25rem;
}

.vch-header__nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.2rem;
	width: 0;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		var(--color-accent-gold),
		var(--color-primary)
	);
	transition: width var(--transition-base);
}

.vch-header__nav-link:hover,
.vch-header__nav-link:focus-visible {
	color: var(--color-text);
}

.vch-header__nav-link:hover::after,
.vch-header__nav-link:focus-visible::after {
	width: 100%;
}

.vch-header__nav-item--cta .vch-header__nav-link--cta {
	padding-inline: var(--space-4);
	padding-block: 0.5rem;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(226, 183, 92, 0.9);
	background: linear-gradient(
		135deg,
		rgba(40, 84, 255, 0.15),
		rgba(226, 183, 92, 0.25)
	);
	box-shadow:
		0 0 0 1px rgba(15, 23, 42, 0.8),
		var(--shadow-soft);
	color: var(--color-text);
}

.vch-header__nav-item--cta .vch-header__nav-link--cta::after {
	display: none;
}

.vch-header__nav-item--cta .vch-header__nav-link--cta:hover,
.vch-header__nav-item--cta .vch-header__nav-link--cta:focus-visible {
	background: linear-gradient(
		135deg,
		var(--color-primary),
		var(--color-accent-gold)
	);
	color: #05060a;
	box-shadow: var(--shadow-glow-gold);
}

/* Mobile toggle */

.vch-header__toggle {
	display: none;
	align-items: center;
	gap: var(--space-2);
	padding-inline: var(--space-3);
	padding-block: 0.4rem;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(148, 163, 184, 0.45);
	background: rgba(15, 23, 42, 0.9);
	color: var(--color-text);
}

.vch-header__toggle-text {
	font-size: var(--font-size-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vch-header__toggle-icon {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.vch-header__toggle-line {
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		var(--color-accent-gold),
		var(--color-primary)
	);
	transition:
		transform var(--transition-base),
		opacity var(--transition-base);
}

.vch-header__toggle[aria-expanded="true"] .vch-header__toggle-line:first-child {
	transform: translateY(3px) rotate(45deg);
}

.vch-header__toggle[aria-expanded="true"] .vch-header__toggle-line:last-child {
	transform: translateY(-3px) rotate(-45deg);
}

/* State when menu is open on mobile */

.vch-header--menu-open {
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.vch-header--menu-open .vch-header__nav {
	max-height: 420px;
	opacity: 1;
	visibility: visible;
}

/* Responsive behavior */

@media (max-width: 960px) {
	.vch-header__inner {
		padding-block: var(--space-3);
	}

	.vch-header__toggle {
		display: inline-flex;
	}

	.vch-header__nav {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		background: linear-gradient(
			180deg,
			rgba(5, 6, 10, 0.98),
			rgba(5, 6, 10, 0.98)
		);
		border-bottom: 1px solid rgba(148, 163, 184, 0.4);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition:
			max-height var(--transition-slow),
			opacity var(--transition-base),
			visibility var(--transition-base);
	}

	.vch-header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: var(--space-3) var(--space-4) var(--space-4);
	}

	.vch-header__nav-item {
		width: 100%;
	}

	.vch-header__nav-link {
		display: block;
		width: 100%;
		padding-block: var(--space-2);
	}

	.vch-header__nav-item--cta .vch-header__nav-link--cta {
		width: 100%;
		text-align: center;
		margin-top: var(--space-2);
	}
}

@media (max-width: 640px) {
	.vch-header__logo-title {
		font-size: var(--font-size-md);
	}

	.vch-header__logo-subtitle {
		display: none;
	}
}
