/*
 * Call-to-action box: peach rounded box, text + buttons next to a photo with
 * a floating date card.
 */

.cta-box-wrap {
	padding-inline: 8px;
}

.cta-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 1408px;
	margin-inline: auto;
	overflow: clip;
	border-radius: var(--rbnl-radius-section);
	background: var(--rbnl-peach);
}

.cta-box__media {
	position: relative;
	min-height: 260px;
	overflow: clip;
}

.cta-box__media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-box__card {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	border-radius: 22px;
	background: var(--rbnl-white);
	box-shadow: 0 20px 40px rgba(33, 30, 100, 0.16);
}

.cta-box__card .event__date {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
}

.cta-box__card .event__day {
	font-size: 26px;
}

.cta-box__card .event__month {
	font-size: 14px;
}

.cta-box__card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 15px;
	line-height: 1.3;
}

.cta-box__card-text strong {
	color: var(--rbnl-ink);
	font-family: var(--rbnl-font-heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.15;
}

.cta-box__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-width: 0;
	padding: 28px 22px 26px;
}

.cta-box__text .section-head__title {
	font-size: clamp(30px, calc(30px + 14 * (100vw - 390px) / 1050), 44px);
	line-height: 1.14;
}

.cta-box__text .btn-row {
	padding-top: 4px;
}

@media (min-width: 1024px) {
	.cta-box-wrap {
		padding-inline: 16px;
	}

	/* Text first on desktop, photo second. */
	.cta-box__media {
		order: 2;
		min-height: 440px;
	}

	.cta-box__text {
		order: 1;
		gap: 22px;
		padding: 56px;
	}

	.cta-box {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	/* No photo: the text takes the whole box. */
	.cta-box--text {
		grid-template-columns: minmax(0, 1fr);
	}

	.cta-box--text .cta-box__text {
		padding: 56px;
	}

	.cta-box__card {
		right: 28px;
		bottom: 28px;
		left: 28px;
		padding: 18px;
	}

	.cta-box__card .event__date {
		width: 68px;
		height: 68px;
	}

	.cta-box__card .event__day {
		font-size: 30px;
	}

	.cta-box__card .event__month {
		font-size: 16px;
	}

	.cta-box__card-text strong {
		font-size: 22px;
	}
}
