/* WHW Header Styles */

/* ── Header container ───────────────────────────────────────── */
.whw-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--whw-bg-primary);
	border-bottom: 1px solid var(--whw-border);
	height: 64px;
}

.whw-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding-left: 80px;
	padding-right: 80px;
}

/* ── Logo ───────────────────────────────────────────────────── */
.whw-logo {
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	flex-shrink: 0;
}

.whw-logo-text {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--whw-text-primary);
	text-transform: uppercase;
}

.whw-logo-rule {
	display: block;
	width: 1.5px;
	height: 16px;
	background: var(--whw-accent);
	flex-shrink: 0;
}

/* ── Desktop nav ────────────────────────────────────────────── */
.whw-nav-desktop {
	display: flex;
	align-items: center;
}

.whw-nav-list {
	display: flex;
	list-style: none;
	gap: 28px;
	align-items: center;
	margin: 0;
	padding: 0;
}

.whw-nav-item a {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 13px;
	color: var(--whw-text-primary);
	text-decoration: none;
}

.whw-nav-item a:hover {
	color: var(--whw-accent);
}

.whw-nav-accent {
	color: var(--whw-accent) !important;
}

/* ── Services dropdown ──────────────────────────────────────── */
.whw-has-dropdown {
	position: relative;
}

.whw-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--whw-bg-primary);
	border: 1px solid var(--whw-border);
	min-width: 180px;
	padding: 8px 0;
	display: none;
	list-style: none;
	margin: 0;
	z-index: 1000;
}

.whw-has-dropdown:hover .whw-dropdown {
	display: block;
}

.whw-dropdown li a {
	display: block;
	padding: 10px 16px;
	font-size: 13px;
	color: var(--whw-text-primary);
	font-weight: 500;
}

.whw-dropdown li a:hover {
	background: var(--whw-bg-secondary);
	color: var(--whw-accent);
}

/* ── Header actions ─────────────────────────────────────────── */
.whw-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* ── Dark mode toggle ───────────────────────────────────────── */
.whw-dark-toggle {
	position: relative;
	width: 56px;
	height: 28px;
	background: #E2E8F0;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background-color 0.35s ease;
}

html.whw-dark .whw-dark-toggle {
	background: #1E293B;
}

.whw-toggle-track {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 14px;
	overflow: hidden;
}

.whw-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 0;
	width: 22px;
	height: 22px;
	background: #FFFFFF;
	border-radius: 50%;
	transform: translateX(3px);
	transition: transform 0.35s ease, background-color 0.35s ease;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

html.whw-dark .whw-toggle-thumb {
	background: #334155;
	transform: translateX(31px);
}

.whw-toggle-thumb svg {
	position: absolute;
	transition: opacity 0.2s ease;
}

.whw-icon-moon {
	opacity: 1;
}

.whw-icon-sun {
	opacity: 0;
}

html.whw-dark .whw-icon-moon {
	opacity: 0;
}

html.whw-dark .whw-icon-sun {
	opacity: 1;
}

/* ── Hamburger button ───────────────────────────────────────── */
.whw-mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
}

.whw-hamburger {
	position: relative;
	display: block;
	width: 20px;
	height: 1.5px;
	background: var(--whw-text-primary);
}

.whw-hamburger::before,
.whw-hamburger::after {
	content: '';
	position: absolute;
	left: 0;
	width: 20px;
	height: 1.5px;
	background: var(--whw-text-primary);
}

.whw-hamburger::before {
	top: -6px;
}

.whw-hamburger::after {
	top: 6px;
}

/* ── Mobile overlay ─────────────────────────────────────────── */
.whw-mobile-overlay {
	position: fixed;
	inset: 0;
	background: var(--whw-bg-primary);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	padding: 24px;
	transform: translateX(100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.whw-mobile-overlay.whw-active {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.whw-mobile-close {
	align-self: flex-end;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--whw-text-primary);
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0 !important;
}

.whw-mobile-nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 32px;
	padding: 0;
}

.whw-mobile-nav a {
	display: block;
	padding: 14px 0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 600;
	font-size: 20px;
	color: var(--whw-text-primary);
	text-decoration: none;
	border-bottom: 1px solid var(--whw-border);
	min-height: 44px;
}

.whw-mobile-nav a:hover {
	color: var(--whw-accent);
}

.whw-mobile-quote {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	text-align: center;
	z-index: 1001;
	border-radius: 0 !important;
}

/* ── Responsive breakpoints ─────────────────────────────────── */
@media (max-width: 1024px) {
	.whw-header-inner {
		padding-left: 40px;
		padding-right: 40px;
	}

	.whw-nav-desktop {
		display: none;
	}

	.whw-mobile-toggle {
		display: flex;
	}
}

@media (max-width: 768px) {
	.whw-header {
		height: 56px;
	}

	.whw-header-inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.whw-btn-quote {
		display: none;
	}
}