/* ==================================================
   Service parent page
================================================== */

.mast-service-parent-page,
.mast-service-parent-page * {
	box-sizing: border-box;
}

.mast-service-parent-page {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: #3f4650;
}

/* ==================================================
   Hero
================================================== */

.mast-service-parent-hero {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
}

.mast-service-parent-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(calc(100% - 48px), 1110px);
	margin: 0 auto;
	padding: 80px 0 88px;
	text-align: center;
}

.mast-service-parent-hero__matrix-title::before,
.mast-service-parent-hero__matrix-title::after {
	display: none;
	content: none;
}

.mast-service-parent-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
}

.mast-service-parent-hero__matrix {
	position: relative;
	width: min(100%, 540px);
	aspect-ratio: 1;
	margin: 0 auto;
}

.mast-service-parent-hero__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	opacity: 1;
}

.mast-service-parent-hero__matrix-labels {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.mast-service-parent-hero__matrix-label {
	position: absolute;
	margin: 0;
	padding: 0;
	color: #2f6fa3;
	font-family: inherit;
	font-size: clamp(0.78rem, 1.3vw, 0.9rem);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0.025em;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

.mast-service-parent-hero__matrix-label--tactics {
	top: 6%;
	left: 50%;
}

.mast-service-parent-hero__matrix-label--operation {
	top: 26%;
	left: 88%;
}

.mast-service-parent-hero__matrix-label--improve {
	top: 74%;
	left: 88%;
}

.mast-service-parent-hero__matrix-label--maintenance {
	top: 94%;
	left: 50%;
}

.mast-service-parent-hero__matrix-label--adjustment {
	top: 74%;
	left: 12%;
}

.mast-service-parent-hero__matrix-label--create {
	top: 26%;
	left: 12%;
}

.mast-service-parent-hero__matrix-title {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	margin: 0;
	padding: 0.45em 0.65em;
	border: 0;
	background-color: #fff;
	box-shadow: none;
	color: #0068b7;
	font-family: inherit;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.025em;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

/* ==================================================
   Service finder
================================================== */

.mast-service-finder {
	width: min(100%, 780px);
	margin: 0 auto 56px;
	padding: 0;
}

.mast-service-finder__header {
	margin: 0;
	padding: 0;
}

.mast-service-finder__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #333;
	font-family: inherit;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.04em;
}

.mast-service-finder__title::before,
.mast-service-finder__title::after {
	display: none;
	content: none;
}

.mast-service-finder__lead {
	margin: 8px 0 0;
	padding: 0;
	color: #565d66;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.02em;
}

.mast-service-finder__grid {
	display: block;
	width: min(100%, 780px);
	margin: 24px 0 0;
	padding: 0;
	border-top: 1px solid #d7e0e6;
	list-style: none;
}

.mast-service-finder__item {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.mast-service-finder__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	align-items: center;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 18px 12px;
	border: 0;
	border-bottom: 1px solid #d7e0e6;
	background-color: transparent;
	color: #3f4650;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}

.mast-service-finder__link:hover {
	background-color: #f4f9fc;
	color: #263845;
	text-decoration: none;
}

.mast-service-finder__link:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid #0068b7;
	outline-offset: -2px;
}

.mast-service-finder__concern {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.02em;
	line-break: strict;
	overflow-wrap: break-word;
	word-break: normal;
	word-break: auto-phrase;
	text-wrap: pretty;
}

.mast-service-finder__destination {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	justify-self: start;
	gap: 7px;
	margin: 0;
	padding: 0;
	color: #0068b7;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.mast-service-finder__arrow {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
}

.mast-service-parent-page .mast-service__item[id] {
	scroll-margin-top: 32px;
}

/* Keep the Service heading close to the parent-page introduction. */
.mast-service-parent-page > .mast-service .mast-service__inner {
	padding-top: 72px;
}

.mast-service-parent-page .mast-service__header {
	margin-bottom: 48px;
}

/* ==================================================
   Service cards
================================================== */

.mast-service-parent-page .mast-service__grid {
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: 1fr;
	gap: 20px;
	width: min(100%, 920px);
	margin-right: auto;
	margin-left: auto;
}

.mast-service-parent-page .mast-service__card {
	min-height: 280px;
	padding: 38px 52px 30px;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.mast-service-parent-page .mast-service__card--link,
.mast-service-parent-page .mast-service__card--link:visited {
	display: grid;
	grid-template-rows: auto 1fr auto;
	align-content: space-between;
	color: #666;
	text-decoration: none;
}

.mast-service-parent-page .mast-service__card--link:hover {
	border-color: #8fb8d5;
	background-color: #f3f7fa;
	color: #666;
	text-decoration: none;
}

.mast-service-parent-page .mast-service__card--link:focus-visible {
	border-color: #0068b7;
	outline: 2px solid #0068b7;
	outline-offset: 3px;
}

.mast-service-parent-page .mast-service__card-title {
	font-size: 3rem;
}

.mast-service-parent-page .mast-service__intro {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 32px;
	align-items: baseline;
	min-width: 0;
	padding-right: 128px;
}

.mast-service-parent-page .mast-service__heading,
.mast-service-parent-page .mast-service__summary {
	padding-right: 0;
}

.mast-service-parent-page .mast-service__summary {
	grid-template-columns: 2.5em 36px minmax(0, 1fr);
	align-items: baseline;
	min-width: 0;
	margin-top: 0;
}

.mast-service-parent-page .mast-service__connector {
	align-self: center;
}

.mast-service-parent-page .mast-service__icon {
	top: 30px;
	right: 44px;
	width: 104px;
	height: 104px;
}

.mast-service-parent-page .mast-service__label,
.mast-service-parent-page .mast-service__description {
	font-size: 1.1875rem;
}

.mast-service-parent-page .mast-service__description {
	width: min(100%, 44rem);
	max-width: none;
	white-space: nowrap;
}

.mast-service-parent-page .mast-service__card--link .mast-service__list {
	align-content: center;
	width: 100%;
	margin-top: 0;
	column-gap: 36px;
	max-width: none;
}

.mast-service-parent-page .mast-service__list-item {
	font-size: 1.125rem;
}

.mast-service-parent-page .mast-service__more {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 0;
	margin: 20px 0 0 auto;
	padding: 0;
	border-radius: 0;
	background-color: transparent;
	color: #0068b7;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 180ms ease;
}

.mast-service-parent-page .mast-service__card--link:hover .mast-service__more {
	color: #005a9e;
}

@media screen and (min-width: 1100px) {
	.mast-service-parent-page .mast-service__card--link {
		grid-template-rows: auto minmax(0, 1fr);
		align-content: stretch;
	}

	.mast-service-parent-page .mast-service__card--link .mast-service__list {
		align-self: stretch;
		align-content: center;
		min-height: 150px;
	}

	.mast-service-parent-page .mast-service__more {
		position: absolute;
		right: 52px;
		bottom: 30px;
		margin: 0;
	}
}

/* ==================================================
   Tablet: 768px-1099px
================================================== */

@media screen and (max-width: 1099px) {
	.mast-service-parent-hero__inner {
		width: min(calc(100% - 40px), 1110px);
		padding: 72px 0 80px;
	}

	.mast-service-parent-hero__matrix {
		width: min(100%, 470px);
	}

	.mast-service-finder {
		margin-bottom: 48px;
	}

	.mast-service-finder__link {
		grid-template-columns: minmax(0, 1fr) 150px;
		padding: 17px 10px;
	}

	.mast-service-parent-page > .mast-service .mast-service__inner {
		padding-top: 64px;
	}

	.mast-service-parent-page .mast-service__header {
		margin-bottom: 44px;
	}

	.mast-service-parent-page .mast-service__grid {
		gap: 18px;
	}

	.mast-service-parent-page .mast-service__card {
		min-height: 250px;
		padding: 32px 42px 30px;
	}

	.mast-service-parent-page .mast-service__intro {
		display: block;
		padding-right: 0;
	}

	.mast-service-parent-page .mast-service__card-title {
		font-size: 2.25rem;
	}

	.mast-service-parent-page .mast-service__heading,
	.mast-service-parent-page .mast-service__summary {
		padding-right: 108px;
	}

	.mast-service-parent-page .mast-service__summary {
		grid-template-columns: 2.5em 28px minmax(0, 1fr);
		margin-top: 14px;
	}

	.mast-service-parent-page .mast-service__description {
		white-space: normal;
	}

	.mast-service-parent-page .mast-service__icon {
		top: 28px;
		right: 38px;
		width: 92px;
		height: 92px;
	}
}

/* ==================================================
   Mobile: 767px and below
================================================== */

@media screen and (max-width: 767px) {
	.mast-service-parent-hero__inner {
		width: 100%;
		padding: 56px 20px 64px;
	}

	.mast-service-parent-hero__matrix {
		width: min(100%, 360px);
	}

	.mast-service-parent-hero__matrix-label {
		font-size: clamp(0.68rem, 3vw, 0.75rem);
		letter-spacing: 0.01em;
	}

	.mast-service-parent-hero__matrix-title {
		font-size: clamp(1.05rem, 5vw, 1.25rem);
	}

	.mast-service-finder__title {
		font-size: 1.15rem;
	}

	.mast-service-finder__lead {
		font-size: 0.875rem;
	}

	.mast-service-finder__grid {
		margin-top: 20px;
	}

	.mast-service-finder__link {
		grid-template-columns: minmax(0, 1fr);
		align-items: flex-start;
		gap: 10px;
		padding: 16px 4px;
	}

	.mast-service-finder__concern {
		font-size: 0.925rem;
	}

	.mast-service-finder {
		margin-bottom: 40px;
	}

	.mast-service-parent-page .mast-service__item[id] {
		scroll-margin-top: 20px;
	}

	.mast-service-parent-hero__matrix-label--operation,
	.mast-service-parent-hero__matrix-label--improve {
		left: 86%;
	}

	.mast-service-parent-hero__matrix-label--adjustment,
	.mast-service-parent-hero__matrix-label--create {
		left: 14%;
	}

	.mast-service-parent-page > .mast-service .mast-service__inner {
		padding-top: 48px;
	}

	.mast-service-parent-page .mast-service__header {
		margin-bottom: 36px;
	}

	.mast-service-parent-page .mast-service__grid {
		grid-auto-rows: auto;
		gap: 16px;
		width: 100%;
	}

	.mast-service-parent-page .mast-service__card {
		min-height: 0;
		padding: 28px 26px 26px;
	}

	.mast-service-parent-page .mast-service__card-title {
		font-size: 1.75rem;
	}

	.mast-service-parent-page .mast-service__heading,
	.mast-service-parent-page .mast-service__summary {
		padding-right: 86px;
	}

	.mast-service-parent-page .mast-service__icon {
		top: 22px;
		right: 22px;
		width: 76px;
		height: 76px;
	}

	.mast-service-parent-page .mast-service__label,
	.mast-service-parent-page .mast-service__description {
		font-size: 1rem;
	}

	.mast-service-parent-page .mast-service__list-item {
		font-size: 0.95rem;
	}

	.mast-service-parent-page .mast-service__more {
		margin-top: 20px;
		padding-top: 0;
		font-size: 0.95rem;
	}

	.mast-service-parent-page .mast-service__card--link .mast-service__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
		margin-top: 22px;
	}
}
