/**
 * Home — seção CTA (layout mockup: imagem + overlay + duas colunas).
 */

.cta-section {
	width: 100%;
	background-color: var(--color-brand-primary-full, #0d1142);
	padding-top: 100px;
	padding-bottom: 0;
}

.cta-box {
	position: relative;
	width: 100%;
	min-height: 664px;
	overflow: hidden;
	border-radius: 6px;
	display: flex;
	align-items: flex-end;
}

.cta-background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.cta-background img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cta-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--color-brand-primary-full, #0d1142) 92%, transparent),
		transparent
	);
}

.cta-content-wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 64px;
	width: 100%;
	padding: 56px 16px 64px;
}

.cta-content-left {
	flex: 1 1 0;
	max-width: 50%;
	min-width: 280px;
}

.cta-content-right {
	flex: 1 1 0;
	max-width: 50%;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.cta-title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-static-white, #fff);
}

.cta-description {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	color: var(--color-static-white, #fff);
}

.cta-description p {
	margin: 0;
}

.cta-section .btn-secondary {
	width: 210px;
	max-width: 100%;
}

.cta-box:not(:has(.cta-background img)) .cta-overlay {
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--color-brand-primary-full, #0d1142) 95%, transparent),
		color-mix(in srgb, var(--color-brand-primary-full, #0d1142) 40%, transparent)
	);
}

@media (max-width: 1023px) {
	.cta-section {
		padding-top: 48px;
	}

	.cta-box {
		height: auto;
		min-height: 500px;
		align-items: stretch;
	}

	.cta-content-wrapper {
		flex-direction: column;
		gap: 32px;
		padding: 48px 16px 32px;
	}

	.cta-content-left,
	.cta-content-right {
		max-width: 100%;
		min-width: 0;
		flex: none;
		width: 100%;
	}

	.cta-title {
		font-size: 32px;
	}

	.cta-description {
		font-size: 16px;
	}

	.cta-section .btn-secondary {
		width: 100%;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	.cta-content-wrapper {
		padding-left: 32px;
		padding-right: 32px;
	}
}

@media (min-width: 1024px) {
	.cta-content-wrapper {
		padding-left: 64px;
		padding-right: 64px;
	}
}
