/**
 * HNS How It Works page — screenshot reconstruction.
 * Relies on shared tokens/header/footer from hns-home.css.
 */

/* —— Hero —— */
.hns-hiw-hero {
	position: relative;
	width: 100%;
	height: 382px;
	min-height: 382px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
	color: var(--hns-white);
}

.hns-hiw-hero__media {
	position: absolute;
	inset: 0;
	background: var(--hns-navy);
}

.hns-hiw-hero__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

.hns-hiw-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(4, 22, 40, 0.92) 0%,
		rgba(4, 22, 40, 0.78) 32%,
		rgba(4, 22, 40, 0.42) 58%,
		rgba(4, 22, 40, 0.18) 78%,
		rgba(4, 22, 40, 0.08) 100%
	);
	pointer-events: none;
}

.hns-hiw-hero__content {
	position: relative;
	z-index: 1;
	padding: 56px 0;
	max-width: 560px;
	width: min(560px, calc(100% - (var(--hns-gutter) * 2)));
	margin: 0 auto 0 max(calc((89% - var(--hns-container)) / 2), var(--hns-gutter));
	text-align: left;
}

.hns-hiw-hero__title {
	margin: 0 0 14px;
	font-size: clamp(36px, 4.2vw, 52px);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.05;
	text-transform: uppercase;
	color: #ffffff;
	text-align: left;
}

.hns-hiw-hero__subtitle {
	margin: 0;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.95);
	text-align: left;
}

/* —— Process steps —— */
.hns-hiw-steps {
	background: var(--hns-white);
	padding: 72px 0 80px;
}

.hns-hiw-steps__list {
	list-style: none;
	margin: 0 auto 0 0;
	padding: 0;
	max-width: 820px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hns-hiw-step {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 28px;
	align-items: center;
	position: relative;
	padding: 28px 0;
}

/* Vertical connector through circle centers */
.hns-hiw-step:not(:last-child) .hns-hiw-step__marker::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(50% + 36px);
	bottom: -28px;
	width: 2px;
	transform: translateX(-50%);
	background: #cfd5dc;
}

.hns-hiw-step__marker {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
}

.hns-hiw-step__circle {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 30%, #1a3a55 0%, var(--hns-navy) 55%, #02101c 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(4, 22, 40, 0.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.hns-hiw-step__circle img {
	width: 40px;
	height: 40px;
}

.hns-hiw-step__body {
	min-width: 0;
}

.hns-hiw-step__head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.hns-hiw-step__num {
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--hns-orange);
	flex: 0 0 auto;
}

.hns-hiw-step__title {
	margin: 0;
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--hns-navy);
}

.hns-hiw-step__text {
	margin: 0;
	padding-left: calc(clamp(28px, 2.6vw, 34px) + 14px);
	max-width: 560px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--hns-text);
}

/* —— Closing CTA —— */
.hns-hiw-cta {
	background: var(--hns-navy);
	padding: 64px 0 60px;
	text-align: center;
	color: var(--hns-white);
}

.hns-hiw-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hns-hiw-cta__line {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
	color: #ffffff;
}

.hns-hiw-cta__accent {
	color: var(--hns-orange);
}

.hns-hiw-cta__maple {
	display: inline-flex;
	margin-top: 28px;
	width: 52px;
	height: 52px;
}

.hns-hiw-cta__maple img {
	width: 52px;
	height: 52px;
	display: block;
}

/* —— Responsive —— */
@media (max-width: 700px) {
	.hns-hiw-hero {
		height: 220px;
		min-height: 220px;
	}

	.hns-hiw-hero__content {
		padding: 48px 0;
		margin-left: var(--hns-gutter);
		width: calc(100% - (var(--hns-gutter) * 2));
		max-width: none;
	}

	.hns-hiw-steps {
		padding: 56px 0 64px;
	}

	.hns-hiw-step {
		grid-template-columns: 64px 1fr;
		gap: 16px;
		padding: 22px 0;
	}

	.hns-hiw-step__circle {
		width: 58px;
		height: 58px;
	}

	.hns-hiw-step__circle img {
		width: 32px;
		height: 32px;
	}

	.hns-hiw-step:not(:last-child) .hns-hiw-step__marker::after {
		top: calc(50% + 30px);
		bottom: -22px;
	}

	.hns-hiw-step__text {
		padding-left: 0;
	}

	.hns-hiw-cta {
		padding: 52px 0 48px;
	}

	.hns-hiw-cta__line {
		font-size: clamp(18px, 5.2vw, 24px);
	}
}
