/* Steps with numbered boxes and connectors. Used on the home page and on Voor maneges. */

/* ------------------------------------------------------------------- Steps */

.steps {
	padding: 12px;
	border-radius: 32px;
	background: #fef3ea;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.steps__label {
	margin: 0;
	padding: 6px 10px 14px;
	color: var(--rbnl-ink);
	font-family: var(--rbnl-font-heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.6;
}

.steps__list {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.step-box {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	padding: 22px;
	border-radius: 28px;
	background: var(--rbnl-white);
	transition:
		transform var(--rbnl-dur) var(--rbnl-ease),
		box-shadow var(--rbnl-dur) var(--rbnl-ease);
}

.step-box:hover {
	z-index: 3;
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(33, 30, 100, 0.12);
}

.step-box__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.step-box__num {
	display: inline-block;
	color: var(--rbnl-orange-text);
	font-family: var(--rbnl-font-heading);
	font-size: 64px;
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.04em;
	transition: transform 0.5s var(--rbnl-ease);
}

.step-box__photo {
	display: block;
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: 0 12px 26px rgba(33, 30, 100, 0.14);
	transform: rotate(var(--tilt, -4deg));
	transition: transform 0.6s var(--rbnl-ease);
}

.step-box__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--rbnl-ease);
}

.step-box:hover .step-box__photo {
	transform: rotate(0deg);
}

.step-box:hover .step-box__photo img {
	transform: scale(1.08);
}

.step-box:hover .step-box__num {
	transform: rotate(-6deg) scale(1.06);
}

.step-box__title {
	margin-bottom: 6px;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.step-box__text p {
	margin: 0;
}

/* Connector between two steps (arrow circle). */
.steps__connector {
	position: relative;
	height: 16px;
}

.steps__connector span {
	position: absolute;
	left: 50%;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: var(--rbnl-orange);
	box-shadow: 0 0 0 6px #fef3ea;
	color: var(--rbnl-white);
	transform: rotate(90deg);
}

@media (min-width: 1024px) {
	/* Steps */
	.steps {
		padding: 20px;
		border-radius: 40px;
	}

	.steps__label {
		padding: 8px 12px 20px;
	}

	.steps__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.step-box {
		gap: 22px;
		padding: 28px;
	}

	.step-box__num {
		font-size: 84px;
	}

	.step-box__photo {
		width: 150px;
		height: 150px;
	}

	.steps__connector {
		position: absolute;
		top: 159px;
		left: 0;
		width: 100%;
		height: 0;
		pointer-events: none;
	}

	.steps__connector span {
		left: calc((100% - 28px) / 3 + 7px);
		transform: none;
	}

	.steps__connector ~ .steps__connector span {
		left: calc((100% - 28px) / 3 * 2 + 21px);
	}
}
