/*
Theme Name: APlus Lead
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aplus-lead
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* Map section variables onto the theme palette — reference preset slugs,
   never hardcode hex here. */
:root {
	--site-bg: var( --wp--preset--color--background );
	--site-raise: var( --wp--preset--color--raise );
	--site-text: var( --wp--preset--color--text );
	--site-muted: var( --wp--preset--color--muted );
	--site-soft: var( --wp--preset--color--soft );
	--site-accent: var( --wp--preset--color--primary );
	--site-accent-ink: var( --wp--preset--color--accent-ink );
	--site-field: var( --wp--preset--color--field );
	--site-line: rgba( 232, 236, 241, 0.11 );
	--site-line-strong: rgba( 232, 236, 241, 0.22 );
	--site-ease: cubic-bezier( 0.22, 1, 0.36, 1 );
	--site-section: clamp( 4.5rem, 9vw, 8rem );
}

/* === reset === */
*,
*::before,
*::after { box-sizing: border-box; }
body { background: var( --site-bg ); color: var( --site-text ); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var( --site-accent ); color: var( --site-accent-ink ); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.entry-content a { color: var( --site-accent ); }

/* === type === */
.mono { font-family: var( --wp--preset--font-family--ibm-plex-mono ); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; }
.display { font-size: clamp( 2.6rem, 5.4vw, 5.4rem ); line-height: 1.0; letter-spacing: -0.05em; font-weight: 500; }
.lede { color: var( --site-muted ); font-size: clamp( 1.05rem, 1.3vw, 1.2rem ); line-height: 1.6; max-width: 46ch; }

/* section rhythm on landing pages */
main.is-flush > * + * { margin-block-start: 0; }
/* .section only ever wants vertical rhythm here — the `padding: Y 0` shorthand it used to
   carry also zeroed left/right, which silently cancelled the has-global-padding inset that
   mobile depends on (desktop hid the bug because centering margins fill the gap there). */
/* === type === */
/* === header === */
.site-header-wrap { background: var( --site-bg ); border-bottom: 1px solid var( --site-line ); position: sticky; top: 0; z-index: 50; }
.site-header-wrap .brand { gap: 0.7rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var( --site-line-strong ); border-radius: 50%; color: var( --site-accent ); margin: 0; }
.site-header-wrap a, .site-footer a { text-decoration: none; color: inherit; }
/* Brand logo: a light/white lockup for the dark header, a blue one for
   light-background variants (e.g. "lean"). Both sit in the DOM; CSS shows
   whichever one reads — no raster swap, no JS. */
.brand .logo-chip { margin: 0; }
.brand .logo-chip a { display: block; line-height: 0; }
.brand .logo-chip img { height: 40px; width: auto; display: block; }
.brand .logo-chip .logo-on-light { display: none; }
body.variant-lean .brand .logo-chip .logo-on-dark { display: none; }
body.variant-lean .brand .logo-chip .logo-on-light { display: block; }
.header-actions { gap: 1.6rem; }
.header-phone { margin: 0; }
.header-phone a { color: var( --site-text ); }
.header-cta .wp-element-button { min-height: 40px; padding: 0.35rem 1.1rem; font-size: 0.86rem; display: inline-flex; align-items: center; }
@media ( max-width: 700px ) { .header-phone { display: none; } }

/* === buttons === */
.wp-element-button { cursor: pointer; font-family: var( --wp--preset--font-family--ibm-plex-mono ); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; font-weight: 500; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; }
/* Link element color (primary) must not override button text — buttons stay dark-text on ivory. */
.wp-block-button__link, .wp-block-button a { color: var( --site-bg ) !important; }
.wp-block-button .wp-element-button:hover, .wp-block-button a:hover { color: var( --site-bg ); }

/* === hero === */
.hero { padding: clamp( 3rem, 7vw, 6rem ) 1 clamp( 3rem, 5vw, 5rem ); }
.hero .lede { margin-top: 1.4rem; margin-bottom: 0; }
/* === buttons === */
/* === hero === */
/* === sections === */
/* Block-gap reset for theme-made grid/flex rows.
   These wrappers are core block groups (is-layout-flow), so WordPress adds a
   flow block-gap margin-block-start to every child except the first. Once the
   theme turns the wrapper into a grid/flex row, `gap` owns the spacing and
   that leftover margin just drops every item but the first down by one gap —
   which is why the first card in a row sat higher than its neighbours. */
.head-row > *,
.tl-bands > *,
.tl-stages > *,
.inspect-grid > *,
.form-top > *,
.rail-scroll > *,
.compare > *,
.audience-grid > *,
.id-grid > *,
.faq-grid > *,
.ba-grid > *,
.leak-hero-grid > *,
.roof-grid > *,
.roof-unsure > *,
.btn-row > * { margin-block-start: 0; }

.section { padding-block: var( --site-section ); }
.rule { border-top: 1px solid var( --site-line ); }
.index-row { color: var( --site-soft ); margin-bottom: 1.4rem; }
.index-row .num { color: var( --site-accent ); font-weight: 500; }
.head-row { display: grid; grid-template-columns: repeat( 12, minmax( 0, 1fr ) ); gap: var( --wp--preset--spacing--lg ); align-items: end; }
.head-row .headline-col { grid-column: 1 / 8; }
.head-row .lede-col { grid-column: 8 / 13; }
.head-row .lede-col .lede { margin: 0; }
.wp-block-group.is-style-aplus-card { padding: 1.5rem; border: 1px solid var( --site-line ); border-radius: var( --wp--custom--rounded--sm ); background: var( --site-raise ); }
.wp-block-group.is-style-aplus-raised { background: var( --site-raise ); border-block: 1px solid var( --site-line ); padding-inline: 0; }

/* === media frames === */
.frame { border-radius: var( --wp--custom--rounded--sm ); overflow: hidden; background: var( --site-raise ); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* === hero media: layered frame + floating accent detail === */
.hero-media { position: relative; }
.hero-media .frame { position: relative; z-index: 1; aspect-ratio: 3 / 4; box-shadow: 0 50px 90px -45px rgba( 0, 0, 0, 0.65 ); }
.hero-accent { position: absolute; z-index: 2; left: -1.9rem; bottom: -2.1rem; width: clamp( 108px, 30%, 168px ); aspect-ratio: 3 / 4; margin: 0; border-radius: var( --wp--custom--rounded--sm ); overflow: hidden; border: 1px solid var( --site-line-strong ); background: var( --site-raise ); box-shadow: 0 30px 60px -26px rgba( 0, 0, 0, 0.7 ); }
.hero-accent img { width: 100%; height: 100%; object-fit: cover; }
.hero-accent-tag { position: absolute; left: 0.65rem; bottom: 0.65rem; z-index: 1; padding: 0.3rem 0.6rem; border-radius: 999px; background: rgba( 10, 13, 17, 0.62 ); -webkit-backdrop-filter: blur( 8px ); backdrop-filter: blur( 8px ); border: 1px solid var( --site-line ); color: var( --site-text ); }
.leak-hero-grid .hero-media .frame { height: auto; max-height: 760px; }
@media ( max-width: 900px ) {
	.hero-media { margin-top: 1.5rem; }
	.hero-accent { left: -1rem; bottom: -1.5rem; width: clamp( 86px, 28%, 128px ); }
}

/* === statement === */
.statement { padding: clamp( 5rem, 12vw, 10rem ) 0; }
.statement-text { font-size: clamp( 1.5rem, 3vw, 3.1rem ); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; margin: 0; max-width: 30ch; }
.statement-text .accent { color: var( --site-accent ); }
.statement-note { display: flex; align-items: center; gap: 1rem; color: var( --site-soft ); margin-top: 2.5rem; }
.statement-note::before { content: ""; width: 48px; height: 1px; background: var( --site-line-strong ); }
/* === timeline === */
.tl-bands { display: grid; grid-template-columns: repeat( 5, minmax( 0, 1fr ) ); gap: 6px; margin-bottom: 2rem; }
.band { height: 44px; border-radius: var( --wp--custom--rounded--sm ); display: flex; align-items: center; padding: 0 1rem; gap: 0.5rem; }
.band-win { grid-column: 1 / 4; background: var( --site-accent ); color: var( --site-accent-ink ); }
.band-replace { grid-column: 4 / 6; border: 1px solid var( --site-line-strong ); color: var( --site-muted ); background: repeating-linear-gradient( 135deg, rgba( 232, 236, 241, 0.1 ) 0 1px, transparent 1px 9px ); }
.tl-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat( 5, minmax( 0, 1fr ) ); gap: 6px; }
.tl-stage { position: relative; padding: 1.5rem 1.25rem 0 0; border-top: 1px solid var( --site-line-strong ); margin: 0; }
.tl-stage::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; margin-bottom: 0.9rem; background: var( --site-bg ); border: 1px solid var( --site-soft ); }
.tl-stage.win::before { background: var( --site-accent ); border-color: var( --site-accent ); }
/* The first three stages (still worth lining) draw an accent-blue line over
   the grey one as they scroll into view, via .in-view toggled by JS; the
   last two (replacement territory) keep the plain grey line, unanimated. */
.tl-stage.win::after { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 4px; background: var( --site-accent ); box-shadow: 0 0 10px 1px rgba( 36, 86, 214, 0.65 ); transform: scaleX( 0 ); transform-origin: left; transition: transform 0.9s var( --site-ease ); }
.tl-stage.win.in-view::after { transform: scaleX( 1 ); }
.tl-stage strong { display: block; font-size: 1.15rem; letter-spacing: -0.01em; }
.tl-stage span { color: var( --site-muted ); font-size: 0.95rem; line-height: 1.55; }
.tl-tag { display: none; }
/* === timeline === */
/* === inspect/form === */
.inspect { background: var( --site-raise ); }
/* Anchor targets clear the sticky header on a no-JS native jump; with JS the
   scroll script applies the same offset itself. It also focuses the landing
   so keyboard users carry on from there — a scroll target, not a control,
   so no focus ring. */
[id="inspect"], [id="work"], [id="services"], [id="rail"] { scroll-margin-top: 90px; }
[tabindex="-1"]:focus { outline: none; }
.inspect-grid { display: grid; grid-template-columns: repeat( 12, minmax( 0, 1fr ) ); gap: var( --wp--preset--spacing--xxl ); align-items: start; }
.inspect-copy { grid-column: 1 / 6; position: sticky; top: 6.5rem; }
.inspect-form { grid-column: 7 / 13; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem; padding: 1.3rem 0; border-top: 1px solid var( --site-line ); }
.steps li::before { counter-increment: s; content: "0" counter( s ); font-family: var( --wp--preset--font-family--ibm-plex-mono ); font-size: 0.78rem; color: var( --site-accent ); }
.steps strong { display: block; font-weight: 500; }
.steps span { display: block; color: var( --site-muted ); font-size: 0.95rem; grid-column: 2; }

/* Jetpack form styling */
.form-panel { background: var( --site-bg ); border: 1px solid var( --site-line ); border-radius: var( --wp--custom--rounded--sm ); padding: clamp( 1.4rem, 3vw, 2.5rem ); box-shadow: 0 40px 80px -40px rgba( 0, 0, 0, 0.6 ); }
.form-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var( --site-line ); }
.form-top h3 { font-size: 1.45rem; margin: 0; }
.form-top .mono { color: var( --site-soft ); }
.wp-block-jetpack-contact-form { display: grid; gap: 1.1rem; }
.wp-block-jetpack-contact-form label { font-size: 0.94rem; font-weight: 500; color: var( --site-text ); }
.wp-block-jetpack-contact-form input[type="text"], .wp-block-jetpack-contact-form input[type="tel"], .wp-block-jetpack-contact-form input[type="email"], .wp-block-jetpack-contact-form input[type="url"], .wp-block-jetpack-contact-form select, .wp-block-jetpack-contact-form textarea { width: 100%; min-height: 50px; padding: 0.8rem 1rem; background: var( --site-field ); border: 1px solid #566170; border-radius: var( --wp--custom--rounded--md ); font-size: 1rem; color: var( --site-text ); }
.wp-block-jetpack-contact-form textarea { min-height: 110px; resize: vertical; }
.wp-block-jetpack-contact-form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1abb8' stroke-width='1.5'><path d='M1 1.5l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.wp-block-jetpack-contact-form input:focus, .wp-block-jetpack-contact-form select:focus, .wp-block-jetpack-contact-form textarea:focus { outline: none; border-color: var( --site-accent ); box-shadow: 0 0 0 3px rgba( 126, 166, 246, 0.22 ); }
.wp-block-jetpack-contact-form .wp-block-button { margin: 0.5rem 0 0; }
.form-note { color: var( --site-soft ); font-size: 0.86rem; margin: 1.2rem 0 0; }

/* Fluent Forms styling */
.form-panel .ff_guten_block { display: block; }
.form-panel fieldset { display: grid !important; gap: 1.3rem; }
.form-panel .ff-el-group { margin: 0 !important; }
.form-panel .ff-el-input--label { margin-bottom: 0.5rem !important; }
.form-panel .ff-el-input--label label { font-size: 0.94rem; font-weight: 500; color: var( --site-text ); margin: 0; display: inline-block; }
.form-panel .ff-el-help-message {
	font-size: 0.84rem; line-height: 1.45; color: var( --site-soft );
	margin: 0.1rem 0 0.55rem; max-width: 46ch;
}
.form-panel .ff-el-form-control { width: 100%; min-height: 50px; padding: 0.8rem 1rem; background: var( --site-field ); border: 1px solid #566170; border-radius: var( --wp--custom--rounded--md ); font-family: inherit; font-size: 1rem; line-height: 1.45; color: var( --site-text ); transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease; }
.form-panel textarea.ff-el-form-control { min-height: 110px; resize: vertical; }
.form-panel select.ff-el-form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1abb8' stroke-width='1.5'><path d='M1 1.5l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
/* Plugin default forces background:#fff and a dark text colour on focus - keep the field dark. */
.form-panel .ff-el-form-control.ff-el-form-control:focus {
	outline: none;
	background-color: var( --site-field );
	color: var( --site-text );
	border-color: var( --site-accent );
	box-shadow: 0 0 0 3px rgba( 126, 166, 246, 0.22 );
}
.form-panel .ff-el-form-control::placeholder { color: var( --site-soft ); opacity: 1; }
/* Browser autofill paints its own light background - override it. */
.form-panel .ff-el-form-control:-webkit-autofill,
.form-panel .ff-el-form-control:-webkit-autofill:hover,
.form-panel .ff-el-form-control:-webkit-autofill:focus {
	-webkit-text-fill-color: var( --site-text );
	caret-color: var( --site-text );
	-webkit-box-shadow: inset 0 0 0 1000px var( --site-field );
	box-shadow: inset 0 0 0 1000px var( --site-field );
	transition: background-color 9999s ease-in-out 0s;
}
.form-panel .ff-el-form-check { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0; }
.form-panel .ff-el-form-check-label { display: flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; color: var( --site-text ); cursor: pointer; }
.form-panel .ff-el-form-check-input { accent-color: var( --site-accent ); width: 1.05rem; height: 1.05rem; }
.form-panel .ff_submit_btn_wrapper { margin: 0.5rem 0 0; }
.form-panel .ff-btn-submit { background: var( --site-accent ) !important; color: var( --site-bg ) !important; border: none; border-radius: var( --wp--custom--rounded--md ); padding: 0.9rem 1.6rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.form-panel .ff-btn-submit:hover { filter: brightness( 1.08 ); }
.form-panel [id^="fluentform_"][id$="_errors"] { color: #f2a3a3; font-size: 0.86rem; margin-top: 0.8rem; }
/* === before/after: Jetpack image-compare (juxtapose slider) === */
.ba-frame { position: relative; border-radius: var( --wp--custom--rounded--sm ); overflow: hidden; background: var( --site-raise ); box-shadow: 0 40px 80px -40px rgba( 0, 0, 0, 0.6 ); }
.ba-frame .wp-block-jetpack-image-compare { margin: 0; }
.ba-frame .juxtapose { aspect-ratio: 3 / 4; }
.ba-frame .juxtapose img { object-fit: cover; }
.ba-frame figcaption { display: none; }
.ba-frame .mz-slider .mz-handle, .ba-frame .juxtapose .mz-handle { background: var( --site-text ) !important; }
.ba-tag { position: absolute; top: 1rem; z-index: 3; padding: 0.38rem 0.75rem; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; background: rgba( 10, 13, 17, 0.62 ); -webkit-backdrop-filter: blur( 8px ); backdrop-filter: blur( 8px ); border: 1px solid var( --site-line ); color: var( --site-text ); pointer-events: none; }
.ba-tag-l { left: 1rem; color: var( --site-accent ); }
.ba-tag-r { right: 1rem; }
.ba-caption { color: var( --site-muted ); margin: 1.2rem 0 0; max-width: 42ch; }

/* === before/after gallery (aplus_job query loop) === */
/* 50vw counts the scrollbar, so clip any stray overflow the bleed creates. */
.section.proof { overflow-x: clip; }
.ba-gallery {
	/* Distance from the viewport edge to the alignwide content column. */
	--ba-gutter: max( clamp( 1.25rem, 5vw, 3rem ), calc( ( 100vw - 1280px ) / 2 ) );
	--ba-gap: clamp( 1.25rem, 2.4vw, 2rem );
	/* Fit 2 cards plus a third of the next, so one always breaks the edge. */
	--ba-card: min( 560px, calc( ( 100vw - var( --ba-gutter ) - ( var( --ba-gap ) * 2 ) ) / 2.33 ) );
	position: relative;
	margin-top: 3rem;
}
/* Full-bleed snap rail: spans both viewport edges, first card on the container line.
   Core's .wp-block-post-template ships `max-width: 100%`, which undoes the negative-
   margin bleed below by re-clamping the rail to the narrower content column — override
   it here instead of touching core. */
.ba-gallery .ba-list {
	display: flex;
	flex-wrap: nowrap;
	gap: var( --ba-gap );
	max-width: none;
	margin-inline: calc( 50% - 50vw );
	/* Left holds the container line; right runs clean off the screen edge. */
	padding-inline: var( --ba-gutter ) 0;
	padding-block: 0 0.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline-start: var( --ba-gutter );
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.ba-gallery .ba-list::-webkit-scrollbar { display: none; }
/* post-template renders <ul><li class="wp-block-post">, so the li is the flex item. */
.ba-gallery .ba-list > li {
	flex: 0 0 var( --ba-card );
	max-width: var( --ba-card );
	margin: 0;
	scroll-snap-align: start;
}
.ba-gallery .ba-list > * { margin-block-start: 0; }
.ba-gallery .ba-item > * { margin-block-start: 0; }
/* Arrows are injected by front.js; desktop only. */
.ba-arrow { display: none; }
@media ( min-width: 782px ) {
	.ba-arrow {
		position: absolute;
		top: calc( var( --ba-card ) * 0.3125 );
		transform: translateY( -50% );
		z-index: 3;
		width: 3rem; height: 3rem;
		display: grid; place-items: center;
		padding: 0;
		border-radius: 999px;
		border: 1px solid var( --site-line );
		background: rgba( 10, 13, 17, 0.72 );
		-webkit-backdrop-filter: blur( 8px ); backdrop-filter: blur( 8px );
		color: var( --site-text );
		cursor: pointer;
		transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	}
	.ba-arrow:hover { background: var( --site-accent ); border-color: var( --site-accent ); color: var( --site-bg ); }
	.ba-arrow:focus-visible { outline: 2px solid var( --site-accent ); outline-offset: 3px; }
	.ba-arrow[disabled] { opacity: 0; pointer-events: none; }
	.ba-arrow svg { width: 1.05rem; height: 1.05rem; display: block; }
	.ba-prev { left: calc( 50% - 50vw + 1rem ); }
	.ba-next { right: calc( 50% - 50vw + 1rem ); }
}
.ba-gallery .ba-shots { position: relative; }
.ba-gallery .ba-after,
.ba-gallery .ba-before { margin: 0; }
.ba-gallery .ba-after img {
	display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var( --wp--custom--rounded--sm );
	box-shadow: 0 40px 80px -40px rgba( 0, 0, 0, 0.65 );
}
.ba-gallery .ba-before {
	position: absolute; left: 1.15rem; bottom: 1.15rem; width: 36%; z-index: 2;
}
.ba-gallery .ba-before img {
	display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var( --wp--custom--rounded--sm );
	border: 1px solid rgba( 232, 236, 241, 0.22 );
	box-shadow: 0 24px 48px -18px rgba( 0, 0, 0, 0.8 );
}
.ba-gallery .ba-before::after {
	content: "Before"; position: absolute; top: 0.5rem; left: 0.5rem;
	padding: 0.25rem 0.55rem; border-radius: 999px;
	font-family: var( --wp--preset--font-family--mono, monospace );
	font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var( --site-text ); background: rgba( 10, 13, 17, 0.72 );
	-webkit-backdrop-filter: blur( 6px ); backdrop-filter: blur( 6px );
	pointer-events: none;
}
.ba-gallery .ba-title { margin-top: 1.5rem; }
.ba-gallery .ba-title a { text-decoration: none; color: var( --site-text ); }
.ba-gallery .ba-title a:hover { color: var( --site-accent ); }
.ba-gallery .ba-caption { margin-top: 0.6rem; max-width: 100%; overflow-wrap: break-word; }
.ba-gallery .ba-terms { margin-top: 0.9rem; color: var( --site-soft ); }
.ba-gallery .ba-terms a { color: var( --site-soft ); text-decoration: none; }
.ba-gallery .ba-terms a:hover { color: var( --site-accent ); }
@media ( max-width: 781px ) {
	/* One card plus a third of the next. */
	.ba-gallery { --ba-card: calc( ( 100vw - var( --ba-gutter ) - var( --ba-gap ) ) / 1.33 ); }
	.ba-gallery .ba-before { width: 42%; }
}
/* === gallery: Jetpack slideshow (Swiper) === */
.rail-section .wp-block-jetpack-slideshow { margin-top: 2.5rem; }
.wp-block-jetpack-slideshow { border-radius: var( --wp--custom--rounded--sm ); overflow: hidden; background: var( --site-raise ); }
.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container { aspect-ratio: 16 / 9; }
.wp-block-jetpack-slideshow_slide img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-jetpack-slideshow .swiper-pagination-bullet { background: var( --site-text ); opacity: 0.4; }
.wp-block-jetpack-slideshow .swiper-pagination-bullet-active { opacity: 1; background: var( --site-accent ); }
.wp-block-jetpack-slideshow .swiper-button-next, .wp-block-jetpack-slideshow .swiper-button-prev { color: var( --site-text ); }
.wp-block-jetpack-slideshow .swiper-button-next:after, .wp-block-jetpack-slideshow .swiper-button-prev:after { font-size: 1.1rem; }
/* === compare === */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var( --wp--preset--spacing--xxl ); margin-top: 2.5rem; }
.compare h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.6rem; padding-bottom: 1rem; border-bottom: 1px solid var( --site-line-strong ); margin: 0; }
.compare .yes h3::before, .compare .no h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.compare .yes h3::before { background: var( --site-accent ); }
.compare .no h3::before { background: var( --site-soft ); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare .save-note { margin: 0.9rem 0 0; color: var( --site-accent ); font-weight: 500; font-size: 0.95rem; }
.compare li { padding: 0.9rem 0; border-bottom: 1px solid var( --site-line ); color: var( --site-muted ); font-size: 0.98rem; display: flex; align-items: center; gap: 0.6rem; }
.compare .yes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var( --site-accent ); flex: none; }
.compare .no li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var( --site-soft ); flex: none; }
/* === audience === */
/* === audience === */
.audience-grid { display: grid; grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); gap: var( --wp--preset--spacing--xxl ); margin-top: 3rem; }
.audience-card { border-top: 1px solid var( --site-line-strong ); padding-top: 1.5rem; }
.audience-card h3 { font-size: 1.4rem; letter-spacing: -0.03em; margin: 0; }
.audience-card p { color: var( --site-muted ); margin: 0.8rem 0 0; font-size: 0.99rem; }

/* === identifying === */
.id-grid { display: grid; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: var( --wp--preset--spacing--xxl ); align-items: center; }
.id-points { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.id-points li { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid var( --site-line ); color: var( --site-muted ); }
.id-points .tick { color: var( --site-accent ); }
.id-points-title { margin: 1.6rem 0 0; font-weight: 500; color: var( --site-text ); }
.mono-accent { color: var( --site-accent ); }
/* === faq === */
.faq-grid { display: grid; grid-template-columns: repeat( 12, minmax( 0, 1fr ) ); gap: var( --wp--preset--spacing--xxl ); align-items: start; }
.faq-head { grid-column: 1 / 5; position: sticky; top: 6.5rem; }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var( --site-line-strong ); }
.faq-list details { border-bottom: 1px solid var( --site-line ); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-size: 1.1rem; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0; padding: 0 3rem 1.5rem 0; color: var( --site-muted ); max-width: 62ch; }
/* === final cta === */
.final { padding: clamp( 5rem, 12vw, 10rem ) 0; }
.final-title { font-size: clamp( 2.4rem, 6vw, 5.5rem ); line-height: 0.98; letter-spacing: -0.05em; max-width: 13ch; margin: 0; }
.final .btn-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.final .btn-note { color: var( --site-muted ); max-width: 40ch; margin: 1.5rem 0 0; }
/* === cross-promo === */
.x-row { margin-top: 1.5rem; }
.x-link a { text-decoration: none; color: var( --site-accent ); font-weight: 500; }
.x-link a:hover { text-decoration: underline; }

/* === identify + inspect layout overrides === */
.inspect { padding-block: var( --site-section ); }
.ba-grid { display: grid; grid-template-columns: 40% 1fr; gap: var( --wp--preset--spacing--xxl ); align-items: center; }
/* === footer === */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4rem; background: linear-gradient( to bottom, var( --site-bg ), transparent ); pointer-events: none; }
.footer-stack { gap: 1.25rem; max-width: 56ch; }
.footer-logo { margin: 0; }
.footer-logo a { display: block; line-height: 0; }
.footer-logo img { height: 34px; width: auto; display: block; }
.footer-logo .logo-on-light { display: none; }
body.variant-lean .footer-logo .logo-on-dark { display: none; }
body.variant-lean .footer-logo .logo-on-light { display: block; }
.footer-logo .wp-block-image { margin: 0; }
.footer-intro { margin: 0; max-width: 56ch; }
.footer-actions { gap: 1.4rem; margin-top: 0.5rem; }
.footer-actions .mono a { color: var( --site-text ); }
.footer-rule { width: 100%; border-width: 1px 0 0 !important; border-style: solid !important; margin: 0 !important; opacity: 0.18; }
.footer-legal { color: var( --site-soft ); margin: 0; }

/* === reveal === */
.motion [data-reveal] { opacity: 0; transform: translateY( 30px ); transition: opacity 1s var( --site-ease ), transform 1s var( --site-ease ); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* === areas tags === */
/* === roof identifier === */
.roof-grid { display: grid; grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); gap: var( --wp--preset--spacing--xxl ); margin-top: 3rem; }
.roof-card { border-top: 1px solid var( --site-line ); padding-top: 1.5rem; }
.roof-card::before {
	content: ""; display: block; width: 100%; max-width: 150px; aspect-ratio: 160 / 110;
	margin-bottom: 1.2rem; background-repeat: no-repeat; background-position: left center; background-size: contain;
}
.roof-box::before { background-image: url( "assets/images/roof-box.svg" ); }
.roof-parapet::before { background-image: url( "assets/images/roof-parapet.svg" ); }
.roof-flat::before { background-image: url( "assets/images/roof-flat.svg" ); }
.roof-card h3 { margin: 0 0 0.7rem; }
.roof-card p { color: var( --site-muted ); margin: 0; }
.roof-card .roof-tell { color: var( --site-soft ); margin-top: 0.9rem; font-size: 0.95rem; }
.roof-unsure {
	margin-top: 3rem; padding: clamp( 1.5rem, 3vw, 2.2rem );
	border: 1px solid var( --site-line ); border-radius: var( --wp--custom--rounded--md );
	background: var( --site-raise );
	display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center;
}
.roof-unsure p { margin: 0; max-width: 62ch; color: var( --site-muted ); }
@media ( max-width: 781px ) {
	.roof-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.roof-unsure { grid-template-columns: 1fr; }
}

/* === areas / Melbourne map === */
.areas { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp( 8rem, 18vw, 15rem ); }
.areas > * { position: relative; z-index: 1; }
.areas::before {
	content: "";
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: url( "assets/images/melbourne-map.svg" ) no-repeat 50% 50% / cover;
	opacity: 1;
	-webkit-mask-image: radial-gradient( ellipse 100% 94% at 50% 50%, #000 58%, transparent 100% );
	        mask-image: radial-gradient( ellipse 100% 94% at 50% 50%, #000 58%, transparent 100% );
}
.areas-row .mono { border: 1px solid var( --site-line ); color: var( --site-soft ); padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba( 10, 13, 17, 0.55 ); -webkit-backdrop-filter: blur( 6px ); backdrop-filter: blur( 6px ); }
.areas-row { gap: 0.6rem; }
@media ( max-width: 781px ) {
	.areas::before { opacity: 0.6; }
	.areas .head-row .lede-col .mono { background: rgba( 10, 13, 17, 0.55 ); -webkit-backdrop-filter: blur( 6px ); backdrop-filter: blur( 6px ); }
}

/* === leak (urgent) hero === */
.leak-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.leak-hero-grid .leak-img { margin: 0; position: relative; }
.leak-hero-grid .leak-img .frame { display: block; width: 100%; height: 100%; }
.leak-hero-grid .leak-img img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; }

/* === design variants (A/B switch via _aplus_variant → body.variant-*) ===
   The whole theme is driven by --site-* tokens mapped from the palette on :root.
   Overriding them on body re-themes every landing without touching markup, so
   each variant is a switchable design layer. "premium" = the dark editorial look
   already in :root; each variant below is a second design to A/B against it. */
body.variant-lean {
	--site-bg: #f4f1ea;
	--site-raise: #faf8f3;
	--site-text: #161b23;
	--site-muted: #44506e;
	--site-soft: #6b7486;
	--site-accent: #2456d6;
	--site-accent-ink: #ffffff;
	--site-field: #ffffff;
	--site-line: rgba( 22, 27, 35, 0.13 );
	--site-line-strong: rgba( 22, 27, 35, 0.24 );
}

/* Lean: keep cards and surfaces light and crisp. */
body.variant-lean .wp-block-group.is-style-aplus-card { background: var( --site-raise ); }
body.variant-lean .inspect { background: var( --site-raise ); }
body.variant-lean .frame, body.variant-lean .ba-frame, body.variant-lean .hero-accent, body.variant-lean .wp-block-jetpack-slideshow { background: #e8e4db; }

/* Lean: buttons flip to dark-on-light for contrast (brand ivory would vanish). */
body.variant-lean .wp-element-button,
body.variant-lean .wp-block-button__link { background: var( --site-text ); color: #ffffff; }
body.variant-lean .wp-block-button__link, body.variant-lean .wp-block-button a { color: #ffffff; }
body.variant-lean .wp-block-button .wp-element-button:hover, body.variant-lean .wp-block-button a:hover { color: #ffffff; }

/* Lean: outline buttons become dark outline on paper. */
body.variant-lean .is-style-outline .wp-block-button__link { background: transparent; color: var( --site-text ); border-color: var( --site-text ); }

/* Lean: fields read as white wells on paper; keep the accent focus ring. */
body.variant-lean .wp-block-jetpack-contact-form input[type="text"],
body.variant-lean .wp-block-jetpack-contact-form input[type="tel"],
body.variant-lean .wp-block-jetpack-contact-form input[type="email"],
body.variant-lean .wp-block-jetpack-contact-form input[type="url"],
body.variant-lean .wp-block-jetpack-contact-form select,
body.variant-lean .wp-block-jetpack-contact-form textarea { background: var( --site-field ); border-color: var( --site-line-strong ); }
body.variant-lean .form-panel .ff-el-form-control { background: var( --site-field ); border-color: var( --site-line-strong ); }

/* Lean: subtle refinements that were tuned for dark. */
body.variant-lean .band-replace { background: repeating-linear-gradient( 135deg, rgba( 22, 27, 35, 0.09 ) 0 1px, transparent 1px 9px ); }
body.variant-lean .footer-eyebrow { color: var( --site-accent ); }
body.variant-lean .form-panel { box-shadow: 0 30px 70px -48px rgba( 44, 52, 70, 0.5 ); }

/* === reduced motion === */
@media ( prefers-reduced-motion: reduce ) {
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.motion [data-reveal] { opacity: 1; transform: none; }
}

/* === responsive === */
@media ( max-width: 900px ) {
	.head-row { grid-template-columns: 1fr; }
	.head-row .headline-col, .head-row .lede-col { grid-column: 1 / -1; }
	.leak-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
	.leak-hero-grid .leak-img img { max-height: none; }
	.inspect-grid { grid-template-columns: 1fr; }
	.inspect-copy { position: static; grid-column: 1 / -1; }
	.inspect-form { grid-column: 1 / -1; }
	.tl-bands { display: none; }
	.tl-stages { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var( --site-line-strong ); margin-left: 4px; }
	.tl-stages li { padding: 0 0 2rem 1.5rem; border-top: 0; position: relative; }
	.tl-stages li::before { margin-bottom: 0; position: absolute; left: -5px; top: 0.4rem; }
	.tl-stages li.win::after { display: none; }
	.tl-tag { display: inline-block; margin-bottom: 0.5rem; }
	.tl-stages li:not(.win) .tl-tag { color: var( --site-soft ); }
	.compare { grid-template-columns: 1fr; gap: 2rem; }
	.audience-grid { grid-template-columns: 1fr; gap: 2.2rem; }
	.id-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.faq-grid { grid-template-columns: 1fr; }
	.faq-head, .faq-list { grid-column: 1 / -1; }
	.faq-head { position: static; }
	.faq-list details p { padding-right: 0; }
}
