/* Artmark Process Steps widget — cream section, sticky progress bar, numbered
   rail and alternating text/photo step cards.
   Colors/typography are overridable via widget controls. */

.am-proc {
	width: 100%;
	background-color: #faf5ee;
}

.am-proc__inner {
	width: 100%;
	margin: 0 auto;
}

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */

.am-proc__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 64px;
	margin-bottom: 96px;
}

.am-proc__headleft {
	min-width: 0;
}

.am-proc__eyebrow {
	display: flex;
	justify-content: flex-start;
}

.am-proc__eyebrow .am-eyebrow {
	margin-bottom: 20px;
}

.am-proc__title {
	margin: 0;
	font-size: 42px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #020713;
}

.am-proc__intro {
	margin: 0;
	flex: 0 1 auto;
	max-width: 500px;
	font-size: 15px;
	line-height: 24px;
	color: #4a4a44;
}

/* ---------------------------------------------------------------- */
/* Sticky progress bar                                               */
/* ---------------------------------------------------------------- */

.am-proc__barwrap {
	display: flex;
	justify-content: center;
	margin-bottom: 56px;
	z-index: 5;
}

.am-proc__barwrap--sticky {
	position: sticky;
	top: 24px;
}

.am-proc__bar {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	padding: 0 16px;
	min-height: 51px;
	background-color: #0f1720;
	box-shadow: 0 10px 30px rgba(2, 7, 19, 0.18);
}

.am-proc__bar-label {
	font-size: 13px;
	line-height: 18px;
	font-weight: 500;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.am-proc__bar-sep {
	flex: 0 0 auto;
	width: 1px;
	height: 20px;
	background-color: rgba(255, 255, 255, 0.2);
}

.am-proc__dots {
	display: flex;
	align-items: center;
	gap: 4px;
}

.am-proc__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	font-family: inherit;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0.08);
	color: #9aa3ab;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Themes paint button:hover / :active; keep the chips under our control. */
.am-proc__dot,
.am-proc__dot:hover,
.am-proc__dot:focus,
.am-proc__dot:focus-visible,
.am-proc__dot:active {
	border: 0;
	box-shadow: none;
	outline: 0;
	text-decoration: none;
	transform: none;
}

.am-proc__dot:hover {
	background-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

.am-proc__dot:focus-visible {
	outline: 2px solid #0080b8;
	outline-offset: 2px;
}

.am-proc__dot.is-active,
.am-proc__dot.is-active:hover {
	background-color: #0080b8;
	color: #ffffff;
}

.am-proc__bar-count {
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.08em;
	color: #9aa3ab;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* Step list + rail                                                  */
/* ---------------------------------------------------------------- */

.am-proc__list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 88px;
	padding-left: 76px;
}

.am-proc__rail {
	position: absolute;
	left: 14px;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: #d9d2c6;
	pointer-events: none;
}

.am-proc__step {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 363px;
	background-color: #ffffff;
	text-decoration: none;
	color: inherit;
}

.am-proc__badge {
	position: absolute;
	left: -76px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	background-color: #0080b8;
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
	transition: background-color 0.25s ease, color 0.25s ease;
}

/* Per-step "image on the left". A class, not an inline style, so the
   responsive stacking rules below can still override it. */
.am-proc__step--rev {
	flex-direction: row-reverse;
}

.am-proc__text {
	flex: 0 0 54%;
	max-width: 54%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 40px 40px 57px;
}

.am-proc__kicker {
	display: block;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a8a82;
}

.am-proc__step-title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #020713;
}

.am-proc__desc {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: #4a4a44;
	max-width: 620px;
}

.am-proc__media {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	background-color: #eef1f4;
}

.am-proc__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 363px;
	object-fit: cover;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                        */
/* ---------------------------------------------------------------- */

@media (max-width: 1024px) {
	.am-proc__head {
		flex-direction: column;
		gap: 24px;
		margin-bottom: 64px;
	}

	.am-proc__intro {
		max-width: 100%;
	}

	.am-proc__title {
		font-size: 34px;
	}

	.am-proc__list {
		gap: 56px;
		padding-left: 56px;
	}

	.am-proc__badge {
		left: -56px;
	}

	.am-proc__step,
	.am-proc__step--rev {
		flex-direction: column-reverse;
		min-height: 0;
	}

	.am-proc__text,
	.am-proc__media {
		flex: 0 0 auto !important;
		max-width: 100% !important;
		width: 100%;
	}

	.am-proc__text {
		padding: 32px;
	}

	.am-proc__media img {
		min-height: 0;
		height: 260px;
	}
}

@media (max-width: 767px) {
	.am-proc__title {
		font-size: 28px;
	}

	.am-proc__list {
		gap: 40px;
	}

	/* A side gutter for the rail costs about a fifth of a phone's width, which
	   is what squeezed the step titles into two-word lines. By default the rail
	   is dropped there and the number moves onto the card's top-left corner,
	   giving the text its full width back. "Rail On Mobile" puts it back, and
	   Rail Width then reopens the gutter. */
	.am-proc-railm-hide .am-proc__rail {
		display: none;
	}

	.am-proc-railm-hide .am-proc__badge {
		top: 0;
		transform: none;
	}

	.am-proc__badge {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.am-proc__text {
		padding: 24px 20px;
	}

	.am-proc__step-title {
		font-size: 22px;
	}

	.am-proc__bar {
		gap: 10px;
		padding: 8px 12px;
	}

	.am-proc__bar-label {
		display: none;
	}

	.am-proc__bar-label + .am-proc__bar-sep {
		display: none;
	}
}
