/**
 * Shared section — closing call-to-action band (template-parts/sections/cta-band.php)
 *
 * 1. CTA Band
 * 2. Responsive
 */

/* ============================ CTA BAND ============================ */
.cta-band {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(620 * var(--u));
	padding-block: calc(78 * var(--u));
	overflow: hidden;
	background: var(--light-bg-alt);
}

.cta-band__media {
	position: absolute;
	inset: 0;
}

.cta-band__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.74) 38%, rgba(255, 255, 255, 0.12) 68%, rgba(255, 255, 255, 0) 100%);
}

.cta-band__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-band__inner {
	position: relative;
	z-index: 1;
}

.cta-band__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	width: fit-content;
	min-width: calc(880 * var(--u));
	padding: calc(87 * var(--u)) calc(84 * var(--u)) calc(76 * var(--u));
	background: var(--white);
	border-radius: var(--radius-lg);
}

.cta-band__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: calc(11 * var(--u));
	min-height: 6px;
	background: var(--flag-thirds);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cta-band__title {
	font-size: var(--fs-72);
	letter-spacing: -0.022em;
	line-height: 1;
	padding-top: 0;
	white-space: nowrap;
}

.cta-band__text {
	max-width: calc(622 * var(--u));
	font-size: var(--fs-28);
	font-weight: var(--font-weight-light);
	line-height: 1.45;
	color: var(--text-color);
}

.cta-band__cta {
	padding-top: var(--space-16);
}

/* ============================ RESPONSIVE ============================ */

/* --- MD / Tablet --- */
@media (max-width: 992px) {
	.cta-band {
		min-height: 0;
		padding-block: 56px;
	}

	.cta-band__card {
		width: auto;
		min-width: 0;
		max-width: 640px;
		padding: 44px 32px 36px;
	}

	.cta-band__title {
		white-space: normal;
	}
}

/* --- SM / Mobile --- */
@media (max-width: 768px) {
	.cta-band__media::after {
		background: rgba(255, 255, 255, 0.55);
	}

	.cta-band__card {
		padding: 36px 20px 28px;
	}
}
