/**
 * Header Styles
 *
 * @package LegacyBuiltHomes
 */

.lbh-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	background-color: rgba(252, 251, 249, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--lbh-border);
}

.lbh-header__inner {
	display: flex;
	height: 5rem;
	align-items: center;
	justify-content: space-between;
}

/* Logo */
.lbh-header__logo a,
.lbh-header__logo .lbh-logo {
	display: flex;
	align-items: center;
	transition: opacity var(--lbh-transition);
}

.lbh-header__logo a:hover,
.lbh-header__logo .lbh-logo:hover {
	opacity: 0.8;
}

.lbh-header__logo img,
.custom-logo {
	height: 3rem;
	width: auto;
}

/* Desktop Navigation */
.lbh-header__nav {
	display: none;
	align-items: center;
	gap: 0.25rem;
}

@media (min-width: 768px) {
	.lbh-header__nav {
		display: flex;
	}
}

/* Nav Menu Items */
.lbh-nav-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lbh-nav-menu li {
	list-style: none;
}

.lbh-nav-menu a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(61, 56, 48, 0.8);
	border-radius: var(--lbh-radius-sm);
	transition: all var(--lbh-transition);
	text-decoration: none;
}

.lbh-nav-menu a:hover {
	color: var(--lbh-fg);
	background-color: rgba(61, 56, 48, 0.04);
}

.lbh-nav-menu .current-menu-item > a,
.lbh-nav-menu .current_page_item > a {
	color: var(--lbh-primary);
	font-weight: 600;
}

/* Header CTA */
.lbh-header__cta {
	margin-left: 1rem;
}

/* Mobile Menu Toggle */
.lbh-header__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--lbh-fg);
}

@media (min-width: 768px) {
	.lbh-header__toggle {
		display: none;
	}
}

/* Mobile Navigation */
.lbh-header__mobile-nav {
	padding: 1rem 0;
	border-top: 1px solid var(--lbh-border);
}

.lbh-header__mobile-nav[hidden] {
	display: none;
}

.lbh-mobile-menu {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lbh-mobile-menu a {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	color: rgba(61, 56, 48, 0.8);
	border-radius: var(--lbh-radius-sm);
	transition: all var(--lbh-transition);
	text-decoration: none;
}

.lbh-mobile-menu a:hover {
	color: var(--lbh-fg);
	background-color: rgba(61, 56, 48, 0.04);
}

.lbh-mobile-menu .current-menu-item > a,
.lbh-mobile-menu .current_page_item > a {
	color: var(--lbh-primary);
	background-color: rgba(181, 87, 42, 0.08);
}

.lbh-header__mobile-nav .lbh-btn {
	margin-top: 1rem;
}

/* Submenu */
.lbh-nav-menu .sub-menu,
.lbh-mobile-menu .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lbh-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius-sm);
	box-shadow: var(--lbh-shadow-lg);
	padding: 0.5rem;
	min-width: 12rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--lbh-transition);
}

.lbh-nav-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lbh-nav-menu li {
	position: relative;
}

.lbh-mobile-menu .sub-menu {
	padding-left: 1.5rem;
}
