/* Benefits Connector
   Every rule is scoped under .spark-bcn, so nothing here affects the rest of the site.
   See README.md in this folder for what each class/variable controls. */

/* ==========================================================================
   1. BASE: quick settings (colours, sizes, fonts)
   ========================================================================== */
.spark-bcn {
	--bcn-accent: #F2C335;
	--bcn-card-border: #F0D570;
	--bcn-card-bg: #FFFFFF;
	--bcn-number-bg: #FDF6E3;
	--bcn-number: #D4A514;
	--bcn-text: var(--e-global-color-text, #1A1919);
	--bcn-muted: #5B5A58;
	--bcn-badge-text: #1A1919;
	--bcn-border: #E6E3DD;
	--bcn-card-width: 560px;
	--bcn-depth: 135px;
	--bcn-card-gap: 18px;
	--bcn-seal: 156px;
	--bcn-min-reach: 120px;
	--bcn-heading-font: var(--e-global-typography-secondary-font-family, "Cooper Light BT"), "Cooper Lt BT", Georgia, "Times New Roman", serif;
	--bcn-body-font: var(--e-global-typography-text-font-family, "SF Pro Display"), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	box-sizing: border-box;
	padding: 72px 0 96px;
	color: var(--bcn-text);
	font-family: var(--bcn-body-font);
}

.spark-bcn *,
.spark-bcn *::before,
.spark-bcn *::after {
	box-sizing: border-box;
}

.spark-bcn .spark-bcn__title,
.spark-bcn .spark-bcn__card-title,
.spark-bcn .spark-bcn__card-text {
	overflow-wrap: break-word;
}

.spark-bcn--bg {
	background:
		radial-gradient(55% 60% at 100% 0%, rgba(255, 195, 0, 0.09), transparent 70%),
		radial-gradient(45% 55% at 0% 100%, rgba(255, 195, 0, 0.07), transparent 70%),
		#FFFDF9;
}

/* No side padding on any device: the Elementor container around the widget provides the
   same side spacing as the site header, so the section lines up with the header. */
.spark-bcn__inner {
	max-width: 1175px;
	margin: 0 auto;
	padding: 0;
}

/* ==========================================================================
   2. HEADER: label, heading
   ========================================================================== */
.spark-bcn__header {
	text-align: center;
}

.spark-bcn__badge {
	display: inline-block;
	padding: 9px 20px;
	border: 1px solid var(--bcn-border);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--bcn-text);
	font-family: var(--bcn-body-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.spark-bcn .spark-bcn__title {
	margin: 24px auto 0;
	color: var(--bcn-text);
	font-family: var(--bcn-body-font);
	font-size: 34px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
}

/* ==========================================================================
   3. STAGE: cards on a curve · lines · round badge
   ========================================================================== */
.spark-bcn__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bcn-min-reach);
	margin-top: 44px;
}

.spark-bcn .spark-bcn__cards {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 0 1 calc(var(--bcn-card-width) + var(--bcn-depth));
	flex-direction: column;
	gap: var(--bcn-card-gap);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The lines are drawn behind the cards by script.js. */
.spark-bcn__lines {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.spark-bcn__line {
	fill: none;
	stroke: var(--bcn-accent);
	stroke-width: 1.5;
	stroke-dasharray: 5 4;
	stroke-linecap: round;
}

.spark-bcn__dot {
	fill: var(--bcn-accent);
}

.spark-bcn.is-animated .spark-bcn__line {
	animation: spark-bcn-flow 1.2s linear infinite;
}

@keyframes spark-bcn-flow {
	to { stroke-dashoffset: -18; }
}

/* Round badge */
.spark-bcn__seal {
	position: relative;
	z-index: 1;
	flex: 0 0 var(--bcn-seal);
	width: var(--bcn-seal);
	height: var(--bcn-seal);
	border-radius: 50%;
	background: #FFFFFF;
}

.spark-bcn__seal svg,
.spark-bcn__seal img {
	display: block;
	width: 100%;
	height: 100%;
}

.spark-bcn__seal img {
	border-radius: 50%;
	object-fit: contain;
}

.spark-bcn__seal-ring {
	fill: none;
	stroke: var(--bcn-accent);
	stroke-width: 2.5;
}

.spark-bcn .spark-bcn__ring-text {
	fill: var(--bcn-badge-text);
	font-family: var(--bcn-body-font);
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.spark-bcn .spark-bcn__center-text {
	fill: var(--bcn-number);
	font-family: var(--bcn-body-font);
	font-size: 56px;
	font-weight: 300;
	letter-spacing: -0.02em;
}

/* ==========================================================================
   4. CARD: number, title, text
   ========================================================================== */
.spark-bcn .spark-bcn__card {
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(var(--bcn-card-width), calc(100% - var(--bcn-depth)));
	/* Pushes each card right by curve-depth × its distance from the middle (0 … 1). */
	margin: 0 0 0 calc(var(--bcn-depth) * var(--bcn-t, 0));
	padding: 17px 26px;
	border: 1px solid var(--bcn-card-border);
	border-radius: 22px;
	background: var(--bcn-card-bg);
}

.spark-bcn__num {
	display: grid;
	flex: 0 0 52px;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bcn-number-bg);
	color: var(--bcn-number);
	font-family: var(--bcn-body-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.spark-bcn__card-body {
	min-width: 0;
}

.spark-bcn .spark-bcn__card-title {
	margin: 0 0 4px;
	color: var(--bcn-text);
	font-family: var(--bcn-body-font);
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.spark-bcn .spark-bcn__card-text {
	margin: 0;
	color: var(--bcn-muted);
	font-family: var(--bcn-body-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.57;
}

/* ==========================================================================
   RESPONSIVE — same breakpoints as Elementor:
     Desktop  1025px and up   → desktop design (sections 1–4)
     Tablet   768px – 1024px  → section 5 (in-between values)
     Mobile   767px and below → section 6 (mobile design)
   ========================================================================== */

/* ==========================================================================
   5. TABLET (768px – 1024px): same layout, smaller curve and badge
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
	.spark-bcn {
		--bcn-depth: 64px;
		--bcn-seal: 120px;
		--bcn-min-reach: 90px;
		padding: 64px 0 72px;
	}


	.spark-bcn .spark-bcn__card {
		padding: 20px 22px;
		gap: 16px;
	}

	.spark-bcn .spark-bcn__center-text {
		font-size: 50px;
	}
}

/* ==========================================================================
   6. MOBILE (767px and below): cards stacked full width, no lines or badge
   ========================================================================== */
@media (max-width: 767px) {
	.spark-bcn {
		--bcn-card-gap: 20px;
		padding: 48px 0;
	}


	.spark-bcn .spark-bcn__title {
		font-size: 20px;
	}

	/* The desktop line break doesn't suit narrow screens: let the heading wrap naturally. */
	.spark-bcn .spark-bcn__title br {
		display: none;
	}

	.spark-bcn__stage {
		display: block;
		margin-top: 24px;
	}

	.spark-bcn .spark-bcn__card {
		width: 100%;
		margin: 0;
		padding: 28px 20px;
		gap: 16px;
		border-radius: 20px;
	}

	.spark-bcn__num {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
		font-size: 20px;
	}

	.spark-bcn .spark-bcn__card-text {
		font-size: 15px;
		line-height: 1.5;
	}

	.spark-bcn__lines,
	.spark-bcn__seal {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spark-bcn.is-animated .spark-bcn__line {
		animation: none;
	}
}
