/* ================================================================
   How It Works Page (template-how-it-works.php)

   Sections:
     1. Hero
     2. Steps (alternating left/right layout)
     3. Why Us
     4. Testimonial pullquote
   ================================================================ */


/* ================================================================
   1. HERO
   ================================================================ */

.hiw-hero {
	position: relative;
	background: var(--lane-base);
	padding: var(--sp-16) 0 var(--sp-20);
	overflow: hidden;
	text-align: center;
}

.hiw-hero-lanes {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.hiw-hero-express-l,
.hiw-hero-express-r,
.hiw-hero-line {
	position: absolute;
	top: -100px;
	height: 1400px;
	transform: skewX(-18deg);
}

/* Left side: express lane + double highway divider */
.hiw-hero-express-l {
	background: var(--lane-express);
	left: -60px;
	width: 340px;
}
.hiw-hero-line {
	background: var(--lane-highway);
	width: 10px;
}
.hiw-hero-line-l1 { left: 280px; }
.hiw-hero-line-l2 { left: 300px; }

/* Right side: mirrored */
.hiw-hero-line-r1 { right: 300px; }
.hiw-hero-line-r2 { right: 280px; }
.hiw-hero-express-r {
	background: var(--lane-express);
	right: -60px;
	width: 340px;
}

.hiw-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 820px;
}

.hiw-hero-eyebrow {
	display: inline-flex;
	align-items: baseline;
	gap: var(--sp-3);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	letter-spacing: 0.3em;
	color: var(--color-black);
	text-transform: uppercase;
	margin-bottom: var(--sp-5);
}
.hiw-hero-eyebrow-mark {
	display: inline-block;
	transform: skewX(-20deg);
	letter-spacing: -0.1em;
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
}

.hiw-hero-headline {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0 0 var(--sp-4);
	color: var(--color-black);
}

.hiw-hero-subhead {
	font-size: var(--fs-md);
	color: var(--color-ink);
	line-height: 1.5;
	margin: 0 auto var(--sp-8);
	max-width: 620px;
}

.hiw-hero-form {
	max-width: 560px;
	margin: var(--sp-6) auto 0;
}
.hiw-hero-form > *:first-child { margin-top: 0; }
.hiw-hero-form > *:last-child  { margin-bottom: 0; }


/* ================================================================
   2. STEPS (alternating layout)
   ================================================================ */

.hiw-steps {
	padding: var(--sp-20) 0;
	background: var(--color-white);
}

.hiw-step {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-12);
	align-items: center;
	padding: var(--sp-10) 0;
}

.hiw-step + .hiw-step {
	border-top: 1px solid var(--color-border);
}

.hiw-step--flipped .hiw-step-image {
	order: 2;
}
.hiw-step--flipped .hiw-step-content {
	order: 1;
}

/* Step image — clean square, yellow frame on subtle offset */
.hiw-step-image {
	position: relative;
}
.hiw-step-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--color-yellow);
	transform: translate(12px, 12px);
	z-index: 0;
}
.hiw-step-image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid var(--color-black);
}

/* Step content */
.hiw-step-content {
	max-width: 520px;
}

.hiw-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--color-black);
	color: var(--color-yellow);
	font-size: var(--fs-xl);
	font-weight: var(--fw-bold);
	line-height: 1;
	margin-bottom: var(--sp-4);
}

.hiw-step-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 var(--sp-4);
	color: var(--color-black);
}

.hiw-step-text {
	font-size: var(--fs-md);
	color: var(--color-ink);
	line-height: 1.6;
	margin: 0 0 var(--sp-5);
}

.hiw-step-bullets {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--sp-5);
}
.hiw-step-bullets li {
	position: relative;
	padding: var(--sp-2) 0 var(--sp-2) var(--sp-8);
	font-size: var(--fs-sm);
	color: var(--color-ink);
	line-height: 1.5;
	border-bottom: 1px solid var(--color-border);
}
.hiw-step-bullets li:last-child {
	border-bottom: 0;
}
.hiw-step-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 18px;
	background: var(--color-yellow);
	border: 2px solid var(--color-black);
	transform: translateY(-50%);
}
.hiw-step-bullets li::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 50%;
	width: 8px;
	height: 4px;
	border-left: 2px solid var(--color-black);
	border-bottom: 2px solid var(--color-black);
	transform: translateY(-75%) rotate(-45deg);
}

.hiw-step-footer {
	font-size: var(--fs-sm);
	color: var(--color-ink-soft);
	line-height: 1.55;
	font-style: italic;
	padding: var(--sp-4) var(--sp-5);
	border-left: 4px solid var(--color-yellow);
	background: var(--color-bg-alt);
	margin: 0;
}


/* ================================================================
   3. WHY US — numbered big list
   ================================================================ */

.hiw-why {
	padding: var(--sp-20) 0;
	background: var(--color-bg-alt);
}

.hiw-why-heading {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 var(--sp-10);
	text-align: center;
	color: var(--color-black);
}

.hiw-why-list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.hiw-why-item {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: var(--sp-5);
	align-items: center;
	padding: var(--sp-6);
	background: var(--color-white);
	border: 2px solid var(--color-black);
	transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.hiw-why-item:hover {
	transform: translate(-4px, -4px);
	box-shadow: 8px 8px 0 var(--color-yellow);
}

.hiw-why-num {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: var(--fw-bold);
	color: var(--color-yellow-dark);
	line-height: 1;
	letter-spacing: -0.05em;
}

.hiw-why-body {
	min-width: 0;
}

.hiw-why-title {
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	margin: 0 0 4px;
	color: var(--color-black);
	letter-spacing: -0.02em;
}

.hiw-why-text {
	font-size: var(--fs-sm);
	color: var(--color-ink-soft);
	line-height: 1.5;
	margin: 0;
}


/* ================================================================
   4. TESTIMONIAL PULLQUOTE
   ================================================================ */

.hiw-quote {
	padding: var(--sp-20) 0;
	background: var(--color-black);
	color: var(--color-white);
	position: relative;
	overflow: hidden;
}

.hiw-quote-inner {
	position: relative;
	max-width: 820px;
	text-align: center;
}

.hiw-quote-mark {
	font-size: clamp(6rem, 12vw, 10rem);
	font-weight: var(--fw-bold);
	color: var(--color-yellow);
	line-height: 0.8;
	margin-bottom: var(--sp-4);
	font-family: Georgia, serif;
}

.hiw-quote-text {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--fw-regular);
	line-height: 1.3;
	letter-spacing: -0.02em;
	margin: 0 0 var(--sp-6);
	color: var(--color-white);
	border: 0;
	padding: 0;
	background: transparent;
}

.hiw-quote-author {
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hiw-quote-author strong {
	color: var(--color-yellow);
	font-weight: var(--fw-bold);
	margin-right: var(--sp-2);
}
.hiw-quote-location {
	color: rgba(255, 255, 255, 0.6);
}


/* ================================================================
   5. RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
	.hiw-step {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}
	.hiw-step--flipped .hiw-step-image { order: 0; }
	.hiw-step--flipped .hiw-step-content { order: 0; }
	.hiw-step-content { max-width: none; }
	.hiw-step-image {
		max-width: 480px;
		margin: 0 auto;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.hiw-hero { padding: var(--sp-10) 0 var(--sp-12); }
	.hiw-hero-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }

	/* Mobile: single-side lane motif */
	.hiw-hero-express-r,
	.hiw-hero-line-r1,
	.hiw-hero-line-r2 { display: none; }
	.hiw-hero-express-l { left: -30px; width: 160px; }
	.hiw-hero-line-l1   { left: 120px; width: 6px; }
	.hiw-hero-line-l2   { left: 134px; width: 6px; }

	.hiw-steps { padding: var(--sp-10) 0; }
	.hiw-step { padding: var(--sp-8) 0; }
	.hiw-step-title { font-size: clamp(1.5rem, 6vw, 2rem); }
	.hiw-step-num { width: 44px; height: 44px; font-size: var(--fs-md); }
	.hiw-step-image::before { transform: translate(8px, 8px); }

	.hiw-why { padding: var(--sp-10) 0; }
	.hiw-why-item {
		grid-template-columns: 48px 1fr;
		gap: var(--sp-4);
		padding: var(--sp-4);
	}
	.hiw-why-num { font-size: 1.75rem; }
	.hiw-why-item:hover {
		transform: none;
		box-shadow: none;
	}

	.hiw-quote { padding: var(--sp-12) 0; }
}
