/* DCUBED – sticky, transparent-to-dark, shrinking header (see assets/js/dcubed-header.js) */

.elementor-location-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
}

/* Overlay mode: the header sits on top of the dark hero. */
.dc-header-overlay .elementor-location-header {
	margin-bottom: calc(-1 * var(--dc-header-h, 84px));
}

.elementor-location-header .dc-header {
	transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.dc-header-overlay .elementor-location-header:not(.is-scrolled) .dc-header {
	background-color: transparent;
}

.elementor-location-header.is-scrolled .dc-header {
	background-color: rgba(8, 24, 37, .96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(7, 23, 36, .18);
}

/* Shrink on scroll */
.elementor-location-header .dc-header-bar {
	transition: min-height .35s ease;
}

.elementor-location-header.is-scrolled .dc-header-bar {
	min-height: 4rem !important;
}

.elementor-location-header .dc-header-logo {
	transition: height .35s ease;
}

/* The logo keeps its aspect ratio (width: auto); only the height shrinks. A fixed width would center the logo inside the wider box. */
.elementor-location-header.is-scrolled .dc-header-logo {
	height: 3rem !important;
}

@media (max-width: 767px) {
	.elementor-location-header.is-scrolled .dc-header-logo {
		height: 2.75rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor-location-header .dc-header,
	.elementor-location-header .dc-header-bar,
	.elementor-location-header .dc-header-logo {
		transition: none;
	}
}
