/**
 * Estepp's solid background system.
 *
 * The authored theme and Elementor layout remain locked. This stylesheet only
 * paints the canvas behind existing content with brand-led solid fields,
 * straight bands, and hard rectangular divisions.
 *
 * Primary colours are sampled from assets/images/estepp-logo.svg.
 */

/* ========================================================================== *
 * Brand variables and shared stage behavior
 * ========================================================================== */

:root {
	--estepps-bg-blue: #005daa;
	--estepps-bg-blue-soft: #eef7fc;
	--estepps-bg-yellow: #ffd200;
	--estepps-bg-yellow-soft: #fff5c2;
	--estepps-bg-white: #ffffff;
	--estepps-bg-paper: #fffdf8;
	--estepps-bg-navy: #0c2848;
	--estepps-bg-checker: url("../images/brand-theater/checkered-divider.png");
}

.estepps-site-main {
	position: relative;
	background: var(--estepps-bg-paper);
}

/* One slim brand line gives the page a crisp starting edge. */
.estepps-site-main::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 30;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--estepps-bg-blue) 0 72%,
		var(--estepps-bg-yellow) 72%
	);
	pointer-events: none;
}

body.home .elementor-5 > .e-con,
.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con,
.estepps-page-header,
.post-type-archive-location .estepps-site-main > .estepps-section,
.single-location .estepps-location__hero,
.single-location .estepps-location > .estepps-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	overflow: clip;
}

body.home .elementor-5 > .e-con > *,
.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con > *,
.estepps-page-header > *,
.post-type-archive-location .estepps-site-main > .estepps-section > *,
.single-location .estepps-location__hero > *,
.single-location .estepps-location > .estepps-section > * {
	position: relative;
	z-index: 2;
}

body.home .elementor-5 > .e-con::before,
body.home .elementor-5 > .e-con::after,
.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con::before,
.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con::after,
.estepps-page-header::before,
.estepps-page-header::after,
.post-type-archive-location .estepps-site-main > .estepps-section::before,
.post-type-archive-location .estepps-site-main > .estepps-section::after,
.single-location .estepps-location__hero::before,
.single-location .estepps-location__hero::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

/* Elementor gives container pseudos a full-canvas box. Reset that geometry so
 * only the explicit rectangular bands and splits below are visible. */
body .elementor > .e-con::before,
body .elementor > .e-con::after {
	inset: auto;
	width: auto;
	height: auto;
}

/* ========================================================================== *
 * Homepage: solid fields and confident hard transitions
 * ========================================================================== */

/* Hero: an uncluttered warm-white field keeps the opening message dominant. */
body.home .estepps-home-hero {
	background: var(--estepps-bg-paper);
}

/* Feature cards: full Estepp blue with one narrow racing reference. */
body.home .elementor-5 > .elementor-element-a716947 {
	background: var(--estepps-bg-blue);
}

body.home .elementor-5 > .elementor-element-a716947::before {
	inset: 0 0 auto;
	height: 8px;
	background-image: var(--estepps-bg-checker);
	background-repeat: repeat-x;
	background-position: center;
	background-size: auto 100%;
	opacity: 0.16;
}

/* Local story and food stay quiet so photography and copy lead. */
body.home .elementor-5 > .elementor-element-f1d6297 {
	background: var(--estepps-bg-white);
}

body.home .elementor-5 > .elementor-element-08c6ea1 {
	background: var(--estepps-bg-paper);
}

/* Breakfast: one grounded navy field with a straight yellow finish. */
body.home .elementor-5 > .elementor-element-1aacb1c {
	background: var(--estepps-bg-navy);
}

body.home .elementor-5 > .elementor-element-1aacb1c::after {
	inset: auto 0 0;
	height: 7px;
	background: var(--estepps-bg-yellow);
}

/* Rewards: a hard 40/60 image-and-copy field, with no angled seam. */
body.home .elementor-5 > .elementor-element-63ff730 {
	background: var(--estepps-bg-yellow);
}

body.home .elementor-5 > .elementor-element-63ff730::before {
	inset: 0 60% 0 0;
	background: var(--estepps-bg-blue);
}

/* Locations and history provide clean, low-contrast breathing room. */
body.home .elementor-5 > .elementor-element-0f9f5d0 {
	background: var(--estepps-bg-blue-soft);
}

body.home .elementor-5 > .elementor-element-c19f18f {
	background: var(--estepps-bg-white);
}

/* Careers repeats the rectangular blue/yellow split for visual continuity. */
body.home .elementor-5 > .elementor-element-96a5a8e {
	background: var(--estepps-bg-yellow);
}

body.home .elementor-5 > .elementor-element-96a5a8e::before {
	inset: 0 58% 0 0;
	background: var(--estepps-bg-blue);
}

/* Energy: a flat light panel against the dark navy closing section. */
body.home .estepps-home-energy {
	background: var(--estepps-bg-navy);
}

body.home .estepps-home-energy::before {
	inset: 2.25rem max(3.5vw, 1.25rem);
	border: 3px solid var(--estepps-bg-yellow);
	background: var(--estepps-bg-paper);
}

/* ========================================================================== *
 * Interior pages, archives and dynamic location views
 * ========================================================================== */

.estepps-page-header {
	background: var(--estepps-bg-yellow);
}

.estepps-page-header::after {
	inset: auto 0 0;
	height: 7px;
	background: var(--estepps-bg-blue);
}

.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con:not(.estepps-dark) {
	background: var(--estepps-bg-white);
}

.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con:nth-child(even):not(.estepps-dark) {
	background: var(--estepps-bg-paper);
}

.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .estepps-dark {
	background: var(--estepps-bg-navy);
}

.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .estepps-dark::after {
	inset: auto 0 0;
	height: 7px;
	background: var(--estepps-bg-yellow);
}

.post-type-archive-location .estepps-site-main > .estepps-section {
	background: var(--estepps-bg-blue-soft);
}

.single-location .estepps-location__hero {
	background: var(--estepps-bg-yellow);
}

.single-location .estepps-location__hero::after {
	inset: auto 0 0;
	height: 7px;
	background: var(--estepps-bg-blue);
}

.single-location .estepps-location > .estepps-section:not(.estepps-section--alt) {
	background: var(--estepps-bg-paper);
}

/* ========================================================================== *
 * Responsive simplification
 * ========================================================================== */

@media (max-width: 1024px) {
	body.home .elementor-5 > .elementor-element-63ff730::before,
	body.home .elementor-5 > .elementor-element-96a5a8e::before {
		right: 63%;
	}

	body.home .estepps-home-energy::before {
		inset: 2.25rem 1rem;
	}
}

@media (max-width: 767px) {
	.estepps-site-main::before {
		height: 3px;
	}

	body.home .elementor-5 > .elementor-element-a716947::before {
		height: 6px;
		background-size: auto 100%;
		opacity: 0.12;
	}

	body.home .elementor-5 > .elementor-element-1aacb1c::after {
		height: 5px;
	}

	/* Stacked mobile layouts use one flat blue image field above yellow copy. */
	body.home .elementor-5 > .elementor-element-63ff730::before,
	body.home .elementor-5 > .elementor-element-96a5a8e::before {
		inset: 0 0 62% 0;
	}

	body.home .estepps-home-energy::before {
		inset: 1.25rem 1rem;
		border-width: 2px;
	}

	.estepps-page-header::after,
	.single-location .estepps-location__hero::after {
		height: 5px;
	}
}

@media (forced-colors: active) {
	body.home .elementor-5 > .e-con::before,
	body.home .elementor-5 > .e-con::after,
	.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con::before,
	.estepps-elementor-page:not(.home) [data-elementor-type="wp-page"] > .e-con::after,
	.estepps-page-header::before,
	.estepps-page-header::after,
	.post-type-archive-location .estepps-site-main > .estepps-section::before,
	.post-type-archive-location .estepps-site-main > .estepps-section::after,
	.single-location .estepps-location__hero::before,
	.single-location .estepps-location__hero::after {
		display: none;
	}
}
