/* Header — desktop + mobile */

.ws-header {
	position: relative;
	z-index: 100;
	background: var(--ws-white);
}

.ws-header.is-sticky {
	position: sticky;
	top: 0;
}

.ws-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 88px;
}

.ws-header-branding .custom-logo-link,
.ws-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--ws-black);
}

.ws-logo-mark {
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.ws-header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ws-nav-list {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ws-nav-list > li {
	position: relative;
}

.ws-nav-list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 0;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ws-black);
	transition: opacity 0.2s;
}

.ws-nav-list > li > a:hover,
.ws-nav-list > li.is-active > a {
	opacity: 0.65;
}

.ws-nav-list > li.menu-item-has-children > a::after {
	content: '';
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-left: 2px;
}

.ws-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 180px;
	padding: 12px 0;
	background: var(--ws-white);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.ws-nav-list > li:hover > .ws-dropdown,
.ws-nav-list > li:focus-within > .ws-dropdown {
	opacity: 1;
	visibility: visible;
}

.ws-dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ws-dropdown-list a {
	display: block;
	padding: 8px 20px;
	font-size: 0.875rem;
	text-decoration: none;
	color: var(--ws-black);
}

.ws-dropdown-list a:hover {
	background: var(--ws-gray-light);
}

.ws-header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.ws-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--ws-black);
	cursor: pointer;
}

.ws-header-phone {
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.ws-btn-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ws-white);
	background: var(--ws-black);
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s;
}

.ws-btn-dark:hover {
	opacity: 0.85;
}

.header-search {
	position: relative;
}

.header-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 260px;
	padding: 12px;
	background: var(--ws-white);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.header-search.is-open .header-search-dropdown {
	opacity: 1;
	visibility: visible;
}

.header-search-dropdown input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	font: inherit;
}

.ws-header-call--mobile,
.ws-hamburger,
.mobile-menu-overlay {
	display: none;
}

.ws-hamburger-lines {
	position: relative;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.ws-hamburger-lines::before,
.ws-hamburger-lines::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.ws-hamburger-lines::before { top: -7px; }
.ws-hamburger-lines::after { top: 7px; }

/* Mobile menu overlay */
@media (max-width: 1023px) {
	.ws-header-nav,
	.ws-header-phone--desktop,
	.ws-header-cta--desktop {
		display: none;
	}

	.ws-header-call--mobile,
	.ws-hamburger {
		display: inline-flex;
	}

	.ws-header-inner {
		min-height: 72px;
	}

	.mobile-menu-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba(0, 0, 0, 0.92);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.35s, visibility 0.35s;
	}

	.mobile-menu-overlay.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.ws-mobile-menu-inner {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		height: 100%;
		padding: 24px var(--ws-gutter);
		color: var(--ws-white);
	}

	.ws-mobile-menu-header .custom-logo-link img {
		filter: brightness(0) invert(1);
	}

	.ws-mobile-menu-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 48px;
	}

	.ws-logo--light,
	.ws-logo--light .ws-logo-mark {
		color: var(--ws-white);
	}

	.ws-mobile-close {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 0;
		border: none;
		background: transparent;
		color: var(--ws-white);
		font: inherit;
		cursor: pointer;
	}

	.ws-mobile-close-icon {
		font-size: 1.75rem;
		line-height: 1;
	}

	.ws-mobile-menu-body {
		flex: 1;
		overflow-y: auto;
	}

	.ws-mobile-nav-list,
	.ws-mobile-menu-body .ws-nav-list {
		list-style: none;
		margin: 0;
		padding: 0;
		flex: 1;
	}

	.ws-mobile-nav-list > li,
	.ws-mobile-menu-body .ws-nav-list > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.ws-mobile-nav-list > li > a,
	.ws-mobile-menu-body .ws-nav-list > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20px 0;
		font-size: clamp(1.75rem, 6vw, 2.5rem);
		font-weight: 700;
		text-decoration: none;
		color: var(--ws-white);
		letter-spacing: -0.02em;
	}

	.ws-mobile-nav-arrow {
		font-size: 1.25rem;
		opacity: 0.5;
	}

	.ws-mobile-sub-menu {
		list-style: none;
		margin: 0 0 16px;
		padding: 0 0 0 16px;
	}

	.ws-mobile-sub-menu a {
		display: block;
		padding: 8px 0;
		font-size: 1rem;
		font-weight: 400;
		color: rgba(255, 255, 255, 0.75);
		text-decoration: none;
	}

	.ws-mobile-socials {
		display: flex;
		gap: 16px;
		padding-top: 24px;
	}

	.ws-social-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		color: var(--ws-white);
		border: 1px solid rgba(255, 255, 255, 0.25);
		border-radius: 50%;
		text-decoration: none;
	}
}
