/**
 * CTA band: dark surface over a full-width photo. Markup in
 * inc/cta-band.php. See "CTA band" in docs/design-system.md.
 */

.bst-cta {
	--focus-color: var(--color-white);
	--surface-color: var(--color-forest);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
	background-color: var(--color-forest); /* while the photo loads */
	color: var(--color-white);
}

/* Photo (decorative) and overlay sit behind the content. */
.bst-cta__photo {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.bst-cta::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-color: var(--color-overlay);
	content: "";
}

/* Stacked and left aligned below 1024px; one row, centered, from 1024px. */
.bst-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap);
}

@media (min-width: 1024px) {

	.bst-cta__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.bst-cta .bst-eyebrow,
.bst-cta__title {
	color: var(--color-white);
}

.bst-cta__title {
	margin: 0;
}

.bst-cta__button {
	flex-shrink: 0;
}
