:root {
	--navy: #022259;
	--heritage: #e40513;
}

body.nts-services-page {
	font-family: "Roboto", Arial, sans-serif;
	color: #444;
}

.nts-services-page h1,
.nts-services-page h2,
.nts-services-page h3 {
	font-family: "Source Sans Pro", Arial, sans-serif;
}

.services-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	min-height: 40vh;
	align-items: center;
	overflow: hidden;
	background-color: #022259;
	color: #fff;
}

.services-hero::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: linear-gradient(105deg, rgba(2, 34, 89, .82), rgba(2, 34, 89, .62));
	content: "";
}

.services-hero-video {
	position: absolute;
	z-index: -1;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.services-hero::after {
	position: absolute;
	z-index: -2;
	inset: -6%;
	background: url("../images/services-reference/services-hero-section-background.webp") center / cover no-repeat;
	content: "";
	animation: services-banner-zoom 24s ease-in-out infinite alternate;
}

.nts-services-page header.sticky {
	background-color: #fff;
	border-bottom-color: rgba(2, 34, 89, .12);
	box-shadow: 0 6px 22px rgba(2, 34, 89, .12);
}

.services-hero-content {
	position: relative;
	z-index: 1;
	width: min(1170px, calc(100% - 48px));
	margin: 0 auto;
	padding: 80px 0;
}

@keyframes services-banner-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.12); }
}

.services-breadcrumb {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 .8rem;
	color: rgba(255, 255, 255, .82);
	font-size: .9rem;
}

.services-breadcrumb a:hover {
	color: #e40513;
}

.services-hero h1 {
	margin: 0;
	color: #fff;
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: clamp(2rem, 4vw, 2.875rem);
	font-weight: 700;
	line-height: 1.09;
}

.nts-services-page header nav[aria-label="Main navigation"] > a,
.nts-services-page header nav[aria-label="Main navigation"] > div > a,
.nts-services-page header nav[aria-label="Main navigation"] + a {
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.nts-services-page header nav[aria-label="Mobile navigation"] a,
.nts-services-page header summary {
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
}

.services-directory {
	background: #f7f8fa url("../images/services-reference/services-post-grid-section-background.webp") top center / 100% auto repeat-y;
}

.services-category {
	padding: 65px 24px 30px;
	scroll-margin-top: 125px;
}

.services-category:last-child {
	padding-bottom: 80px;
}

.services-container {
	width: min(1170px, 100%);
	margin: 0 auto;
}

.services-category h2 {
	margin: 0 0 34px;
	color: #171717;
	font-size: clamp(1.65rem, 3vw, 2.2rem);
	font-weight: 600;
	line-height: 1.2;
	text-transform: capitalize;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.services-card {
	position: relative;
	display: flex;
	min-height: 310px;
	align-items: center;
	overflow: hidden;
	background: var(--service-photo) center / cover no-repeat;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	isolation: isolate;
}

.services-card::before,
.services-card::after {
	position: absolute;
	inset: 0;
	content: "";
	transition: opacity .45s ease;
}

.services-card::before {
	z-index: -1;
	background: #fff;
	opacity: 1;
}

.services-card::after {
	z-index: -1;
	background: rgba(0, 0, 0, .56);
	opacity: 0;
}

.services-card-content {
	display: grid;
	width: 100%;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding: 38px;
}

.services-card-content > img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	transition: transform .35s ease;
}

.services-card h3 {
	margin: 0 0 12px;
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.25;
}

.services-card h3 a {
	color: #111;
}

.services-card p {
	margin: 0 0 20px;
	color: #565656;
	font-size: .9rem;
	line-height: 1.6;
}

.services-card-content > div > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 19px;
	border: 1px solid #dfdfdf;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 6px 27px rgba(0, 0, 0, .1);
	color: #111;
	font-size: .86rem;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.services-card-content > div > a:hover {
	border-color: #e40513;
	background: #e40513;
	color: #fff;
}

.services-card:hover::before,
.services-card:focus-within::before {
	opacity: 0;
}

.services-card:hover::after,
.services-card:focus-within::after {
	opacity: 1;
}

.services-card:hover h3 a,
.services-card:focus-within h3 a,
.services-card:hover p,
.services-card:focus-within p {
	color: #fff;
}

.services-card:hover .services-card-content > img,
.services-card:focus-within .services-card-content > img {
	transform: scale(1.08);
}

.services-anchor {
	position: relative;
	top: -110px;
	display: block;
}

.services-callout {
	padding: 64px 24px;
	background: #101010;
	color: #fff;
	text-align: center;
}

.services-callout h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.services-callout p {
	margin: 12px 0 24px;
	color: rgba(255, 255, 255, .8);
}

.services-callout a {
	display: inline-flex;
	border-radius: 30px;
	background: #e40513;
	padding: 13px 28px;
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.nts-services-page header > div:last-child {
		min-height: 76px;
		gap: .75rem;
		padding-right: 16px;
		padding-left: 16px;
	}

	.nts-services-page header > div:last-child > a:first-child img {
		height: 64px;
		margin-bottom: 0;
	}

	.nts-services-page header details nav {
		right: 0;
		width: min(260px, calc(100vw - 32px));
		max-height: calc(100dvh - 100px);
		overflow-y: auto;
	}

	.nts-services-page header details nav a {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	.services-hero {
		min-height: 34vh;
	}

	.services-hero-content {
		width: calc(100% - 36px);
		padding: 56px 0;
	}

	.services-category {
		padding: 42px 18px 18px;
	}

	.services-category h2 {
		margin-bottom: 24px;
		font-size: clamp(1.55rem, 7vw, 2rem);
	}

	.services-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.services-card {
		min-height: 0;
	}

	.services-card-content {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 16px;
		padding: 24px 20px;
	}

	.services-card-content > img {
		width: 52px;
		height: 52px;
	}

	.services-card h3 {
		font-size: 1.25rem;
	}
}

@media (max-width: 420px) {
	.services-card-content {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 22px 18px;
	}

	.services-container {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.services-hero::after,
	.services-card::before,
	.services-card::after,
	.services-card-content > img,
	.services-card-content > div > a {
		transition: none;
	}

	.services-hero::after {
		animation: none;
	}

	.services-hero-video {
		display: none;
	}
}
