/**
 * Variant CSS: hero--diagonal-type-photo-split
 * Layer 2 — Variants Library (Path B Recipes architecture).
 *
 * Hero cut by a DIAGONAL seam (clip-path) between a type panel and a photo panel.
 * Structure: a single full-bleed cover photo carries the section; a solid
 * theme-dark wedge is clipped diagonally over the LEFT side (via ::before) and
 * holds the big display H1 + kicker + deck + dual CTA, while the photo bleeds out
 * on the right through the diagonal reveal. Distinct from diagonal-split-clip
 * (a plain 2-column gutter seam) — here the type panel OVERLAPS one shared photo
 * and the diagonal is a cut of that panel, not a column border. Text on the wedge
 * is always-light (var(--text-on-dark)); the em + primary CTA take the accent.
 * Mobile relaxes to a clean text-top / photo-bottom stack (no diagonal overlap).
 * Scoping: body.aibt-universal .universal-hero--diagonal-type-photo-split
 * @since 2026-06-06 (Path B Variants Library)
 */

body.aibt-universal .universal-hero--diagonal-type-photo-split {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	align-items: center;
}

/* Photo base — let the supplied image fill and cover the whole band. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .wp-block-cover__image-background {
	object-fit: cover;
	object-position: 70% center;
}

/* Diagonal solid wedge — clipped over the LEFT side, above photo, below content. */
body.aibt-universal .universal-hero--diagonal-type-photo-split::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--background-dark, #141414);
	/* Top-left → angled down to ~52% top, straight to ~40% bottom, back to left. */
	clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%);
}

/* A faint scrim on the photo half keeps any subject cohesive with the wedge. */
body.aibt-universal .universal-hero--diagonal-type-photo-split::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(90deg, transparent 45%, color-mix(in srgb, var(--background-dark, #141414) 30%, transparent) 100%);
	pointer-events: none;
}

/* Inner container sits above both layers. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

/* Type panel — left aligned, narrow, riding the dark wedge. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__panel {
	max-width: 560px;
	margin-left: clamp(var(--space-md, 1.25rem), 5vw, var(--space-2xl, 5rem));
	margin-right: auto;
	text-align: left;
}

/* Kicker — small uppercase eyebrow, accent on the dark wedge. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs, 0.75rem) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest, 0.18em) !important;
	text-transform: uppercase !important;
	color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #ffffff)) !important;
	margin: 0 0 var(--space-sm, 0.85rem) 0 !important;
}

/* Headline — big display type, light on the wedge. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__headline {
	font-family: var(--font-display) !important;
	color: var(--text-on-dark, #ffffff) !important;
	text-wrap: balance;
	max-width: 14ch;
	margin: 0 0 var(--space-md, 1.25rem) 0 !important;
}

body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__headline em {
	font-style: italic;
	color: color-mix(in srgb, var(--accent) 70%, var(--on-dark, #ffffff)) !important;
	font-weight: inherit;
}

/* Deck — supporting sentence, light-muted on the wedge. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg, 1.2rem) !important;
	line-height: var(--leading-relaxed, 1.6) !important;
	color: color-mix(in srgb, var(--text-on-dark, #ffffff) 82%, transparent) !important;
	max-width: 38ch;
	margin: 0 0 clamp(var(--space-lg, 2rem), 4vh, var(--space-xl, 3rem)) 0 !important;
}

/* Dual CTA. */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__actions {
	gap: var(--space-sm, 0.75rem) !important;
}

body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta .wp-block-button__link {
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-base, 1rem) !important;
	letter-spacing: var(--tracking-wide, 0.02em) !important;
	padding: 1rem 2rem !important;
	min-height: var(--target-min, 44px);
	display: inline-flex;
	align-items: center;
	border-radius: var(--decor-radius, 8px) !important;
	transition: background var(--duration-fast, 0.18s) var(--ease-default, ease),
		border-color var(--duration-fast, 0.18s) var(--ease-default, ease),
		color var(--duration-fast, 0.18s) var(--ease-default, ease),
		transform var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta--primary .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent)) !important;
	color: var(--cta-text-primary, #ffffff) !important;
	border: 1px solid var(--cta-bg-primary, var(--accent)) !important;
}

body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta--primary .wp-block-button__link:hover {
	background: var(--accent-hover, var(--accent)) !important;
	transform: translateY(-2px);
}

/* Ghost CTA — light outline on the dark wedge (NOT --bg-main; KI-020 safe). */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta--ghost .wp-block-button__link {
	background: transparent !important;
	color: var(--text-on-dark, #ffffff) !important;
	border: 1px solid color-mix(in srgb, var(--on-dark, #ffffff) 45%, transparent) !important;
}

body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta--ghost .wp-block-button__link:hover {
	border-color: var(--text-on-dark, #ffffff) !important;
	background: color-mix(in srgb, var(--on-dark, #ffffff) 10%, transparent) !important;
	transform: translateY(-2px);
}

/* Keyboard focus ring on both CTAs (a11y). */
body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta .wp-block-button__link:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--on-dark, #ffffff));
	outline-offset: var(--focus-offset, 2px);
	border-radius: inherit;
}

/* === Tablet — soften the diagonal so the panel keeps room. === */
@media (max-width: 1024px) {
	body.aibt-universal .universal-hero--diagonal-type-photo-split::before {
		clip-path: polygon(0 0, 74% 0, 60% 100%, 0 100%);
	}
}

/* === Mobile — drop the diagonal overlap; stack text on a full dark band over photo bottom. === */
@media (max-width: 781px) {
	body.aibt-universal .universal-hero--diagonal-type-photo-split {
		align-items: flex-end;
	}

	/* Wedge becomes a clean full-width band hugging the lower portion. */
	body.aibt-universal .universal-hero--diagonal-type-photo-split::before {
		clip-path: polygon(0 38%, 100% 38%, 100% 100%, 0 100%);
	}

	body.aibt-universal .universal-hero--diagonal-type-photo-split::after {
		background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--background-dark, #141414) 35%, transparent) 100%);
	}

	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__panel {
		max-width: none;
		margin-inline: 0;
	}

	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__headline {
		max-width: 18ch;
	}

	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	/* Cap uppercase kicker letter-spacing on the smallest screens (A5). */
	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__kicker {
		letter-spacing: 0 !important;
	}
}

/* === Reduced motion — kill the CTA hover lift for motion-sensitive users. === */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta .wp-block-button__link {
		transition: none;
	}

	body.aibt-universal .universal-hero--diagonal-type-photo-split .universal-hero__cta .wp-block-button__link:hover {
		transform: none;
	}
}
