/* The theme nests this page inside flex wrappers that otherwise compress it vertically
   and refuse to shrink below their content width, collapsing every row on mobile */
.service-intro-page {
	background-color: #e1f3ff;
	padding: 40px 0 60px;
	font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #000000;
	flex: 0 0 auto;
	min-width: 0;
	width: 100%;
}

/* D01 — the reference panels run nearly edge to edge; Bootstrap's 1140px container narrows every row */
.service-intro-page .container {
	max-width: 1220px;
	width: 100%;
	padding-left: 16px;
	padding-right: 16px;
}

.service-intro-hero {
	text-align: center;
	margin-bottom: 28px;
}

/* D02 — reference headings are black; the theme otherwise applies its dark navy */
.service-intro-hero h1 {
	color: #000000;
	font-weight: 700;
	font-size: 64px;
	line-height: 1.1;
	margin-bottom: 10px;
}

.service-intro-subtitle {
	color: #000000;
	font-size: 16px;
	max-width: 1121px;
	margin: 0 auto;
}

.service-intro-lead {
	font-size: 20px;
	font-weight: 200;
	color: #000000;
	margin-bottom: 6px;
}

.service-intro-body {
	font-weight: 100;
	color: #000000;
}

/* D01 — reference panels are more rounded, carry no shadow, and sit 53px apart */
.service-intro-card {
	background: #ffffff;
	border-radius: 24px;
	padding: 32px 20px;
	margin-bottom: 53px;
	box-shadow: none;
}

.service-intro-section-title {
	color: #000000;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: uppercase;
	margin-bottom: 28px;
}

.service-intro-steps {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	gap: 5px;
}

/* D03 — a shared stretch height keeps all six bottoms aligned while descriptions wrap freely */
.service-intro-step {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	min-height: 202px;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	text-align: center;
	padding: 40px 10px 18px;
	border: 3px solid #e1f3ff;
	border-radius: 28px;
	background: #ffffff;
}

/* D04 — reference badge is 22px and sits 16px in from the card corner */
.service-intro-step-number {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2d9cc7;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.service-intro-step-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	margin: 10px 0 12px;
}

.service-intro-step-icon img {
	max-width: 60px;
	max-height: 60px;
	width: auto;
	height: auto;
}

.service-intro-step-title {
	font-weight: 700;
	font-size: 12px;
	margin-bottom: 4px;
}

.service-intro-step-text {
	font-size: 11px;
	color: #000000;
}

/* D04 — the viewBox matches the box 1:1 so the shaft keeps the reference's slim 4:24 weight */
.service-intro-step-arrow {
	flex: 0 0 auto;
	align-self: center;
	width: 44px;
	height: 24px;
}

.service-intro-step-arrow svg {
	width: 100%;
	height: 100%;
	fill: #c6e6fc;
	stroke: none;
}

/* The steps row needs the card's full width, so the tiles carry their own inset instead */
.service-intro-info-tiles {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 42px;
	padding: 0 20px;
}

/* D05 — icon sits in a white circle at the lower left with the copy right aligned beside it */
.service-intro-info-tile {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	background: #e1f3ff;
	border-radius: 29px;
	padding: 22px 20px;
	text-align: right;
	min-height: 172px;
}

.service-intro-info-icon {
	position: absolute;
	left: 22px;
	bottom: 20px;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-intro-info-icon img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

/* D05 — the heading clears the icon on its own row, so it gets the tile's full width */
.service-intro-info-title {
	font-weight: 700;
	font-size: 20px;
	letter-spacing: normal;
	text-transform: uppercase;
	color: #2d9cc7;
	line-height: 1.2;
	margin-bottom: 2px;
	/* The reference box is wider than the tile's own padding allows; the heading sits
	   above the icon circle, so only the left inset is in its way */
	margin-left: -20px;
}

/* The reference sizes the third heading down a step so it stays on one line */
.service-intro-info-tile:nth-child(3) .service-intro-info-title {
	font-size: 19px;
}

/* Only the body lines sit beside the icon circle and need to clear it */
.service-intro-info-subtitle,
.service-intro-info-body {
	padding-left: 100px;
	color: #000000;
	line-height: 1.25;
}

/* Bootstrap's body line-height of 1.5 opens the lines up well past the reference */
.service-intro-info-subtitle {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}

.service-intro-info-body {
	font-size: 13px;
	font-weight: 400;
}

/* D07 — the reference contact column is wider than the action card */
.service-intro-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	align-items: flex-start;
}

.service-intro-cta-row .service-intro-card {
	margin-bottom: 0;
}

.service-intro-contact-column {
	display: flex;
	flex-direction: column;
	flex: 55 1 0;
	min-width: 280px;
}

/* D06 — compact action block: the button sits directly under the instruction */
.service-intro-cta-card {
	display: flex;
	flex: 42 1 0;
	min-width: 280px;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 24px 28px;
}

/* 15px keeps the instruction on one line; Inter needs 482px at 16px against a 475px card */
.service-intro-cta-text {
	font-size: 15px;
	text-align: center;
}

.service-intro-cta-button {
	text-decoration: none;
	align-self: center;
}

.service-intro-cta-button .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 359px;
	height: 50px;
	padding: 0 24px;
	border-radius: 12px;
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
	background-color: #349cc5;
	border-color: #349cc5;
	color: #ffffff;
}

.service-intro-cta-button .btn:hover,
.service-intro-cta-button .btn:focus,
.service-intro-cta-button .btn:active {
	background-color: #2d9cc7;
	border-color: #2d9cc7;
	color: #ffffff;
}

.service-intro-contact-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 12px 20px;
}

.service-intro-contact-top {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.service-intro-contact-icon {
	flex: 0 0 auto;
}

/* Box is oversized because question.png has ~23% transparent padding; visible circle lands at 37px */
.service-intro-contact-icon img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* 14px holds the two reference lines; Inter needs 535px at 15px against a 515px column */
.service-intro-contact-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	color: #000000;
}

.service-intro-logos {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.service-intro-logo {
	display: flex;
	align-items: center;
	padding-left: 16px;
	border-left: 3px solid #000000;
}

.service-intro-logo:first-child {
	padding-left: 0;
	border-left: none;
}

/* D07 — height only, so each wordmark keeps its own aspect ratio and relative width */
.service-intro-logo img {
	height: 34px;
	width: auto;
	max-width: none;
}

/* The reference sets each wordmark's optical height separately rather than to a common
   box; these two assets also differ in how much transparent padding they carry */
.service-intro-logo:nth-child(1) img {
	height: 29px;
}

.service-intro-logo:nth-child(4) img {
	height: 36px;
}

@media (max-width: 768px) {
	.service-intro-page {
		padding: 24px 0 40px;
	}

	/* 20px keeps the reference line wrapping in the action card while still fitting the logo row */
	.service-intro-page .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* M01 — reference hero is tighter and the title is black */
	.service-intro-hero {
		margin-bottom: 18px;
	}

	.service-intro-hero h1 {
		font-size: 25px;
		margin-bottom: 6px;
	}

	.service-intro-subtitle {
		font-size: 11px;
	}

	.service-intro-lead {
		font-size: 14px;
		margin-bottom: 4px;
	}

	/* The reference gives the body its own narrower measure than the lead above it */
	.service-intro-body {
		max-width: 304px;
		margin: 0 auto;
	}

	.service-intro-card {
		padding: 16px;
		border-radius: 18px;
		margin-bottom: 18px;
	}

	/* Figma shrinks each heading to fit the column, so the longer one is smaller */
	.service-intro-section-title {
		font-size: 13px;
		margin-bottom: 14px;
	}

	.service-intro-section-title--info {
		font-size: 15px;
	}

	.service-intro-steps {
		position: relative;
		flex-direction: column;
		align-items: stretch;
		min-width: 0;
	}

	/* M02 — thinner connector between the numbered badges */
	.service-intro-steps::before {
		content: "";
		position: absolute;
		top: 28px;
		bottom: 28px;
		left: 10px;
		width: 2px;
		background: #c6e6fc;
		z-index: 0;
	}

	/* M02 — reference step centres sit about 60px apart, not 110px */
	.service-intro-step {
		position: relative;
		z-index: 1;
		width: 100%;
		min-height: 0;
		box-sizing: border-box;
		display: grid;
		grid-template-columns: 22px 40px 1fr;
		align-items: center;
		column-gap: 12px;
		padding: 8px 0;
		text-align: left;
		border: none;
		border-radius: 0;
		background: transparent;
	}

	.service-intro-step-number {
		position: static;
		transform: none;
		justify-self: center;
		box-shadow: 0 0 0 4px #ffffff;
	}

	.service-intro-step-icon {
		position: relative;
		z-index: 1;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #e1f3ff;
		margin: 0;
		min-height: 0;
	}

	.service-intro-step-icon img {
		max-width: 22px;
		max-height: 22px;
	}

	/* Grid and flex children default to min-width:auto, which refuses to shrink below the
	   longest word and is what pushed the whole page past the viewport */
	.service-intro-step-content,
	.service-intro-info-content {
		display: block;
		min-width: 0;
	}

	/* The desktop rules set flex-basis:0 for the horizontal row; once the container turns
	   into a column that basis applies to height and collapses every row to zero */
	.service-intro-step,
	.service-intro-info-tile {
		flex: 0 0 auto;
	}

	.service-intro-step-title {
		font-size: 11px;
		margin-bottom: 1px;
	}

	.service-intro-step-text {
		font-size: 10px;
		color: #707980;
	}

	.service-intro-step-arrow {
		display: none;
	}

	/* M03 — rows size from their content so nothing spills below the white panel */
	/* The desktop inset exists so the tiles sit inside the card's full-width row; stacked
	   rows don't need it, and it was squeezing the heading column below the reference */
	.service-intro-info-tiles {
		flex-direction: column;
		flex-wrap: wrap;
		gap: 14px;
		padding: 0;
	}

	.service-intro-info-tile {
		position: static;
		display: grid;
		grid-template-columns: 48px 1fr;
		align-items: center;
		column-gap: 14px;
		min-height: 0;
		box-sizing: border-box;
		background: transparent;
		border-radius: 0;
		padding: 0;
		text-align: left;
	}

	.service-intro-info-icon {
		position: static;
		width: 48px;
		height: 48px;
		border-radius: 50%;
		background: #e1f3ff;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.service-intro-info-icon img {
		width: 26px;
		height: 26px;
	}

	/* M03 — compact heading with a regular weight description beside the icon */
	/* The icon is a grid column here, so the heading takes the content column as-is */
	.service-intro-info-title {
		font-size: 14px;
		margin-bottom: 2px;
		margin-left: 0;
	}

	.service-intro-info-tile:nth-child(3) .service-intro-info-title {
		font-size: 13px;
	}

	/* The icon is a grid column here, so the body lines no longer need to clear it */
	/* The reference drops the subtitle to regular weight here, unlike desktop */
	.service-intro-info-subtitle,
	.service-intro-info-body {
		padding-left: 0;
		font-weight: 400;
		margin-bottom: 0;
	}

	.service-intro-info-subtitle {
		font-size: 12px;
	}

	.service-intro-info-body {
		font-size: 10px;
	}

	/* M04 — reference action card is about 93px high with the button right under the instruction */
	.service-intro-cta-row {
		gap: 14px;
	}

	.service-intro-cta-card {
		flex: 1 1 100%;
		min-width: 0;
		text-align: center;
		gap: 8px;
		padding: 14px 16px;
	}

	.service-intro-cta-text {
		font-size: 13px;
	}

	.service-intro-cta-button {
		align-self: center;
	}

	.service-intro-cta-button .btn {
		min-width: 261px;
		height: 34px;
		padding: 0 16px;
		border-radius: 8px;
		font-size: 15px;
	}

	.service-intro-contact-column {
		flex: 1 1 100%;
		min-width: 0;
	}

	/* M05 — the reference contact block sits straight on the blue background */
	.service-intro-contact-card {
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		padding: 0;
		margin-bottom: 0;
	}

	.service-intro-contact-top {
		gap: 20px;
	}

	.service-intro-contact-icon img {
		width: 44px;
		height: 44px;
	}

	/* 10px holds the three reference lines; Inter needs 284px at 11px against a 271px column */
	.service-intro-contact-text {
		font-size: 10px;
	}

	.service-intro-logos {
		flex-wrap: nowrap;
		justify-content: center;
		column-gap: 10px;
		margin-top: 12px;
	}

	/* A 3px rule reads far heavier beside an 18px wordmark than beside a 34px one */
	.service-intro-logo {
		padding-left: 10px;
		border-left-width: 2px;
	}

	.service-intro-logo img {
		height: 18px;
		width: auto;
	}

	.service-intro-logo:nth-child(1) img {
		height: 15px;
	}

	.service-intro-logo:nth-child(4) img {
		height: 19px;
	}
}
