/* Call to Action — Classic & Cover (hover reveal) */

.epl-cta {
	--epl-cta-content-duration: 800ms;
	position: relative;
	display: flex;
	overflow: hidden;
	width: 100%;
	text-decoration: none;
	color: inherit;
	isolation: isolate;
}

.epl-cta__bg {
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.epl-cta__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.epl-cta__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-color: transparent;
	transition: background-color 0.5s ease;
	z-index: 1;
}

.epl-cta__content {
	position: relative;
	z-index: 2;
	padding: 1.5rem;
	box-sizing: border-box;
}

.epl-cta__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	line-height: 1.3;
}

.epl-cta__desc {
	margin: 0 0 1rem;
	line-height: 1.6;
	opacity: 0.9;
}

.epl-cta__graphic {
	margin-bottom: 0.75rem;
}

.epl-cta__graphic-img {
	max-width: 80px;
	height: auto;
	display: inline-block;
}

.epl-cta__graphic-icon {
	display: inline-flex;
	font-size: 2rem;
	line-height: 1;
}

.epl-cta__graphic-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.epl-cta__btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: 3px;
	background: #61ce70;
	color: #fff;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.epl-cta__btn--xs { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.epl-cta__btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.epl-cta__btn--md { padding: 0.65rem 1.25rem; font-size: 1rem; }
.epl-cta__btn--lg { padding: 0.85rem 1.5rem; font-size: 1.125rem; }
.epl-cta__btn--xl { padding: 1rem 1.75rem; font-size: 1.25rem; }

/* Ribbon */
.epl-cta__ribbon {
	position: absolute;
	top: 0;
	z-index: 5;
	padding: 0.4rem 1.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #61ce70;
	color: #fff;
	transform-origin: center;
}

.epl-cta__ribbon--left {
	left: 0;
	transform: translate(-30%, 40%) rotate(-45deg);
}

.epl-cta__ribbon--right {
	right: 0;
	left: auto;
	transform: translate(30%, 40%) rotate(45deg);
}

/* —— Classic skin —— */
.epl-cta--classic {
	flex-wrap: wrap;
	align-items: stretch;
	background: #f4f4f4;
}

.epl-cta--classic.epl-cta--pos-left {
	flex-direction: row;
}

.epl-cta--classic.epl-cta--pos-right {
	flex-direction: row-reverse;
}

.epl-cta--classic.epl-cta--pos-top {
	flex-direction: column;
}

.epl-cta--classic.epl-cta--pos-left .epl-cta__bg,
.epl-cta--classic.epl-cta--pos-right .epl-cta__bg {
	flex: 0 0 40%;
	width: 40%;
	min-height: 220px;
}

.epl-cta--classic.epl-cta--pos-left .epl-cta__bg-img,
.epl-cta--classic.epl-cta--pos-right .epl-cta__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.epl-cta--classic.epl-cta--pos-top .epl-cta__bg {
	width: 100%;
	min-height: 200px;
}

.epl-cta--classic.epl-cta--pos-top .epl-cta__bg-img {
	width: 100%;
	height: auto;
	max-height: 320px;
	object-fit: cover;
}

.epl-cta--classic .epl-cta__content {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* —— Cover skin (content over image, reveal on hover) —— */
.epl-cta--cover {
	flex-direction: column;
	min-height: 350px;
	align-items: stretch;
}

.epl-cta--cover .epl-cta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.epl-cta--cover .epl-cta__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.epl-cta--cover .epl-cta__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	color: #fff;
	background: transparent;
}

.epl-cta--cover.epl-cta--v-top .epl-cta__content {
	justify-content: flex-start;
}

.epl-cta--cover.epl-cta--v-middle .epl-cta__content {
	justify-content: center;
}

.epl-cta--cover.epl-cta--v-bottom .epl-cta__content {
	justify-content: flex-end;
}

/* Cover: hide only items marked for hover until hover */
.epl-cta--cover.epl-cta--hover-reveal .epl-cta__on-hover {
	opacity: 0;
	pointer-events: none;
	transition-property: opacity, transform;
	transition-duration: var(--epl-cta-content-duration);
	transition-timing-function: ease;
}

.epl-cta--cover.epl-cta--content-anim-entrance .epl-cta__on-hover {
	transform: none;
}

.epl-cta--cover.epl-cta--content-anim-enter-from-right .epl-cta__on-hover {
	transform: translateX(40px);
}

.epl-cta--cover.epl-cta--content-anim-enter-from-left .epl-cta__on-hover {
	transform: translateX(-40px);
}

.epl-cta--cover.epl-cta--content-anim-enter-from-top .epl-cta__on-hover {
	transform: translateY(-30px);
}

.epl-cta--cover.epl-cta--content-anim-enter-from-bottom .epl-cta__on-hover {
	transform: translateY(30px);
}

.epl-cta--cover.epl-cta--content-anim-grow .epl-cta__on-hover {
	transform: scale(0.85);
}

.epl-cta--cover.epl-cta--content-anim-shrink .epl-cta__on-hover {
	transform: scale(1.12);
}

.epl-cta--cover.epl-cta--content-anim-move-right .epl-cta__on-hover {
	transform: translateX(-20px);
}

.epl-cta--cover.epl-cta--content-anim-move-left .epl-cta__on-hover {
	transform: translateX(20px);
}

.epl-cta--cover.epl-cta--content-anim-move-up .epl-cta__on-hover {
	transform: translateY(20px);
}

.epl-cta--cover.epl-cta--content-anim-move-down .epl-cta__on-hover {
	transform: translateY(-20px);
}

.epl-cta--cover.epl-cta--hover-reveal:hover .epl-cta__on-hover,
.epl-cta--cover.epl-cta--hover-reveal:focus-within .epl-cta__on-hover,
.elementor-widget-epl-call-to-action:hover .epl-cta--hover-reveal .epl-cta__on-hover,
.elementor-element:hover > .elementor-widget-container .epl-cta--hover-reveal .epl-cta__on-hover {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Sequenced delays (only hover items among siblings) */
.epl-cta--cover.epl-cta--sequenced:hover .epl-cta__content > .epl-cta__on-hover:nth-child(1),
.epl-cta--cover.epl-cta--sequenced:focus-within .epl-cta__content > .epl-cta__on-hover:nth-child(1),
.elementor-widget-epl-call-to-action:hover .epl-cta--sequenced .epl-cta__content > .epl-cta__on-hover:nth-child(1) {
	transition-delay: 0ms;
}

.epl-cta--cover.epl-cta--sequenced:hover .epl-cta__content > .epl-cta__on-hover:nth-child(2),
.epl-cta--cover.epl-cta--sequenced:focus-within .epl-cta__content > .epl-cta__on-hover:nth-child(2),
.elementor-widget-epl-call-to-action:hover .epl-cta--sequenced .epl-cta__content > .epl-cta__on-hover:nth-child(2) {
	transition-delay: 100ms;
}

.epl-cta--cover.epl-cta--sequenced:hover .epl-cta__content > .epl-cta__on-hover:nth-child(3),
.epl-cta--cover.epl-cta--sequenced:focus-within .epl-cta__content > .epl-cta__on-hover:nth-child(3),
.elementor-widget-epl-call-to-action:hover .epl-cta--sequenced .epl-cta__content > .epl-cta__on-hover:nth-child(3) {
	transition-delay: 200ms;
}

.epl-cta--cover.epl-cta--sequenced:hover .epl-cta__content > .epl-cta__on-hover:nth-child(4),
.epl-cta--cover.epl-cta--sequenced:focus-within .epl-cta__content > .epl-cta__on-hover:nth-child(4),
.elementor-widget-epl-call-to-action:hover .epl-cta--sequenced .epl-cta__content > .epl-cta__on-hover:nth-child(4) {
	transition-delay: 300ms;
}

/* Image hover animations (widget wrapper too for editor) */
.epl-cta--img-anim-zoom-in:hover .epl-cta__bg-img,
.elementor-widget-epl-call-to-action:hover .epl-cta--img-anim-zoom-in .epl-cta__bg-img {
	transform: scale(1.15);
}

.epl-cta--img-anim-zoom-out .epl-cta__bg-img {
	transform: scale(1.15);
}

.epl-cta--img-anim-zoom-out:hover .epl-cta__bg-img,
.elementor-widget-epl-call-to-action:hover .epl-cta--img-anim-zoom-out .epl-cta__bg-img {
	transform: scale(1);
}

.epl-cta--img-anim-move-left:hover .epl-cta__bg-img,
.elementor-widget-epl-call-to-action:hover .epl-cta--img-anim-move-left .epl-cta__bg-img {
	transform: scale(1.12) translateX(-4%);
}

.epl-cta--img-anim-move-right:hover .epl-cta__bg-img,
.elementor-widget-epl-call-to-action:hover .epl-cta--img-anim-move-right .epl-cta__bg-img {
	transform: scale(1.12) translateX(4%);
}

.epl-cta--img-anim-move-up:hover .epl-cta__bg-img,
.elementor-widget-epl-call-to-action:hover .epl-cta--img-anim-move-up .epl-cta__bg-img {
	transform: scale(1.12) translateY(-4%);
}

.epl-cta--img-anim-move-down:hover .epl-cta__bg-img,
.elementor-widget-epl-call-to-action:hover .epl-cta--img-anim-move-down .epl-cta__bg-img {
	transform: scale(1.12) translateY(4%);
}

/* Touch devices: keep content visible (no reliable hover) */
@media (hover: none) {
	.epl-cta--cover.epl-cta--hover-reveal .epl-cta__on-hover {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
}

@media (max-width: 767px) {
	.epl-cta--classic.epl-cta--pos-left,
	.epl-cta--classic.epl-cta--pos-right {
		flex-direction: column;
	}

	.epl-cta--classic.epl-cta--pos-left .epl-cta__bg,
	.epl-cta--classic.epl-cta--pos-right .epl-cta__bg {
		width: 100%;
		flex: none;
		min-height: 180px;
	}
}
