/* PS Construction Stages — mobile / tablet polish */

.ps-stages {
	--ps-green: #44c25d;
	--ps-green-2: #9de377;
	--ps-navy: #212d45;
	--ps-muted: #4b4f58;
	--ps-line: #e6ebf0;
	--ps-bg: #f2f5f7;
	width: 100%;
	max-width: 100%;
	padding: 56px 20px;
	box-sizing: border-box;
	overflow-x: clip;
	background: linear-gradient(180deg, #ffffff 0%, var(--ps-bg) 48%, #ffffff 100%);
	font-family: "Open Sans", sans-serif;
	color: var(--ps-navy);
}

.ps-stages__inner {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.ps-stages__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ps-green);
}

.ps-stages__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 5.5vw, 34px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--ps-navy);
	overflow-wrap: anywhere;
}

.ps-stages__lead {
	margin: 0 0 28px;
	max-width: 640px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ps-muted);
}

.ps-stages__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ps-stages__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	min-height: 100%;
	padding: 22px 20px 20px;
	background: #fff;
	border: 1px solid var(--ps-line);
	border-radius: 14px;
	box-sizing: border-box;
	box-shadow: 0 8px 22px rgba(33, 45, 69, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
	.ps-stages__item:hover {
		transform: translateY(-3px);
		border-color: rgba(68, 194, 93, 0.45);
		box-shadow: 0 14px 28px rgba(33, 45, 69, 0.1);
	}
}

.ps-stages__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(68, 194, 93, 0.12);
	color: var(--ps-green);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.ps-stages__body {
	min-width: 0;
}

.ps-stages__item-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ps-navy);
	overflow-wrap: anywhere;
}

.ps-stages__item-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ps-muted);
}

.ps-stages__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-top: 28px;
}

.ps-stages__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: 10px;
	background: var(--ps-green);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(68, 194, 93, 0.28);
	transition: background 0.2s ease, transform 0.15s ease;
	box-sizing: border-box;
	text-align: center;
}

.ps-stages__btn:hover {
	background: #38b150;
	transform: translateY(-1px);
	color: #fff !important;
}

.ps-stages__link {
	font-size: 15px;
	font-weight: 700;
	color: var(--ps-navy) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(68, 194, 93, 0.7);
}

.ps-stages__link:hover {
	color: var(--ps-green) !important;
}

/* Tablet */
@media (max-width: 980px) {
	.ps-stages {
		padding: 48px 18px;
	}

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

/* Phone */
@media (max-width: 640px) {
	.ps-stages {
		padding: 40px 16px;
	}

	.ps-stages__lead {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.ps-stages__list {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ps-stages__item {
		flex-direction: row;
		align-items: flex-start;
		gap: 14px;
		padding: 16px 14px;
		border-radius: 12px;
	}

	.ps-stages__num {
		width: 40px;
		height: 40px;
		font-size: 14px;
		border-radius: 10px;
	}

	.ps-stages__item-title {
		margin-bottom: 6px;
		font-size: 16px;
	}

	.ps-stages__item-text {
		font-size: 13.5px;
		line-height: 1.5;
	}

	.ps-stages__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 22px;
	}

	.ps-stages__btn {
		width: 100%;
		min-height: 48px;
		padding: 14px 18px;
	}

	.ps-stages__link {
		align-self: center;
		padding: 6px 0;
	}
}

@media (max-width: 380px) {
	.ps-stages {
		padding: 36px 12px;
	}

	.ps-stages__item {
		padding: 14px 12px;
		gap: 12px;
	}
}
