/**
 * Front page: CTA / contact block (BEM: fazis-cta).
 */

.fazis-cta {
	--fazis-cta-navy: var(--crest-ink, rgb(15 23 42));
	--fazis-cta-blue: var(--crest-accent, rgb(234 88 12));
	background-color: var(--crest-page, rgb(250 250 249));
}

.fazis-cta__surface {
	position: relative;
	width: 100%;
	min-height: 27.875rem; /* 446px */
	background-color: var(--fazis-cta-navy);
	background-image: url("../images/bg-mesh.svg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border-radius: 1rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.25rem 1.5rem;
	overflow: hidden;
}

.fazis-cta__surface::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		130deg,
		rgb(67 20 99 / 0.5) 0%,
		rgb(15 23 42 / 0.85) 50%,
		rgb(234 88 12 / 0.28) 100%
	);
	pointer-events: none;
}

.fazis-cta__surface > * {
	position: relative;
	z-index: 1;
}

.fazis-cta__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2.25rem;
	width: 100%;
	max-width: 70.625rem; /* 1130px */
	margin: 0 auto;
	text-align: center;
}

.fazis-cta__title {
	margin: 0;
	color: rgb(255 255 255);
	font-size: clamp(1.25rem, 2vw + 0.75rem, 3rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.fazis-cta__lede {
	margin: 0;
	color: rgb(255 255 255);
	font-size: clamp(1rem, 0.35vw + 0.9rem, 1.25rem);
	line-height: 1.5;
	text-align: center;
}

.fazis-cta__button {
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	min-height: 3.5rem;
	padding: 0.5rem 2.25rem;
	background-color: var(--fazis-cta-blue);
	color: rgb(255 255 255);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	border-radius: 2.5rem;
	box-sizing: border-box;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fazis-cta__button:hover,
.fazis-cta__button:focus-visible {
	background-color: var(--crest-accent-hover, rgb(194 65 12));
	color: rgb(255 255 255);
}

.fazis-cta__button:focus-visible {
	outline: 2px solid rgb(255 255 255);
	outline-offset: 3px;
}

@media (max-width: 550px) {
	.fazis-cta__surface {
		min-height: 21.75rem; /* 348px */
		background-image: url("../images/bg-mesh.svg");
		padding: 1.5rem;
	}

	.fazis-cta__content {
		gap: 1.5rem;
		max-width: 21.875rem;
	}

	.fazis-cta__title {
		font-size: 1.25rem;
	}

	.fazis-cta__lede {
		font-size: 1rem;
	}

	.fazis-cta__button {
		min-height: 2.75rem;
		font-size: 1rem;
	}
}
