/**
 * Primii pași la revenire — guided steps page.
 * Vertical timeline with alternating illustrations + sticky scroll-spy sidebar.
 * Palette: #07214d navy, #5182f6 azure, #ffd200 yellow, #f2f5f7 light, #ededed border.
 */

.primii-pasi {
	background: #fff;
}

.primii-pasi__container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Hero ---- */
.primii-pasi__hero {
	background: #07214d;
	color: #fff;
	padding: 56px 0 64px;
	margin-bottom: 56px;
}

.primii-pasi__title {
	color: #fff !important;
	font-size: 2.6rem !important;
	line-height: 1.15 !important;
	margin: 12px 0 16px !important;
	max-width: 18ch;
}

.primii-pasi__intro {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.125rem;
	line-height: 1.6;
	max-width: 62ch;
	margin: 0;
}

/* ---- Layout ---- */
.primii-pasi__layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 56px;
	align-items: start;
	padding-bottom: 80px;
}

/* ---- Scroll-spy sidebar ---- */
.primii-pasi__nav {
	position: sticky;
	top: 110px;
}

.pp-nav__heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #07214d;
	margin: 0 0 16px;
}

.pp-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pp-nav__item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	text-decoration: none;
	color: #6b7280;
	transition: color 0.2s;
}

.pp-nav__item.is-active a,
.pp-nav__item:hover a {
	color: #07214d;
}

.pp-nav__marker {
	position: relative;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #ededed;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	transition: all 0.2s;
}

.pp-nav__num {
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
}

.pp-nav__check {
	display: none;
	font-size: 11px;
	color: #07214d;
}

.pp-nav__item.is-active .pp-nav__marker {
	border-color: #5182f6;
	background: #5182f6;
}

.pp-nav__item.is-active .pp-nav__num {
	color: #fff;
}

.pp-nav__item.is-done .pp-nav__marker {
	border-color: #ffd200;
	background: #ffd200;
}

.pp-nav__item.is-done .pp-nav__num {
	display: none;
}

.pp-nav__item.is-done .pp-nav__check {
	display: inline-block;
}

.pp-nav__label {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
}

/* ---- Timeline of steps ---- */
.primii-pasi__steps {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primii-pasi__steps::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: #ededed;
	transform: translateX(-50%);
}

.pp-step {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	margin-bottom: 72px;
	scroll-margin-top: 110px;
}

.pp-step:last-child {
	margin-bottom: 0;
}

.pp-step--alt {
	flex-direction: row-reverse;
}

.pp-step__media {
	flex: 0 0 41%;
	text-align: center;
}

/* Pozele de capitol din ghid sunt pătrate (399×399), deci `border-radius: 50%`
   dă un cerc perfect; `object-fit: cover` e plasa de siguranță dacă vreo poză
   viitoare vine cu alt raport. */
.pp-step__img {
	width: 220px;
	height: 220px;
	max-width: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.pp-step__body {
	flex: 0 0 41%;
}

/* Centered numbered node on the line */
.pp-step__num {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #07214d;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 6px #fff;
	transition: background 0.25s, transform 0.25s;
}

.pp-step.is-active .pp-step__num {
	background: #5182f6;
	transform: translate(-50%, -50%) scale(1.08);
}

.pp-step.is-done .pp-step__num {
	background: #ffd200;
	color: #07214d;
}

.pp-step__title {
	font-size: 1.5rem !important;
	color: #07214d;
	margin: 0 0 12px !important;
}

.pp-step__text {
	color: #374151;
	line-height: 1.65;
	margin: 0 0 18px;
}

.pp-step__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #5182f6;
	text-decoration: none;
}

.pp-step__link:hover {
	text-decoration: underline;
}

.pp-step__link .icon-arrow-right {
	font-size: 0.8em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.primii-pasi__layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.primii-pasi__nav {
		display: none;
	}

	.primii-pasi__steps::before {
		left: 26px;
	}

	.pp-step,
	.pp-step--alt {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding-left: 72px;
		margin-bottom: 48px;
	}

	.pp-step__media,
	.pp-step__body {
		flex: 1 1 auto;
		width: 100%;
		text-align: left;
	}

	.pp-step__img {
		width: 160px;
		height: 160px;
	}

	.pp-step__num {
		left: 26px;
		top: 0;
		transform: translate(-50%, 0);
		width: 44px;
		height: 44px;
		font-size: 1.05rem;
	}

	.pp-step.is-active .pp-step__num {
		transform: translate(-50%, 0) scale(1.05);
	}

	.primii-pasi__title {
		font-size: 2rem !important;
	}
}
