/**
 * COSECURE Speaking CTA — Widget Styles
 * Scoped under .spk-cta- prefix.
 */

/* ============================================================
   ELEMENTOR WRAPPER NORMALIZATION
   ============================================================ */
.elementor-widget-cs_speaking_cta .elementor-widget-container {
	padding: 0;
	max-width: 100%;
}

.elementor-widget-cs_speaking_cta {
	max-width: 100%;
}

/* ============================================================
   SECTION
   ============================================================ */
.spk-cta-section {
	display: block;
	background: #f8f8f8;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	padding: 1.5rem 1.5rem 3rem;
	max-width: 100%;
	overflow-x: hidden;
}

.spk-cta-section,
.spk-cta-section *,
.spk-cta-section *::before,
.spk-cta-section *::after {
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.spk-cta-section {
		padding: 1.5rem 2.5rem 6rem;
	}
}

.spk-cta-wrap {
	max-width: 1280px;
	margin: 0 auto;
	max-width: 100%;
}

/* ============================================================
   CARD
   ============================================================ */
.spk-cta-card {
	position: relative;
	overflow: hidden;
	border-radius: 2rem;
	padding: 3rem 1.5rem;
	text-align: center;
	color: #ffffff;
	background: linear-gradient(180deg, #1a2630, #0f1820);
	max-width: 100%;
	min-width: 0;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.spk-cta-card.in {
	opacity: 1;
	transform: none;
}

@media (min-width: 768px) {
	.spk-cta-card {
		padding: 4rem 3rem;
	}
}

/* ============================================================
   GLOW
   ============================================================ */
.spk-cta-glow {
	position: absolute;
	width: 18rem;
	height: 18rem;
	border-radius: 9999px;
	background: rgba(15, 124, 123, 0.4);
	filter: blur(60px);
	pointer-events: none;
	opacity: 0.9;
}

.spk-cta-glow--top {
	top: -6rem;
	left: 50%;
	transform: translateX(-50%);
}

.spk-cta-glow--center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.spk-cta-glow--bottom {
	bottom: -6rem;
	left: 50%;
	transform: translateX(-50%);
}

/* Animation variants per position */
.spk-cta-glow--animate.spk-cta-glow--top {
	animation: spk-cta-float-top 7s ease-in-out infinite;
}

.spk-cta-glow--animate.spk-cta-glow--bottom {
	animation: spk-cta-float-bottom 7s ease-in-out infinite;
}

.spk-cta-glow--animate.spk-cta-glow--center {
	animation: spk-cta-float-center 7s ease-in-out infinite;
}

@keyframes spk-cta-float-top {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, -10px); }
}

@keyframes spk-cta-float-bottom {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, 10px); }
}

@keyframes spk-cta-float-center {
	0%, 100% { transform: translate(-50%, -50%); }
	50%      { transform: translate(-50%, calc(-50% - 10px)); }
}

/* ============================================================
   CONTENT
   ============================================================ */
.spk-cta-inner {
	position: relative;
	max-width: 100%;
	min-width: 0;
}

.spk-cta-title {
	font-family: 'League Spartan', system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-size: clamp(1.5rem, 5vw, 3rem);
	line-height: 1.1;
	max-width: 48rem;
	margin: 0 auto !important;
	padding: 0 !important;
	color: #ffffff;
	word-wrap: break-word !important;
	overflow-wrap: anywhere !important;
	white-space: normal !important;
}

/* ============================================================
   BUTTON
   ============================================================ */
.spk-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding: 1rem 1.75rem;
	border-radius: 9999px;
	background: #0f7c7b;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
	max-width: 100%;
	box-sizing: border-box;
	line-height: 1.2;
}

.spk-cta-btn-text {
	display: inline-block;
}

.spk-cta-btn svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

/* Neutralize theme button hover bleed — same pattern used elsewhere */
.spk-cta-btn:hover {
	background: #1d5e5d;
	color: #ffffff !important;
	box-shadow:
		0 0 0 1px rgba(15, 124, 123, 0.25),
		0 20px 60px -20px rgba(15, 124, 123, 0.55);
	transform: translateY(-1px);
	text-decoration: none !important;
}

.spk-cta-btn:focus,
.spk-cta-btn:focus-visible,
.spk-cta-btn:active {
	color: #ffffff !important;
	text-decoration: none !important;
	outline: none;
}

.spk-cta-btn:focus-visible {
	outline: 2px solid rgba(79, 184, 179, 0.6) !important;
	outline-offset: 4px;
}

/* ============================================================
   ELEMENTOR EDITOR — FORCE VISIBILITY
   ============================================================ */
body.elementor-editor-active .spk-cta-card,
body.elementor-editor-preview .spk-cta-card,
.spk-cta-section--editor .spk-cta-card {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

body.elementor-editor-active .spk-cta-glow--animate,
body.elementor-editor-preview .spk-cta-glow--animate,
.spk-cta-section--editor .spk-cta-glow--animate {
	animation: none !important;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.spk-cta-card {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.spk-cta-glow--animate {
		animation: none !important;
	}
	.spk-cta-btn {
		transition: none !important;
	}
}
