/**
 * Vertical ("vertical details") page styling.
 *
 * Paired with the theme's single-pristine_vertical.php and loaded only on
 * that template (see includes/Assets.php). Colours and metrics resolve
 * through the same --pc-* design tokens as the blocks, so a Theme
 * Settings change flows through here too.
 */

.pc-vertical {
	--pc-vertical-ink: #4c4c7f;
	--pc-vertical-title: #212936;
	--pc-vertical-hairline: rgba(0, 0, 0, 0.1);
	--pc-vertical-band: linear-gradient(
		94deg,
		rgba(0, 80, 215, 0.1) 1%,
		rgba(206, 114, 193, 0.1) 18%,
		rgba(240, 148, 121, 0.1) 40%,
		rgba(171, 103, 221, 0.1) 55%,
		rgba(94, 73, 239, 0.1) 83%,
		rgba(0, 80, 215, 0.1) 99%
	);
	--pc-vertical-gap: 26px;
	--pc-vertical-connector-drop: 95px;

	color: var(--pc-vertical-ink);
}

.pc-vertical__inner {
	max-width: var(--pc-container-width, 1280px);
	margin-inline: auto;
	padding-inline: var(--pc-gutter, 2rem);
}

.pc-vertical__section {
	padding-block: clamp(32px, 5vw, 50px);
}

.pc-vertical__band {
	background: var(--pc-vertical-band);
	border-radius: var(--pc-radius-sm, 8px);
	padding: clamp(28px, 4vw, 50px) clamp(20px, 3vw, 30px);
}

.pc-vertical__band--tint {
	background: rgba(1, 94, 255, 0.05);
}

/* ---------- Shared type ---------- */

.pc-vertical__heading {
	margin: 0;
	font-family: var(--pc-font-heading, inherit);
	font-weight: 800;
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--pc-color-primary, #002a71);
}

.pc-vertical__heading--center {
	text-align: center;
}

.pc-vertical__lede,
.pc-vertical__prose {
	/* Fixed at the preferred value for now; the 15/18px bounds are kept so
	   fluid sizing is one edit away. */
	font-size: clamp(15px, 16px, 18px);
	line-height: 1.6;
}

.pc-vertical__lede > p,
.pc-vertical__prose > p {
	margin: 0 0 0.75em;
}

.pc-vertical__lede > p:last-child,
.pc-vertical__prose > p:last-child,
.pc-vertical__lede--flush > p:last-child {
	margin-bottom: 0;
}

.pc-vertical__section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: clamp(32px, 3vw, 65px);
	text-align: center;
}

.pc-vertical__section-head .pc-vertical__lede {
	max-width: 900px;
}

.pc-vertical__section-note,
.pc-vertical__band-note {
	margin: clamp(24px, 3vw, 40px) 0 0;
	text-align: center;
	font-size: clamp(15px, 1.2vw, 18px);
	color: var(--pc-color-primary, #002a71);
}

.pc-vertical__cta,
.pc-vertical__hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border-radius: var(--pc-radius-sm, 8px);
	background: var(--pc-color-dark, #0a0a0a);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: transform var(--pc-transition, 200ms ease), box-shadow var(--pc-transition, 200ms ease);
}

.pc-vertical__cta:hover,
.pc-vertical__cta:focus-visible,
.pc-vertical__hero-cta:hover,
.pc-vertical__hero-cta:focus-visible {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--pc-shadow-md, 0 8px 24px rgba(16, 19, 26, 0.08));
}

/* ---------- Hero ---------- */

.pc-vertical__hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(620px, 80vh);
	overflow: hidden;
	background: linear-gradient(120deg, #dce6f7, #eef1f8);
}

.pc-vertical__hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.pc-vertical__hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.42) 0%,
		rgba(255, 255, 255, 0.48) 38%,
		rgba(255, 255, 255, 0.15) 65%,
		rgba(255, 255, 255, 0) 100%
	);
}

.pc-vertical__hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(20px, 3vw, 40px);
	max-width: 800px;
	padding: clamp(56px, 8vw, 120px) var(--pc-gutter, 2rem);
}

.pc-vertical__hero-eyebrow {
	margin: 0;
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 500;
	color: var(--pc-color-dark, #0a0a0a);
}

.pc-vertical__hero-title {
	margin: 0;
	font-family: var(--pc-font-heading, inherit);
	font-weight: 800;
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--pc-color-primary, #002a71);
}

/* Narrow screens can't carry the overlay: `cover` in a 620px-tall box crops
   a portrait viewport down to a centre slice of the footage. Stack instead —
   the media plays at its own aspect ratio so the whole frame is visible, and
   the copy sits below it on the hero's gradient rather than on top. */
@media (max-width: 900px) {
	.pc-vertical__hero {
		display: block;
		min-height: 0;
	}

	.pc-vertical__hero-media {
		position: static;
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	/* Nothing overlays the media now, so the wash would only mute it. */
	.pc-vertical__hero-scrim {
		display: none;
	}

	.pc-vertical__hero-inner {
		max-width: none;
		gap: 16px;
		padding: 28px var(--pc-gutter, 2rem) 36px;
	}

	.pc-vertical__hero-eyebrow {
		font-size: 15px;
	}

	.pc-vertical__hero-title {
		font-size: clamp(26px, 6.6vw, 34px);
		line-height: 1.2;
	}
}

/* ---------- Service overview ---------- */

/* The approach section below opens with its own centered head, so the
   overview's bottom padding only widens a gap that is already there. */
.pc-vertical__overview {
	padding-block-end: 0;
}

.pc-vertical__overview-grid {
	display: grid;
	grid-template-columns: minmax(220px, 305px) 1fr;
	gap: clamp(16px, 2vw, 21px);
	align-items: center;
}

@media (max-width: 900px) {
	.pc-vertical__overview-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Our approach ---------- */

.pc-vertical__steps-wrap {
	position: relative;
	/* Room for the valley arcs, which hang below the last card row. */
	padding-bottom: var(--pc-vertical-connector-drop);
}

.pc-vertical__steps {
	display: grid;
	grid-template-columns: repeat(var(--pc-vertical-steps, 4), minmax(0, 1fr));
	gap: var(--pc-vertical-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-vertical__step {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 21px 16px;
	background: #fff;
	position: relative;
	z-index: 2;
}

.pc-vertical__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 55px;
	height: 48px;
	border: 1px solid transparent;
	border-radius: 4px;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, rgba(233, 0, 205, 0.17) 0%, rgba(0, 80, 215, 0.39) 100%) border-box;
	font-size: 28px;
	letter-spacing: -0.06em;
	color: var(--pc-color-primary, #002a71);
}

.pc-vertical__step-label {
	font-weight: 500;
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.6;
	color: var(--pc-vertical-title);
}

/*
 * Connector arcs, positioned over the gaps between step cards.
 *
 * `left` is computed rather than hardcoded, but resolves to the design's
 * own values at four steps — 23%, 48.6%, 74.3% — and stays correct at any
 * container width or step count. The chain is: walk `index` columns
 * across, step back half a gutter to reach the gap centre, then apply the
 * -1.445% the design nudges by (half the 10.49% artwork width, less the
 * ~3.8% rightward shift that drops each arrowhead inside the next card).
 */
.pc-vertical__connector {
	--pc-vertical-column: calc(
		(100% - (var(--pc-vertical-steps, 4) - 1) * var(--pc-vertical-gap)) / var(--pc-vertical-steps, 4)
	);

	position: absolute;
	left: calc(
		var(--pc-vertical-connector-index, 1) * (var(--pc-vertical-column) + var(--pc-vertical-gap))
		- var(--pc-vertical-gap) / 2
		- 1.445%
	);
	width: 10.49%;
	aspect-ratio: 258 / 163;
	height: auto;
	pointer-events: none;
	/* Above the cards, so each arrowhead reads as pointing into the next
	 * step rather than disappearing behind it. */
	z-index: 3;
}

/* The arc artwork ships with the theme — assets/images/arrow-hump.png and
 * arrow-dip.png, both 258×163, matching the aspect-ratio above. */
.pc-vertical__connector img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pc-vertical__connector--up {
	top: -45px;
}

/* Measured from the bottom of the reserved drop zone rather than a fixed
 * `top`, so a taller step card can't push the valley arcs out of place.
 * 32px puts the arrowhead the same distance inside the card above as the
 * design's `top: 152px` does against its 163px-tall cards. */
.pc-vertical__connector--down {
	bottom: 32px;
}

@media (max-width: 900px) {
	.pc-vertical__steps {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}

	/* Cards wrap onto several rows here, so arcs computed against a single
	 * row can no longer line up with the gaps — drop them and reclaim the
	 * space they were reserving. */
	.pc-vertical__steps-wrap {
		padding-bottom: 0;
	}

	.pc-vertical__connector {
		display: none;
	}
}

/* ---------- What we offer ---------- */

.pc-vertical__offer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 20px;
}

/*
 * The content stretches rather than centring: cards sit in a grid row and
 * take the tallest card's height, so a centred block drifts down whenever a
 * neighbour's bullet wraps to a second line and the titles stop lining up.
 */
.pc-vertical__offer-card {
	position: relative;
	display: grid;
	align-items: stretch;
	min-height: 395px;
	overflow: hidden;
	background: #f4eeff;
	box-shadow: 0 0 8px 2px rgba(180, 176, 176, 0.38);
}

.pc-vertical__offer-photo {
	position: absolute;
	inset: 0;
}

.pc-vertical__offer-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * A one-sided white wash over the photo: the content always sits on the
 * washed half, so the text stays legible whichever side the image is on.
 */
.pc-vertical__offer-photo::after {
	content: "";
	position: absolute;
	inset: 0;
}

.pc-vertical__offer-card--media-left .pc-vertical__offer-photo::after {
	background: linear-gradient(to left, #fff 44%, rgba(255, 255, 255, 0) 100%);
}

.pc-vertical__offer-card--media-right .pc-vertical__offer-photo::after {
	background: linear-gradient(to right, #fff 52%, rgba(255, 255, 255, 0) 90%);
}

.pc-vertical__offer-content {
	position: relative;
	z-index: 2;
	width: min(100%, 425px);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.pc-vertical__offer-card--media-left .pc-vertical__offer-content {
	justify-self: end;
}

.pc-vertical__offer-card--media-right .pc-vertical__offer-content {
	justify-self: start;
}

.pc-vertical__offer-title {
	margin: 0 0 8px;
	font-weight: 900;
	font-size: clamp(20px, 1.9vw, 24px);
	color: #000;
}

.pc-vertical__offer-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/*
 * The rows share whatever height is left under the title, so the list runs
 * to the bottom of the card instead of leaving the slack in one lump — the
 * title stays pinned to the top without the card reading bottom-heavy.
 */
.pc-vertical__offer-list li {
	position: relative;
	flex: 1 1 auto;
	min-height: 50px;
	display: flex;
	align-items: center;
	padding: 8px 0 8px 24px;
	font-size: 16px;
	border-bottom: 1px solid var(--pc-vertical-hairline);
}

.pc-vertical__offer-list li:last-child {
	border-bottom: none;
}

.pc-vertical__offer-list li::before {
	content: "•";
	position: absolute;
	left: 4px;
}

/* ---------- End to end support ---------- */

.pc-vertical__e2e-band {
	display: grid;
	grid-template-columns: minmax(0, 601px) minmax(0, 469px);
	justify-content: space-between;
	gap: clamp(24px, 4vw, 40px);
}

@media (max-width: 900px) {
	.pc-vertical__e2e-band {
		grid-template-columns: 1fr;
	}
}

.pc-vertical__e2e-left {
	display: flex;
	flex-direction: column;
	gap: 21px;
}

.pc-vertical__pill {
	margin: 0;
	padding: 12px 30px 12px 16px;
	background: #fff;
	border-radius: var(--pc-radius-sm, 8px);
	box-shadow: 1px 2px 3px rgba(180, 176, 176, 0.34);
	font-size: clamp(15px, 1.2vw, 18px);
	color: var(--pc-color-primary, #002a71);
}

.pc-vertical__numbered {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pc-vertical-numbered;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pc-vertical__numbered li {
	counter-increment: pc-vertical-numbered;
	position: relative;
	padding: 12px 0 12px 28px;
	font-size: 16px;
	border-bottom: 1px solid var(--pc-vertical-hairline);
}

.pc-vertical__numbered li:last-child {
	border-bottom: none;
}

.pc-vertical__numbered li::before {
	content: counter(pc-vertical-numbered) ".";
	position: absolute;
	left: 0;
	font-weight: 500;
}

/* ---------- What we bring ---------- */

.pc-vertical__bring-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--pc-vertical-gap);
}

.pc-vertical__bring-card {
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-height: 145px;
	padding: 21px 16px;
	background: #fff;
	border-radius: var(--pc-radius-sm, 8px);
	box-shadow: 0 0 8px 2px rgba(180, 176, 176, 0.38);
}

.pc-vertical__bring-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	background: linear-gradient(133deg, rgba(240, 148, 121, 0.3) 18%, rgba(143, 127, 255, 0.3) 88%);
}

.pc-vertical__bring-icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.pc-vertical__bring-title {
	margin: 0;
	font-weight: 700;
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.7;
	color: var(--pc-vertical-title);
}

/* ---------- Why our approach works ---------- */

.pc-vertical__why-card {
	display: grid;
	grid-template-columns: 354px 1fr;
	border-radius: var(--pc-radius-sm, 8px);
	overflow: hidden;
	background: var(--pc-vertical-band);
}

.pc-vertical__why-card--no-media {
	grid-template-columns: 1fr;
}

.pc-vertical__why-media {
	background: #fff;
}

.pc-vertical__why-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.pc-vertical__why-content {
	padding: clamp(24px, 3vw, 27px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 40px);
}

.pc-vertical__why-content .pc-vertical__heading {
	margin: 0 0 clamp(24px, 3vw, 32px);
}

.pc-vertical__why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(24px, 3vw, 40px);
	row-gap: 24px;
	align-items: center;
}

.pc-vertical__why-colhead {
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 500;
	line-height: 1.36;
	color: #3b3b3b;
}

/* Marker width + its gap — the outcome heading clears it so heading and
   outcome text share a left edge, the way the value column does. */
.pc-vertical__why-colhead:nth-child(2) {
	padding-inline-start: 46px;
}


.pc-vertical__why-value,
.pc-vertical__why-outcome {
	margin: 0;
	font-size: 16px;
	line-height: 25px;
	color: var(--pc-vertical-ink);
}

.pc-vertical__why-outcome {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pc-vertical__why-arrow {
	flex: none;
	display: inline-flex;
	align-items: center;
	width: 34px;
	height: 6px;
}

.pc-vertical__why-arrow svg {
	display: block;
	width: 34px;
	height: 6px;
}

@media (max-width: 1024px) {
	.pc-vertical__why-card {
		grid-template-columns: 1fr;
	}

	.pc-vertical__why-media {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 600px) {
	/* Stacked in one column the two lists interleave, so regroup each heading
	   with the items belonging to it: values first, then outcomes. */
	.pc-vertical__why-grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		row-gap: 10px;
	}
	
	.pc-vertical__why-colhead:nth-child(2) {
		order: 2;
		margin-top: 24px;
		padding-inline-start: 0;   /* added */
	}


	.pc-vertical__why-colhead {
		order: 0;
		font-weight: 600;
	}

	.pc-vertical__why-value {
		order: 1;
		display: flex;
		align-items: center;
		gap: 8px;
		margin-top: 0;
	}

	.pc-vertical__why-value::before {
		background: #002a71;
		border-radius: 50%;
		content: "";
		flex: none;
		height: 4px;
		width: 4px;
	}

	.pc-vertical__why-colhead:nth-child(2) {
		order: 2;
		margin-top: 24px;
	}

	.pc-vertical__why-outcome {
		order: 3;
	}

	/* Mobile keeps only the dot — the dashed line and arrowhead are dropped. */
	.pc-vertical__why-outcome {
		gap: 8px;
	}

	.pc-vertical__why-arrow {
		width: 4px;
		height: 4px;
	}

	.pc-vertical__why-arrow svg {
		display: none;
	}

	.pc-vertical__why-arrow::before {
		background: #002a71;
		border-radius: 50%;
		content: "";
		height: 4px;
		width: 4px;
	}
}

/* ---------- Our commitment ---------- */

.pc-vertical__commitment-grid {
	display: grid;
	grid-template-columns: minmax(0, 521px) minmax(0, 661px);
	justify-content: space-between;
	gap: clamp(24px, 4vw, 40px);
	align-items: start;
}

.pc-vertical__commitment-grid--no-media {
	grid-template-columns: 1fr;
}

@media (max-width: 900px) {
	.pc-vertical__commitment-grid {
		grid-template-columns: 1fr;
	}
}

.pc-vertical__commitment-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.pc-vertical__bullets {
	margin: 4px 0 12px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pc-vertical__bullets li {
	position: relative;
	padding-left: 24px;
	font-weight: 500;
	font-size: 16px;
	line-height: 2.7;
	color: var(--pc-vertical-title);
}

.pc-vertical__bullets li::before {
	content: "•";
	position: absolute;
	left: 6px;
}

.pc-vertical__commitment-media {
	border-radius: var(--pc-radius-sm, 8px);
	overflow: hidden;
}

.pc-vertical__commitment-image {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 441px;
	object-fit: cover;
	object-position: top center;
}

/* ---------- FAQ ---------- */

.pc-vertical__faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	align-items: start;
	gap: 20px;
	max-width: 1228px;
	margin: 30px auto 0;
}

.pc-vertical__faq-item {
	background: #fff;
	border-radius: var(--pc-radius-sm, 8px);
	box-shadow: 1px 2px 3px rgba(180, 176, 176, 0.34);
}

.pc-vertical__faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	cursor: pointer;
	font-weight: 500;
	font-size: 16px;
	list-style: none;
}

.pc-vertical__faq-item summary::-webkit-details-marker {
	display: none;
}

.pc-vertical__chevron {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--pc-transition, 200ms ease);
}

.pc-vertical__faq-item[open] .pc-vertical__chevron {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.pc-vertical__faq-answer {
	padding: 0 20px 24px;
	font-size: 15px;
}

.pc-vertical__faq-answer > p {
	margin: 0 0 0.75em;
}

.pc-vertical__faq-answer > p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.pc-vertical__cta,
	.pc-vertical__hero-cta,
	.pc-vertical__chevron {
		transition: none;
	}
}
