/* ============================================================
   Service Scroll Pin Widget — serenity-toolkit-pro
   ============================================================ */

.ssp-outer *,
.ssp-outer *::before,
.ssp-outer *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ssp-outer { position: relative; }

.ssp-sticky {
	position: sticky;
	top: 0;
	height: 85vh;
	overflow: hidden;
	width: 100%;
}

.ssp-track {
	display: flex;
	height: 100%;
	will-change: transform;
	transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

/* ── Card ──────────────────────────────────────── */
.ssp-card {
	min-width: 100%;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	background: #ffffff;
}

/* ── Content ───────────────────────────────────── */
.ssp-content {
	flex: 1;
	padding: 60px 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ssp-num {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #aaaaaa;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
}

.ssp-title {
	font-family: 'Inter', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #0d0d0d;
	line-height: 1.2;
	margin-bottom: 20px;
}

.ssp-desc {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #444444;
	line-height: 1.7;
	margin-bottom: 36px;
}

.ssp-desc p { margin: 0 0 1em; }
.ssp-desc p:last-child { margin-bottom: 0; }

/* ── Buttons ───────────────────────────────────── */
.ssp-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.ssp-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: rgba(107, 136, 187, 0.12);
	color: #6B88BB;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 10px 10px 10px 20px;
	border-radius: 50px;
	border: 1.5px solid rgba(107, 136, 187, 0.4);
	transition: background 0.3s, border-color 0.3s, color 0.3s;
	width: fit-content;
	white-space: nowrap;
	cursor: pointer;
}

.ssp-btn:hover {
	background: #6B88BB;
	border-color: #6B88BB;
	color: #ffffff;
}

.ssp-btn-arrow {
	width: 32px;
	height: 32px;
	background: rgba(107, 136, 187, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.3s;
}

.ssp-btn:hover .ssp-btn-arrow { background: rgba(255, 255, 255, 0.3); }

.ssp-btn-arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #6B88BB;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s, stroke 0.3s;
}

.ssp-btn:hover .ssp-btn-arrow svg {
	stroke: #ffffff;
	transform: rotate(-45deg);
}

/* ── Image ─────────────────────────────────────── */
.ssp-image {
	width: 45%;
	flex-shrink: 0;
	overflow: hidden;
	align-self: stretch;
}

.ssp-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ── Dots ──────────────────────────────────────── */
.ssp-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 16px 0 8px;
	z-index: 10;
}

.ssp-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(107, 136, 187, 0.3);
	transition: background 0.3s, transform 0.3s;
	cursor: pointer;
}

.ssp-dot.active {
	background: #6B88BB;
	transform: scale(1.3);
}

/* ── Hint ──────────────────────────────────────── */
.ssp-hint {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #aaaaaa;
	transition: opacity 0.4s;
	padding: 0 40px 8px;
	z-index: 10;
}

.ssp-hint.hidden { opacity: 0; pointer-events: none; }

.ssp-hint svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #aaaaaa;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	animation: ssp-bounce 1.4s ease-in-out infinite;
}

@keyframes ssp-bounce {
	0%, 100% { transform: translateX(0); }
	50%       { transform: translateX(5px); }
}

/* ── Mobile / Tablet ───────────────────────────── */
@media (max-width: 1024px) {
	/* Kill sticky + horizontal scroll entirely */
	.ssp-outer { height: auto !important; }

	.ssp-sticky {
		position: relative !important;
		top: auto !important;
		height: auto !important;
		overflow: visible !important;
	}

	.ssp-track {
		flex-direction: column !important;
		transform: none !important;
		transition: none !important;
		height: auto !important;
	}

	/* Each card: image top, content below, normal flow */
	.ssp-card {
		flex-direction: column !important;
		align-items: stretch !important;
		height: auto !important;
		min-width: 100% !important;
		width: 100% !important;
		margin-bottom: 40px;
	}

	.ssp-image {
		width: 100% !important;
		height: 280px !important;
		align-self: auto !important;
		order: -1;
		margin: 0 !important;
	}

	.ssp-content {
		padding: 32px 24px !important;
		flex: none !important;
		overflow-y: visible !important;
		justify-content: flex-start !important;
	}

	.ssp-title { font-size: 24px; }
	.ssp-desc  { font-size: 14px; margin-bottom: 24px; }
	.ssp-btns  { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; }

	/* Hide dots and hint on mobile */
	.ssp-dots,
	.ssp-hint { display: none !important; }
}
