/* Header module */

.wha-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(5, 5, 5, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}
.wha-header.is-scrolled {
	background: rgba(5, 5, 5, 0.92);
	border-bottom-color: var(--wha-border);
}

.wha-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.1rem;
}

.wha-header__logo img {
	height: 44px;
	width: auto;
}
.wha-header__wordmark {
	font-family: var(--wha-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--wha-foreground);
}

.wha-header__nav {
	display: none;
}
.wha-header__menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wha-header__menu a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--wha-muted-foreground);
	transition: color 0.2s ease;
}
.wha-header__menu a:hover,
.wha-header__menu .current-menu-item > a {
	color: var(--wha-foreground);
}

/* Only shown once site.js confirms an active admin session (removes the
   [hidden] attribute) — see api/session-status.php. */
.wha-nav-admin-only[hidden] {
	display: none;
}

.wha-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.wha-header__phone {
	display: none;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wha-foreground);
}
.wha-header__phone .wha-icon {
	width: 16px;
	height: 16px;
	color: var(--wha-accent);
}

.wha-header__cta {
	display: none;
}

.wha-header__toggle {
	display: flex;
	padding: 0.4rem;
	color: var(--wha-foreground);
}
.wha-header__icon-close {
	display: none;
}
.wha-menu-open .wha-header__icon-open {
	display: none;
}
.wha-menu-open .wha-header__icon-close {
	display: block;
}

.wha-mobile-menu {
	position: fixed;
	inset: 0;
	top: 0;
	z-index: 99;
	background: var(--wha-background);
	padding: 6.5rem 1.5rem 2rem;
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s;
	overflow-y: auto;
}
.wha-mobile-menu.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}
.wha-mobile-menu__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
.wha-mobile-menu__list a {
	display: block;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--wha-border);
	font-family: var(--wha-font-display);
	font-size: 1.5rem;
}
.wha-mobile-menu__phone {
	display: flex;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}
.wha-mobile-menu__cta {
	width: 100%;
}

.wha-sticky-book {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: var(--wha-accent);
	color: var(--wha-accent-foreground);
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: var(--wha-radius-sm);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 960px) {
	.wha-header__nav {
		display: block;
	}
	.wha-header__phone,
	.wha-header__cta {
		display: inline-flex;
	}
	.wha-header__toggle,
	.wha-mobile-menu,
	.wha-sticky-book {
		display: none;
	}
}
