/*
 * Engineering & Quality page (EN /engineering-quality-2/, post 34) — matches the Bricks build.
 * Hero (cover) · non-standard design (photo + checklist) · validation labs grid ·
 * standards band · process steps.
 * Breakpoints as in the Bricks build: 991px, 767px, 478px.
 *
 * Bricks used the system font here, so the shared `h1, h2 { Inter; letter-spacing:-2px }`
 * from snh.css is reset on every heading below.
 */

/* ---------- Hero (same pattern as the Products hero) ---------- */

.wp-block-cover.snh-eq-hero {
	min-height: 0;
	padding: 200px 0 160px;
	overflow: visible;
	align-items: flex-start;
}

/* Bricks: photo multiplied with a #182440 layer at 82% (background-blend-mode: multiply). */
.snh-eq-hero .wp-block-cover__background.has-background-dim {
	opacity: 0.82;
	mix-blend-mode: multiply;
}

/* Bricks: 60px curve div, bottom -1px, above the image */
.snh-eq-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 60px;
	z-index: 3;
	background: var(--snh-curve) no-repeat bottom / 100% 100%;
	pointer-events: none;
}

.snh-eq-hero .wp-block-cover__inner-container {
	z-index: 2;
}

.snh-eq-hero .snh-eq-hero__content.snh-eq-hero__content {
	gap: 0;
}

.snh-eq-hero .snh-eq-hero__content > * {
	margin: 0;
}

.snh-eq-hero .snh-eq-hero__content .is-style-pill {
	margin-bottom: 24px !important;
}

.snh-eq-hero .snh-eq-hero__content h1 {
	font-family: inherit;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: normal;
	color: #fff;
	margin-bottom: 16px;
}

.snh-eq-hero .snh-eq-hero__content .snh-eq-hero__lead {
	font-size: 18px;
	line-height: 1.6;
	color: #ffffffcc;
}

@media (max-width: 991px) {
	.wp-block-cover.snh-eq-hero {
		padding: 160px 0 120px;
	}

	.snh-eq-hero .snh-eq-hero__content h1 {
		font-size: 36px;
	}
}

@media (max-width: 767px) {
	.snh-eq-hero .snh-eq-hero__content.snh-eq-hero__content {
		padding: 0 24px;
	}

	.snh-eq-hero .snh-eq-hero__content .snh-eq-hero__lead {
		text-align: center;
	}
}

@media (max-width: 478px) {
	.wp-block-cover.snh-eq-hero {
		padding: 140px 0 100px;
	}

	.snh-eq-hero .snh-eq-hero__content h1 {
		font-size: 28px;
	}
}

/* ---------- Shared small label (13px / 600 / uppercase, navy) ---------- */

.snh-eq-eyebrow.snh-eq-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--snh-navy);
}

/* ---------- Non-standard bearing design ---------- */

.snh-eq-design {
	padding: 120px 40px;
}

.snh-eq-design .snh-eq-design__row {
	display: flex;
	align-items: center;
	gap: 40px 60px;
}

.wp-block-image.snh-eq-design__image {
	width: 50%;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: var(--snh-radius);
}

.wp-block-image.snh-eq-design__image img {
	width: 100%;
	height: 520px;
	object-fit: cover;
}

.snh-eq-design__row .snh-eq-design__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: 50%;
}

.snh-eq-design__text > * {
	margin: 0;
}

.snh-eq-design__text h2.snh-eq-design__title {
	font-family: inherit;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--snh-ink);
	margin-bottom: 16px;
}

.snh-eq-design__text p.snh-eq-design__lead {
	font-size: 17px;
	line-height: 1.7;
	color: var(--snh-text);
	margin-bottom: 24px;
}

.snh-eq-design__text h3.snh-eq-design__label {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--snh-ink);
	margin: 21.6px 0 16px;
}

.snh-eq-design__text ul.snh-eq-checklist {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
	width: 100%;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.snh-eq-checklist li {
	display: flex;
	align-items: flex-start;
	column-gap: 12px;
	font-size: 15px;
	line-height: 1.6;
	color: #374151;
}

/* Bricks icon: 24px SVG in a text line (32.5px tall) with 2px top margin. */
.snh-eq-checklist li::before {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 32.5px;
	margin-top: 2px;
	background: url(../../icons/about-check.svg) no-repeat center top / 24px 24px;
}

@media (max-width: 767px) {
	.snh-eq-checklist li {
		flex-wrap: wrap;
	}
}

/* Buttons on this page: Bricks .snh-btn-navy (red pill, 15px, no uppercase) */
.wp-block-button.snh-eq-btn .wp-block-button__link {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	text-transform: none;
	letter-spacing: 0.5px;
	padding: 14px 32px;
}

@media (max-width: 991px) {
	.snh-eq-design {
		padding: 60px 0;
	}

	.snh-eq-design .snh-eq-design__row {
		flex-direction: column;
	}

	.wp-block-image.snh-eq-design__image,
	.snh-eq-design__row .snh-eq-design__text {
		width: 100%;
	}

	.snh-eq-design__row .snh-eq-design__text {
		padding: 0 24px;
	}
}

@media (max-width: 478px) {
	.snh-eq-design__text h2.snh-eq-design__title {
		font-size: 26px;
	}
}

/* ---------- Validation labs ---------- */

.snh-eq-labs {
	padding: 120px 40px;
}

.snh-eq-labs > * {
	margin-block: 0;
}

.snh-eq-labs p.snh-eq-labs__eyebrow {
	margin-bottom: 32px;
}

.snh-eq-labs .snh-eq-labs__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 120px;
	gap: 2px;
	align-items: stretch;
	border-radius: var(--snh-radius);
	overflow: hidden;
}

.snh-eq-labs__grid > * {
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
}

.snh-eq-labs__grid .snh-eq-labs__intro {
	position: relative;
	overflow: hidden;
	grid-column: 1;
	grid-row: 1 / 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 40px 72px;
	background-color: var(--snh-navy);
}

.snh-eq-labs__intro > * {
	margin: 0;
}

.snh-eq-labs__intro p.snh-eq-labs__count {
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	margin-bottom: 8px;
}

.snh-eq-labs__intro h2.snh-eq-labs__title {
	font-family: inherit;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: #fff;
	margin-bottom: 16px;
}

.snh-eq-labs__intro p.snh-eq-labs__lead {
	font-size: 16px;
	line-height: 1.6;
	color: #ffffffcc;
}

.snh-eq-labs__intro p.snh-eq-labs__badge {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 5;
	padding: 10px 20px;
	border-radius: 99px;
	background-color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	color: var(--snh-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.snh-eq-labs__grid .snh-eq-lab {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 36px 32px;
	background-color: #fff;
}

.snh-eq-lab > * {
	margin: 0;
}

.snh-eq-lab h3.wp-block-heading {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--snh-ink);
	margin-bottom: 8px;
}

.snh-eq-lab p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.snh-eq-labs__grid .snh-eq-lab.is-navy {
	background-color: var(--snh-navy);
}

.snh-eq-lab.is-navy h3.wp-block-heading {
	color: #fff;
}

.snh-eq-lab.is-navy p {
	color: #ffffffcc;
}

.snh-eq-labs__grid .snh-eq-lab--wide {
	grid-column: 1 / 3;
}

.snh-eq-lab.snh-eq-lab--wide p {
	color: #ffffffb3;
}

/* Photo fills its grid cell (Bricks: absolute image, cover, centre top). */
.snh-eq-labs__grid .wp-block-image.snh-eq-labs__photo {
	position: relative;
	overflow: hidden;
	grid-column: 3;
	height: 100%;
	min-height: 120px;
}

.snh-eq-labs__photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

.snh-eq-labs p.snh-eq-labs__kit {
	padding-top: 32px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.5px;
	color: var(--snh-text);
}

@media (max-width: 991px) {
	.snh-eq-labs {
		padding: 60px 0;
	}

	.snh-eq-labs p.snh-eq-labs__eyebrow {
		padding: 0 24px;
	}

	.snh-eq-labs .snh-eq-labs__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	.snh-eq-labs__grid .snh-eq-labs__intro {
		grid-column: 1 / 3;
		grid-row: auto;
	}

	/* Bricks quirk kept: the photo drops to its own row in column 2, leaving column 1 empty. */
	.snh-eq-labs__grid .wp-block-image.snh-eq-labs__photo {
		grid-column: 2;
	}
}

@media (max-width: 478px) {
	.snh-eq-labs .snh-eq-labs__grid {
		grid-template-columns: 1fr;
	}

	.snh-eq-labs__grid .snh-eq-labs__intro {
		grid-column: 1;
		padding: 40px 28px;
	}

	.snh-eq-labs__intro p.snh-eq-labs__count {
		font-size: 80px;
	}

	.snh-eq-labs__intro h2.snh-eq-labs__title {
		font-size: 24px;
	}

	/* Bricks quirk kept: the badge overlaps the last line of the lead text on phones. */
	.snh-eq-labs__intro p.snh-eq-labs__badge {
		right: 12px;
		bottom: 16px;
		font-size: 12px;
	}

	.snh-eq-labs__grid .snh-eq-lab--wide,
	.snh-eq-labs__grid .wp-block-image.snh-eq-labs__photo {
		grid-column: 1;
	}

	.snh-eq-labs__grid .wp-block-image.snh-eq-labs__photo {
		min-height: 200px;
	}

	.snh-eq-labs p.snh-eq-labs__kit {
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* ---------- Standards band ---------- */

.snh-eq-standards {
	padding: 80px 0;
}

.snh-eq-standards .snh-eq-standards__row {
	display: flex;
	align-items: center;
	gap: 40px 60px;
}

/* Bricks containers carry margin-inline:auto, which spreads the two columns apart. */
.snh-eq-standards__row > .snh-eq-standards__text,
.snh-eq-standards__row > ul.snh-eq-standards__list {
	margin: 0 auto;
}

.snh-eq-standards__row .snh-eq-standards__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 55%;
}

.snh-eq-standards__text > * {
	margin: 0;
}

.snh-eq-standards__text p.snh-eq-standards__eyebrow {
	color: #ffffffaa;
	margin-bottom: 16px;
}

.snh-eq-standards__text h2.wp-block-heading {
	font-family: inherit;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: #fff;
	margin-bottom: 8px;
}

.snh-eq-standards__text p:not(.snh-eq-eyebrow) {
	font-size: 17px;
	line-height: 1.6;
	color: #ffffffcc;
}

.snh-eq-standards__row ul.snh-eq-standards__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 12px;
	padding: 0;
	list-style: none;
}

.snh-eq-standards__list li {
	margin: 0;
	padding: 10px 22px;
	border: 1px solid #ffffff40;
	border-radius: 99px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

@media (max-width: 991px) {
	.snh-eq-standards {
		padding: 60px 24px;
	}

	.snh-eq-standards .snh-eq-standards__row {
		flex-direction: column;
	}

	.snh-eq-standards__row .snh-eq-standards__text {
		width: 100%;
	}

	/* Bricks quirk kept: the three nowrap pills sit in one row and overflow at tablet widths. */
	.snh-eq-standards__row ul.snh-eq-standards__list {
		flex-direction: row;
		column-gap: 12px;
		width: 100%;
	}
}

@media (max-width: 478px) {
	.snh-eq-standards__text h2.wp-block-heading {
		font-size: 26px;
	}

	.snh-eq-standards__row ul.snh-eq-standards__list {
		flex-wrap: wrap;
	}
}

/* ---------- Process ---------- */

.snh-eq-process {
	padding: 80px 40px;
}

.snh-eq-process > * {
	margin-block: 0;
}

.snh-eq-process p.snh-eq-process__eyebrow {
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.snh-eq-process h2.snh-eq-process__title {
	font-family: inherit;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
	color: var(--snh-ink);
	margin-bottom: 56px;
}

.snh-eq-process .snh-eq-steps {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

/* Connecting line behind the step numbers */
.snh-eq-steps::before {
	content: "";
	position: absolute;
	top: 32px;
	left: 16.66%;
	right: 16.66%;
	height: 2px;
	background: linear-gradient(90deg, #1e3c64 0%, #1e3c6440 50%, #1e3c64 100%);
	z-index: 0;
}

.snh-eq-steps .snh-eq-step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 33.333%;
}

.snh-eq-step > * {
	margin: 0;
}

.snh-eq-step p.snh-eq-step__num {
	position: relative;
	z-index: 1;
	padding: 4px 16px;
	background-color: #f9fafb;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: var(--snh-navy);
	text-align: center;
	margin-bottom: 16px;
}

.snh-eq-step h3.wp-block-heading {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--snh-ink);
	margin-bottom: 8px;
}

.snh-eq-step p:not(.snh-eq-step__num) {
	padding: 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* Bricks: an inline link in a padded block, so the pill's padding overhangs the line box. */
.snh-eq-process .snh-eq-process__cta {
	padding: 50px 0 10px;
}

.snh-eq-process__cta .wp-block-button.snh-eq-btn .wp-block-button__link {
	display: inline;
	letter-spacing: normal;
}

@media (max-width: 767px) {
	.snh-eq-process .snh-eq-steps {
		flex-direction: column;
		align-items: center;
		row-gap: 48px;
	}

	/* Bricks' vertical replacement line ends up with background:none — no line on phones. */
	.snh-eq-steps::before {
		display: none;
	}

	.snh-eq-steps .snh-eq-step {
		width: 100%;
		max-width: 320px;
	}
}
