/**
 * Module: Why Choose Section (Why JHG: sticky thesis + scroll-driven rail)
 * Loaded when `why_choose_section` layout is present on the page.
 */

:root {
	--indigo: #002B5C;
	--crimson: #ED1C24;
	--frost: #EDEDED;
	--white: #FFFFFF;
	--ink: #1C2230;
	--ink-soft: #4A5568;
	--line: #D9DCE1;
	--display: 'Gotham', 'Montserrat', system-ui, sans-serif;
	--body: 'Open Sans', system-ui, sans-serif;
	--max: 1180px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 6px;
}

/* Base Section Styling */
.why,
.why-choose-section {
	background: var(--frost, #EDEDED);
	padding-top: 72px;
	padding-bottom: 72px;
	position: relative;
}

.why .wrap {
	max-width: var(--max, 1180px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(20px, 4vw, 48px));
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 72px;
	align-items: start;
}

/* Left Column: Thesis */
.why .thesis {
	position: sticky;
	top: 112px;
}

.why .thesis .eyebrow,
.why .eyebrow,
.why-choose-section .eyebrow {
	font-family: var(--display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson, #ED1C24) !important;
	margin-bottom: 12px;
	display: inline-block;
}

.why h2 {
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	color: var(--indigo, #002B5C);
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

.why .thesis p {
	font-family: var(--body);
	color: var(--ink-soft, #4A5568);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	margin-top: 18px;
	margin-bottom: 0;
	max-width: 440px;
}

/* Blue Statistic / Zero Card */
.zero {
	margin-top: 28px;
	background: var(--indigo, #002B5C);
	color: var(--white, #FFFFFF);
	border-radius: 10px;
	padding: 22px 24px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: center;
	box-shadow: 0 20px 40px rgba(0, 43, 92, .18);
}

.zero .big {
	font-family: var(--display);
	font-weight: 800;
	font-size: 64px;
	line-height: .9;
	color: var(--crimson, #ED1C24);
	letter-spacing: -.04em;
}

.zero .t {
	font-family: var(--body);
	font-size: 14px;
	color: rgba(255, 255, 255, .85);
	line-height: 1.45;
}

.zero .t b {
	color: #ffffff;
	font-family: var(--display);
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 2px;
}

/* CTA Button */
.why .thesis .btn {
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 14px 26px;
	border-radius: var(--radius, 6px);
	border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	text-align: center;
	box-sizing: border-box;
}

.why .thesis .btn:hover {
	transform: translateY(-1px);
}

.why .thesis .btn-primary,
.why .thesis .primary {
	background: var(--crimson, #ED1C24) !important;
	color: var(--white, #FFFFFF) !important;
	border-color: var(--crimson, #ED1C24) !important;
}

.why .thesis .btn-primary:hover,
.why .thesis .primary:hover {
	background: #C9151C !important;
	border-color: #C9151C !important;
	color: var(--white, #FFFFFF) !important;
}

.why .thesis .btn-outline,
.why .thesis .outline {
	border: 2px solid var(--indigo, #002B5C) !important;
	color: var(--indigo, #002B5C) !important;
	background: transparent !important;
}

.why .thesis .btn-outline:hover,
.why .thesis .outline:hover {
	background: var(--indigo, #002B5C) !important;
	color: var(--white, #FFFFFF) !important;
}

/* Right Column: Reasons Timeline List */
.reasons {
	list-style: none;
	position: relative;
	padding-left: 56px;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* Background vertical rail */
.reasons::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 18px;
	bottom: 18px;
	width: 2px;
	background: var(--line, #D9DCE1);
}

/* Scroll-driven filling rail */
.reasons .rail {
	position: absolute;
	left: 17px;
	top: 18px;
	width: 2px;
	height: 0;
	background: var(--crimson, #ED1C24);
	transition: height .12s linear;
}

/* Individual Reason Item */
.reason {
	position: relative;
	padding: 20px 0 22px;
	border-bottom: 1px solid var(--line, #D9DCE1);
	opacity: .32;
	transform: translateX(14px);
	transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}

.reason:last-child {
	border-bottom: 0;
}

.reason.on {
	opacity: 1;
	transform: none;
}

/* Checkmark Circle */
.reason .chk {
	position: absolute;
	left: -56px;
	top: 20px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid var(--line, #D9DCE1);
	display: grid;
	place-items: center;
	transition: border-color .35s, background .35s, transform .35s;
}

.reason .chk svg {
	width: 18px;
	height: 18px;
	stroke: var(--crimson, #ED1C24);
	fill: none;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 30;
	stroke-dashoffset: 32;
	transition: stroke-dashoffset .45s ease .15s;
}

.reason.on .chk {
	border-color: var(--crimson, #ED1C24);
	background: #ffffff;
	transform: scale(1.06);
}

.reason.on .chk svg {
	stroke-dashoffset: 0;
}

.reason h3 {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 700;
	color: var(--indigo, #002B5C);
	margin: 0 0 6px;
	line-height: 1.3;
}

.reason p {
	font-family: var(--body);
	font-size: 15px;
	color: var(--ink-soft, #4A5568);
	line-height: 1.55;
	margin: 0;
	max-width: 560px;
}

.reason .k {
	display: inline-block;
	position: relative;
	z-index: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
	.why .wrap {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.why .thesis {
		position: static;
	}
}

@media (max-width: 720px) {
	.why,
	.why-choose-section {
		padding-top: 52px;
		padding-bottom: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reason {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.reason .chk svg {
		stroke-dashoffset: 0 !important;
		transition: none !important;
	}

	.reasons .rail {
		height: 100% !important;
		transition: none !important;
	}
}
