@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ════════════════════════════════════════════════════
   AAFE Animated Entry Button — style.css
   Fully scoped. 100% working with all Elementor controls.
   ════════════════════════════════════════════════════ */

/* ── Typography defaults ── */
.aafe-aeb-wrapper,
.aafe-aeb-wrapper *,
.aafe-aeb__btn,
.aafe-aeb__text {
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
}

/* ══ 1. WRAPPER ══
   Wrapper = alignment container only (full-width flex row).
   All visual hover effects target the BUTTON inside, not the wrapper.
   ══════════════════════════════════════════════════════════════════ */
.aafe-aeb-wrapper {
	--aafe-hover-scale: 1.03;
	--aafe-lift-y: -6px;
	--aafe-glow-color: #4F46E5;
	--aafe-border-pop-color: #4F46E5;
	--aafe-shine-color: rgba(255,255,255,0.35);
	display: flex;
	align-items: center;
	width: 100%;
	/* No transform/shadow here — only alignment */
}

/* ── Button gets the transition for wrapper effects ── */
.aafe-aeb-wrapper[data-hover] .aafe-aeb__btn {
	transition-property: border-radius, box-shadow, background-color, color,
	                     border-color, transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

/* ── Lift: button floats up ── */
.aafe-aeb-wrapper[data-hover="lift"]:hover .aafe-aeb__btn {
	transform: translateY(var(--aafe-lift-y, -6px));
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* ── Scale: button zooms in ── */
.aafe-aeb-wrapper[data-hover="scale"]:hover .aafe-aeb__btn {
	transform: scale(var(--aafe-hover-scale, 1.03));
}

/* ── Glow: ring glow around button ── */
.aafe-aeb-wrapper[data-hover="glow"]:hover .aafe-aeb__btn {
	box-shadow: 0 0 0 4px var(--aafe-glow-color, #4F46E5),
	            0 8px 30px rgba(79, 70, 229, 0.3);
}

/* ── Border Pop: border appears + tiny scale ── */
.aafe-aeb-wrapper[data-hover="border-pop"]:hover .aafe-aeb__btn {
	border-color: var(--aafe-border-pop-color, #4F46E5) !important;
	transform: scale(1.03);
}

/* ── Shine: light sweep across the button only ── */
.aafe-aeb-wrapper[data-hover="shine"] .aafe-aeb__btn {
	/* ::after pseudo on the button itself */
}
.aafe-aeb-wrapper[data-hover="shine"] .aafe-aeb__btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		to right,
		rgba(255,255,255,0) 0%,
		var(--aafe-shine-color, rgba(255,255,255,0.35)) 50%,
		rgba(255,255,255,0) 100%
	);
	transform: skewX(-25deg);
	pointer-events: none;
	z-index: 10;
	transition: none;
}
.aafe-aeb-wrapper[data-hover="shine"]:hover .aafe-aeb__btn::before {
	left: 125%;
	transition: left 0.65s ease;
}

/* ══ 2. BUTTON ══ */
.aafe-aeb__btn {
	--aeb-ring-color: #ffffff;
	--aeb-ring-size: 2px;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px 36px;
	border: 4px solid transparent;
	font-size: 16px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	background-color: transparent;
	border-radius: 100px;
	color: #1f387e;
	box-shadow: 0 0 0 var(--aeb-ring-size, 2px) var(--aeb-ring-color, #ffffff);
	cursor: pointer;
	overflow: hidden;
	text-decoration: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	/* Button's own internal animation transitions */
	transition-property: border-radius, box-shadow, background-color, color, border-color, transform;
	transition-duration: 600ms;
	transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.aafe-aeb__btn:focus-visible {
	outline: 2px solid #4F46E5;
	outline-offset: 3px;
}

/* ══ 3. TEXT ══ */
.aafe-aeb__text {
	position: relative;
	z-index: 2;
	transform: translateX(-12px);
	display: inline-block;
	transition-property: transform, color;
	transition-duration: 800ms;
	transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
	white-space: nowrap;
}

/* ══ 4. ARROWS ══ */
.aafe-aeb__arrow {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	top: 50%;
	transform: translateY(-50%);
	transition-property: right, left, color, background-color;
	transition-duration: 800ms;
	transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
	line-height: 1;
}
.aafe-aeb__arrow svg {
	width: 24px;
	height: 24px;
	display: block;
	fill: #1f387e;
	stroke: none;
	flex-shrink: 0;
	transition-property: fill, color;
	transition-duration: 800ms;
	transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.aafe-aeb__arrow i {
	font-size: 24px;
	line-height: 1;
	color: #1f387e;
	display: block;
}

/* Arrow 1 (right — visible by default) */
.aafe-aeb__arrow-1 {
	right: 16px;
	left: auto;
}
/* Arrow 2 (left — hidden off-screen by default) */
.aafe-aeb__arrow-2 {
	left: -25%;
	right: auto;
}

/* ══ 5. CIRCLE RIPPLE ══
   KEY FIX: Use top/left + negative margin trick so centering
   never breaks during width/height transition.
   The circle grows from center outward smoothly.
   ══════════════════════════════════════════════ */
.aafe-aeb__circle {
	position: absolute;
	top: 50%;
	left: 50%;
	/* Centering via margin so transform is free for other use */
	margin-top: -10px;   /* half of default height 20px */
	margin-left: -10px;  /* half of default width  20px */
	width: 20px;
	height: 20px;
	background-color: #c5e5e4;
	border-radius: 50%;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
	/* Transition ALL properties so hover expand is smooth */
	transition: width 800ms cubic-bezier(0.23, 1, 0.32, 1),
	            height 800ms cubic-bezier(0.23, 1, 0.32, 1),
	            opacity 600ms cubic-bezier(0.23, 1, 0.32, 1),
	            margin-top 800ms cubic-bezier(0.23, 1, 0.32, 1),
	            margin-left 800ms cubic-bezier(0.23, 1, 0.32, 1),
	            background-color 300ms ease,
	            border-radius 300ms ease;
}

/* ══ 6. HOVER STATE ══ */
.aafe-aeb__btn:hover {
	box-shadow: 0 0 0 var(--aeb-ring-size, 12px) var(--aeb-ring-color, transparent);
	color: #212121;
	border-radius: 12px;
}

.aafe-aeb__btn:hover .aafe-aeb__text {
	transform: translateX(12px);
}

.aafe-aeb__btn:hover .aafe-aeb__arrow-1 {
	right: -25%;
}

.aafe-aeb__btn:hover .aafe-aeb__arrow-2 {
	left: 16px;
}

.aafe-aeb__btn:hover .aafe-aeb__circle {
	width: 220px;
	height: 220px;
	/* Update margins to stay centered: half of 220px = 110px */
	margin-top: -110px;
	margin-left: -110px;
	opacity: 1;
}

/* ══ 7. ACTIVE STATE ══ */
.aafe-aeb__btn:active {
	scale: 0.95;
	box-shadow: 0 0 0 4px #adff2f;
}

/* ══ 8. RESPONSIVE ══ */
@media (max-width: 767px) {
	.aafe-aeb__btn {
		padding: 14px 28px;
		font-size: 14px;
	}
	.aafe-aeb__arrow svg {
		width: 18px;
		height: 18px;
	}
}
