/* Header styles for AL-ZO ANNA ZYZIK */

.mls-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(14px);
	background: linear-gradient(
		90deg,
		rgba(11, 15, 20, 0.96),
		rgba(11, 15, 20, 0.9)
	);
	border-bottom: 1px solid rgba(243, 239, 231, 0.08);
}

.mls-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

.mls-header__branding {
	display: flex;
	align-items: center;
}

.mls-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
}

.mls-header__logo-mark {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background:
		radial-gradient(
			circle at 30% 20%,
			rgba(255, 176, 32, 0.9),
			transparent 55%
		),
		radial-gradient(
			circle at 70% 80%,
			rgba(122, 92, 255, 0.8),
			transparent 55%
		),
		#0b0f14;
	box-shadow: 0 0 18px rgba(255, 176, 32, 0.6);
}

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

/* Nav base */

.mls-header__nav {
	display: flex;
	align-items: center;
}

.mls-header__nav-list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
}

.mls-header__nav-link {
	position: relative;
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	text-decoration: none;
	padding-block: 4px;
	transition: color var(--transition-fast);
}

.mls-header__nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-glow-purple)
	);
	transition: width var(--transition-fast);
}

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

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

.mls-header__nav-link--active {
	color: var(--color-primary);
}

.mls-header__nav-item--cta .mls-header__nav-link--cta {
	padding: 0.55rem 1.35rem;
	border-radius: var(--radius-full);
	background: linear-gradient(135deg, var(--color-primary), #ffe089);
	color: #160f02;
	box-shadow: var(--shadow-glow-amber);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

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

.mls-header__nav-item--cta .mls-header__nav-link--cta:hover,
.mls-header__nav-item--cta .mls-header__nav-link--cta:focus-visible {
	background: linear-gradient(135deg, var(--color-primary-hover), #ffc75a);
}

/* Mobile toggle */

.mls-header__toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--color-border-subtle);
	background-color: rgba(21, 26, 34, 0.98);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	color: var(--color-text);
}

.mls-header__toggle-bar {
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background-color: var(--color-text);
	transition:
		transform var(--transition-base),
		opacity var(--transition-base),
		width var(--transition-base);
}

.mls-header__toggle:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* Toggle animation when open */

.mls-header--menu-open .mls-header__toggle-bar:nth-child(1) {
	transform: translateY(3px) rotate(45deg);
}

.mls-header--menu-open .mls-header__toggle-bar:nth-child(2) {
	opacity: 0;
	width: 0;
}

.mls-header--menu-open .mls-header__toggle-bar:nth-child(3) {
	transform: translateY(-3px) rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 900px) {
	.mls-header__inner {
		height: 64px;
	}

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

	.mls-header__nav {
		position: fixed;
		inset-inline: 0;
		top: 64px;
		background:
			radial-gradient(circle at 0 0, rgba(122, 92, 255, 0.32), transparent 60%),
			radial-gradient(
				circle at 100% 100%,
				rgba(255, 176, 32, 0.26),
				transparent 54%
			),
			rgba(11, 15, 20, 0.98);
		border-bottom: 1px solid var(--color-border-subtle);
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition:
			transform var(--transition-base),
			opacity var(--transition-base),
			visibility var(--transition-base);
	}

	.mls-header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 16px var(--container-padding-x) 20px;
	}

	.mls-header__nav-link {
		font-size: var(--text-base);
	}

	.mls-header--menu-open .mls-header__nav {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 520px) {
	.mls-header__logo-text {
		font-size: var(--text-base);
	}
}
