/* Header Structure */
.wl-site-header {
	width: 100%;
	z-index: 1000;
	position: relative;
	background-color: var(--wl-color-white);
	overflow: visible;
}

.wl-site-header.wl-is-sticky {
	position: sticky;
	top: 0;
	z-index: 1010;
	overflow: visible;
}

/* When WP admin bar is visible, offset sticky header */
.admin-bar .wl-site-header.wl-is-sticky {
	top: 32px;
}

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

.wl-header-sticky-wrapper {
	background-color: var(--wl-color-white);
	transition: transform 0.3s ease;
	overflow: visible;
}

.wl-header-sticky-wrapper {
	background-color: var(--wl-color-white);
	transition: transform 0.3s ease;
}

/* 1. Utility Bar */
.wl-utility-bar {
	background-color: var(--wl-color-primary);
	color: var(--wl-color-white);
	font-size: 13px;
	height: 36px;
	transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
	overflow: hidden;
}

.wl-utility-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.wl-utility-right {
	display: flex;
	gap: 1.5rem;
}

.wl-utility-right a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.wl-utility-right a:hover {
	color: var(--wl-color-white);
}

/* 2. Brand Bar */
.wl-brand-bar {
	background-color: var(--wl-color-white);
	min-height: var(--wl-header-height, 80px);
	border-bottom: 1px solid var(--wl-color-border);
	transition: height 0.3s ease;
}

.wl-brand-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: var(--wl-header-height, 80px);
}

.wl-logo-text {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--wl-color-text);
}

.wl-logo-icon {
	font-size: 2rem;
	color: var(--wl-color-primary);
}

.wl-logo-content {
	display: flex;
	flex-direction: column;
}

.wl-logo-title {
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.2;
}

.wl-logo-subtitle {
	font-size: 0.75rem;
	color: var(--wl-color-muted);
}

/* Custom Logo WordPress Defaults */
.wl-brand-logo .custom-logo-link {
	display: flex;
	align-items: center;
}

.wl-brand-logo .custom-logo {
	max-height: 45px;
	width: auto;
	height: auto;
}

.wl-brand-nav {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}

.wl-brand-search {
	flex: 0 1 250px;
}

.wl-brand-search form {
	display: flex;
}

.wl-brand-search input[type="search"] {
	width: 100%;
	padding: 0.5rem 1rem;
	border: 1px solid var(--wl-color-border);
	border-radius: 10px 0 0 10px;
	background-color: var(--wl-color-background);
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wl-brand-search input[type="search"]:focus {
	border-color: var(--wl-color-blue);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.wl-brand-search button {
	background-color: var(--wl-color-blue);
	color: var(--wl-color-white);
	border: none;
	border-radius: 0 10px 10px 0;
	padding: 0.5rem 1rem;
	cursor: pointer;
}

.wl-brand-actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.wl-action-btn {
	font-size: 1.25rem;
	text-decoration: none;
	color: var(--wl-color-text);
}

.wl-action-link {
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--wl-color-text);
}

.wl-btn-blue {
	background-color: var(--wl-color-blue);
	color: var(--wl-color-white);
	border-radius: 8px;
	padding: 0.5rem 1.25rem;
	font-weight: 600;
}



/* Duplicate primary nav styles removed to prevent conflicts with navigation.css */


/* 5. Quick Links */
.wl-quick-links-bar {
	background-color: var(--wl-color-white);
	padding: 1rem 0;
	border-bottom: 1px solid var(--wl-color-border);
	margin-bottom: 1.5rem;
}

.wl-quick-links-inner {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.wl-quick-link {
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	background-color: var(--wl-color-background);
	color: var(--wl-color-text);
	text-decoration: none;
	border: 1px solid var(--wl-color-border);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.wl-quick-link:hover,
.wl-quick-link.wl-active,
.wl-quick-link.wl-quick-link-active,
.wl-quick-link:active,
.wl-quick-link:focus-visible {
	background: linear-gradient(135deg, var(--wl-color-teal), #0F9E9A);
	color: var(--wl-color-white);
	border-color: var(--wl-color-teal);
	box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

/* Scroll classes */
.wl-scrolled .wl-utility-bar {
	height: 0;
	opacity: 0;
}
.wl-scrolled .wl-brand-bar {
	min-height: 60px;
}
 
 /* Header Styles */
.wl-header-style-compact .wl-brand-bar {
	min-height: 60px;
}
.wl-header-style-compact .wl-desktop-logo {
	max-height: 40px !important;
}

@media (min-width: 1024px) {
	.wl-header-style-modern .wl-brand-inner {
		flex-wrap: wrap;
		padding: 20px 2rem 0;
		height: auto;
		align-content: flex-start;
	}
	.wl-header-style-modern .wl-brand-logo {
		flex: 1 1 25%;
		order: 1;
	}
	.wl-header-style-modern .wl-brand-search {
		flex: 1 1 40%;
		order: 2;
		display: flex;
		justify-content: center;
	}
	.wl-header-style-modern .wl-brand-actions {
		flex: 1 1 25%;
		justify-content: flex-end;
		order: 3;
	}
	.wl-header-style-modern .wl-brand-nav-center {
		flex: 1 1 100%;
		order: 4;
		display: flex;
		justify-content: center;
		margin-top: 15px;
		margin-bottom: 15px;
	}
	.wl-header-style-modern .wl-brand-nav-center .wl-nav-menu {
		background-color: #f1f5f9;
		border-radius: 50px;
		padding: 8px 15px;
		box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
		border: 1px solid var(--wl-color-border);
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.wl-header-style-modern .wl-nav-menu>li>a {
		border-radius: 50px;
		padding: 8px 20px;
		transition: all 0.3s ease;
	}
	.wl-header-style-modern .wl-nav-menu>li>a::after {
		display: none !important;
	}
	.wl-header-style-modern .wl-nav-menu>li>a:hover {
		background-color: rgba(37, 99, 235, 0.1);
		color: var(--wl-color-blue);
	}
	.wl-header-style-modern .wl-nav-menu>li.current-menu-item>a {
		background-color: var(--wl-color-blue);
		color: #fff;
		box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
	}
	.wl-header-style-modern .wl-brand-bar {
		height: auto !important;
		min-height: var(--wl-header-height, 80px);
		padding-bottom: 5px;
		background-color: #ffffff;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
		border-bottom: none;
		overflow: visible;
	}
}
