/* ==========================================================================
   Process River Timeline — process-river.css
   Scroll-drawing SVG path with alternating left/right content stops.
   Used on sign-services.html "How We Work" section.
   ========================================================================== */

:root {
	--river-red: #e36159;
	--river-red-30: rgba(227, 97, 89, 0.3);
}

/* ---- Timeline section ---- */
.process-river-section {
	padding: 80px 0 100px;
	background: #fff;
	overflow: hidden;
}
.process-river-section .section-heading {
	text-align: center;
	margin-bottom: 60px;
}
.process-river-section .section-heading h2 {
	font-size: 2.4rem;
	font-weight: 800;
	color: #212529;
}

/* ---- River wrapper (holds SVG + stops) ---- */
.river-timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

/* ---- SVG river path ---- */
.river-svg {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}
.river-path-bg {
	fill: none;
	stroke: var(--river-red-30);
	stroke-width: 2;
}
.river-path-draw {
	fill: none;
	stroke: var(--river-red);
	stroke-width: 2;
	stroke-linecap: round;
	transition: none; /* animated via JS */
}

/* ---- Stop rows ---- */
.river-stop {
	position: relative;
	display: flex;
	align-items: flex-start;
	padding: 40px 0;
	z-index: 1;
}

/* Alternating layout */
.river-stop--left .river-stop__content {
	order: 1;
	text-align: right;
	padding-right: 80px;
}
.river-stop--left .river-stop__node {
	order: 2;
}
.river-stop--left .river-stop__spacer {
	order: 3;
}

.river-stop--right .river-stop__spacer {
	order: 1;
}
.river-stop--right .river-stop__node {
	order: 2;
}
.river-stop--right .river-stop__content {
	order: 3;
	text-align: left;
	padding-left: 80px;
}

/* Each column sizing */
.river-stop__content {
	flex: 1 1 0;
	min-width: 0;
}
.river-stop__spacer {
	flex: 1 1 0;
	min-width: 0;
}
.river-stop__node {
	flex: 0 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

/* ---- Node dot ---- */
.river-node {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--river-red);
	background: #fff;
	transition: background 0.5s ease, box-shadow 0.5s ease;
	position: relative;
	z-index: 2;
}
.river-node--active {
	background: var(--river-red);
	box-shadow: 0 0 0 6px rgba(227, 97, 89, 0.18);
}

/* ---- Content styling ---- */
.river-stop__number {
	font-size: 3rem;
	font-weight: 800;
	color: var(--river-red);
	line-height: 1;
	margin-bottom: 4px;
	opacity: 0.25;
	transition: opacity 0.6s ease;
}
.river-stop--active .river-stop__number {
	opacity: 1;
}
.river-stop__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #212529;
	margin-bottom: 8px;
}
.river-stop__desc {
	font-size: 1rem;
	color: #555;
	line-height: 1.65;
	margin: 0;
}

/* Fade-in for content */
.river-stop__content {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.river-stop--active .river-stop__content {
	opacity: 1;
	transform: translateY(0);
}

/* ---- A: Hero intro with stroke text ---- */
.river-hero {
	position: relative;
	padding: 80px 0 40px;
	overflow: hidden;
}
.river-hero__stroke {
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: rgba(227, 97, 89, 0.10);
	font-size: 7rem;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	z-index: 0;
	letter-spacing: 0.04em;
}
.river-hero__content {
	position: relative;
	z-index: 1;
}
.river-hero__subtitle {
	letter-spacing: 3px;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--river-red);
}

/* ---- B: Accent photos in spacer columns ---- */
.river-stop__accent {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
}
.river-stop__accent img {
	width: 100%;
	max-width: 180px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	opacity: 0.35;
	transition: opacity 0.8s ease;
}
.river-stop--active .river-stop__accent img {
	opacity: 0.85;
}

/* ---- C: Culmination block ---- */
.river-culmination {
	position: relative;
	margin-top: 60px;
	text-align: center;
}
.river-culmination__image {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 0;
}
.river-culmination__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(33,37,41,0) 0%, rgba(33,37,41,0.85) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 2rem 3rem;
}
.river-culmination__text {
	font-size: 1.5rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.5;
	max-width: 600px;
}
.river-culmination__text span {
	color: var(--river-red);
}

/* ---- Responsive: mobile linearise ---- */
@media (max-width: 991.98px) {
	.river-svg {
		left: 24px;
		transform: none;
		width: 2px;
	}

	.river-stop {
		flex-direction: row !important;
		padding: 30px 0;
	}
	.river-stop__spacer {
		display: none !important;
	}
	.river-stop__node {
		order: 1 !important;
		flex: 0 0 24px;
		margin-left: 12px;
	}
	.river-stop__content {
		order: 2 !important;
		text-align: left !important;
		padding-left: 32px !important;
		padding-right: 0 !important;
		flex: 1;
	}

	.river-timeline {
		padding-left: 0;
	}

	.river-stop__number {
		font-size: 2.2rem;
	}
	.river-stop__title {
		font-size: 1.15rem;
	}

	/* Hide accent photos on mobile — spacer is hidden anyway */
	.river-stop__accent {
		display: none !important;
	}

	/* Stroke text scales down */
	.river-hero__stroke {
		font-size: 3.5rem;
	}

	/* Culmination text */
	.river-culmination__text {
		font-size: 1.15rem;
	}
}
