/**
 * CW Landing Process — scoped to .cw-landing-process (BEM).
 * Matches Pencil: surface-cool section, intro + two-column collage, red accent line, four step cards.
 */

.cw-landing-process {
	background-color: var(--wp--preset--color--surface-cool, #f8faff);
	color: var(--wp--preset--color--warm-dark, #2d2a26);
	padding-block: clamp(3.5rem, 6vw, 6rem);
	padding-inline: var(--cw-landing-section-pad-x, 1rem);
	box-sizing: border-box;
}

.cw-landing-process__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	padding-inline: 0;
}

/* Top: intro + collage — Pencil gap 96px */
.cw-landing-process__split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(2rem, 5vw, 6rem);
}

.cw-landing-process__intro {
	flex: 1 1 280px;
	max-width: 36rem;
	display: flex;
	flex-direction: column;
	gap: 1.4375rem;
}

.cw-landing-process__eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--red, #d7282f);
}

.cw-landing-process__headline {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-process__description {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

/* Collage ~612×339 in design — two columns, 16px gutter */
.cw-landing-process__collage {
	flex: 1 1 280px;
	max-width: 38.25rem;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
	box-sizing: border-box;
}

.cw-landing-process__collage-col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.cw-landing-process__figure {
	overflow: hidden;
	border-radius: 0;
	background-color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-process__figure--primary {
	flex: 1 1 auto;
	min-height: 10rem;
}

.cw-landing-process__figure--secondary {
	flex: 0 0 auto;
	min-height: 8rem;
}

.cw-landing-process__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cw-landing-process__figure--primary .cw-landing-process__img {
	min-height: 12rem;
}

.cw-landing-process__figure--secondary .cw-landing-process__img {
	min-height: 10rem;
}

/* Orange band + dark band from Pencil photo stacks */
.cw-landing-process__orange-band {
	height: 7.125rem;
	flex-shrink: 0;
	background-color: var(--wp--preset--color--orange, #f68c28);
}

.cw-landing-process__dark-band {
	flex: 1 1 5rem;
	min-height: 5rem;
	background-color: var(--wp--preset--color--warm-dark, #2d2a26);
}

/* Steps: accent line + four columns — Pencil gap 40 between cards */
.cw-landing-process__steps-section {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	width: 100%;
}

.cw-landing-process__accent-line {
	width: 100%;
	max-width: 100%;
	height: 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--red, #d7282f);
	margin: 0;
	padding: 0;
}

.cw-landing-process__steps {
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem;
}

.cw-landing-process__step {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.cw-landing-process__step-card {
	display: flex;
	flex-direction: column;
	align-items: start;
	text-align: start;
	gap: 0.75rem;
	padding: 0.5rem 0.25rem;
	border-radius: var(--cw-radius-card, 1rem);
	box-sizing: border-box;
	min-height: 100%;
}

/* Number badge — Pencil 50×50, red fill, white numeral */
.cw-landing-process__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.125rem;
	height: 3.125rem;
	border-radius: 2rem;
	background-color: var(--wp--preset--color--red, #d7282f);
	color: var(--wp--preset--color--white, #fff);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.cw-landing-process__step-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

.cw-landing-process__step-body {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--warm-dark, #2d2a26);
}

/* Phone / narrow screens: show only the primary collage photo (no bands, no secondary image). */
@media (max-width: 767.98px) {
	.cw-landing-process__orange-band,
	.cw-landing-process__dark-band,
	.cw-landing-process__figure--secondary {
		display: none;
	}

	/* Right column only holds dark band + secondary image; hide the column so no empty grid row/gap. */
	.cw-landing-process__collage-col--right {
		display: none;
	}

	/* Was two columns; second column is removed — one column full width. */
	.cw-landing-process__collage {
		grid-template-columns: 1fr;
	}

	.cw-landing-process__steps {
		gap: 1rem;
	}
}

@media (max-width: 960px) {
	.cw-landing-process__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.cw-landing-process__steps {
		grid-template-columns: 1fr;
	}

	.cw-landing-process__collage {
		grid-template-columns: 1fr;
		max-width: 22rem;
	}
}
