/*
Theme Name: Westeck Gutenberg
Theme URI: https://westeck.com
Author: Westeck
Description: Native Gutenberg block theme with full site editing.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0.30
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westeck_gutenberg
Tags: block-theme, full-site-editing, editor-style
*/

@import url('css/motion.css');
@import url('css/project-hero.css');
@import url('css/home-hero.css');
@import url('css/sneaky-reveal.css');
@import url('css/transition-top-radius.css');
@import url('css/project-gallery.css');
@import url('blocks/post-card/style.css');
@import url('blocks/testimonials/style.css');
@import url('css/block-layout.css');
@import url('css/single-post-navigation.css');
@import url('css/single-post-back-link.css');
@import url('css/single-post-template.css');
@import url('css/heading-trademark.css');
@import url('css/install-links.css');
@import url('css/type-size-utilities.css');
@import url('css/needs-approval.css');
@import url('css/site-layout.css');
@import url('css/mobile-menu.css');
@import url('css/404-template.css');

/* Font sizes need to be updated later... ----------------------------------------------------- */
:root {
	
	/* Text sizing */
	--text-h00:   167px;
	--text-h0:   100px;
	--text-h1:   80px;
	--text-h2:   60px;
	--text-h3:   40px;
	--text-h4:   33px;
	--text-h5:   26px;
	--text-h6:   23px;
	--text-body: 21px;
	--text-body-small: 18px;
	--text-small: 16px;

	/* Font attributes */
	--font-primary: 'Manrope';
	--font-secondary: 'Canela';
	--font-primary-weight: 400;
	--font-primary-weight-bold: 700;
	--font-secondary-weight: 300;

	/* Color variables */ 
	--cloud: 	#E8DDD0;
	--cloud-lt: #F4F1EE;
	--white: 	#FFFFFF;
	--rock: 	#262625;
	--sun: 		#FF312F;
	--sky: 		#0042FF;
	--grey: 	#ddd;
	--focus-outline: #aaa;
	--black: var(--rock);
	--blue-hover-filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(7452%) hue-rotate(225deg) brightness(99%) contrast(107%);

	--fast-bezier: cubic-bezier(0.3, 0, 0.14, 1);
	--slow-bezier: cubic-bezier(0.42, 0, 0.23, 1);
	--zoom-bezier: cubic-bezier(0.3, 0, 0.6, 1);
	--zoom-duration: 1250ms;
	--transition-fast: color 150ms var(--fast-bezier), background-color 150ms var(--fast-bezier), border-color 150ms var(--fast-bezier), box-shadow 150ms var(--fast-bezier), opacity 150ms var(--fast-bezier), width 150ms var(--fast-bezier), height 150ms var(--fast-bezier), transform 150ms var(--fast-bezier);
	--transition-medium: color 325ms var(--slow-bezier), background-color 325ms var(--slow-bezier), border-color 325ms var(--slow-bezier), box-shadow 325ms var(--slow-bezier), opacity 325ms var(--slow-bezier), width 325ms var(--slow-bezier), height 325ms var(--slow-bezier), transform 325ms var(--slow-bezier);
	--transition-slow: color 500ms var(--slow-bezier), background-color 500ms var(--slow-bezier), border-color 500ms var(--slow-bezier), box-shadow 500ms var(--slow-bezier), opacity 500ms var(--slow-bezier), width 500ms var(--slow-bezier), height 500ms var(--slow-bezier), transform 500ms var(--slow-bezier);
	--transition-zoom: transform var(--zoom-duration) var(--zoom-bezier);
	--transition-zoom-overlay: background-color var(--zoom-duration) var(--zoom-bezier);

	/* Layout breakpoints */
	--westeck-mega-menu-height: 112px;

}

@media screen and (max-width: 1024px) {
	:root {
		--westeck-mega-menu-height: 60px;
		--text-h00: calc(167px * 0.8);
		--text-h0: calc(100px * 0.8);
		--text-h1: calc(80px * 0.8);
		--text-h2: calc(60px * 0.8);
		--text-h3: calc(40px * 0.8);
		--text-h4: calc(33px * 0.8);
		--wp--preset--font-size--h-00: calc(167px * 0.8);
		--wp--preset--font-size--h-0: calc(100px * 0.8);
		--wp--preset--font-size--h-1: calc(80px * 0.8);
		--wp--preset--font-size--h-2: calc(60px * 0.8);
		--wp--preset--font-size--h-3: calc(40px * 0.8);
		--wp--preset--font-size--h-4: calc(33px * 0.8);
	}
}


/* Fonts ----------------------------------------------------- */
/* Canela is being loaded via enqueue in functions. */


/* Core structure and style ----------------------------------------------------- */
body {
	font-family: var(--font-primary);
	margin-bottom: 49vh;
	background: linear-gradient(180deg, #F4F1EE 0%, var(--cloud) 100%) !important;
}
body, p, li, a, h1, h2, h3, h4, h5, h6 {
	color: var(--rock);
	font-size: var(--text-body);
}

::selection {
	background-color: var(--sky);
	color: var(--white);
}

::-moz-selection {
	background-color: var(--sky);
	color: var(--white);
}

a:focus-visible {
	outline: 2px dashed var(--focus-outline);
	border-radius: 8px;
}
/* Headings — flat margins for components; core block gap: css/block-layout.css */

h1, h2, h3, h4, h5, h6, p, li, ul, ol {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
	border: none;
	border-radius: 0;
	background: none;
}

/* Spec table cells — tight paragraph padding inside group blocks */
.spec-table-cell :is(p, p.wp-block-paragraph) {
	margin-block: 0 !important;
	padding-block: 5px;
}

/* Core block — Accordion (wp-block/accordion) */
.wp-block-accordion-item.is-layout-flow.wp-block-accordion-item-is-layout-flow {
	border: 1px solid #000;
	padding: 0 10px;
}

.wp-block-accordion-panel {
	margin: 0 0 10px 0 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-secondary);
}
h1, .h1 {
	font-size: var(--text-h1);
	font-weight: 300;
	line-height: 1.1;
}
h2, .h2 {
	font-size: var(--text-h2);
	font-weight: 300;
	line-height: 1.2;
}
h3, .h3 {
	font-size: var(--text-h3);
	font-weight: 300;
	line-height: 1.3;
}
h4, .h4 {
	font-size: var(--text-h4);
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: 0.01em;
}
h5, .h5 {
	font-size: var(--text-h5);
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: 0.01em;
}
h6, .h6 {
	font-family: var(--font-primary);
	font-size: var(--text-h6);
	font-weight: 600;
	line-height: 1.35;
}
.h0 {
	font-size: var(--text-h0);
	font-weight: 300;
	line-height: 1;
}
.h00 {
	font-size: var(--text-h00);
	font-weight: 300;
	line-height: 1;
}
p, .body, li {
	font-size: var(--text-body);
	font-weight: 300;
	line-height: 1.6;
}

strong, b {
	font-weight: var(--font-primary-weight-bold);
}

.small,
p.small {
	font-size: var(--text-small);
}

.nav-text,
.acf-mega-menu__menu a,
.list-plain-nav a,
.list-plain-nav li {
	font-size: var(--text-body-small);
	font-weight: 500;
	line-height: 1.35;
}

.list-plain-nav {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.list-plain-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.list-plain-nav li a {
	display: block;
}
.eyebrow {
	font-family: var(--font-primary);
	font-size: var(--text-small);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
footer .eyebrow {
	color: var(--cloud);
}

html {
	scroll-behavior: auto; /* prevent conflict with JS */
}

/* No top gap: header nav is fixed via acf-mega-menu; suppress empty template-part + core flow spacing. */
.wp-site-blocks {
	position: relative;
	z-index: 1;
	padding-top: 0;
	margin-top: 0;
	background: linear-gradient(180deg, #f4f1ee 0%, var(--cloud) 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0;
}

/* theme.json blockGap adds margin-block-start on every .wp-site-blocks child after the first (footer gap). */
.wp-site-blocks > footer,
.wp-site-blocks > #sneaky-reveal,
.wp-site-blocks > .single-post-keep-reading,
.wp-site-blocks > .wp-block-template-part {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/* Short pages: pin footer to viewport bottom without flex-end top whitespace. */
/* Main content above sneaky (45); hold layers (50/60) stay inside this context. */
.wp-site-blocks > main {
	position: relative;
	z-index: 46;
}

.wp-site-blocks > footer {
	position: relative;
	z-index: 75;
	isolation: isolate;
	margin-top: auto;
}

/* No gap between skip-link target (main) and first block inside it. */
#wp--skip-link--target.is-layout-flow > :first-child:not(.archive-header),
#wp--skip-link--target .is-layout-flow > :first-child:not(.archive-header),
main#wp--skip-link--target > .wp-block-post-content.is-layout-flow > :first-child:not(.archive-header) {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > main,
main.wp-block-group,
.wp-site-blocks > main.wp-block-group {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

header.wp-block-template-part {
	display: none;
}

/* Utility ----------------------------------------------------- */

.balance-text {
	text-wrap: balance;
}

.reverse * {
	color: var(--white);
}

.glass {
	background: rgba(150,150,150	, 0.2);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255,255,255, 0.1);
}
.glass-element {
	padding: 8px 16px;
	border-radius: 16px;
}
.fade {
	background: linear-gradient(180deg, #f4f1ee 0%, var(--cloud) 100%) !important;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/**
 * Collapsible content — hidden on the front end until revealed.
 * Wrapper: hidden-by-default + HTML anchor id.
 * Trigger: data-reveal-target="that-id" (toggle adds is-revealed on the target).
 */
.hidden-by-default {
	display: none !important;
}

.hidden-by-default.is-revealed {
	display: block !important;
}

/* Page loader ----------------------------------------------------- */

/* Pause main content animations until loader finishes (body class removed in custom.js). */
body.westeck-loader-pending .wp-site-blocks,
body.westeck-loader-pending .wp-site-blocks * {
	animation-play-state: paused !important;
}

/* Skip intro motion: solid sun only, then shell fade (see custom.js). */
.westeck-page-loader--fast-exit .westeck-page-loader__stage {
	opacity: 0;
	visibility: hidden;
	transition: none !important;
}

.westeck-page-loader--fast-exit .westeck-page-loader__corner,
.westeck-page-loader--fast-exit .westeck-page-loader__text {
	opacity: 0 !important;
	transition: none !important;
	transform: translate(-50%, -50%) !important;
}

.westeck-page-loader {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 200000;
	background-color: var(--sun);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 1000ms var(--slow-bezier);
}

.westeck-page-loader__stage {
	position: relative;
	width: min(90vw, 480px);
	height: min(90vh, 320px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.westeck-page-loader__corner,
.westeck-page-loader__text {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

/* Sizes match width/height in each SVG file. */
.westeck-page-loader__corner {
	width: 22px;
	height: 21px;
	object-fit: contain;
	opacity: 0;
	transition:
		opacity 500ms var(--slow-bezier),
		transform 500ms var(--slow-bezier);
	will-change: opacity, transform;
}

.westeck-page-loader--corners-in .westeck-page-loader__corner {
	opacity: 1;
}

.westeck-page-loader--spread .westeck-page-loader__corner--tl {
	transform: translate(calc(-50% - 105px), calc(-50% - 16px));
}

.westeck-page-loader--spread .westeck-page-loader__corner--br {
	transform: translate(calc(-50% + 105px), calc(-50% + 22px));
}

.westeck-page-loader__text {
	width: min(198px, calc(100vw - 48px));
	height: auto;
	aspect-ratio: 198 / 35;
	object-fit: contain;
	opacity: 0;
	z-index: 2;
	transition: opacity 200ms var(--slow-bezier);
}

.westeck-page-loader--text-in .westeck-page-loader__text {
	opacity: 1;
}

.westeck-page-loader--retract .westeck-page-loader__text {
	opacity: 0;
	transition: opacity 400ms var(--slow-bezier);
}

.westeck-page-loader--retract .westeck-page-loader__corner {
	transition:
		opacity 600ms var(--slow-bezier),
		transform 400ms var(--slow-bezier);
}

/* Past center by 20px H/V: TL overshoots right + down; BR overshoots left + up. */
.westeck-page-loader--retract .westeck-page-loader__corner--tl {
	transform: translate(calc(-50% + 20px), calc(-50% + 20px));
}

.westeck-page-loader--retract .westeck-page-loader__corner--br {
	transform: translate(calc(-50% - 20px), calc(-50% - 20px));
}

.westeck-page-loader--hide-images .westeck-page-loader__corner,
.westeck-page-loader--hide-images .westeck-page-loader__text {
	opacity: 0;
	transition: opacity 600ms var(--slow-bezier);
}

.westeck-page-loader--hide-shell {
	opacity: 0;
	pointer-events: none;
}
/* ACF mega menu ----------------------------------------------------- */

.acf-mega-menu,
.acf-mega-menu__inner,
.acf-mega-menu__nav,
.acf-mega-menu__end,
.acf-mega-menu__brand,
.acf-mega-menu__toggle,
.acf-mega-menu__cta,
.acf-mega-menu__menu,
.acf-mega-menu__menu > li {
	box-sizing: border-box;
}

.acf-mega-menu {
	display: flex;
	width: 100%;
	position: fixed;
	background: rgba(150,150,150, 0.2);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255,255,255, 0.1);
	height: 112px;
	align-content: center;
	align-items: center;
	padding: 0 20px;
	z-index: 10000;
}

.acf-mega-menu__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
}

.acf-mega-menu__brand {
	flex-shrink: 0;
	display: block;
	width: 200px;
	height: auto;
	position: relative;
	z-index: 2;
}

.acf-mega-menu__brand svg {
	display: block;
	width: 100%;
	height: auto;
}

.acf-mega-menu__brand path {
	color: var(--rock);
}

.acf-mega-menu__end {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-shrink: 1;
	min-width: 0;
	position: relative;
	z-index: 2;
}

.acf-mega-menu__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.acf-mega-menu__toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	color: var(--rock);
	transition: var(--transition-fast);
}

.acf-mega-menu__toggle:hover {
	color: var(--sun);
}

.acf-mega-menu__toggle:focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
}

.acf-mega-menu__toggle-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 24px;
}

.acf-mega-menu__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background-color: currentColor;
	border-radius: 1px;
	transition: var(--transition-fast);
	transform-origin: center;
}

.acf-mega-menu.is-nav-open .acf-mega-menu__toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.acf-mega-menu.is-nav-open .acf-mega-menu__toggle-bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.acf-mega-menu.is-nav-open .acf-mega-menu__toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.acf-mega-menu__menu {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 24px;
	height: 50px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.acf-mega-menu__menu ul,
.acf-mega-menu__menu li,
.acf-mega-menu__menu a {
	height: 100%;
}

.acf-mega-menu__menu a {
	position: relative;
	height: 100%;
	display: flex;
	align-content: center;
	align-items: center;
	font-size: var(--text-small);
	font-weight: 400;
	line-height: 1.6;
	color: var(--white);
	text-decoration: none;
	transition: var(--transition-fast);
	
}

.acf-mega-menu__menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 11px;
	height: 4px;
	border-radius: 999px;
	background-color: var(--sun);
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms var(--fast-bezier), bottom 150ms var(--fast-bezier);
}

.acf-mega-menu__menu a:hover::after,
.acf-mega-menu__menu a:focus-visible::after,
.acf-mega-menu__menu a.is-active::after {
	opacity: 1;
	bottom: 5px;
	transition: opacity 325ms var(--slow-bezier), bottom 325ms var(--slow-bezier);
}

.acf-mega-menu__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.acf-mega-menu__cta {
	background: var(--sun);
	color: var(--white);
	padding: 8px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-size: var(--text-small);
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
	transition: var(--transition-slow);
}

.acf-mega-menu,
.acf-mega-menu__inner,
.acf-mega-menu__brand,
.acf-mega-menu__brand path,
.acf-mega-menu .acf-mega-menu__menu,
.acf-mega-menu .acf-mega-menu__menu a,
.acf-mega-menu__cta {
	transition: var(--transition-fast);
}
.acf-mega-menu .acf-mega-menu__menu a {
	transition-property: color, background-color, transform, text-decoration-color;
}

.acf-mega-menu__toggle,
.acf-mega-menu__toggle-bar {
	transition: var(--transition-fast);
}

.acf-mega-menu,
.acf-mega-menu__brand,
.acf-mega-menu__logo {
	transition-duration: 150ms, 150ms, 150ms, 150ms, 150ms, 500ms, 500ms, 150ms;
}

.acf-mega-menu__brand svg,
.acf-mega-menu__logo svg {
	transition: var(--transition-fast);
	transition-duration: 150ms, 150ms, 150ms, 150ms, 150ms, 500ms, 500ms, 150ms;
}

@media screen and (max-width: 1024px) {

	/*
	 * Tablet: always use the compact bar (same as desktop after ~500px scroll).
	 * Scroll position / `.is-open` from JS does not change the bar height here.
	 */
	.acf-mega-menu {
		height: 60px;
		padding-left: 16px;
		padding-right: 16px;
		overflow-x: clip;
		background: rgba(255, 255, 255, 0.95);
	}

	.acf-mega-menu__inner {
		gap: 8px;
	}

	.acf-mega-menu__brand {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		max-width: min(140px, 42vw);
	}

	.acf-mega-menu__end {
		flex: 0 0 auto;
		max-width: calc(100% - min(140px, 42vw) - 8px);
		gap: 8px;
	}

	.acf-mega-menu__cta {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		padding: 8px 12px;
	}

	.acf-mega-menu:hover {
		background: var(--white);
	}

	.acf-mega-menu__brand path {
		color: var(--white);
	}

	.acf-mega-menu svg path {
		fill: var(--rock);
	}

	.acf-mega-menu .acf-mega-menu__cta {
		color: var(--white);
	}

	.acf-mega-menu__toggle {
		display: flex;
		color: var(--rock);
	}

	/* Fullscreen menu open: solid bar so logo + toggle stay readable over overlay. */
	.acf-mega-menu.is-nav-open {
		background: var(--white);
	}

	/* Mega menu primary nav is desktop-only; mobile uses #westeck-mobile-menu. */

	.acf-mega-menu__cta {
		font-size: var(--text-small);
	}
}

html.acf-mega-menu--nav-open {
	overflow: hidden;
}

.acf-mega-menu .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}



/* Header compact state ----------------------------------------------------- */
/* After 500px scroll, `.is-open` is set in `custom.js` for a compact header + logo. */

.acf-mega-menu:hover,
.acf-mega-menu.has-active-panel {
	background: var(--white);
}
.acf-mega-menu.is-focused-inside {
	background: var(--white);
}

.acf-mega-menu.is-open {
	height: 60px;
	background: rgba(255,255,255,0.95)
}
.acf-mega-menu.is-open:hover {
	background: var(--white);
}
.acf-mega-menu:hover .acf-mega-menu__menu a,
.acf-mega-menu.has-active-panel .acf-mega-menu__menu a,
.acf-mega-menu.is-open .acf-mega-menu__menu a,
.acf-mega-menu.is-focused-inside .acf-mega-menu__menu a {
	color: var(--rock);
}


.acf-mega-menu.is-open .acf-mega-menu__brand {
	width: 140px;
}
.acf-mega-menu:hover .acf-mega-menu__brand path,
.acf-mega-menu.has-active-panel .acf-mega-menu__brand path,
.acf-mega-menu.is-open .acf-mega-menu__brand path,
.acf-mega-menu.is-focused-inside .acf-mega-menu__brand path {
	color: var(--white);
}
.acf-mega-menu:hover svg path,
.acf-mega-menu.has-active-panel svg path,
.acf-mega-menu.is-open svg path,
.acf-mega-menu.is-focused-inside svg path {
	fill: var(--rock);
}
.acf-mega-menu:hover * .acf-mega-menu__cta ,
.acf-mega-menu.has-active-panel * .acf-mega-menu__cta,
.acf-mega-menu.is-open * .acf-mega-menu__cta,
.acf-mega-menu.is-focused-inside * .acf-mega-menu__cta {
	color: var(--white);
}

/* Project archive, post archive, and single posts — resting nav matches hover typography on a clear bar. */
body.westeck-archive-nav .acf-mega-menu:not(:hover):not(.has-active-panel):not(.is-focused-inside):not(.is-nav-open):not(.is-open) {
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-color: transparent;
}

body.westeck-archive-nav .acf-mega-menu:not(:hover):not(.has-active-panel):not(.is-focused-inside):not(.is-nav-open):not(.is-open) .acf-mega-menu__menu a {
	color: var(--rock);
}

body.westeck-archive-nav .acf-mega-menu:not(:hover):not(.has-active-panel):not(.is-focused-inside):not(.is-nav-open):not(.is-open) svg path {
	fill: var(--rock);
}

body.westeck-archive-nav .acf-mega-menu:not(:hover):not(.has-active-panel):not(.is-focused-inside):not(.is-nav-open):not(.is-open) .acf-mega-menu__brand path {
	color: var(--white);
}

body.westeck-archive-nav .acf-mega-menu:not(:hover):not(.has-active-panel):not(.is-focused-inside):not(.is-nav-open):not(.is-open) .acf-mega-menu__cta {
	color: var(--white);
}

/* Panel open / closing: keep dark nav type on archives (never flash white links). */
body.westeck-archive-nav .acf-mega-menu.has-active-panel .acf-mega-menu__menu a,
body.westeck-archive-nav .acf-mega-menu.has-active-panel.is-focused-inside .acf-mega-menu__menu a {
	color: var(--rock);
}

body.westeck-archive-nav .acf-mega-menu.has-active-panel svg path,
body.westeck-archive-nav .acf-mega-menu.has-active-panel.is-focused-inside svg path {
	fill: var(--rock);
}

body.westeck-archive-nav .acf-mega-menu.has-active-panel .acf-mega-menu__brand path,
body.westeck-archive-nav .acf-mega-menu.has-active-panel.is-focused-inside .acf-mega-menu__brand path {
	color: var(--white);
}

body.westeck-archive-nav .acf-mega-menu.has-active-panel .acf-mega-menu__cta,
body.westeck-archive-nav .acf-mega-menu.has-active-panel.is-focused-inside .acf-mega-menu__cta {
	color: var(--white);
}

@media screen and (max-width: 1024px) {
	body.westeck-archive-nav .acf-mega-menu:not(:hover):not(.has-active-panel):not(.is-nav-open):not(.is-open) {
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-color: transparent;
	}
}



/* Mega menu panels ----------------------------------------------------- */

/* Solid backdrop stays visible while switching panels (avoids see-through crossfade). */
.acf-mega-menu::after {
	content: '';
	position: fixed;
	left: 0;
	right: 0;
	top: 111px;
	height: 570px;
	background: var(--white);
	border-top: 1px solid var(--grey);
	border-bottom: 1px solid var(--grey);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 150ms var(--fast-bezier),
		visibility 0s linear 150ms;
}

.acf-mega-menu.has-active-panel::after {
	opacity: 1;
	visibility: visible;
	transition:
		opacity 150ms var(--fast-bezier),
		visibility 0s linear 0s;
}

/* Hide backdrop instantly on close — only the panel fades (prevents layer shift). */
.acf-mega-menu.has-active-panel.is-panel-closing::after {
	opacity: 0;
	visibility: hidden;
	transition: none;
}

.acf-mega-menu.is-open.has-active-panel::after {
	top: 59px;
}

@media screen and (max-width: 1024px) {
	.acf-mega-menu.has-active-panel::after {
		top: 59px;
	}
}

.mega-menu-panel {
	position: fixed;
	left: 0;
	right: 0;
	
	padding: 64px 32px 0;
	top: 111px; /* Slightly overlaps the header bottom on desktop */
	height: 570px;
	background: var(--white);
	border-top: 1px solid var(--grey);
	border-bottom: 1px solid var(--grey);
	z-index: 9999; /* Below the fixed header (10000) so logo + toggle stay on top */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition-property: opacity, visibility;
	transition-duration: 150ms;
	transition-timing-function: var(--fast-bezier);
	transition-delay: 0s, 150ms;
}

/* Invisible hover bridge: lets the cursor travel from a nav link
   down into the panel without crossing a "no-hover" gap. Sits ABOVE
   the header (z-index) so it isn't blocked by header pointer events,
   and its height adapts to the header state (full vs compact). */
.mega-menu-panel::before {
	content: '';
	position: fixed;
	left: 0;
	right: 0;
	top: 80px;
	height: 32px;
	background: transparent;
	z-index: 10001;
}

.acf-mega-menu.is-open .mega-menu-panel::before {
	top: 50px;
	height: 10px;
}

@media screen and (max-width: 1024px) {
	.mega-menu-panel::before {
		top: 50px;
		height: 10px;
	}
}

.acf-mega-menu.is-open .mega-menu-panel {
	top: 59px;
}

@media screen and (max-width: 1024px) {
	.mega-menu-panel {
		top: 59px;
	}
}

.mega-menu-panel.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s, 0s;
}

.mega-menu-panel.is-closing {
	pointer-events: none;
	top: 111px !important;
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	height: 570px !important;
	transition-property: opacity, visibility;
	transition-duration: 150ms;
	transition-timing-function: var(--fast-bezier);
	transition-delay: 0s, 150ms;
}

.acf-mega-menu.is-open .mega-menu-panel.is-closing {
	top: 59px !important;
}

@media screen and (max-width: 1024px) {
	.mega-menu-panel.is-closing {
		top: 59px !important;
	}
}

.mega-menu-panel.is-closing::before {
	display: none;
}

.mega-menu-panel.is-closing * {
	transition: none !important;
	animation: none !important;
}

/* Panel swap: hide/show without overlapping opacity fades. */
.mega-menu-panel.is-instant-hide {
	transition: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.mega-menu-panel.is-instant-show {
	transition: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.mega-menu-panel__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px 0;
	box-sizing: border-box;
}

.mega-menu-panel__columns {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(4, 1fr);
	justify-content: space-between;
	align-items: start;
}

.mega-menu-panel__column {
	flex: 1 1 200px;
	min-width: 0;
	opacity: 0;
	transform: translateX(40px);
	transition: none;
}

.mega-menu-panel.is-active .mega-menu-panel__column {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 300ms cubic-bezier(0.3, 0, 0.36, 1), transform 300ms cubic-bezier(0.3, 0, 0.36, 1);
}

/* Fade-out only on the panel shell — do not slide columns back on close. */
.mega-menu-panel.is-closing .mega-menu-panel__column {
	opacity: 1;
	transform: translateX(0);
	transition: none !important;
	transition-delay: 0s !important;
}

.mega-menu-panel.is-active .mega-menu-panel__column:nth-child(1) { transition-delay: 100ms; }
.mega-menu-panel.is-active .mega-menu-panel__column:nth-child(2) { transition-delay: 225ms; }
.mega-menu-panel.is-active .mega-menu-panel__column:nth-child(3) { transition-delay: 350ms; }
.mega-menu-panel.is-active .mega-menu-panel__column:nth-child(4) { transition-delay: 475ms; }
.mega-menu-panel.is-active .mega-menu-panel__column:nth-child(5) { transition-delay: 600ms; }
.mega-menu-panel.is-active .mega-menu-panel__column:nth-child(6) { transition-delay: 725ms; }

@media (prefers-reduced-motion: reduce) {
	.mega-menu-panel__column,
	.mega-menu-panel.is-closing .mega-menu-panel__column {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.mega-menu-panel.is-active .mega-menu-panel__column {
		transition-delay: 0s;
	}
}

/* Gutenberg Columns block — stagger top-level columns only (ignore nested columns). */
.mega-menu-panel .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column {
	opacity: 0;
	transform: translateX(40px);
	transition: none;
}

.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 300ms cubic-bezier(0.3, 0, 0.36, 1), transform 300ms cubic-bezier(0.3, 0, 0.36, 1);
}

.mega-menu-panel.is-closing .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column {
	opacity: 1;
	transform: translateX(0);
	transition: none !important;
	transition-delay: 0s !important;
}

.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column:nth-child(1) { transition-delay: 100ms; }
.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column:nth-child(2) { transition-delay: 225ms; }
.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column:nth-child(3) { transition-delay: 350ms; }
.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column:nth-child(4) { transition-delay: 475ms; }
.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column:nth-child(5) { transition-delay: 600ms; }
.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column:nth-child(6) { transition-delay: 725ms; }

@media (prefers-reduced-motion: reduce) {
	.mega-menu-panel .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column,
	.mega-menu-panel.is-closing .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.mega-menu-panel.is-active .wp-block-columns:not(.wp-block-column .wp-block-columns) > .wp-block-column {
		transition-delay: 0s;
	}
}

.mega-menu-panel__column--post_card {
	flex: 0 1 280px;
	max-width: 100%;
	min-width: 0;
}

/* Mega menu uses [post_card] shortcode — keep media clipped even when the block is not on the page. */
.mega-menu-panel__column--post_card .product_card__grid-item {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mega-menu-panel__column--post_card .product_card {
	border-radius: 16px;
	width: 100%;
	max-width: 100%;
}

.mega-menu-panel__column--post_card .product_card .product_card__link {
	display: block;
	width: 100%;
	text-decoration: none;
}

.mega-menu-panel__column--post_card .product_card .product_card__media {
	position: relative;
	aspect-ratio: 0.75;
	border-radius: 16px;
	overflow: hidden;
}

.mega-menu-panel__column--post_card .product_card .product_card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
}

.mega-menu-panel__wysiwyg > *:first-child {
	margin-top: 0;
}

.mega-menu-panel__wysiwyg > *:last-child {
	margin-bottom: 0;
}










/* Single post — blog body copy (post content in main only; not Keep Reading / footer) */
.single-post main .wp-block-post-content > :is(h2, h4, p),
.single-post main .wp-block-post-content > :not(.wp-block-freeform) :is(h2, h4, p),
.single-post main .entry-content > :is(h2, h4, p),
.single-post main .entry-content > :not(.wp-block-freeform) :is(h2, h4, p) {
	margin-bottom: 30px !important;
}

.single-post main .wp-block-post-content h2,
.single-post main .entry-content h2 {
	text-wrap: balance;
}

/* Classic block — sibling gap above (block-layout.css); h4 also needs space below like paragraphs */
.single-post .wp-block-freeform :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p, li, ul, ol, div:not(.wp-caption)) {
	margin-bottom: 0 !important;
}

.single-post .wp-block-freeform :is(h4, .h4),
.single-post .wp-block-post-content .wp-block-freeform :is(h4, .h4) {
	margin-bottom: 30px !important;
}

.single-post h4 a {
	font-size: inherit;
}

/* Classic block — front-end spacing reinforcement (after global margin resets above) */
.wp-block-freeform :is(p, div, ul, ol, blockquote, figure, table, hr, pre) + :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
.wp-block-post-content .wp-block-freeform :is(p, div, ul, ol, blockquote, figure, table, hr, pre) + :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
.wp-block-freeform > div + :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
.wp-block-post-content .wp-block-freeform > div + :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
	margin-block-start: var(--westeck-layout-heading-gap, calc(var(--wp--style--block-gap, 32px) * 1.618)) !important;
	margin-top: var(--westeck-layout-heading-gap, calc(var(--wp--style--block-gap, 32px) * 1.618)) !important;
	margin-bottom: 0 !important;
}

/* Figure.wp-caption spacing — classic block OR legacy inline post content (loads last) */
.single-post .wp-block-post-content > :is(figure.wp-caption, div.wp-caption),
.single-post .wp-block-post-content .wp-block-freeform :is(figure, figure.wp-caption, div.wp-caption),
.wp-block-post-content:is(.is-layout-flow, .is-layout-constrained) > :is(figure.wp-caption, div.wp-caption),
.wp-block-post-content .wp-block-freeform :is(figure, figure.wp-caption, div.wp-caption),
.wp-block-freeform :is(figure, figure.wp-caption, div.wp-caption) {
	margin-block-start: var(--westeck-layout-block-gap-double, calc(var(--wp--style--block-gap, 32px) * 2)) !important;
	margin-block-end: var(--westeck-layout-block-gap-double, calc(var(--wp--style--block-gap, 32px) * 2)) !important;
	margin-top: var(--westeck-layout-block-gap-double, calc(var(--wp--style--block-gap, 32px) * 2)) !important;
	margin-bottom: var(--westeck-layout-block-gap-double, calc(var(--wp--style--block-gap, 32px) * 2)) !important;
}

/* Installation details (page content) ----------------------------------------------------- */

.installlinks {
	padding: 0;
}

.installlinks li {
	width: 100%;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.installlinks li a {
	min-width: 40px;
}

.installlinks li a img {
	width: 40px;
	transition: all 0.3s ease;
}

.installlinks li a:hover img {
	filter: var(--blue-hover-filter);
}

.installlinks li span {
	display: inline-flex;
	flex-grow: 1;
	align-items: center;
	font-weight: 500;
	padding-right: 20px;
}

/* Footer ----------------------------------------------------- */

/* Footer social links ----------------------------------------------------- */


.social-links {
	display: flex;
	flex-direction: row;
	gap: 32px;
	list-style-type: none !important;
	padding: 0;
}
.social-links li {
	display: inline;
}

/* Footer section headings — h3 (or any level) with .h5 class in the block editor */
footer :is(h1, h2, h3, h4, h5, h6).h5,
footer :is(h1, h2, h3, h4, h5, h6).wp-block-heading.h5 {
	font-size: var(--text-h5);
	font-family: var(--font-secondary);
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: 0.01em;
	color: var(--cloud);
	margin: 0 0 16px;
	padding: 0;
}

/* [westeck_contact_info] — layout only; color comes from parent context (footer, mega menu, etc.) */

.westeck-contact-info {
	font-family: var(--font-primary);
}

.westeck-contact-info__name {
	margin: 0 0 16px;
}

.westeck-contact-info .contact-numbers {
	list-style-type: none;
	padding-left: 0;
	margin: 0;
}

.westeck-contact-info .contact-numbers li {
	padding-left: 0;
	margin-left: 0;
	line-height: 1.75;
	display: block;
	align-content: center;
	align-items: center;
}

.westeck-contact-info .contact-numbers .address {
	margin-bottom: 16px;
}

.contactProp {
	display: inline-block;
	min-width: 5.5rem;
	padding-right: 8px;
	white-space: nowrap;
}

.westeck-contact-info .contactProp,
.westeck-contact-info a {
	align-self: center;
	color: inherit;
}

.westeck-contact-info a {
	text-decoration: none;
}

.westeck-contact-info a:hover,
.westeck-contact-info a:focus {
	text-decoration: underline;
}

/* Footer nav text — contact info, menu links, footer paragraphs */
footer .westeck-contact-info,
footer .westeck-contact-info *,
footer .wp-block-navigation .wp-block-navigation-item__content,
footer .wp-block-navigation .wp-block-navigation-item__label {
	font-family: var(--font-primary);
	font-size: var(--text-small);
	font-weight: var(--font-primary-weight);
}

footer p {
	font-family: var(--font-primary);
	font-weight: var(--font-primary-weight);
}

footer .westeck-contact-info,
footer .westeck-contact-info :is(*, a, a span, a:hover, a:focus, a:focus-visible, [itemprop="faxNumber"]) {
	color: var(--cloud-lt) !important;
}

/* Legal / utility paragraphs (not in Navigation menus) */
footer p,
footer p :is(a, a:hover, a:focus, a:focus-visible) {
	color: var(--cloud-lt) !important;
}

footer p.small a,
footer .small a {
	font-size: var(--text-small);
}

footer a,
footer a:hover,
footer a:focus,
footer a:focus-visible {
	text-decoration: none;
}


/* Footer menus — Gutenberg Navigation blocks --------------------------------------------- */

footer .wp-block-navigation,
footer.wp-block-template-part .wp-block-navigation {
	width: 100%;
}

footer .wp-block-navigation .wp-block-navigation__container {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

footer .wp-block-navigation .wp-block-navigation-item {
	width: 100%;
}

footer .wp-block-navigation .wp-block-navigation-item__content,
footer .wp-block-navigation .wp-block-navigation-item__label {
	line-height: 1.5;
}

footer .wp-block-navigation .wp-block-navigation-item__content {
	display: inline-block;
	padding: 0;
}

/* Column title = first top-level link in each footer nav (matches legacy Divi menus). */
footer .wp-block-navigation:not(.footer-menu-cta) .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content {
	font-size: var(--text-h5);
	font-family: var(--font-secondary);
	font-weight: 300;
	color: var(--cloud);
	margin-bottom: 16px;
}

/* All other top-level links — cloud-lt (beats theme.json / body link colour). */
footer .wp-block-navigation:not(.footer-menu-cta) .wp-block-navigation__container > .wp-block-navigation-item:not(:first-child) > .wp-block-navigation-item__content,
footer .wp-block-navigation:not(.footer-menu-cta) .wp-block-navigation__container > .wp-block-navigation-item:not(:first-child) > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	color: var(--cloud-lt) !important;
}

footer .wp-block-navigation:not(.footer-menu-cta) .wp-block-navigation__container > .wp-block-navigation-item:not(:first-child) > .wp-block-navigation-item__content:hover,
footer .wp-block-navigation:not(.footer-menu-cta) .wp-block-navigation__container > .wp-block-navigation-item:not(:first-child) > .wp-block-navigation-item__content:focus-visible {
	color: var(--cloud) !important;
}

footer .wp-block-navigation .wp-block-navigation__submenu-container {
	list-style: none;
	margin: 0;
	padding: 4px 0 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

footer .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
footer .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content .wp-block-navigation-item__label {
	color: var(--cloud-lt) !important;
	margin-bottom: 0;
}

/* Footer CTA column — add CSS class "footer-menu-cta" to that Navigation block in the editor. */
footer .wp-block-navigation.footer-menu-cta .wp-block-navigation-item__content {
	font-size: var(--text-h5);
	font-family: var(--font-secondary);
	font-weight: 300;
	color: var(--cloud);
	margin-bottom: 0;
}

.footer-logo-and-social {
	display: flex;
	align-items: flex-end;

}


/* Block - hero home ----------------------------------------------------- */

/* .block-hero-home {

} */


/* Block - intro with mask (legacy Divi class; use westeck/masked-image block) ----- */
.block-intro-with-mask {
	overflow-x: hidden;
	
}
.block-intro-with-mask .wp-block-group,
.block-intro-with-mask > * {
	width: 100%;
	max-width: 550px;
}

.block-intro-with-mask .mask-image {
	-webkit-mask-image: url('img/mask-zigzag.svg');
	mask-image: url('img/mask-zigzag.svg');
	mask-repeat: no-repeat;  
	mask-size: 1000px 500px;

	object-fit: cover;
	aspect-ratio: 2;
	overflow: hidden;

	width: 1000px !important;
	height: 500px !important;

	position: absolute;
	left: -10vw;
	top: 50%;
	transform: translatey(-50%);
}

/* Block - bold banner ----------------------------------------------------- */
/* .block-bold-banner {
	
} */

/* Block - cta product ----------------------------------------------------- */
/* .block-cta-product .cta content {
	
} */


/* Block - product cards ----------------------------------------------------- */
/* .block-layer-product-cards {
	
} */

.block-product-cards .product-card {
	aspect-ratio: 0.75;
	overflow: hidden;
}

/* Project grid ----------------------------------------------------- */

.project-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px 32px;
	align-items: stretch;
}

/* Span classes must be on direct .project-grid children (block wrapper or shortcode grid-item). */
.project-grid > .post-card-block.product_card__grid-item--span-1,
.project-grid > .product_card__grid-item.product_card__grid-item--span-1 {
	grid-column: span 1;
}

.project-grid > .post-card-block.product_card__grid-item--span-2,
.project-grid > .product_card__grid-item.product_card__grid-item--span-2 {
	grid-column: span 2;
}

.project-grid > .post-card-block.product_card__grid-item--span-3,
.project-grid > .product_card__grid-item.product_card__grid-item--span-3 {
	grid-column: span 3;
}

.project-grid > .post-card-block.product_card__grid-item--span-4,
.project-grid > .product_card__grid-item.product_card__grid-item--span-4 {
	grid-column: span 4;
}

/* WP Columns row: keep equal column tracks (images/cards default to min-content width). */
.wp-block-columns {
	align-items: stretch;
}

.wp-block-columns > .wp-block-column {
	min-width: 0;
}

/* Grid cell + inner card follow row height (driven by fixed-ratio single-column items). */
.project-grid .product_card__grid-item {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

.project-grid .product_card__grid-item > .product_card {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

.project-grid .product_card .product_card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
}

.project-grid .product_card--text-below .product_card__title {
	flex-shrink: 0;
}

/* Default or width=1: fixed media aspect (single-column track). */
.project-grid .product_card__grid-item:not(.product_card__grid-item--span-2):not(.product_card__grid-item--span-3):not(.product_card__grid-item--span-4) .product_card__media {
	aspect-ratio: 0.75;
	flex: 0 0 auto;
}

/* Width 2–4: media flexes to row height so cards align with single-column height. */
.project-grid .product_card__grid-item--span-2 .product_card__media,
.project-grid .product_card__grid-item--span-3 .product_card__media,
.project-grid .product_card__grid-item--span-4 .product_card__media {
	flex: 1 1 auto;
	min-height: 0;
	aspect-ratio: auto;
}

.project-grid .product_card__grid-item--span-2 .product_card__image,
.project-grid .product_card__grid-item--span-3 .product_card__image,
.project-grid .product_card__grid-item--span-4 .product_card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Showrooms grid — see blocks/showrooms/style.css */

/*
.block-product-cards .product-card * {
	color: var(--white)
}
.block-product-cards .product-card img { 
	position: absolute !important;
	top: 0;
	left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover; 
}	

*/

/* Archive templates (archive-project.html, home.html posts index) ---------- */

.archive-template {
	--westeck-archive-max: 1440px;
	--westeck-archive-gutter: 20px;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--westeck-archive-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--westeck-archive-gutter);
	padding-right: var(--westeck-archive-gutter);
	overflow-x: visible;
}

/* Archive shells (main + inner group) — no trailing space before footer */
.wp-site-blocks > main.wp-block-group:has(.archive-template),
main.wp-block-group:has(> .archive-template),
main.wp-block-group.archive-template {
	margin-block-end: 0 !important;
	padding-block-end: 0 !important;
}

main.wp-block-group:has(> .single-post-template),
main.wp-block-group:has(.single-post-template) {
	margin-block-end: 0 !important;
}

main.wp-block-group:has(.archive-template) > .archive-template,
main.wp-block-group > .wp-block-group.archive-template {
	margin-block-end: 0 !important;
	padding-block-end: 0 !important;
}

/* Legacy: archive-template on alignfull <main> from customized templates. */
main.archive-template.alignfull,
.archive-template.alignfull {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--westeck-archive-max);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--westeck-archive-gutter);
	padding-right: var(--westeck-archive-gutter);
}

.archive-template > .archive-header,
.archive-template > .wp-block-group.archive-header,
.archive-template > .project-archive,
.archive-template > .post-archive,
.archive-template > .wp-block-westeck-project-archive,
.archive-template > .wp-block-westeck-post-archive {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

/* Archive CTA — full viewport width (breaks out of .archive-template max-width). */
.archive-template > .archive-template-cta,
.archive-template > .wp-block-block:last-child,
.archive-template > .wp-block-group.archive-template-cta,
.archive-template > .wp-block-group.alignfull:last-child:not(.archive-header),
.archive-template > .wp-block-cover:last-child {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 0;
	padding-right: 0;
	margin-block-end: 0 !important;
	padding-block-end: 0 !important;
}

.archive-template > .archive-template-cta .wp-block-cover,
.archive-template > .archive-template-cta > .wp-block-group,
.archive-template > .wp-block-group.archive-template-cta .wp-block-cover,
.archive-template > .wp-block-cover:last-child {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0;
	margin-right: 0;
}

.archive-template > .archive-header,
.archive-template > .wp-block-group.archive-header {
	padding-top: 228px !important;
	margin-top: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.archive-template .project-archive,
.archive-template .post-archive {
	padding-top: 48px;
	padding-bottom: 80px;
}

.single-post-template > .wp-block-post-content,
.single-post-template > .single-post-body {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	margin-block-end: 0 !important;
	padding-block-end: 0 !important;
}

.archive-header {
	padding-top: 228px !important;
	margin-top: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.archive-template .archive-header .wp-block-query-title,
.archive-template .archive-header h1 {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

/* Block - testimonials (block + [testimonials] shortcode) ------------------ */

#sneaky-reveal {
	position: fixed;
	width: 100%;
	height: 50vh !important;
	top: 50vh;
	bottom: auto;
}

[data-scroll-parallax].westeck-parallax-ready {
	will-change: transform;
}

/* Cover block — clip parallaxed background image */
.wp-block-cover {
	overflow: hidden;
}

/* Cover layers — hero/CTA h1s must not inherit blockGap or heading top spacing */
:is(.wp-block-cover, .wp-block-cover-image) :is(h1, h1.wp-block-heading, h1.wp-block-post-title) {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	padding-block-start: 0 !important;
	padding-top: 0 !important;
}

/* Hero covers — see css/motion.css (.westeck-cover-image-preload first paint). */
.project-hero-cover.is-project-hero-pending:not(.is-project-hero-ready) .wp-block-cover__image-background:not(.westeck-parallax-ready) {
	opacity: 0;
	visibility: hidden;
}

/* Home hero: visibility in css/home-hero.css (pending / ready only — not global preload). */
.home-hero-cover .wp-block-cover__image-background.westeck-cover-image-preload:not(.westeck-parallax-pending):not(.westeck-parallax-ready) {
	opacity: unset;
	visibility: unset;
}

.wp-block-cover .wp-block-cover__image-background {
	transform-origin: center center;
}

.wp-block-cover .wp-block-cover__image-background.westeck-parallax-ready {
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.westeck-cover-image-preload:not(.westeck-parallax-ready),
	.project-hero-cover.is-project-hero-pending .wp-block-cover__image-background:not(.westeck-parallax-ready) {
		opacity: 1 !important;
		visibility: visible !important;
	}
}


/* On-page nav — additional class on List / Group blocks */
.on-page-nav-menu {
	list-style: none;
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	padding: 15px 20px;
	background: var(--cloud-lt);
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	text-align: center;
}

.on-page-nav-menu li {
	display: inline;
}

.on-page-nav-menu li a {
	margin-inline: 20px;
	font-size: var(--text-small);
	font-weight: 400;
	text-decoration: none;
}

.on-page-nav-menu.is-target-missing,
.on-page-nav-menu li.is-target-missing,
.on-page-nav-menu a.is-target-missing {
	display: none !important;
}

/* WP sticky sets top: 0 only — no editor control for offset; clear fixed mega menu */
.anchor-menu ul {
	width: var(--westeck-content-width-text, 853px);
	max-width: 100%;
}

.anchor-menu.is-position-sticky {
	top: calc(var(--westeck-mega-menu-height, 112px) + var(--wp-admin--admin-bar--position-offset, 0px));
}

/* On-page nav — mobile sticky bar (below 60px mega menu) */
@media screen and (max-width: 1024px) {
	.anchor-menu.is-position-sticky.is-anchor-menu-stuck {
		box-sizing: border-box;
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: 0;
		padding-right: 0;
		border-radius: 0 !important;
		overflow: hidden;
		z-index: 9990;
	}

	.anchor-menu.is-position-sticky.is-anchor-menu-stuck #on-page-nav-menu,
	.anchor-menu.is-position-sticky.is-anchor-menu-stuck .on-page-nav-menu {
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		margin-inline: 0;
		border: none;
		border-radius: 0 !important;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.anchor-menu.is-position-sticky.is-anchor-menu-stuck #on-page-nav-menu::-webkit-scrollbar,
	.anchor-menu.is-position-sticky.is-anchor-menu-stuck .on-page-nav-menu::-webkit-scrollbar {
		display: none;
	}
}