/* =============================
   Fleet Base Header Styles
   Used across all page types (main-store, product-pages)
   ============================= */

.fleet-custom-header {
	background-color: var(--solera-jacarta);
	position: sticky;
	top: 0;
	z-index: 999;
}

/* Adjust sticky header position when WordPress admin bar is visible */
body.admin-bar .fleet-custom-header {
	top: 32px;
}

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

.fleet-header-content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

.fleet-header-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.fleet-logo-img {
	max-height: 50px;
	width: auto;
	display: block;
}

.fleet-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.fleet-contact-us-btn {
	display: inline-block;
	background-color: var(--solera-sun);
	color: var(--solera-jacarta) !important;
	padding: 0rem 1.5rem !important;
	text-decoration: none !important;
	font-weight: bold !important;
	font-size: 1.1rem !important;
	letter-spacing: 0.5px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
	height: 70px;
	line-height: 70px;
	vertical-align: middle;
}

.fleet-contact-us-btn:hover {
	background-color: var(--solera-sun);
	color: var(--solera-jacarta) !important;
	text-decoration: none;
}

/* Hamburger Button (Hidden on Desktop) */
.fleet-hamburger {
	display: none;
}

/* Mobile Menu Panel (Hidden on Desktop) */
.fleet-mobile-nav {
	display: none;
}

/* =============================
   Mobile Responsive Header
   ============================= */

@media (max-width: 768px) {
	.fleet-custom-header {
		padding: 0;
	}

	.fleet-header-content {
		flex-direction: row;
		gap: 0.5rem;
	}

	.fleet-logo-img {
		max-height: 50px;
	}

	/* Hide Contact Us button on mobile, show hamburger */
	.fleet-contact-us-btn {
		display: none;
	}

	.fleet-hamburger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		background: transparent !important;
		border: 0;
		cursor: pointer;
		padding: 8px;
		margin-left: auto;
		height: 70px;
		-webkit-tap-highlight-color: transparent !important;
	}

	.fleet-hamburger span {
		display: block;
		width: 24px;
		height: 2px;
		background: var(--solera-white);
		border-radius: 2px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	/* Animate to X when open */
	.fleet-custom-header.mobile-open .fleet-hamburger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.fleet-custom-header.mobile-open .fleet-hamburger span:nth-child(2) {
		opacity: 0;
	}
	.fleet-custom-header.mobile-open .fleet-hamburger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Mobile nav panel */
	.fleet-mobile-nav {
		display: none;
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		z-index: 9999;
		background: var(--solera-jacarta);
		border-top: 1px solid rgba(255,255,255,0.1);
		box-shadow: 0 8px 16px rgba(0,0,0,0.3);
	}

	.fleet-mobile-nav.is-open {
		display: block;
	}

	/* Mobile CTA link */
	.fleet-mobile-cta {
		display: block;
		background: var(--solera-sun);
		color: var(--solera-jacarta) !important;
		font-weight: bold !important;
		font-size: 1rem;
		text-transform: uppercase;
		text-align: center;
		text-decoration: none !important;
		padding: 1rem;
	}

	.fleet-mobile-cta:hover {
		color: var(--solera-jacarta) !important;
		opacity: 0.9;
	}
}
