/*
 * Scheur-CTA boven de footer.
 * Alleen geladen als de kaart gerenderd wordt (inc/registry.php, sleutel cta_scheur).
 * Kleuren en de knopradius komen uit de variabelen in base.css.
 *
 * De sectie is wit; de onderste helft is navy. De kaart ligt over die grens.
 */

.cp-scheur {
	position: relative;
	background: var(--cp-color-bg);
	padding-block: 1.5rem 3.5rem;
}

.cp-scheur::before {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: var(--cp-color-navy);
}

.cp-scheur__inner {
	position: relative;
	z-index: 1;
	width: min(100% - 2rem, 80rem);
	margin-inline: auto;
}

.cp-scheur__card {
	position: relative;
}

.cp-scheur__paper {
	position: absolute;
	inset: 0;
	background: var(--cp-color-muted-bg);
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 3rem),
		calc(100% - 3rem) calc(100% - 3rem),
		calc(100% - 3rem) 100%,
		0 100%
	);
	filter: drop-shadow(0 18px 28px rgb(1 28 56 / 0.28));
}

.cp-scheur__tear {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	left: 0;
	height: 0;
	pointer-events: none;
}

.cp-scheur__line {
	position: absolute;
	top: 0;
	right: 0.75rem;
	left: 0.75rem;
	border-top: 2px dashed rgb(1 28 56 / 0.15);
	transform: translateY(-50%);
}

.cp-scheur__hole {
	position: absolute;
	top: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--cp-color-muted-bg);
	box-shadow: inset 0 1px 2px rgb(1 28 56 / 0.12);
	transform: translateY(-50%);
}

.cp-scheur__hole--start {
	left: -0.75rem;
}

.cp-scheur__hole--end {
	right: -0.75rem;
}

.cp-scheur__scissors {
	position: absolute;
	top: 0;
	left: 5%;
	color: rgb(1 28 56 / 0.45);
	line-height: 0;
	transform: translate(-50%, -50%);
}

.cp-scheur__fold {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	width: 3rem;
	height: 3rem;
	background: linear-gradient(135deg, #fff 0%, #ececec 48%, #d8d8d8 100%);
	clip-path: polygon(0 0, 0 100%, 100% 0);
	filter: drop-shadow(-3px 3px 2px rgb(1 28 56 / 0.18));
	pointer-events: none;
}

.cp-scheur__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.75rem;
	padding: 3rem 1.5rem 4.5rem;
}

.cp-scheur__copy {
	min-width: 0;
}

.cp-scheur__title {
	margin: 0;
	color: #010a29;
	font-size: clamp(1.7rem, 2.4vw + 1.1rem, 2.25rem);
	white-space: nowrap;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	hyphens: manual;
}

.cp-scheur__accent {
	display: block;
	color: var(--cp-color-primary);
	white-space: nowrap;
}

.cp-scheur__text {
	max-width: 36rem;
	margin: 1.25rem 0 0;
	color: #010a29;
	font-size: 1rem;
	line-height: 1.5;
}

.cp-scheur__action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: min(100%, max-content);
	max-width: 100%;
}

.cp-scheur__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding: 0.875rem 1.5rem;
	border-radius: var(--cp-radius-button);
	background: var(--cp-color-primary);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	max-width: 100%;
	text-align: center;
	text-decoration: none;
	text-wrap: balance;
	box-shadow: 0 8px 16px rgb(176 9 9 / 0.3);
}

.cp-scheur__button:hover {
	background: var(--cp-color-primary-hover);
	color: #fff;
}

.cp-scheur__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	margin: 0.75rem 0 0;
	color: rgb(1 28 56 / 0.6);
	font-size: 0.8125rem;
	line-height: 1.3;
	text-align: center;
}

@media (min-width: 40rem) {
	.cp-scheur__inner {
		width: min(100% - 3rem, 80rem);
	}

	.cp-scheur__body {
		padding: 3rem 3rem 4.5rem;
	}

	.cp-scheur__text {
		font-size: 1.125rem;
	}

	.cp-scheur__button {
		padding-inline: 2.5rem;
	}
}

@media (min-width: 64rem) {
	.cp-scheur__inner {
		width: min(100% - 4rem, 80rem);
	}

	.cp-scheur__body {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 3rem;
		padding: 4rem;
	}

	.cp-scheur__title {
		font-size: 3rem;
	}

	.cp-scheur__action {
		flex: none;
	}
}
