/* Header styles for 'HYDRO-DOP' Dopierała Krzysztof */

.cev-header {
	position: sticky;
	top: 0;
	z-index: 1111;
	backdrop-filter: blur(18px);
	background:
		radial-gradient(circle at 0 0, rgba(192, 92, 60, 0.25), transparent 55%),
		radial-gradient(
			circle at 100% 100%,
			rgba(200, 138, 58, 0.18),
			transparent 60%
		),
		linear-gradient(to bottom, rgba(5, 8, 20, 0.96), rgba(5, 8, 20, 0.88));
	border-bottom: 1px solid var(--color-border-subtle);
}

.cev-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-16);
	gap: var(--space-20);
}

/* Brand */
.cev-header__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.cev-header__logo-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-12);
	color: var(--color-text);
}

.cev-header__logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: radial-gradient(
		circle at 30% 0,
		#ffe1b0,
		#c88a3a 45%,
		#c05c3c 85%
	);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
}

.cev-header__brand-text {
	display: flex;
	flex-direction: column;
}

.cev-header__brand-title {
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: var(--tracking-tight);
}

.cev-header__brand-subtitle {
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	color: var(--color-text-soft);
}

/* Navigation */
.cev-header__nav {
	display: flex;
	align-items: center;
}

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

.cev-header__nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding-block: 4px;
	font-size: var(--font-size-sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gray-200);
}

.cev-header__nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-accent-terra)
	);
	transition: width var(--transition-normal);
}

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

.cev-header__nav-item--cta .cev-header__nav-link--cta {
	border-radius: var(--radius-pill);
	padding: 0.5rem 1.2rem;
	border: 1px solid rgba(200, 138, 58, 0.75);
	background:
		radial-gradient(circle at 0 0, rgba(255, 227, 178, 0.35), transparent 52%),
		linear-gradient(135deg, rgba(200, 138, 58, 0.12), rgba(192, 92, 60, 0.35));
	color: var(--color-text);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

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

.cev-header__nav-item--cta .cev-header__nav-link--cta:hover {
	border-color: rgba(224, 169, 89, 0.9);
	transform: translateY(-1px);
}

/* Mobile toggle */
.cev-header__toggle {
	display: none;
	position: relative;
	width: 40px;
	height: 32px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(5, 8, 20, 0.75);
	align-items: center;
	justify-content: center;
	gap: 3px;
}

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

/* State when menu open */
.cev-header--menu-open .cev-header__toggle-bar:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}

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

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

/* Mobile layout */
@media (max-width: 768px) {
	.cev-header__inner {
		padding-block: var(--space-12);
	}

	.cev-header__toggle {
		display: inline-flex;
		flex-direction: column;
	}

	.cev-header__nav {
		position: fixed;
		inset: 64px 0 auto 0;
		z-index: var(--z-overlay);
		max-height: 0;
		overflow: hidden;
		background: linear-gradient(
			to bottom,
			rgba(5, 8, 20, 0.98),
			rgba(5, 8, 20, 0.96)
		);
		border-bottom: 1px solid var(--color-border-subtle);
		transition: max-height var(--transition-normal);
	}

	.cev-header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--space-16) var(--page-gutter) var(--space-24);
		gap: var(--space-12);
	}

	.cev-header__nav-item--cta {
		margin-top: var(--space-8);
		width: 100%;
	}

	.cev-header__nav-item--cta .cev-header__nav-link--cta {
		width: 100%;
		justify-content: center;
	}

	.cev-header--menu-open .cev-header__nav {
		max-height: 320px;
	}
}

/* Small screens brand tightening */
@media (max-width: 480px) {
	.cev-header__brand-subtitle {
		display: none;
	}
}
