/* AAFE Header & Footer Builder - Frontend CSS */

/* Reset for HF wrappers */
.aafe-hf-wrap {
	width: 100%;
	position: relative;
	z-index: 1000;
}

.aafe-hf-wrap * {
	box-sizing: border-box;
}

/* Sticky Header */
.aafe-hf-header.aafe-hf-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.aafe-hf-header.aafe-hf-sticky.aafe-hf-sticky--scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* AAFE FIX: logged-in users — keep the sticky header below the WordPress admin bar. */
body.admin-bar .aafe-hf-header.aafe-hf-sticky {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	body.admin-bar .aafe-hf-header.aafe-hf-sticky {
		top: 0;
	}
}

/* Body offset when sticky header is active */
body.aafe-has-sticky-header {
	padding-top: var(--aafe-header-height, 80px);
}

/* Transparent Header (on top of hero sections) */
.aafe-hf-header.aafe-hf-transparent {
	background: transparent !important;
}
/* AAFE FIX: a transparent (non-sticky) header must overlay the first section,
   otherwise "transparent" had no visible effect. */
.aafe-hf-header.aafe-hf-transparent:not(.aafe-hf-sticky) {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}
body.admin-bar .aafe-hf-header.aafe-hf-transparent:not(.aafe-hf-sticky) {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.aafe-hf-header.aafe-hf-transparent.aafe-hf-sticky--scrolled {
	background: rgba(255, 255, 255, 0.97) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Footer */
.aafe-hf-footer {
	width: 100%;
}
