/* =========================================================================
   Boyle Built — Process

   ONE data source (boyle_built_get_process()) renders into two
   structurally different step lists: .process-steps--horizontal
   (desktop only) and .process-steps--vertical (tablet + mobile). CSS
   shows exactly one per breakpoint; the other is `display: none`, which
   removes it from the accessibility tree (same mechanism used
   throughout this theme). Both step partials share the same independent
   numbered-circle visual language — deliberately no connector lines
   between steps.
   ========================================================================= */

.process {
	display: flex;
	background-color: var(--color-bg);
}

.process__content {
	display: flex;
	flex-direction: column;
}

.process__heading {
	display: flex;
	flex-direction: column;
}

.process__eyebrow {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-weight: 800;
	text-transform: uppercase;
}

.process__title {
	margin: 0;
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 500;
}

.process-steps {
	list-style: none;
	margin: 0;
	padding: 0;
}

.process__image-wrapper {
	position: relative;
}

.process__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   Horizontal step (desktop only) — hidden by default; enabled at 1025px+
   ------------------------------------------------------------------------- */

.process-steps--horizontal {
	display: none;
}

.process-step-horizontal {
	display: flex;
	justify-content: center;
	flex: 1 1 0%;
}

.process-step-horizontal__marker {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100px;
	text-align: center;
	flex-shrink: 0;
}

.process-step-horizontal__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--color-icon-ring-bg);
	border: 1.5px solid var(--color-primary-green);
	color: var(--color-primary-green);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 16px;
}

.process-step-horizontal__title {
	margin: 0;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Vertical step (tablet + mobile) — the default/base layout
   ------------------------------------------------------------------------- */

.process-steps--vertical {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.process-step-vertical {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.process-step-vertical__marker {
	display: flex;
	flex-shrink: 0;
}

.process-step-vertical__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--color-icon-ring-bg);
	border: 1.5px solid var(--color-primary-green);
	color: var(--color-primary-green);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 14px;
}

.process-step-vertical__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 6px;
}

.process-step-vertical__title {
	margin: 0;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
}

.process-step-vertical__description {
	margin: 0;
	color: var(--color-body-muted);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Mobile (0–600px)
   ------------------------------------------------------------------------- */

.process {
	flex-direction: column;
	gap: 32px;
	padding: 56px 16px;
}

.process__content {
	gap: 24px;
}

.process__heading {
	gap: 8px;
}

.process__eyebrow {
	font-size: 10px;
}

.process__title {
	font-size: 24px;
}

.process__image-wrapper {
	width: 100%;
	height: 200px;
}

/* -------------------------------------------------------------------------
   Tablet (601–1024px)
   ------------------------------------------------------------------------- */

@media (min-width: 601px) {
	.process {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		padding: 80px 32px;
	}

	.process__content {
		width: 368px;
		flex: 0 0 368px;
		gap: 32px;
	}

	.process__heading {
		gap: 10px;
	}

	.process__eyebrow {
		font-size: 11px;
	}

	.process__title {
		font-size: 28px;
	}

	.process__image-wrapper {
		width: 320px;
		height: 280px;
		flex-shrink: 0;
	}
}

/* -------------------------------------------------------------------------
   Desktop (1025px+)
   ------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	.process {
		align-items: stretch;
		height: 420px;
		gap: 0;
		padding: 0;
	}

	/* Explicit reset: min-width media queries are additive, not mutually
	   exclusive — 1025px+ still satisfies the 601px query above, so the
	   tablet block's fixed width/flex-basis must be reset here or it
	   would silently persist and prevent the content column from filling
	   the remaining row width next to the image. */
	.process__content {
		width: auto;
		flex: 1 1 0%;
		justify-content: center;
		gap: 40px;
		padding: 60px 40px;
	}

	.process__heading {
		gap: 10px;
	}

	.process__eyebrow {
		font-size: 11px;
	}

	.process__title {
		font-size: 32px;
	}

	.process-steps--vertical {
		display: none;
	}

	.process-steps--horizontal {
		display: flex;
		align-items: flex-start;
	}

	.process__image-wrapper {
		width: 400px;
		height: 100%;
		flex-shrink: 0;
	}
}
