/**
 * Photo CTA widget.
 */

.msd-ctap {
	--msd-ctap-accent: var(--msd-pink, #ff9b9b);

	padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px);
}

.msd-ctap .msd-ctap__panel {
	position: relative;
	overflow: hidden;
	border-radius: clamp(28px, 4vw, 44px);
	background-color: var(--msd-ink, #1e2a30);
	color: var(--msd-white, #fff);
	isolation: isolate;
}

/* Full-width layout: the photo runs edge to edge, with square corners and no space around it. */
.msd-ctap--full {
	padding: 0;
}

.msd-ctap--full > .msd-wrap {
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

.msd-ctap--full .msd-ctap__panel {
	border-radius: 0;
}

.msd-ctap__media {
	position: absolute;
	z-index: -1;
	inset: 0;
}

/* Two classes: Elementor's ".elementor img" rule would otherwise reset the height. */
.msd-ctap .msd-ctap__photo {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.msd-ctap__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 31, 36, 0.78) 0%, rgba(22, 31, 36, 0.9) 100%);
	content: "";
}

.msd-ctap__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: clamp(56px, 9vw, 120px) clamp(24px, 6vw, 80px);
	text-align: center;
}

.msd-ctap__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.1);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.msd-ctap__dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: var(--msd-green-bright, #22c55e);
	animation: msd-ctap-pulse 2s infinite;
}

@keyframes msd-ctap-pulse {

	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.msd-ctap .msd-ctap__title {
	max-width: 900px;
	margin: 0;
	color: var(--msd-white, #fff);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: clamp(2.4rem, 5.4vw, 4.6rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.msd-ctap__accent {
	color: var(--msd-ctap-accent);
}

.msd-ctap .msd-ctap__text {
	max-width: 560px;
	margin: 0;
	color: #d9dfe2;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
}

/* Buttons */

.msd-ctap__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

.msd-ctap .msd-ctap__button {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 62px;
	padding: 0 28px 0 22px;
	border-radius: 999px;
	color: var(--msd-white, #fff);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.msd-ctap .msd-ctap__button:hover {
	transform: translateY(-2px);
	color: var(--msd-white, #fff);
}

.msd-ctap__button .msd-icon {
	font-size: 24px;
}

.msd-ctap .msd-ctap__button--call {
	gap: 12px;
	padding: 0 30px 0 24px;
	background-color: var(--msd-espresso, #281616);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.msd-ctap .msd-ctap__button--call:hover {
	background-color: var(--msd-espresso-hover, #3e2323);
}

.msd-ctap .msd-ctap__button--wa {
	background-color: var(--msd-green, #15803d);
}

.msd-ctap__button--wa .msd-icon {
	font-size: 21px;
}

.msd-ctap .msd-ctap__button--outline {
	border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.msd-ctap .msd-ctap__button--outline:hover {
	border-color: var(--msd-white, #fff);
	background-color: rgba(255, 255, 255, 0.1);
}

/* Check list */

.msd-ctap__checks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.msd-ctap__checks li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #eef1f2;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.msd-ctap__checks .msd-icon {
	color: var(--msd-ctap-accent);
	font-size: 20px;
}

@media (prefers-reduced-motion: reduce) {

	.msd-ctap__dot {
		animation: none;
	}

	.msd-ctap .msd-ctap__button {
		transition: none;
	}

	.msd-ctap .msd-ctap__button:hover {
		transform: none;
	}
}
