/**
 * Process Flow Section Styles
 *
 * @package Eryvium
 * @since Eryvium 1.0.0
 */

.process-flow-section {
	position: relative;
	background: linear-gradient(to bottom, #ffffff 0%, #cce3fb 100%);
	padding: clamp(80px, 12vw, 160px) 0;
}

.process-flow-header {
	margin-bottom: 40px;
	text-align: center;
}

.process-flow-steps {
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0;
	padding: 0;
}

.process-flow-line {
	position: absolute;
	top: 40px;
	left: 100px;
	right: 40px;
	height: 2px;
	background: rgba(7, 179, 241, 0.22);
	z-index: 1;
	width: 80%;
	overflow: hidden;
}

.process-flow-line-progress {
	position: absolute;
	inset: 0;
	background: #07B3F1;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 800ms ease-out;
	will-change: transform;
}

.process-flow-step {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	max-width: 250px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 800ms ease-out, transform 800ms ease-out;
	will-change: opacity, transform;
}

.process-flow-step.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.process-flow-step:not(:last-child)::after {
	display: none;
}

.process-flow-step-circle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: #07B3F1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	box-shadow: 0 4px 12px rgba(7, 179, 241, 0.3);
}

.process-flow-step-number {
	color: #ffffff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
}

.process-flow-step-content {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.process-flow-step-title {
	color: #1F1F1F;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	white-space: nowrap;
}

.process-flow-step-description {
	color: #4F6478;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	margin: 0;
}

/* Sourcing & Procurement page specific styles */
.sourcing-procurement-page .process-flow-line {
	position: absolute;
	top: 40px;
	left: 90px;
	right: 40px;
	height: 2px;
	background: rgba(7, 179, 241, 0.22);
	z-index: 1;
	width: 86%;
	overflow: hidden;
}

/* Offtake Structuring page specific styles */
.offtake-structuring-page .process-flow-line {
	position: absolute;
	top: 40px;
	left: 100px;
	right: 40px;
	height: 2px;
	background: rgba(7, 179, 241, 0.22);
	z-index: 1;
	width: 80%;
	overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1440px) {
	.process-flow-line {
		position: absolute;
		top: 40px;
		left: 100px;
		right: 40px;
		height: 2px;
		background: rgba(7, 179, 241, 0.22);
		z-index: 1;
		width: 80%;
		overflow: hidden;
	}
}
@media (max-width: 1024px) {
	.process-flow-steps {
		flex-wrap: wrap;
		justify-content: center;
		gap: 40px;
	}
	
	.process-flow-step {
		flex: 0 0 auto;
		max-width: 180px;
	}
	
	.process-flow-line {
		display: none;
	}
}

@media (max-width: 768px) {
	.process-flow-section {
		padding: 60px 0;
	}
	
	.process-flow-header {
		margin-bottom: 60px;
	}
	
	.process-flow-steps {
		flex-direction: column;
		align-items: center;
		gap: 40px;
		padding: 20px 0;
	}
	
	.process-flow-step {
		max-width: 100%;
	}
	
	.process-flow-line {
		display: none;
	}
}

@media (max-width: 320px) {
	.process-flow-section {
		padding: 60px 16px;
	}
}
