/**
 * Variant CSS: hero--full-photo-frosted-bottom-sheet
 * Layer 2 — full-bleed cover hero whose copy lives in a FULL-WIDTH frosted
 * "bottom sheet" hugging the lower edge: translucent dark panel + backdrop
 * blur + rounded TOP corners (mobile bottom-sheet metaphor). Kicker + H1 +
 * deck on the left, single CTA on the right; stacks below 781px.
 * Scope: body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet
 */

/* Core gives custom-position inner containers width:auto — the sheet must
   span the full cover width. */
body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .wp-block-cover__inner-container {
	width: 100%;
	position: relative;
	z-index: 2;
}

/* The sheet: always-dark translucent surface → light ink (--on-dark) is
   correct here. Rounded top corners + blur sell the bottom-sheet feel. */
body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__sheet {
	background: color-mix(in srgb, #000 62%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-start-start-radius: clamp(14px, 2.4vw, 28px);
	border-start-end-radius: clamp(14px, 2.4vw, 28px);
	border-block-start: 1px solid color-mix(in srgb, #fff 22%, transparent);
	padding: clamp(var(--space-md), 3.5vw, var(--space-xl)) clamp(var(--space-md), 4vw, var(--space-2xl));
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__sheet-row {
	gap: var(--space-lg);
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__sheet-copy {
	min-width: 0;
	flex: 1 1 auto;
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .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: color-mix(in srgb, var(--on-dark, #FFFFFF) 85%, transparent);
	margin: 0 0 var(--space-xs) 0;
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__headline {
	font-family: var(--font-display);
	color: var(--on-dark, #FFFFFF);
	margin: 0 0 var(--space-sm) 0;
	overflow-wrap: break-word;
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__headline em {
	font-style: italic;
	color: var(--accent);
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__deck {
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: color-mix(in srgb, var(--on-dark, #FFFFFF) 84%, transparent);
	max-width: 42rem;
	margin: 0;
}

/* The lone CTA keeps its own column on the right (flex:none). Accent
   surface → --on-accent ink (NEVER --on-dark). */
body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__actions {
	flex: none;
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__cta .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent));
	color: var(--cta-text-primary, var(--on-accent, #FFFFFF));
	font-family: var(--font-body);
	font-weight: 600;
	padding: 1.05rem 2.2rem;
	border-radius: var(--decor-radius);
	white-space: nowrap;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--decor-shadow-elevated);
}

body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ── Mobile: the sheet row stacks; CTA full width under the copy. ─── */
@media (max-width: 781px) {
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__sheet-row {
		flex-wrap: wrap;
	}
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__sheet-copy {
		flex: 1 1 100%;
	}
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__actions {
		flex: 1 1 100%;
	}
}

@media (max-width: 640px) {
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__kicker {
		letter-spacing: var(--tracking-wide);
	}
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__headline {
		font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
	}
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .universal-hero__cta,
	body.aibt-universal .universal-hero--full-photo-frosted-bottom-sheet .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--full-photo-frosted-bottom-sheet .universal-hero__cta .wp-block-button__link {
		transition: none;
	}
}
