/* ==========================================================================
   Homepage closing CTA
   Block: .home-cta
   ========================================================================== */

.home-cta {
	position: relative;
	min-height: 21.5rem; /* 344px */
	overflow: hidden;
	color: var(--color-on-dark);
	background: #02080c;
}

.home-cta__media {
	position: absolute;
	inset: 0;
}

.home-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-cta__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(2 8 12 / 0.72) 0%, rgb(2 8 12 / 0.35) 100%);
}

.home-cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	padding-block: var(--space-10);
}

.home-cta__title {
	max-width: 16ch;
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, var(--font-size-5xl));
	font-weight: var(--font-weight-medium);
	letter-spacing: 0;
	line-height: 1.3458;
}

.home-cta__copy {
	margin: 0;
	color: rgb(255 255 255 / 0.8);
	font-size: var(--font-size-sm);
}

.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

@media (min-width: 64rem) {
	.home-cta__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-block: 3.5rem;
	}

	.home-cta__actions {
		justify-content: flex-end;
	}
}
