/**
 * Variant CSS: before-after--single-hero-split
 * Layer 2 — Path B before-after role (count-1 expansion 2026-06-10).
 * One big full-width transformation: the "before" image fills the left half, the
 * "after" the right, meeting at a thick accent-coloured seam, with PRZED/PO badges
 * pinned to the photo corners and the result title + index sitting BELOW the frame
 * like a magazine spread caption. Distinct from slider-divider (round grip + slider
 * chrome) and side-by-side (two separate columns + thin divider): here it is one
 * compact hero frame with a bold coloured seam and a caption underneath, no faux
 * control. Labels sit on the photo so their colours are fixed (correct text-on-photo
 * pattern); the seam takes --accent. Images are literal client uploads.
 */

body.aibt-universal .universal-before-after--single-hero-split {
	background: var(--background);
	color: var(--text-primary);
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
}

/* Intro — centred block, A8-safe (horizontal-auto margins kept). */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__intro {
	margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
	text-align: center;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__intro > * {
	margin-inline: auto !important;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-before-after--single-hero-split h2.universal-before-after__headline,
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__headline em {
	color: var(--accent);
	font-style: italic;
}

/* The split frame — two halves butted against an accent seam, framed as one object. */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__split {
	position: relative;
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	width: 100%;
	border-radius: var(--decor-radius);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
	box-shadow: 0 30px 70px -42px color-mix(in srgb, var(--text-primary) 50%, transparent);
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__img {
	flex: 0 0 50%;
	width: 50%;
	margin: 0 !important;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 900ms) var(--ease-elegant, ease);
}

/* Slightly desaturate the "before" so the "after" half pops by contrast. */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__img--before img {
	filter: var(--photo-filter, grayscale(0.18) contrast(0.96));
}

/* Gentle paired zoom on hover — tactile "real result" cue (reduced-motion handled below). */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__split:hover .universal-before-after__img img {
	transform: scale(1.03);
}

/* Bold accent seam down the centre, with a soft white rim so it reads on any photo. */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__split::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 6px;
	transform: translateX(-50%);
	background: var(--accent);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
	z-index: 3;
}

/* Labels pinned to the photo corners. Fixed dark scrim chip = correct text-on-photo. */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__label {
	position: absolute;
	bottom: clamp(0.8rem, 2vw, 1.2rem);
	z-index: 4;
	margin: 0 !important;
	padding: 0.4em 0.95em !important;
	border-radius: var(--decor-radius-pill);
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.22);
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__label--before {
	left: clamp(0.8rem, 2vw, 1.2rem);
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #fff) !important;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__label--after {
	right: clamp(0.8rem, 2vw, 1.2rem);
	background: var(--cta-bg-primary);
	color: var(--cta-text-primary) !important;
}

/* Result caption below the frame — index eyebrow + title, centred. */
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__result {
	margin-top: clamp(1.4rem, 3vw, 2.2rem);
	text-align: center;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__result > * {
	margin-inline: auto !important;
}

body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__num {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wider) !important;
	text-transform: uppercase !important;
	color: var(--text-secondary) !important;
	margin: 0 0 var(--space-xs) 0 !important;
}

body.aibt-universal .universal-before-after--single-hero-split h3.universal-before-after__result-title,
body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__result-title {
	font-family: var(--font-display) !important;
	font-size: var(--text-xl) !important;
	line-height: var(--leading-snug) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Mobile: stack before -> after, seam becomes a horizontal accent bar. */
@media (max-width: 600px) {
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__split {
		flex-direction: column !important;
	}
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__img {
		flex-basis: auto !important;
		width: 100% !important;
	}
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__split::after {
		left: 0;
		right: 0;
		top: 50%;
		bottom: auto;
		width: auto;
		height: 6px;
		transform: translateY(-50%);
	}
	/* Keep both labels readable once stacked: before top, after bottom. */
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__label--before {
		bottom: auto;
		top: clamp(0.8rem, 2vw, 1.2rem);
	}
}

/* Cap wide uppercase tracking on small screens (A5 — wide tracking hurts small text). */
@media (max-width: 640px) {
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__kicker,
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__num,
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__label {
		letter-spacing: 0 !important;
	}
}

/* Honour reduced-motion — kill the hover zoom. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__img img,
	body.aibt-universal .universal-before-after--single-hero-split .universal-before-after__split:hover .universal-before-after__img img {
		transition: none;
		transform: none;
	}
}

/* A8/A9 left-shift fix: centered children were max-width-capped by WP constrained
   layout but pinned left by horizontal margin:0. Force margin-inline:auto. Section
   class doubled -> specificity (0,4,1) beats element-tag-qualified rules; harmless on
   already-centered elements (auto margins compute to 0). Only left/right overridden. */
body.aibt-universal .universal-before-after--single-hero-split.universal-before-after--single-hero-split .universal-before-after__kicker,
body.aibt-universal .universal-before-after--single-hero-split.universal-before-after--single-hero-split .universal-before-after__headline,
body.aibt-universal .universal-before-after--single-hero-split.universal-before-after--single-hero-split .universal-before-after__num,
body.aibt-universal .universal-before-after--single-hero-split.universal-before-after--single-hero-split .universal-before-after__result-title { margin-inline: auto !important; }
