/**
 * New Realm Transportation LLC — Process Section Styles
 *
 * Horizontal timeline showing step-by-step logistics process.
 *
 * @package NewRealm
 * @since   1.0.0
 */

/* ignoring loop detection */
.process-section {
	background-color: var(--color-white, #ffffff);
	padding: 4.5rem 0;
	color: var(--color-dark);
}

.process-section__header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 4.5rem auto;
}

.process-section__title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--color-dark);
	margin-top: 0;
	margin-bottom: 1.25rem;
	letter-spacing: -0.75px;
}

/* Timeline Container */
.process-timeline {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 2.5rem;
	z-index: 2;
}

/* Connecting line in background on desktop */
.process-timeline::before {
	content: '';
	position: absolute;
	top: 32px; /* Centers with the 64px circle */
	left: 5%;
	right: 5%;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--color-border) 0, var(--color-border) 6px, transparent 6px, transparent 12px);
	z-index: 1;
}

/* Individual Step */
.process-step {
	position: relative;
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	z-index: 2;
}

/* Step Circle (Icon & Number indicator) */
.process-step__badge-wrapper {
	position: relative;
	margin-bottom: 2rem;
}

.process-step__icon-circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--color-white);
	border: 2px solid var(--color-maroon);
	color: var(--color-maroon);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.5rem;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.process-step__number {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--color-gold);
	color: var(--color-white);
	font-size: 0.8rem;
	font-weight: 700;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 2px solid var(--color-white);
	box-shadow: var(--box-shadow);
}

.process-step__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-dark);
	margin-top: 0;
	margin-bottom: 0.85rem;
	letter-spacing: -0.25px;
}

.process-step__desc {
	font-size: 0.95rem;
	line-height: 1.5;
	color: rgba(30, 30, 36, 0.65);
	margin: 0;
	max-width: 240px;
}

/* Hover Animations */
.process-step:hover .process-step__icon-circle {
	background-color: var(--color-maroon);
	color: var(--color-white);
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(128, 0, 32, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
	.process-section {
		padding: 3.5rem 0;
	}
	.process-section__title {
		font-size: 2.5rem;
	}
	.process-timeline {
		gap: 1.5rem;
	}
}

@media screen and (max-width: 768px) {
	.process-section {
		padding: 3rem 0;
	}
	
	.process-section__title {
		font-size: 2.15rem;
	}

	/* Turn timeline vertical on mobile/tablets */
	.process-timeline {
		flex-direction: column;
		gap: 2.5rem;
		align-items: flex-start;
		padding-left: 2rem;
	}

	.process-timeline::before {
		top: 10px;
		bottom: 10px;
		left: 52px; /* Center of the vertical path line */
		width: 2px;
		height: calc(100% - 20px);
		background: repeating-linear-gradient(180deg, var(--color-border) 0, var(--color-border) 6px, transparent 6px, transparent 12px);
	}

	.process-step {
		flex-direction: row;
		text-align: left;
		align-items: flex-start;
		gap: 2rem;
		width: 100%;
	}

	.process-step__badge-wrapper {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.process-step__desc {
		max-width: 100%;
	}
}

@media screen and (max-width: 480px) {
	.process-section__title {
		font-size: 1.85rem;
	}
}
