/**
 * Home Page — Process Section
 *
 * 6-step horizontal timeline with numbered badges,
 * connecting line, and staggered blur-reveal animations.
 *
 * Dependencies: home-base.css, child theme design tokens
 */

/* ============================================
   SECTION BACKGROUND
   ============================================ */

.home-process {
	--section-bg: var(--color-bg-secondary);
}

/* ============================================
   HEADER
   ============================================ */

.home-process__header {
	text-align: center;
	margin-bottom: var(--spacing-xl);
}

.home-process__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 1rem;
}

.home-process__kicker-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-accent);
}

.home-process__title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--color-text-primary);
	margin: 0;
}

/* ============================================
   TIMELINE — Horizontal layout
   ============================================ */

.home-process__timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 1.5rem;
}

/* Connecting line (horizontal, through badges) */
.home-process__line {
	display: none;
}

@media (min-width: 768px) {
	.home-process__timeline {
		grid-template-columns: repeat(3, 1fr);
		gap: 3rem 2rem;
	}
}

@media (min-width: 1024px) {
	.home-process__timeline {
		grid-template-columns: repeat(6, 1fr);
		gap: 0 1.5rem;
	}

	.home-process__line {
		display: block;
		position: absolute;
		top: 28px; /* center of badge */
		left: calc(100% / 12); /* center of first badge */
		right: calc(100% / 12); /* center of last badge */
		height: 2px;
		background: var(--color-border);
		z-index: 0;
	}

	/* Gradient glow on the line */
	.home-process__line::after {
		content: '';
		position: absolute;
		inset: -1px 0;
		height: 4px;
		background: linear-gradient(90deg,
			var(--color-accent),
			rgba(167, 139, 250, 0.4),
			var(--color-accent)
		);
		opacity: 0.25;
		border-radius: 2px;
	}
}

/* ============================================
   STEP — Single step item
   ============================================ */

.home-process__step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ============================================
   BADGE — Numbered circle
   ============================================ */

.home-process__badge {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-accent), #a78bfa);
	margin-bottom: 1.25rem;
	flex-shrink: 0;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
	            box-shadow 0.4s ease;
}

/* Outer ring / glow */
.home-process__badge::before {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-accent), #a78bfa);
	opacity: 0.2;
	z-index: -1;
	transition: opacity 0.4s ease, inset 0.4s ease;
}

.home-process__step:hover .home-process__badge {
	transform: translateY(-4px) scale(1.08);
	box-shadow: 0 8px 24px -4px rgba(96, 165, 250, 0.35);
}

.home-process__step:hover .home-process__badge::before {
	inset: -8px;
	opacity: 0.3;
}

.home-process__number {
	font-size: 1.25rem;
	font-weight: 800;
	color: #ffffff;
	line-height: 1;
}

/* ============================================
   STEP TEXT
   ============================================ */

.home-process__step-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-text-primary);
	margin: 0 0 0.5rem;
	transition: color 0.3s ease;
}

.home-process__step:hover .home-process__step-title {
	color: var(--color-accent);
}

.home-process__step-desc {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--color-text-muted);
	margin: 0;
	max-width: 180px;
}

/* ============================================
   SCROLL REVEAL — Staggered per step
   ============================================ */

.home-process .home-reveal {
	opacity: 0;
	transform: translateY(2rem);
	filter: blur(4px);
}

.home-process .home-reveal.home-reveal--visible {
	animation: processReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-process__header.home-reveal--visible                   { animation-delay: 0s; }
.home-process__step[data-index="0"].home-reveal--visible     { animation-delay: 0.08s; }
.home-process__step[data-index="1"].home-reveal--visible     { animation-delay: 0.16s; }
.home-process__step[data-index="2"].home-reveal--visible     { animation-delay: 0.24s; }
.home-process__step[data-index="3"].home-reveal--visible     { animation-delay: 0.32s; }
.home-process__step[data-index="4"].home-reveal--visible     { animation-delay: 0.40s; }
.home-process__step[data-index="5"].home-reveal--visible     { animation-delay: 0.48s; }

@keyframes processReveal {
	from {
		opacity: 0;
		transform: translateY(2rem);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
	.home-process__step-desc {
		max-width: 160px;
	}

	.home-process__badge {
		width: 48px;
		height: 48px;
	}

	.home-process__number {
		font-size: 1.1rem;
	}
}

@media (min-width: 1024px) {
	.home-process__step-title {
		font-size: 1.05rem;
	}

	.home-process__step-desc {
		font-size: 0.875rem;
	}
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	.home-process .home-reveal {
		opacity: 1;
		transform: none;
		filter: none;
	}

	.home-process .home-reveal.home-reveal--visible {
		animation: none;
	}

	.home-process__badge {
		transition: none;
	}

	.home-process__badge::before {
		transition: none;
	}

	.home-process__step-title {
		transition: none;
	}
}
