/**
 * Variant CSS: hero--photo-accent-bar-cta-under
 * Layer 2 — kicker + big left H1, a wide 16:9 photo, and a FULL-WIDTH
 * ACCENT BAR attached directly under the photo carrying the deck (left)
 * and the lone CTA (right). CONTRAST CONTRACT: every piece of text ON the
 * accent bar uses var(--on-accent) — NEVER --on-dark, which goes invisible
 * on light-accent themes (charcoal-mono-luxe tan, butter, peach). The CTA
 * pill is an always-dark surface (ink-mixed) so it pops on ANY accent.
 * Scope: body.aibt-universal .universal-hero--photo-accent-bar-cta-under
 */

body.aibt-universal .universal-hero--photo-accent-bar-cta-under {
	padding-block: calc(clamp(var(--space-lg), 6vw, var(--space-2xl)) clamp(var(--space-xl), 7vw, var(--space-3xl)) * var(--density, 1));
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__kicker {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 var(--space-sm) 0;
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__headline {
	font-family: var(--font-display);
	color: var(--text-primary);
	max-width: 18ch;
	margin: 0 0 clamp(var(--space-md), 3vw, var(--space-lg)) 0;
	overflow-wrap: break-word;
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__headline em {
	font-style: italic;
	color: var(--accent);
}

/* Photo: square bottom corners so the bar docks flush. */
body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__photo {
	margin: 0;
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-start-start-radius: var(--decor-radius);
	border-start-end-radius: var(--decor-radius);
	border-end-start-radius: 0;
	border-end-end-radius: 0;
}

/* ── The accent brand bar ─────────────────────────────────────────── */
body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__bar {
	background: var(--accent);
	border-end-start-radius: var(--decor-radius);
	border-end-end-radius: var(--decor-radius);
	padding: clamp(var(--space-md), 3vw, var(--space-lg)) clamp(var(--space-md), 3.5vw, var(--space-xl));
	gap: var(--space-lg);
}

/* Deck ON the accent surface → --on-accent ink (the critical rule). */
body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__deck {
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--on-accent, #FFFFFF);
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
	max-width: 46rem;
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__actions {
	flex: none;
}

/* The CTA pill: always-dark ink-mixed surface → --on-dark text is correct
   here, and the pill contrasts with the accent bar on every theme. */
body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__cta .wp-block-button__link {
	background: color-mix(in srgb, #000 78%, var(--accent));
	color: var(--on-dark, #FFFFFF);
	font-family: var(--font-body);
	font-weight: 600;
	padding: 1rem 2.2rem;
	border-radius: 999px;
	white-space: nowrap;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--decor-shadow-elevated);
}

body.aibt-universal .universal-hero--photo-accent-bar-cta-under a:focus-visible {
	outline: 2px solid var(--on-accent, #FFFFFF);
	outline-offset: 3px;
}

/* ── Mobile: bar stacks (deck, then full-width CTA). ─────────────── */
@media (max-width: 781px) {
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__bar {
		flex-wrap: wrap;
	}
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__deck {
		flex: 1 1 100%;
	}
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__actions {
		flex: 1 1 100%;
	}
}

@media (max-width: 640px) {
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__kicker {
		letter-spacing: var(--tracking-wide);
	}
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__headline {
		font-size: clamp(2.1rem, 9vw, 3rem) !important;
		max-width: 100%;
	}
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__photo img {
		aspect-ratio: 4 / 3;
	}
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__cta,
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__cta .wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-hero--photo-accent-bar-cta-under .universal-hero__cta .wp-block-button__link {
		transition: none;
	}
}
