/* SABZ International design system. Tokens first, then components.
   Visual system follows the "Safety Product" Figma Make design (Michroma + Manrope, gray-900 neutrals,
   16/24px cards), with SABZ green in place of the design's red #e01f27. */

:root {
	--sabz-green: #0e6b47;
	--sabz-green-dark: #0a5237;
	--sabz-green-deep: #083f2b;
	--sabz-green-tint: #e7f2ec;
	--sabz-navy: #111827;
	--sabz-navy-2: #1a1a1a;
	--sabz-ink: #171719;
	--sabz-muted: #4b5563;
	--sabz-line: #e5e7eb;
	--sabz-bg: #ffffff;
	--sabz-bg-alt: #f9fafb;
	--sabz-input-bg: #f0efec;
	--sabz-amber: var(--sabz-green);
	--sabz-amber-dark: var(--sabz-green-dark);
	--sabz-radius: 4px;
	--sabz-radius-md: 12px;
	--sabz-radius-lg: 16px;
	--sabz-radius-xl: 24px;
	--sabz-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	--sabz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--sabz-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	--sabz-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	/* Same edges as the Kadence header: its content width minus its edge padding (1280 - 2 x 24 = 1232px). */
	--sabz-gutter: var(--global-content-edge-padding, 1.5rem);
	--sabz-section: 80px;
	--sabz-max: calc(var(--global-content-width, 1280px) - 2 * var(--global-content-edge-padding, 1.5rem));
	--sabz-font-display: "Michroma", sans-serif;
	--sabz-font-body: "Manrope", sans-serif;
}

body {
	color: var(--sabz-ink);
	background: var(--sabz-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
	color: var(--sabz-navy);
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.entry-content h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin: 0 0 0.5em; }
.entry-content h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2; margin: 0 0 0.6em; }
.entry-content h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.4em; }
.entry-content p,
.entry-content li { text-wrap: pretty; }
.entry-content a:not(.wp-block-button__link) { color: var(--sabz-green); text-underline-offset: 3px; }
.entry-content a:not(.wp-block-button__link):hover { color: var(--sabz-green-dark); }

:focus-visible { outline: 3px solid var(--sabz-amber); outline-offset: 2px; }

/* Sections ---------------------------------------------------------------- */

.entry-content > .sabz-section { padding: var(--sabz-section) var(--sabz-gutter); margin: 0; }
/* Kadence sizes .alignfull to 100vw, which includes the scrollbar; these bands already span the full-width content area. */
.entry-content > .sabz-section,
.entry-content > .sabz-hero { width: auto; max-width: none; }
.sabz-section > * { max-width: var(--sabz-max); margin-left: auto; margin-right: auto; }
.sabz-section--alt { background: var(--sabz-bg-alt); }
.sabz-section--tint { background: var(--sabz-green-tint); }
.sabz-section--dark { background: var(--sabz-navy); color: #e8eef4; }
.sabz-section--dark h1,
.sabz-section--dark h2,
.sabz-section--dark h3 { color: #fff; }
.sabz-section--dark a:not(.wp-block-button__link) { color: #9fe0bf; }
.sabz-section--tight { padding-top: 28px !important; padding-bottom: 28px !important; }

.sabz-eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sabz-green);
	margin: 0 0 0.75em !important;
}
.sabz-section--dark .sabz-eyebrow,
.sabz-hero .sabz-eyebrow { color: var(--sabz-amber); }
.entry-content ul.sabz-specs,
.entry-content ul.sabz-logos,
.entry-content ul.sabz-checks,
.entry-content ol.sabz-steps { padding-left: 0; }
.sabz-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--sabz-muted); max-width: 720px; }
.sabz-section--dark .sabz-lede { color: #c7d3df; }
.sabz-center { text-align: center; }
.sabz-center .sabz-lede { margin-left: auto; margin-right: auto; }
.sabz-head { margin-bottom: 36px !important; }

/* Hero -------------------------------------------------------------------- */

.entry-content > .sabz-hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(14, 107, 71, 0.45), transparent 60%),
		linear-gradient(180deg, var(--sabz-navy) 0%, var(--sabz-navy-2) 100%);
	color: #e8eef4;
	padding: clamp(48px, 8vw, 104px) var(--sabz-gutter);
	margin: 0;
}
/* Kadence wraps group content in .wp-block-group__inner-container, so match the columns at any depth. */
.sabz-hero .wp-block-columns { max-width: var(--sabz-max); margin-inline: auto; gap: clamp(24px, 4vw, 56px); align-items: center !important; }
.sabz-hero h1 { color: #fff; }
.sabz-hero .sabz-lede { color: #c7d3df; }
.sabz-hero__answer { font-size: 1.05rem; color: #dbe5ee; max-width: 640px; }
.sabz-hero .sabz-specs { margin-top: 20px; }
.sabz-authorised {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #bfe8d3;
	margin: 0 0 16px !important;
}
.sabz-authorised::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c38f; box-shadow: 0 0 0 4px rgba(52, 195, 143, 0.2); }

.sabz-specs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sabz-specs li {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	font-size: 0.9rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}
.sabz-section:not(.sabz-section--dark) .sabz-specs li { color: var(--sabz-ink); border-color: var(--sabz-line); background: #fff; }

/* Buttons ----------------------------------------------------------------- */

.entry-content .wp-block-button__link,
.sabz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--sabz-radius);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.sabz-btn--primary { background: var(--sabz-amber); color: var(--sabz-navy); }
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.sabz-btn--primary:hover { background: var(--sabz-amber-dark); color: var(--sabz-navy); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--sabz-green); border-color: currentColor; }
.sabz-section--dark .wp-block-button.is-style-outline .wp-block-button__link,
.sabz-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }
.entry-content .wp-block-button__link:active,
.sabz-btn:active { transform: translateY(1px); }
.wp-block-buttons { gap: 12px; }

/* Cards ------------------------------------------------------------------- */


.sabz-card {
	background: #fff;
	border: 1px solid var(--sabz-line);
	border-radius: var(--sabz-radius-lg);
	padding: 24px;
	box-shadow: var(--sabz-shadow);
	position: relative;
	gap: 0 !important;
	align-items: stretch !important;
	height: 100%;
	box-sizing: border-box;
}
.sabz-card > * { margin-top: 0 !important; margin-bottom: 0.6em !important; }
.sabz-card > :last-child { margin-bottom: 0 !important; }
.sabz-card h3 a { color: var(--sabz-navy) !important; text-decoration: none; }
.sabz-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sabz-card:has(h3 a):hover { border-color: var(--sabz-green); }
.sabz-card:has(h3 a):focus-within { outline: 3px solid var(--sabz-amber); outline-offset: 2px; }
.sabz-card__more { margin-top: auto !important; padding-top: 8px; font-weight: 700; color: var(--sabz-green); }
.sabz-card__more::after { content: " \2192"; }
.sabz-card p { color: var(--sabz-muted); }
.sabz-card .sabz-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sabz-green);
	background: var(--sabz-green-tint);
	padding: 4px 10px;
	border-radius: 999px;
	align-self: flex-start;
}

/* Big product doors on the homepage */
.sabz-doors > .sabz-card {
	padding: 32px 28px;
	background: linear-gradient(180deg, #fff 0%, var(--sabz-bg-alt) 100%);
	min-height: 260px;
}
.sabz-doors h3 { font-size: 1.45rem; }
.sabz-doors .sabz-door-icon {
	width: 52px; height: 52px;
	border-radius: 12px;
	background: var(--sabz-green);
	color: #fff;
	display: grid; place-items: center;
	font-weight: 800; font-size: 1.2rem;
	margin-bottom: 18px !important;
}

/* Trust strip ------------------------------------------------------------- */

.sabz-trust { border-bottom: 1px solid var(--sabz-line); background: #fff; }
.sabz-trust .wp-block-columns { align-items: center !important; gap: 16px !important; }
.sabz-trust__stat { text-align: center; margin: 0 !important; }
.sabz-trust__stat strong { display: block; font-size: 1.6rem; color: var(--sabz-navy); line-height: 1.1; }
.sabz-trust__stat span { font-size: 0.85rem; color: var(--sabz-muted); }
.sabz-logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; padding: 0; margin: 24px auto 0 !important; }
.sabz-logos li {
	margin: 0;
	min-width: 140px;
	padding: 14px 18px;
	text-align: center;
	border: 1px dashed #b9c6c0;
	border-radius: var(--sabz-radius);
	color: var(--sabz-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Proof points, steps ----------------------------------------------------- */

.sabz-proof > .wp-block-column { border-top: 3px solid var(--sabz-green); padding-top: 18px; }
.sabz-proof h3 { font-size: 1.1rem; }
.sabz-proof p { color: var(--sabz-muted); margin: 0; }
.sabz-section--dark .sabz-proof p { color: #c7d3df; }
.sabz-section--dark .sabz-proof > .wp-block-column { border-top-color: var(--sabz-amber); }

.sabz-steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.sabz-steps li {
	counter-increment: step;
	margin: 0;
	padding: 22px 20px 20px;
	background: #fff;
	border: 1px solid var(--sabz-line);
	border-radius: var(--sabz-radius-lg);
	color: var(--sabz-muted);
}
.sabz-steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-weight: 800;
	font-size: 0.85rem;
	color: var(--sabz-green);
	margin-bottom: 6px;
}
.sabz-steps li strong { display: block; color: var(--sabz-navy); font-size: 1.05rem; margin-bottom: 4px; }

.sabz-checks { list-style: none; padding: 0; }
.sabz-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.sabz-checks li::before {
	content: "";
	position: absolute; left: 0; top: 0.35em;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--sabz-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Tables ------------------------------------------------------------------ */

.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--sabz-line); border-radius: var(--sabz-radius); overflow: hidden; font-size: 0.95rem; }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--sabz-line); padding: 12px 14px; text-align: left; vertical-align: top; }
.entry-content .wp-block-table thead th { background: var(--sabz-navy); color: #fff; font-weight: 700; border-bottom: 0; }
.entry-content .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: var(--sabz-bg-alt); }

/* FAQ --------------------------------------------------------------------- */

.sabz-faq .wp-block-details {
	border: 1px solid var(--sabz-line);
	border-radius: var(--sabz-radius);
	background: #fff;
	padding: 0;
	margin: 0 0 10px;
}
.sabz-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 52px 18px 20px;
	font-weight: 700;
	color: var(--sabz-navy);
	position: relative;
	min-height: 44px;
}
.sabz-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.sabz-faq .wp-block-details summary::after {
	content: "+";
	position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; font-weight: 400; color: var(--sabz-green);
}
.sabz-faq .wp-block-details[open] summary::after { content: "−"; }
.sabz-faq .wp-block-details > :not(summary) { padding: 0 20px; color: var(--sabz-muted); }
.sabz-faq .wp-block-details > :last-child { padding-bottom: 18px; margin-bottom: 0; }

/* Placeholders for SABZ assets ------------------------------------------- */

.sabz-placeholder {
	border: 2px dashed #b9c6c0;
	border-radius: var(--sabz-radius-lg);
	background: repeating-linear-gradient(45deg, #f4f7f5, #f4f7f5 12px, #eef3f0 12px, #eef3f0 24px);
	color: var(--sabz-muted);
	display: grid;
	place-items: center;
	text-align: center;
	padding: 24px;
	min-height: 220px;
	font-size: 0.9rem;
	font-weight: 600;
}
.sabz-placeholder--tall { min-height: 360px; }
.sabz-hero .sabz-placeholder { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); color: #c7d3df; }
.sabz-asset-note { font-size: 0.85rem; color: var(--sabz-muted); font-style: italic; }

/* Quote, testimonial ------------------------------------------------------ */

.sabz-quote { border-left: 4px solid var(--sabz-green); padding: 8px 0 8px 22px; margin: 0; }
.sabz-quote p { font-size: 1.2rem; color: var(--sabz-navy); }
.sabz-quote cite { font-style: normal; color: var(--sabz-muted); font-size: 0.95rem; }

/* CTA band + form ---------------------------------------------------------- */

.sabz-cta-band > .wp-block-columns { gap: clamp(24px, 4vw, 56px); }
.sabz-form {
	background: #fff;
	color: var(--sabz-ink);
	border: 1px solid var(--sabz-line);
	border-radius: var(--sabz-radius-lg);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: var(--sabz-shadow);
}
.sabz-form__title { font-size: 1.25rem; font-weight: 800; color: var(--sabz-navy); margin: 0 0 16px; }
.sabz-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.sabz-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sabz-field--full { grid-column: 1 / -1; }
.sabz-field label { font-weight: 600; font-size: 0.9rem; color: var(--sabz-ink); }
.sabz-optional { font-weight: 400; color: var(--sabz-muted); }
.sabz-field input,
.sabz-field select,
.sabz-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	font: inherit;
	color: var(--sabz-ink);
	background: #fff;
	border: 1px solid #a9b6b0;
	border-radius: 8px;
}
.sabz-field input:focus,
.sabz-field select:focus,
.sabz-field textarea:focus { border-color: var(--sabz-green); outline: 3px solid rgba(14, 107, 71, 0.25); outline-offset: 0; }
.sabz-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 0; }
.sabz-form__note { font-size: 0.85rem; color: var(--sabz-muted); }
.sabz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Breadcrumbs ------------------------------------------------------------- */

.sabz-crumbs { max-width: var(--sabz-max); margin: 0 auto; padding: 14px var(--sabz-gutter); font-size: 0.85rem; }
.sabz-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.sabz-crumbs li { margin: 0; color: var(--sabz-muted); }
.sabz-crumbs li + li::before { content: "/"; margin: 0 8px; color: #a9b6b0; }
.sabz-crumbs a { color: var(--sabz-muted); text-decoration: none; }
.sabz-crumbs a:hover { color: var(--sabz-green); text-decoration: underline; }

/* WhatsApp + mobile bar --------------------------------------------------- */

.sabz-wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #1f9d55;
	color: #fff;
	display: grid; place-items: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.sabz-wa:hover { background: #17834a; color: #fff; }
.sabz-mbar { display: none; }

@media (max-width: 767px) {
	.sabz-mbar {
		display: grid;
		grid-template-columns: 1fr 2fr;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 95;
		background: #fff;
		border-top: 1px solid var(--sabz-line);
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		gap: 8px;
	}
	.sabz-mbar a {
		min-height: 48px;
		display: grid; place-items: center;
		border-radius: var(--sabz-radius);
		font-weight: 700;
		text-decoration: none;
		border: 2px solid var(--sabz-green);
		color: var(--sabz-green);
	}
	.sabz-mbar .sabz-mbar__primary { background: var(--sabz-amber); border-color: var(--sabz-amber); color: var(--sabz-navy); }
	.sabz-wa { bottom: 84px; right: 16px; width: 52px; height: 52px; }
	body { padding-bottom: 72px; }
	.sabz-form__grid { grid-template-columns: 1fr; }
	.sabz-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.sabz-hero .wp-block-button { width: 100%; }
	.sabz-hero .wp-block-button__link { width: 100%; }
}

/* Header and mega menu (Kadence) ----------------------------------------- */

.site-header .header-navigation .menu > li > a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-header .header-button { font-weight: 700; white-space: nowrap; }
.site-header .site-title { font-weight: 800; color: var(--sabz-navy); letter-spacing: -0.01em; white-space: nowrap; font-size: 1.3rem; }
@media (min-width: 1025px) and (max-width: 1360px) {
	.site-header .header-navigation .menu > li > a { padding-left: 0.5em !important; padding-right: 0.5em !important; font-size: 14px; }
}
@media (min-width: 1025px) {
	.header-navigation .menu { flex-wrap: nowrap !important; }
	.header-navigation .menu-item.sabz-mega:hover > .sub-menu,
	.header-navigation .menu-item.sabz-mega:focus-within > .sub-menu,
	.header-navigation .menu-item.sabz-mega.menu-item--toggled-on > .sub-menu { display: grid !important; }
	.header-navigation .menu-item.sabz-mega > .sub-menu {
		grid-template-columns: repeat(3, minmax(200px, 1fr));
		width: min(760px, 90vw) !important;
		padding: 16px !important;
		gap: 4px 16px;
	}
	.header-navigation .menu-item.sabz-mega > .sub-menu > li > a { font-weight: 700; }
	.header-navigation .menu-item.sabz-mega > .sub-menu .sub-menu {
		position: static !important;
		display: block !important;
		opacity: 1 !important;
		visibility: inherit !important;
		clip: auto !important;
		height: auto !important;
		box-shadow: none !important;
		background: transparent !important;
		transform: none !important;
		width: auto !important;
		padding: 0 0 8px !important;
	}
	.header-navigation .menu-item.sabz-mega > .sub-menu .sub-menu a { font-weight: 400; padding-top: 4px !important; padding-bottom: 4px !important; }
	.header-navigation .menu-item.sabz-mega > .sub-menu .dropdown-nav-toggle { display: none; }
}

/* Footer ------------------------------------------------------------------ */

.site-footer { font-size: 0.95rem; }
.site-footer .widget-title,
.site-footer h2.widget-title { font-size: 0.85rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: #fff !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.sabz-footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sabz-footer-badges span { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; padding: 4px 10px; font-size: 0.8rem; font-weight: 700; color: #fff; }

/* Blog and guides --------------------------------------------------------- */

.sabz-toc { background: var(--sabz-bg-alt); border: 1px solid var(--sabz-line); border-radius: var(--sabz-radius); padding: 18px 22px; }
.sabz-toc ol { margin: 8px 0 0; }
.sabz-meta { color: var(--sabz-muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Photos ------------------------------------------------------------------ */

.entry-content .sabz-photo { margin: 0; }
.entry-content .sabz-photo img { display: block; width: 100%; border-radius: var(--sabz-radius-lg); }
.entry-content .sabz-photo--scene img { aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .sabz-photo--product img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 16px; box-sizing: border-box; }
.sabz-section:not(.sabz-section--dark) .sabz-photo--product img { border: 1px solid var(--sabz-line); }
.sabz-hero .sabz-photo img { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }

/* =========================================================================
   Figma design layer: values from the "Safety Product" Make file (theme.css,
   App.tsx, Footer.tsx), mapped to SABZ tokens. Red #e01f27 -> SABZ green.
   ========================================================================= */

body,
button,
input,
select,
textarea,
label { font-family: var(--sabz-font-body); }
body { font-size: 16px; line-height: 1.5; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.sabz-form__title { font-family: var(--sabz-font-display); font-weight: 400; letter-spacing: -0.03em; color: var(--sabz-navy); }
/* Headings on dark bands and the hero: white (the rule above otherwise wins on source order). */
.entry-content .sabz-section--dark :is(h1, h2, h3, h4),
.entry-content .sabz-hero :is(h1, h2, h3, h4) { color: #fff; }
.entry-content h1 { font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: 1.25; }       /* text-5xl -> lg:text-7xl */
.entry-content h2 { font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: 1.15; margin-bottom: 16px; } /* text-4xl -> lg:text-5xl */
.entry-content h3 { font-size: 1.25rem; line-height: 1.4; }                               /* text-xl */
.sabz-lede { font-size: 1.125rem; line-height: 1.625; color: var(--sabz-muted); max-width: 42rem; } /* text-lg gray-600 */

:focus-visible { outline: 2px solid var(--sabz-green); outline-offset: 2px; }

/* Section heads are centered with a badge above the title. */
.sabz-head { text-align: center; margin-bottom: 48px !important; }
.sabz-head .sabz-lede { margin-left: auto; margin-right: auto; }

/* Badge (shadcn Badge): replaces the uppercase eyebrow. */
.sabz-eyebrow {
	display: inline-flex !important;
	align-items: center;
	width: fit-content;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.33;
	padding: 2px 8px;
	border-radius: var(--sabz-radius);
	color: var(--sabz-green);
	background: rgba(14, 107, 71, 0.1);
	margin: 0 0 16px !important;
}
.sabz-section--dark .sabz-eyebrow { color: #fff; background: rgba(255, 255, 255, 0.2); padding: 8px 16px; margin-bottom: 24px !important; }

/* Hero ---------------------------------------------------------------------- */

.entry-content > .sabz-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 80px var(--sabz-gutter) 128px;
	background:
		radial-gradient(circle 144px at calc(40px + 144px) calc(80px + 144px), rgba(14, 107, 71, 0.5), transparent 100%),
		radial-gradient(circle 192px at calc(100% - 40px - 192px) calc(100% - 80px - 192px), rgba(14, 107, 71, 0.28), transparent 100%),
		radial-gradient(circle 160px at 50% 50%, rgba(8, 63, 43, 0.35), transparent 100%),
		linear-gradient(to bottom right, #111827, #1a1a1a 50%, #000);
}
/* Grid texture at 5% (design: absolute inset-0 opacity-5 pattern). Cell size estimated from the render. */
.entry-content > .sabz-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.05;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
	background-size: 60px 60px;
}
/* Wave divider into the next (white) section. */
.entry-content > .sabz-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 48px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 48h1440V24C1200 0 960 8 720 8S240 0 0 24z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.sabz-hero .wp-block-columns { position: relative; z-index: 1; gap: 48px; }
@media (min-width: 1024px) { .entry-content > .sabz-hero { padding-top: 128px; padding-bottom: 176px; } }
.sabz-hero h1 { color: #fff; margin-bottom: 24px; }
.sabz-hero__answer { font-size: 1.25rem; line-height: 1.625; color: #d1d5db; max-width: 36rem; } /* text-xl gray-300 */
.sabz-hero .sabz-eyebrow { color: #fff; background: var(--sabz-green); padding: 8px 16px; margin: 0 12px 24px 0 !important; float: left; }
.sabz-hero .sabz-authorised {
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 500;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--sabz-radius);
	padding: 7px 16px;
	margin: 0 0 24px !important;
}
.sabz-hero .sabz-authorised::before { display: none; }
.sabz-hero h1 { clear: both; }
.sabz-hero .sabz-specs li { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); border-radius: var(--sabz-radius); font-size: 0.875rem; }
.sabz-hero .sabz-photo img,
.sabz-hero .sabz-placeholder {
	border-radius: var(--sabz-radius-xl);
	border: 4px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--sabz-shadow-2xl);
	box-sizing: border-box;
}
.sabz-hero .wp-block-button__link { min-height: 56px; padding: 0 32px; }   /* size lg, h-14 px-8 */
.sabz-hero .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.sabz-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); }

/* Buttons (shadcn Button: rounded-md, text-sm, font-medium) ---------------- */

.entry-content .wp-block-button__link,
.sabz-btn {
	border-radius: var(--sabz-radius);
	font-size: 0.875rem;
	font-weight: 500;
	border-width: 1px;
	min-height: 48px;
	padding: 0 24px;
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.sabz-btn--primary { background: var(--sabz-green); color: #fff; }
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.sabz-btn--primary:hover { background: var(--sabz-green-dark); color: #fff; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--sabz-green); color: var(--sabz-green); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--sabz-green); color: #fff; }

/* Trust strip: stat cards that overlap the hero (StatsSection, -mt-16). ---- */

.sabz-trust { border-bottom: 0; background: linear-gradient(to bottom, #fff, var(--sabz-bg-alt)); }
.entry-content > .sabz-hero + .sabz-trust { position: relative; z-index: 2; margin-top: -64px !important; background: transparent; padding-top: 0 !important; }
.sabz-trust .wp-block-columns { gap: 24px !important; align-items: stretch !important; }
.sabz-trust .wp-block-column {
	background: #fff;
	border-radius: var(--sabz-radius-lg);
	box-shadow: var(--sabz-shadow-lg);
	padding: 24px;
}
.sabz-trust__stat { text-align: left; }
.sabz-trust__stat strong { font-size: 2.25rem; font-weight: 500; color: var(--sabz-navy); line-height: 1.11; margin-bottom: 4px; }
.sabz-trust__stat span { font-size: 1rem; color: var(--sabz-muted); }
.sabz-logos { margin-top: 48px !important; gap: 16px; }
.sabz-logos li { border: 1px solid var(--sabz-line); background: #fff; border-radius: var(--sabz-radius-md); color: #374151; min-width: 160px; padding: 20px 16px; }

/* Cards (CategoryCard / resource cards) ------------------------------------ */

.sabz-card { border: 1px solid var(--sabz-line); border-radius: var(--sabz-radius-lg); box-shadow: none; padding: 24px; transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease; }
.sabz-card:has(h3 a):hover { border-color: var(--sabz-line); box-shadow: var(--sabz-shadow-xl); transform: translateY(-4px); }
.sabz-card:has(h3 a):focus-within { outline: 2px solid var(--sabz-green); }
.sabz-card h3 { font-size: 1.25rem; }
.sabz-card p { font-size: 0.875rem; line-height: 1.43; color: var(--sabz-muted); }
.sabz-card__more { font-size: 0.875rem; font-weight: 500; color: var(--sabz-green) !important; }
.sabz-card .sabz-tag { text-transform: none; letter-spacing: 0; font-weight: 500; color: #fff; background: var(--sabz-green); border-radius: var(--sabz-radius); padding: 2px 8px; }
.sabz-doors > .sabz-card { background: #fff; box-shadow: var(--sabz-shadow-lg); border-color: transparent; padding: 24px; min-height: 0; }
.sabz-doors .sabz-door-icon { border-radius: var(--sabz-radius-md); background: linear-gradient(to bottom right, var(--sabz-green), var(--sabz-green-dark)); margin-bottom: 24px !important; }

/* Process steps, proof -------------------------------------------------------- */

.sabz-steps li { border-radius: var(--sabz-radius-lg); border-color: var(--sabz-line); }
.sabz-steps li strong { font-family: var(--sabz-font-display); font-weight: 400; font-size: 1rem; letter-spacing: -0.03em; }
.sabz-section--dark .sabz-proof > .wp-block-column { border-top-color: var(--sabz-green); }
.sabz-section--dark .sabz-proof p { color: #9ca3af; }

/* Dark sections (certificates / footer tone) ------------------------------ */

.sabz-section--dark { background: linear-gradient(to bottom right, #111827, #1f2937); color: #d1d5db; }
.sabz-section--dark .sabz-lede { color: #d1d5db; }

/* CTA band: primary gradient (from-[#e01f27] via-[#c01820] to-[#a01519]) in green. */
.entry-content > .sabz-cta-band { background: linear-gradient(to bottom right, var(--sabz-green), var(--sabz-green-dark) 50%, var(--sabz-green-deep)); color: #fff; }
.sabz-cta-band .sabz-lede { color: rgba(255, 255, 255, 0.85); }
.sabz-cta-band a:not(.wp-block-button__link) { color: #fff !important; text-decoration: underline; }
.sabz-cta-band .sabz-checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e6b47' stroke-width='2.2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); }

/* Tables, FAQ ---------------------------------------------------------------- */

.entry-content .wp-block-table table { border-radius: var(--sabz-radius-md); border-color: var(--sabz-line); }
.entry-content .wp-block-table thead th { background: var(--sabz-navy); font-weight: 600; }
.sabz-faq .wp-block-details { border-color: var(--sabz-line); border-radius: var(--sabz-radius-md); }
.sabz-faq .wp-block-details summary { font-weight: 600; }

/* Forms (Input: bg input-background, transparent border, rounded-md) ----- */

.sabz-form { border-radius: var(--sabz-radius-lg); border-color: transparent; box-shadow: var(--sabz-shadow-xl); }
.sabz-form__title { font-size: 1.25rem; margin-bottom: 20px; }
.sabz-field label { font-weight: 500; font-size: 0.875rem; }
.sabz-field input,
.sabz-field select,
.sabz-field textarea { min-height: 48px; background: var(--sabz-input-bg); border: 1px solid transparent; border-radius: var(--sabz-radius); }
.sabz-field input:focus,
.sabz-field select:focus,
.sabz-field textarea:focus { background: #fff; border-color: var(--sabz-green); outline: 3px solid rgba(14, 107, 71, 0.5); }

/* Media ------------------------------------------------------------------------ */

.entry-content .sabz-photo img { border-radius: var(--sabz-radius-xl); box-shadow: var(--sabz-shadow-2xl); }
.sabz-placeholder { border-radius: var(--sabz-radius-xl); }

/* Header: utility bar + white bar + white dropdowns (ModernHeader) ------- */

.sabz-topbar { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 0.875rem; color: #fff; }
.sabz-topbar a { color: #fff !important; text-decoration: none; }
.sabz-topbar a:hover { text-decoration: underline; }
.sabz-topbar__group { display: flex; gap: 24px; }
.site-top-header-wrap .site-header-row-container-inner { background: var(--sabz-green) !important; }
.site-top-header-wrap .site-header-row { display: flex !important; }
.site-top-header-wrap .site-header-top-section-left { flex: 1 1 100%; }
.site-top-header-wrap .site-header-top-section-left > .site-header-item,
.site-top-header-wrap .header-html,
.site-top-header-wrap .header-html-inner { width: 100%; flex: 1 1 100%; }
.site-header .header-navigation .menu > li > a { font-weight: 500; font-size: 16px; color: #374151; }
.site-header .header-navigation .menu > li > a:hover { color: var(--sabz-green); }
.site-header .site-title { font-family: var(--sabz-font-body); font-weight: 600; font-size: 1.25rem; color: var(--sabz-navy); }
.site-header .header-button { border-radius: var(--sabz-radius) !important; font-size: 0.875rem; font-weight: 500; background: var(--sabz-green) !important; color: #fff !important; }
.site-header .header-button:hover { background: var(--sabz-green-dark) !important; }
.site-header .header-navigation .sub-menu { background: #fff !important; border: 1px solid var(--sabz-line); border-radius: var(--sabz-radius-md); box-shadow: var(--sabz-shadow-xl) !important; }
.site-header .header-navigation .sub-menu a { color: #374151 !important; border-bottom: 0 !important; }
.site-header .header-navigation .sub-menu a:hover { color: var(--sabz-green) !important; background: var(--sabz-green-tint) !important; }
@media (min-width: 1025px) and (max-width: 1360px) {
	.site-header .header-navigation .menu > li > a { font-size: 14px; }
}

/* Footer (bg-gray-900 text-gray-300, links text-sm gray-400) ---------------- */

.site-footer .site-middle-footer-inner-wrap,
.site-footer .site-bottom-footer-inner-wrap,
.site-footer .site-footer-row-container-inner { background: #111827 !important; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid #1f2937; }
.site-footer { color: #d1d5db; }
.site-footer .widget-title,
.site-footer h2.widget-title { font-family: var(--sabz-font-body); font-size: 1rem !important; font-weight: 500; letter-spacing: 0; text-transform: none; margin-bottom: 16px; }
.site-footer li { margin-bottom: 12px; font-size: 0.875rem; }
.site-footer a { color: #9ca3af !important; text-decoration: none; }
.site-footer a:hover { color: #fff !important; }
.site-footer p { font-size: 0.875rem; color: #9ca3af; }
.sabz-footer-badges span { border-color: #374151; border-radius: var(--sabz-radius); font-weight: 500; }

/* Mobile bar uses the primary colour, not amber. */
@media (max-width: 767px) {
	.sabz-mbar a { border-radius: var(--sabz-radius); font-weight: 500; }
	.sabz-mbar .sabz-mbar__primary { background: var(--sabz-green); border-color: var(--sabz-green); color: #fff; }
	.entry-content > .sabz-hero { padding-bottom: 112px; }
}

/* Card grids: grid-cols-1 md:grid-cols-2 lg:grid-cols-3, gap-8 (design). */
.entry-content .sabz-cards.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
@media (min-width: 768px) {
	.entry-content .sabz-cards--2.is-layout-grid,
	.entry-content .sabz-cards--3.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
	.entry-content .sabz-cards--3.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* H1: design is text-5xl (48px) -> lg:text-7xl (72px). SABZ headlines carry long words
   ("environment", "Commissioning") that overflow at 48px on phones and at 72px in the
   hero column below 1280px, so: 36px < 768, 48px from 768, 56px from 1024, 72px from 1280. */
.entry-content h1 { font-size: 2.25rem; overflow-wrap: break-word; }
@media (min-width: 768px) { .entry-content h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .entry-content h1 { font-size: 3.5rem; } }
@media (min-width: 1280px) { .entry-content h1 { font-size: 4.5rem; } }

/* Accessibility fixes over the design (WCAG 2.2: 1.4.11 non-text contrast, 2.4.7/2.4.13 focus).
   Green ring is 2.7:1 on the dark hero and 1:1 on the green CTA band, so dark and green
   surfaces get a white ring (17.7:1 / 9.2:1). White form cards inside them keep green. */
.sabz-hero :focus-visible,
.sabz-section--dark :focus-visible,
.sabz-cta-band :focus-visible,
.site-footer :focus-visible,
.site-top-header-wrap :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sabz-cta-band .sabz-form :focus-visible,
.sabz-section--dark .sabz-form :focus-visible { outline-color: var(--sabz-green); }

/* Field edges: the design's #f0efec fill is 1.15:1 on white. A gray-500 border is 4.8:1. */
.sabz-field input,
.sabz-field select,
.sabz-field textarea { border: 1px solid #6b7280; }
.sabz-field input:focus,
.sabz-field select:focus,
.sabz-field textarea:focus { border-color: var(--sabz-green); outline: 2px solid var(--sabz-green); outline-offset: 0; }

/* Brand logos (live site "Our Brands"). Logos sit on white tiles: several are dark-on-transparent. */
.entry-content .sabz-logos--brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.entry-content .sabz-logos--brands li {
	display: grid;
	place-items: center;
	width: 168px;
	min-width: 0;
	height: 80px;
	padding: 12px 16px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--sabz-line);
	border-radius: var(--sabz-radius-md);
}
.entry-content .sabz-logos--brands img { display: block; max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.sabz-section:not(.sabz-trust) .sabz-logos--brands { justify-content: flex-start; }
.sabz-brand-logo { height: 64px; display: flex; align-items: center; margin-bottom: 16px !important; }
.sabz-brand-logo img { max-height: 48px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 767px) {
	.entry-content .sabz-logos--brands { gap: 12px; }
	.entry-content .sabz-logos--brands li { width: calc(50% - 6px); height: 72px; }
}

/* SABZ logo: light version in the header, white-text version in the dark footer. */
.site-header .custom-logo { width: auto; max-height: 56px; }
.sabz-footer-logo { margin-bottom: 20px !important; }
.sabz-footer-logo img { display: block; height: 48px; width: auto; }

/* Hero outline button: white text on the dark hero (the general outline rule above is equally specific and later). */
.entry-content .sabz-hero .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .sabz-section--dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.entry-content .sabz-hero .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .sabz-section--dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Every page's hero fills the first screen: header + breadcrumbs + hero = 100% of the viewport height.
   Header is 64px, plus the 30px top bar from 1025px; breadcrumbs are 48px on one line (all pages but home).
   min-height (not height) so content never clips on short screens. */
:root { --sabz-header-h: 64px; --sabz-crumbs-h: 0px; }
@media (min-width: 1025px) { :root { --sabz-header-h: 94px; } }
body:has(.sabz-crumbs) { --sabz-crumbs-h: 48px; }
.entry-content > .sabz-hero {
	min-height: calc(100vh - var(--sabz-header-h) - var(--sabz-crumbs-h));
	min-height: calc(100svh - var(--sabz-header-h) - var(--sabz-crumbs-h));
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.sabz-hero > .wp-block-group__inner-container { width: 100%; }
@media (min-width: 1024px) {
	/* Room at the foot for the stat cards that overlap the hero by 64px. */
	.entry-content > .sabz-hero { padding-top: 56px; padding-bottom: 120px; }
	/* Headline scales with screen height and width so it fits one screen: 40px on laptops up to 72px (design lg). */
	.sabz-hero h1 { font-size: clamp(2.5rem, min(5.2vh, 3.9vw), 4.5rem); margin-bottom: 16px; }
	.sabz-hero .wp-block-column:first-child { flex-basis: 64% !important; }
	.sabz-hero .wp-block-column:last-child { flex-basis: 36% !important; }
}
@media (min-width: 1024px) and (max-height: 860px) {
	/* Short laptop screens (1366x768, 1280x720): tighter spacing so the hero still fits one screen. */
	.entry-content > .sabz-hero { padding-top: 32px; padding-bottom: 104px; }
	.sabz-hero .sabz-eyebrow { margin-bottom: 16px !important; }
	.sabz-hero__answer { font-size: 1.125rem; }
	/* Product and city heroes carry a row of feature pills; tighten it so they fit too. */
	.sabz-hero .sabz-specs { margin-top: 8px; margin-bottom: 16px; }
	.sabz-hero .sabz-specs li { padding: 6px 12px; }
}
@media (max-width: 1023px) {
	/* Phones and tablets: the photo would stack under the text and push the hero past one screen. */
	.sabz-hero .wp-block-column:last-child { display: none; }
	.entry-content > .sabz-hero { padding-top: 40px; padding-bottom: 96px; }
}
@media (max-width: 767px) {
	/* Phones: the hero ends above the fixed Call / Get a Quote bar (72px), so header + hero + bar = one screen. */
	.entry-content > .sabz-hero {
		min-height: calc(100vh - var(--sabz-header-h) - var(--sabz-crumbs-h) - 72px);
		min-height: calc(100svh - var(--sabz-header-h) - var(--sabz-crumbs-h) - 72px);
		padding-top: 32px;
		padding-bottom: 88px;
	}
	.sabz-hero h1 { font-size: 1.875rem; margin-bottom: 16px; }
	.sabz-hero .sabz-eyebrow { margin-bottom: 16px !important; }
	.sabz-hero__answer { font-size: 1rem; line-height: 1.5; }
	/* The fixed bar already carries "Get a Quote"; drop a hero outline button that goes to the same page. */
	.sabz-hero .wp-block-button.is-style-outline:has(a[href*="request-a-quote"]) { display: none; }
}
@media (min-width: 1024px) and (max-height: 740px) {
	/* Very short screens (1280x720): the feature pills repeat details shown in the page body. */
	.sabz-hero .sabz-specs { display: none; }
}
@media (max-width: 767px) {
	/* Phones: inner heroes carry more than the home hero, so trim what repeats elsewhere to keep one screen. */
	.sabz-hero .sabz-specs { display: none; }
	.sabz-hero .wp-block-buttons { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
	.sabz-hero .wp-block-buttons > .wp-block-button { width: auto; flex: 1 1 auto; }
	.sabz-hero .wp-block-buttons .wp-block-button__link { width: 100%; padding: 0 16px; }
	/* Breadcrumbs collapse to one "‹ Parent" back link; the H1 names the current page. */
	.sabz-crumbs li { display: none; }
	.sabz-crumbs li:nth-last-child(2) { display: block; }
	.sabz-crumbs li:nth-last-child(2)::before { content: "\2039"; margin: 0 6px 0 0; color: var(--sabz-muted); }
}

/* Card photos: full-bleed to the card edges, same 4:3 frame as other photos. */
.entry-content .sabz-card > .sabz-photo { margin: -24px -24px 16px !important; }
.entry-content .sabz-card > .sabz-photo img { border-radius: var(--sabz-radius-lg) var(--sabz-radius-lg) 0 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--sabz-line); aspect-ratio: 16 / 10; }

/* Model photo row above a model table. */
.sabz-models { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); justify-content: center; gap: 16px; }
.sabz-models li { margin: 0; background: #fff; border: 1px solid var(--sabz-line); border-radius: var(--sabz-radius-lg); padding: 12px; text-align: center; }
.sabz-models img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.sabz-models span { display: block; margin-top: 8px; font-size: 0.875rem; font-weight: 700; color: var(--sabz-navy); }
@media (max-width: 767px) { .sabz-models { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.entry-content .sabz-card > .sabz-photo { order: -1; }

/* A lone card on the last row spans the full row. With a photo, it turns sideways (photo left, text right)
   so it reads as a deliberate wide card, not a leftover. */
@media (min-width: 768px) and (max-width: 1023px) {
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(odd):has(> .sabz-photo) { padding-left: calc(33.333% + 32px); min-height: 200px; justify-content: center; }
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(odd) > .sabz-photo { position: absolute; inset: 0 auto 0 0; width: 33.333%; margin: 0 !important; }
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(odd) > .sabz-photo img {
		width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
		border-radius: var(--sabz-radius-lg) 0 0 var(--sabz-radius-lg); border-bottom: 0; border-right: 1px solid var(--sabz-line);
	}
}
@media (min-width: 1024px) {
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(3n+1):has(> .sabz-photo) { padding-left: calc(33.333% + 32px); min-height: 200px; justify-content: center; }
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(3n+1) > .sabz-photo { position: absolute; inset: 0 auto 0 0; width: 33.333%; margin: 0 !important; }
	.entry-content .sabz-cards--3.is-layout-grid > .sabz-card:last-child:nth-child(3n+1) > .sabz-photo img {
		width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
		border-radius: var(--sabz-radius-lg) 0 0 var(--sabz-radius-lg); border-bottom: 0; border-right: 1px solid var(--sabz-line);
	}
}

/* Why SABZ: four columns are too narrow on tablets ("maintenance" overflows), so use a 2x2 grid there. */
@media (min-width: 600px) and (max-width: 1023px) {
	.entry-content .sabz-proof.wp-block-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
.sabz-proof h3 { overflow-wrap: break-word; hyphens: auto; }

/* Mega menu fixes: columns inside the panel are plain lists (no box, no Kadence min-height: 100%),
   and the current page is shown in brand green instead of Kadence's near-black active background. */
@media (min-width: 1025px) {
	.site-header .header-navigation .menu-item.sabz-mega > .sub-menu .sub-menu {
		border: 0 !important; border-radius: 0 !important; min-height: 0 !important; margin: 0 !important;
	}
	.site-header .header-navigation .menu-item.sabz-mega > .sub-menu { align-items: start; }
	.site-header .header-navigation .menu-item.sabz-mega > .sub-menu a { width: 100% !important; border-radius: var(--sabz-radius); box-sizing: border-box; }
}
.site-header .header-navigation .sub-menu :is(.current-menu-item, .current_page_item) > a,
.site-header .header-navigation .sub-menu :is(.current-menu-item, .current_page_item) > a:hover {
	background: var(--sabz-green-tint) !important; color: var(--sabz-green) !important; font-weight: 600;
}
.site-header .header-navigation .sub-menu a:focus-visible { outline: 2px solid var(--sabz-green); outline-offset: -2px; }

/* Product doors with a photo: the number badge overlaps the photo's bottom edge. */
.entry-content .sabz-doors > .sabz-card > .sabz-photo + .sabz-door-icon { position: relative; margin-top: -48px !important; box-shadow: 0 0 0 4px #fff; }

/* Quote and consultation forms ------------------------------------------------
   Scoped to .sabz-form so theme paragraph margins and the select background
   shorthand above can't leak in. */
.sabz-form .sabz-form__grid { gap: 20px 16px; }
.sabz-form .sabz-field { margin: 0 !important; gap: 8px; }
.sabz-form .sabz-field label { font-size: 0.875rem; font-weight: 500; color: var(--sabz-navy); }
.sabz-form .sabz-field :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--sabz-navy);
	background-color: #fff;
	border: 1px solid #858c97; /* 3.4:1 on white, the non-text contrast minimum */
	border-radius: var(--sabz-radius);
	box-shadow: none;
}
.sabz-form .sabz-field :is(input, select, textarea):hover { border-color: #4b5563; }
.sabz-form .sabz-field :is(input, select, textarea):focus { border-color: var(--sabz-green); outline: 2px solid var(--sabz-green); outline-offset: 0; }
.sabz-form .sabz-field ::placeholder { color: #6b7280; opacity: 1; }
.sabz-form .sabz-field select {
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23374151' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	cursor: pointer;
}
.sabz-form .sabz-field select:has(option[value=""]:checked) { color: #6b7280; }
.sabz-form .sabz-field textarea { min-height: 112px; resize: vertical; }
.sabz-form .sabz-field :is(input, select, textarea):user-invalid { border-color: #b42318; }
.sabz-form .sabz-form__actions { margin: 24px 0 0 !important; }
@media (max-width: 767px) {
	.sabz-form .sabz-form__grid { gap: 16px; }
	.sabz-form .sabz-form__actions .sabz-btn { width: 100%; }
}
/* Spec-sheet form has three fields: give the email the full row instead of a lone half column. */
.sabz-form--download .sabz-form__grid > .sabz-field:nth-child(3) { grid-column: 1 / -1; }

/* -------------------------------------------------------------------------
 * Gated downloads table and popup
 * ---------------------------------------------------------------------- */
.entry-content .sabz-downloads td { vertical-align: middle; }
.entry-content .sabz-downloads td.sabz-downloads__action { text-align: right; white-space: nowrap; width: 1%; }
.entry-content a.sabz-btn--primary,
.entry-content a.sabz-btn--primary:hover { color: #fff; text-decoration: none; }
.sabz-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }

.sabz-dl-modal {
	width: min(460px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 32px 28px 28px;
	border: 0;
	border-radius: var(--sabz-radius-lg);
	box-shadow: var(--sabz-shadow-2xl);
	background: #fff;
	color: var(--sabz-ink);
}
.sabz-dl-modal::backdrop { background: rgba(17, 24, 39, 0.6); }
.sabz-dl-modal[open] { animation: sabz-dl-in 0.18s ease-out; }
@keyframes sabz-dl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sabz-dl-modal[open] { animation: none; } }
.sabz-dl-modal__close {
	position: absolute; top: 10px; right: 10px;
	width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: transparent; color: var(--sabz-muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.sabz-dl-modal__close:hover { background: var(--sabz-bg-alt); color: var(--sabz-ink); }
.sabz-dl-modal .sabz-form__title { margin: 0 32px 8px 0; font-size: 1.15rem; }
.sabz-dl-modal__lede { margin: 0 0 20px; color: var(--sabz-muted); font-size: 0.95rem; }
.sabz-dl-form__fields { display: grid; gap: 14px; }
.sabz-dl-form__fields .sabz-field input { width: 100%; }
.sabz-dl-form__error { margin: 14px 0 0; color: #b42318; font-size: 0.9rem; font-weight: 600; }
.sabz-dl-modal .sabz-form__actions .sabz-btn { width: 100%; }
.sabz-dl-done .sabz-form__note { margin: 14px 0 0; }
/* Theme paragraph margins win over .sabz-field inside entry-content; pin the popup spacing. */
.sabz-dl-modal p.sabz-field { margin: 0; }
.sabz-dl-modal p.sabz-form__actions { margin: 20px 0 0; }
.sabz-dl-modal p.sabz-dl-form__error { margin: 14px 0 0; }
.sabz-dl-modal p.sabz-dl-modal__lede { margin: 0 0 20px; }
