/**
 * Aura HFE – Frontend Styles
 * Minimal structural styles. All design is done via Elementor widgets.
 *
 * @package AuraHFE
 * @since   1.0.0
 */

.aura-hfe-header,
.aura-hfe-footer {
	position: relative;
	width: 100%;
	line-height: 1;
	z-index: 100;
}

.aura-hfe-header { z-index: 9999; }

/* -----------------------------------------------------------------------
 * Hide the theme's native header when Aura custom header is active.
 * The body class .aura-hfe-has-header is added by PHP only when a custom
 * header template is resolved for the current page — so this never fires
 * on pages without a custom header.
 * ----------------------------------------------------------------------- */
.aura-hfe-has-header header:not(#aura-hfe-header),
.aura-hfe-has-header .site-header:not(#aura-hfe-header),
.aura-hfe-has-header #masthead:not(#aura-hfe-header),
.aura-hfe-has-header #header:not(#aura-hfe-header),
.aura-hfe-has-header #site-header:not(#aura-hfe-header) {
	display: none !important;
}

/* -----------------------------------------------------------------------
 * Hide the theme's native footer when Aura custom footer is active.
 * Same body-class guard as above.
 * ----------------------------------------------------------------------- */
.aura-hfe-has-footer footer:not(#aura-hfe-footer),
.aura-hfe-has-footer .site-footer:not(#aura-hfe-footer),
.aura-hfe-has-footer #colophon:not(#aura-hfe-footer),
.aura-hfe-has-footer #footer:not(#aura-hfe-footer),
.aura-hfe-has-footer #site-footer:not(#aura-hfe-footer) {
	display: none !important;
}

/* Sticky */
.aura-hfe-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

.aura-hfe-sticky.is-scrolled {
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* Slide animation (enabled via JS when scroll animation is on) */
.aura-hfe-sticky--slide {
	-webkit-transition: -webkit-transform .35s cubic-bezier(.4, 0, .2, 1);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.aura-hfe-sticky--slide.aura-hfe-hidden {
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
}

.aura-hfe-sticky--slide.aura-hfe-visible {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.aura-hfe-sticky--slide { -webkit-transition: none; transition: none; }
}
