/* Creative CTA — Elementor widget
   Blue & yellow CTA panel. All colours flow from the custom properties below,
   which Elementor overwrites from the Style tab. */

.ckcta {
	--ckcta-blue: #2c569d;
	--ckcta-blue-deep: #1d3a6b;
	--ckcta-yellow: #f9ec33;

	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 56px;
	border-radius: 8px;
	background-color: var(--ckcta-blue);
	background-image: linear-gradient(112deg, var(--ckcta-blue-deep) 0%, var(--ckcta-blue) 62%);
	color: #fff;
}

/* The one loud element: rising bars in the corner, cropped by the panel.
   Reads as growth without being a stock chart illustration. */
.ckcta__bars {
	position: absolute;
	right: -10px;
	bottom: -14px;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	height: 78%;
	opacity: 0.16;
	pointer-events: none;
	z-index: -1;
}

.ckcta__bars i {
	display: block;
	width: 26px;
	background-color: var(--ckcta-yellow);
}

.ckcta__bars i:nth-child(1) { height: 26%; }
.ckcta__bars i:nth-child(2) { height: 44%; }
.ckcta__bars i:nth-child(3) { height: 62%; }
.ckcta__bars i:nth-child(4) { height: 82%; }
.ckcta__bars i:nth-child(5) { height: 100%; }

.ckcta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.ckcta__copy {
	flex: 1 1 420px;
	min-width: 0;
	max-width: 62ch;
}

.ckcta__badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 14px;
	border-radius: 100px;
	background-color: var(--ckcta-yellow);
	color: var(--ckcta-blue-deep);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.ckcta__heading {
	margin: 0;
	color: #fff;
	font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.015em;
}

/* Yellow rule tying the heading to the accent, sized to the text block. */
.ckcta__heading::after {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	margin-top: 20px;
	background-color: var(--ckcta-yellow);
}

.ckcta__text {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	line-height: 1.65;
	max-width: 58ch;
}

.ckcta__actions {
	flex: 0 1 auto;
}

.ckcta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ckcta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ckcta__btn--primary {
	background-color: var(--ckcta-yellow);
	color: var(--ckcta-blue-deep);
}

.ckcta__btn--primary:hover,
.ckcta__btn--primary:focus {
	background-color: #fff;
	color: var(--ckcta-blue-deep);
	transform: translateY(-2px);
}

.ckcta__btn--ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	background-color: transparent;
}

.ckcta__btn--ghost:hover,
.ckcta__btn--ghost:focus {
	border-color: var(--ckcta-yellow);
	color: var(--ckcta-yellow);
	transform: translateY(-2px);
}

.ckcta__btn:focus-visible {
	outline: 3px solid var(--ckcta-yellow);
	outline-offset: 3px;
}

.ckcta__note {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	line-height: 1.5;
}

/* --- Stacked layout ------------------------------------------------ */
.ckcta--stacked .ckcta__inner {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 30px;
}

.ckcta--stacked .ckcta__copy {
	flex: 0 1 auto;
}

.ckcta--stacked .ckcta__heading::after {
	margin-left: auto;
	margin-right: auto;
}

.ckcta--stacked .ckcta__text {
	margin-left: auto;
	margin-right: auto;
}

.ckcta--stacked .ckcta__buttons {
	justify-content: center;
}

.ckcta--stacked .ckcta__note {
	text-align: center;
}

/* --- Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
	.ckcta__inner {
		gap: 32px;
	}

	.ckcta__copy {
		flex-basis: 100%;
	}

	.ckcta__actions {
		width: 100%;
	}

	.ckcta__bars {
		height: 60%;
		opacity: 0.12;
	}
}

@media (max-width: 767px) {
	.ckcta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 26px;
	}

	.ckcta__heading::after {
		width: 48px;
		height: 4px;
		margin-top: 16px;
	}

	.ckcta__buttons {
		width: 100%;
		gap: 12px;
	}

	.ckcta--motif .ckcta__bars {
		display: none;
	}

	.ckcta--fullwidth-mobile .ckcta__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ckcta__btn {
		transition: none;
	}

	.ckcta__btn:hover,
	.ckcta__btn:focus {
		transform: none;
	}
}
