/**
 * Phixo · Editor Services — page layout.
 *
 * Scope: page-templates/phixo-editor-services.php only. Tokens only
 * (var(--…)); no hardcoded colour values. The before/after widget
 * internals (.phixo-ba*) are styled by the BA agent — this file only
 * lays out the row shell that WRAPS the widget, plus the static
 * pre-hydration fallback, the process strip, and the CTA.
 *
 * @package PhixoChild
 */

/* ---- Hero -------------------------------------------------------- */
.phixo-services__hero {
	text-align: center;
}
.phixo-services__hero .lede {
	margin-left: auto;
	margin-right: auto;
}

/* ---- Discipline rows --------------------------------------------- */
.phixo-services__rows {
	display: flex;
	flex-direction: column;
}

.phixo-services__row {
	display: grid;
	grid-template-columns: minmax(240px, 340px) 1fr auto;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding: clamp(28px, 4vw, 44px) 0;
	border-bottom: 1px solid var(--line);
}
.phixo-services__row:first-child {
	border-top: 1px solid var(--line);
}

.phixo-services__proof {
	min-width: 0; /* let the widget shrink inside the grid track */
}

.phixo-services__copy {
	min-width: 0;
}
.phixo-services__title {
	font-family: var(--serif);
	font-size: var(--fs-h3);
	line-height: var(--lh-heading);
	font-weight: 500;
	margin: 0 0 10px;
}
.phixo-services__body {
	font-family: var(--sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--ink-soft);
	max-width: var(--measure);
	margin: 0;
}

.phixo-services__price {
	text-align: right;
	white-space: nowrap;
}
.phixo-services__price-eyebrow {
	display: block;
	font-family: var(--sans);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mute);
	margin-bottom: 6px;
}
.phixo-services__price-value {
	display: block;
	font-family: var(--serif);
	font-size: var(--fs-pricing);
	line-height: 1;
	color: var(--ink);
}

/* ---- Static before/after fallback (pre-hydration / no phixo_ba) --- */
.phixo-services__ba-fallback {
	margin: 0;
}
.phixo-services__ba-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.phixo-services__ba-frame {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--stone-soft);
}
.phixo-services__ba-frame .img-slot,
.phixo-services__ba-frame .phixo-img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.phixo-services__ba-tag {
	position: absolute;
	left: 8px;
	bottom: 8px;
	font-family: var(--sans);
	font-size: var(--fs-caption);
	letter-spacing: 0.06em;
	color: var(--bg);
	background: var(--ink);
	padding: 3px 8px;
	border-radius: 2px;
}
.phixo-services__ba-cap {
	margin-top: 10px;
	font-family: var(--sans);
	font-size: var(--fs-caption);
	letter-spacing: 0.06em;
	color: var(--mute);
}

/* ---- Process strip: BRIEF → TEST EDIT → FULL SET → DELIVER -------- */
.phixo-services__process-head {
	text-align: center;
	margin-bottom: clamp(24px, 3vw, 40px);
}
.phixo-services__process {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: clamp(12px, 2vw, 24px);
}
.phixo-services__step {
	flex: 1 1 180px;
	max-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 24px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 3px;
}
.phixo-services__step--final {
	border-color: var(--brass);
}
.phixo-services__step-n {
	font-family: var(--sans);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--brass);
}
.phixo-services__step-label {
	font-family: var(--sans);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
}
.phixo-services__step-body {
	font-family: var(--sans);
	font-size: var(--fs-body-sm);
	line-height: var(--lh-body);
	color: var(--ink-soft);
}
.phixo-services__arrow {
	display: flex;
	align-items: center;
	color: var(--mute);
	font-size: 20px;
	line-height: 1;
	flex: 0 0 auto;
}

/* ---- Closing CTA -------------------------------------------------- */
.phixo-services__cta {
	text-align: center;
}
.phixo-services__cta .actions {
	justify-content: center;
	margin-top: 20px;
}

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 860px) {
	.phixo-services__row {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.phixo-services__price {
		text-align: left;
	}
	.phixo-services__arrow {
		display: none;
	}
	.phixo-services__step {
		max-width: none;
		flex-basis: 100%;
	}
}
