/**
 * Header Styles
 */
.wte-header {
	position: relative;
	z-index: 100;
	background-color: var(--wte-color-header-bg);
	color: var(--wte-color-header-text);
	height: var(--wte-header-height);
	transition: box-shadow var(--wte-transition-normal), background-color var(--wte-transition-normal);
}
.wte-header--sticky {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
}
.wte-header--shadow {
	box-shadow: var(--wte-shadow-sm);
}
.wte-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--wte-header-height);
}
.wte-header__brand {
	display: flex;
	align-items: center;
	gap: var(--wte-space-sm);
}
.wte-header__logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.wte-header__logo {
	max-width: var(--wte-logo-width);
	height: auto;
}
.wte-header__site-title {
	font-family: var(--wte-font-heading);
	font-size: 1.25rem;
	font-weight: var(--wte-font-weight-bold);
	color: inherit;
}
.wte-header__tagline {
	font-size: 0.75rem;
	color: var(--wte-gray-600);
	margin: 0;
}
.wte-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wte-space-md);
}
.wte-nav__list {
	display: flex;
	gap: var(--wte-space-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}
.wte-nav__list li a {
	color: var(--wte-color-header-text);
	font-size: 0.875rem;
	font-weight: var(--wte-font-weight-medium);
	text-decoration: none;
	transition: color var(--wte-transition-fast);
	position: relative;
}
.wte-nav__list li a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wte-color-accent);
	transition: width var(--wte-transition-normal);
}
.wte-nav__list li a:hover::after,
.wte-nav__list li.current-menu-item a::after {
	width: 100%;
}

/* ── Hamburger ── */
.wte-header__menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: var(--wte-space-sm);
	cursor: pointer;
}
.wte-hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
}
.wte-hamburger__line {
	display: block;
	height: 2px;
	background: var(--wte-color-header-text);
	border-radius: 1px;
	transition: transform var(--wte-transition-normal), opacity var(--wte-transition-fast);
}

/* ── Mobile Nav ── */
.wte-mobile-nav {
	position: fixed;
	top: var(--wte-header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--wte-header-height));
	background: var(--wte-color-header-bg);
	z-index: 99;
	transform: translateX(100%);
	transition: transform var(--wte-transition-slow);
	overflow-y: auto;
}
.wte-mobile-nav.is-open {
	transform: translateX(0);
}
.wte-mobile-nav__inner {
	padding: var(--wte-space-2xl) var(--wte-space-lg);
	display: flex;
	flex-direction: column;
	gap: var(--wte-space-xl);
}
.wte-mobile-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.wte-mobile-nav__list li a {
	display: block;
	padding: var(--wte-space-md) 0;
	font-size: 1rem;
	color: var(--wte-color-header-text);
	border-bottom: 1px solid var(--wte-gray-200);
}

/* ── Skip Link ── */
.wte-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: var(--wte-space-sm) var(--wte-space-md);
	background: var(--wte-color-accent);
	color: var(--wte-white);
	font-size: 0.875rem;
}
.wte-skip-link:focus {
	left: 0;
	top: 0;
}

/* ── Sticky body offset ── */
body.has-sticky-header {
	padding-top: var(--wte-header-height);
}

@media (max-width: 767px) {
	.wte-nav,
	.wte-header__cta,
	.wte-header .wte-sns-list {
		display: none;
	}
	.wte-header__menu-toggle {
		display: flex;
	}
	.wte-header__tagline {
		display: none;
	}
}

/* ── Admin Bar Adjustments ── */
.admin-bar .wte-header--sticky {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .wte-header--sticky {
		top: 46px;
	}
}
