/* Make Elementor header fixed and transparent */
.elementor-location-header {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Offset for admin bar */
body.admin-bar .elementor-location-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .elementor-location-header {
		top: 46px;
	}
}

/* Scrolled state: glassmorphism (Desktop & Tablet) */
.elementor-location-header.is-scrolled {
	background-color: rgba(255, 255, 255, 0.12) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
}

/* Logo transition */
.elementor-location-header .elementor-widget-image img {
	transition: max-height 0.3s ease, height 0.3s ease;
}

/* Scrolled state logo size */
.elementor-location-header.is-scrolled .elementor-widget-image img {
	max-height: 55px !important;
	height: auto !important;
}

/* --- Mobile Overrides --- */
@media (max-width: 767px) {
	/* Ensure header remains completely transparent on scroll */
	.elementor-location-header,
	.elementor-location-header.is-scrolled {
		background: transparent !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		box-shadow: none !important;
		border: none !important;
	}

	/* Hide any inherited pseudo-element backgrounds */
	.elementor-location-header::before,
	.elementor-location-header::after {
		display: none !important;
	}

	/* Adjust mobile logo size on scroll */
	.elementor-location-header.is-scrolled .elementor-widget-image img {
		max-height: 48px !important;
	}
}
