/* ═══════════════════════════════════════════════════════════════════════
   FCW — Before & After Interactive Slider (fcw-bas)
   Prefix: fcw-bas__*
   Highly responsive side-by-side comparison slider with drag controls.
 ════════════════════════════════════════════════════════════════════════ */

.fcw-bas {
	--fcw-bas-bg-top: #f9fafb;
	--fcw-bas-bg-bottom: #ffffff;
	--fcw-bas-primary: #862780;
	--fcw-bas-secondary: #93C241;
	--fcw-bas-dark: #111827;
	--fcw-bas-mid: #4b5563;
	--fcw-bas-font: 'Inter', sans-serif;

	background: linear-gradient(to bottom, var(--fcw-bas-bg-top), var(--fcw-bas-bg-bottom));
	font-family: var(--fcw-bas-font);
}

.fcw-bas__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px 24px;
}

/* ── Header Styling ─────────────────────── */
.fcw-bas__header {
	text-align: center;
	margin-bottom: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.fcw-bas__tagline-box {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background-color: rgba(147, 194, 65, 0.1);
	border: 1px solid rgba(147, 194, 65, 0.3);
	border-radius: 9999px;
	margin-bottom: 24px;
}

.fcw-bas__tagline-icon {
	color: var(--fcw-bas-secondary);
	font-size: 1rem;
}

.fcw-bas__tagline-text {
	color: var(--fcw-bas-secondary);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fcw-bas__heading {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 800;
	color: var(--fcw-bas-dark);
	line-height: 1.2;
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
}

.fcw-bas__subheading {
	font-size: 1.125rem;
	color: var(--fcw-bas-mid);
	max-width: 640px;
	margin: 0 auto;
}

/* ── Slider Container ───────────────────── */
.fcw-bas__container-wrap {
	max-width: 1000px;
	margin: 0 auto;
}

.fcw-bas__container {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #1a2332;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
	border: 1px solid #e5e7eb;
	user-select: none;
	cursor: ew-resize;
}

@media (max-width: 768px) {
	.fcw-bas__container {
		aspect-ratio: auto;
		height: 520px;
	}
}

/* ── Comparison Sides ───────────────────── */
.fcw-bas__side {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.fcw-bas__side--before {
	z-index: 1;
}

.fcw-bas__side--after {
	z-index: 2;
	/* Dynamically clipped via JS */
}

.fcw-bas__side-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* Grayscale + Darken Overlay for Before */
.fcw-bas__side-img {
	filter: grayscale(1);
	opacity: 0.3;
}

.fcw-bas__side--after .fcw-bas__side-img {
	filter: none;
	opacity: 0.4;
}

.fcw-bas__overlay {
	position: absolute;
	inset: 0;
}

.fcw-bas__overlay--before {
	background-color: rgba(26, 35, 50, 0.85);
}

.fcw-bas__overlay--after {
	background-color: rgba(134, 39, 128, 0.65);
}

/* ── Side Contents Overlay ──────────────── */
.fcw-bas__side-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
	color: #ffffff;
}

@media (max-width: 640px) {
	.fcw-bas__side-content {
		padding: 20px;
	}
}

.fcw-bas__side-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 24px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fcw-bas__side-badge--before {
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.fcw-bas__side-badge--after {
	background-color: var(--fcw-bas-secondary);
}

.fcw-bas__side-desc {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	max-width: 680px;
	margin: 0 0 32px 0;
	letter-spacing: -0.01em;
}

/* ── Metrics Grid Overlay ──────────────── */
.fcw-bas__metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	width: 100%;
	max-width: 720px;
}

@media (max-width: 768px) {
	.fcw-bas__metrics-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

.fcw-bas__metric-card {
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border-radius: 16px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: all 0.3s ease;
}

.fcw-bas__metric-card--after {
	background-color: rgba(255, 255, 255, 0.15);
}

.fcw-bas__metric-name {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 600;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fcw-bas__metric-name--after {
	color: rgba(147, 194, 65, 0.9);
}

.fcw-bas__metric-val {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
}

.fcw-bas__metric-imp {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--fcw-bas-secondary);
	margin-top: 4px;
}

/* ── Handle Bar & Circle ───────────────── */
.fcw-bas__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 3px;
	background-color: #ffffff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
	z-index: 10;
	transform: translateX(-50%);
	/* Dragged via JS left percentage */
}

.fcw-bas__handle-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background-color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(134, 39, 128, 0.25);
	border: 4px solid var(--fcw-bas-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
}

.fcw-bas__handle-circle i {
	color: var(--fcw-bas-primary);
	font-size: 1.125rem;
}

/* ── Bottom Label Indicators ────────────── */
.fcw-bas__indicators {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	padding: 0 8px;
}

.fcw-bas__ind-item {
	font-size: 0.875rem;
	font-weight: 700;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fcw-bas__ind-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.fcw-bas__ind-dot--before {
	background-color: #1a2332;
}

.fcw-bas__ind-dot--after {
	background-color: var(--fcw-bas-primary);
}

/* ── Bottom CTA ─────────────────────────── */
.fcw-bas__cta {
	text-align: center;
	margin-top: 48px;
}

.fcw-bas__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 36px;
	background-color: var(--fcw-bas-primary);
	color: #ffffff;
	border-radius: 9999px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 10px 20px rgba(134, 39, 128, 0.15);
}

.fcw-bas__btn:hover {
	background-color: #6b1f66;
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(134, 39, 128, 0.25);
}

.fcw-bas__btn i {
	font-size: 1.125rem;
	transition: transform 0.2s ease;
}

.fcw-bas__btn:hover i {
	transform: translateX(4px);
}
