/**
 * Biltmore Motors — global diamond lattice site background
 * Same canvas as cart / checkout on every page.
 */

:root {
	--biltmore-site-bg: #fafafa;
	--biltmore-site-bg-line: rgba(10, 11, 13, 0.018);
	--biltmore-site-bg-glow-1: rgba(255, 40, 0, 0.08);
	--biltmore-site-bg-glow-2: rgba(255, 107, 53, 0.06);
}

html,
body {
	background-color: var(--biltmore-site-bg) !important;
	background-image:
		repeating-linear-gradient(
			45deg,
			var(--biltmore-site-bg-line) 0,
			var(--biltmore-site-bg-line) 1px,
			transparent 1px,
			transparent 32px
		),
		repeating-linear-gradient(
			-45deg,
			var(--biltmore-site-bg-line) 0,
			var(--biltmore-site-bg-line) 1px,
			transparent 1px,
			transparent 32px
		),
		radial-gradient(ellipse 55% 45% at 95% 0%, var(--biltmore-site-bg-glow-1) 0%, transparent 55%),
		radial-gradient(ellipse 45% 55% at 0% 100%, var(--biltmore-site-bg-glow-2) 0%, transparent 55%) !important;
}

/* Let the body pattern show through layout wrappers */
body #page,
body .site,
body #primary,
body #primary.high-padding,
body .high-padding,
body .content-area,
body .site-main,
body .entry-content,
body .woocommerce,
body .woocommerce-page,
body article.type-page,
body .container.blog-posts,
body .bsa-shop-layout,
body .bsa-shop-main,
body .main-content {
	background: transparent !important;
}

/* Biltmore page shells */
.biltmore-about,
.biltmore-hiw,
.biltmore-contact,
.biltmore-drv,
.biltmore-terms,
.biltmore-privacy,
.biltmore-cookie-policy,
.biltmore-disclaimer,
.biltmore-home-about-poc,
.biltmore-home-sections,
.biltmore-shop-auctions,
.biltmore-cart-checkout,
.biltmore-my-account {
	background: transparent !important;
}

/* Full-width heroes and sections — transparent canvas, keep cards white */
:is(
	.biltmore-about,
	.biltmore-hiw,
	.biltmore-contact,
	.biltmore-drv,
	.biltmore-terms,
	.biltmore-privacy,
	.biltmore-cookie-policy,
	.biltmore-disclaimer,
	.biltmore-home-about-poc,
	.biltmore-home-sections
) [class$="-hero"],
:is(
	.biltmore-about,
	.biltmore-hiw,
	.biltmore-contact,
	.biltmore-drv,
	.biltmore-terms,
	.biltmore-privacy,
	.biltmore-cookie-policy,
	.biltmore-disclaimer,
	.biltmore-home-about-poc,
	.biltmore-home-sections
) [class$="-section"],
.bsa-hero {
	background: transparent !important;
}

:is(.biltmore-terms, .biltmore-privacy, .biltmore-cookie-policy, .biltmore-disclaimer) .tos-body {
	background: transparent !important;
}

/* Hide page-local decorative backgrounds (square grids, radial overlays) */
.ab-hero-bg,
.ab-hero-grid-lines,
.hiw-hero-bg,
.hiw-hero-grid-lines,
.ct-hero-bg,
.ct-hero-grid-lines,
.drv-hero-bg,
.drv-hero-grid-lines,
.tos-hero-bg,
.tos-hero-grid-lines,
.bsa-hero-bg,
.bsa-hero-grid-lines,
.hau-section-bg,
.hau-section-grid-lines,
.bma-page-shell,
.bma-page-shell__glow,
.bma-page-shell__diamonds,
.bma-login-page-bg,
.bma-login-page-grid {
	display: none !important;
}

.biltmore-home-about-poc .hau-process-section::before,
.biltmore-home-about-poc .hau-head::before {
	display: none !important;
}

body.biltmore-my-account-logged-out::before,
body.biltmore-my-account-logged-out::after {
	content: none !important;
	display: none !important;
}

/* Cards on pale sections — keep readable on the lattice */
.biltmore-about .ab-stat-card {
	background: var(--ab-bg-3, #fff) !important;
}
