/**
 * Reverie Sounds — Header Styles
 */

/* ── Site Header ── */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(8, 8, 10, 0.88);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
}

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

img.site-logo__icon {
	height: 32px;
	width: auto;
	display: block;
}

.site-logo__text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	color: var(--text-primary);
	letter-spacing: -0.3px;
}

/* ── Desktop Navigation ── */
.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-nav__separator {
	width: 1px;
	height: 20px;
	background: var(--border);
	margin: 0 6px;
}

.site-nav a {
	padding: 6px 14px;
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--text-dim);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.site-nav a:hover {
	color: var(--text-primary);
	background: var(--bg-card);
}

.site-nav a[aria-current="page"],
.site-nav a.current {
	color: var(--text-primary);
	background: var(--bg-card-2);
}

/* Utility links (Demos, Contact) */
.site-nav__utility a {
	font-size: 12px;
	padding: 6px 12px;
}

/* ── Mobile Menu Toggle ── */
.site-header__menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
	padding: 0;
}

.site-header__menu-toggle svg {
	width: 22px;
	height: 22px;
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	background: var(--bg-primary);
	flex-direction: column;
	padding: 24px;
	overflow-y: auto;
}

.mobile-menu.is-open {
	display: flex;
}

.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
}

.mobile-menu__close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
}

.mobile-menu__close svg {
	width: 22px;
	height: 22px;
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mobile-menu__nav a {
	display: block;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	color: var(--text-dim);
	transition: all 0.2s ease;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a[aria-current="page"],
.mobile-menu__nav a.current {
	color: var(--text-primary);
	background: var(--bg-card);
}

.mobile-menu__separator {
	height: 1px;
	background: var(--border);
	margin: 12px 0;
}

/* ── Spacer for fixed header ── */
.site-content {
	padding-top: 60px;
}

/* ── WP Admin Bar Offset ── */
body.admin-bar .site-header {
	top: 32px;
}

body.admin-bar .site-content {
	padding-top: 92px; /* 60px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar .site-content {
		padding-top: 106px; /* 60px header + 46px admin bar */
	}
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.site-nav {
		display: none;
	}

	.site-header__menu-toggle {
		display: flex;
	}
}
