/* Services Hero :: Front-end */

.svh-section {
	--svh-hs: 1;
	--svh-bs: 1;
	--svh-cols: 3;
	--svh-gutter: calc( ( var( --svh-canvas, 1440px ) - var( --svh-content, 1200px ) ) / 2 );

	width: 100%;
	padding: var( --svh-pad-y, 60px ) 0;
	background-color: var( --svh-section-bg, #FFFFFF );
	font-family: 'Google Sans', sans-serif;
	box-sizing: border-box;
}
.svh-section * { box-sizing: border-box; }

.svh-container {
	max-width: var( --svh-canvas, 1440px );
	margin: 0 auto;
	padding: 0 var( --svh-gutter );
}

/* Theme reset guards */
.svh-section h2,
.svh-section h3,
.svh-section p { margin: 0; padding: 0; }
.svh-section h2,
.svh-section h3 { font-family: inherit; letter-spacing: 0; }

/* Headline */

.svh-head { text-align: center; }

.svh-heading {
	font-family: 'Anybody', sans-serif !important;
	font-weight: 700;
	line-height: 1.025;
	text-transform: uppercase;
	color: var( --svh-heading, #333333 );
	font-size: max( 22px, calc( var( --svh-heading-fs, 40px ) * var( --svh-hs ) ) );
}

.svh-section .svh-subtitle {
	max-width: var( --svh-subtitle-w, 1101px );
	margin: var( --svh-gap-subtitle, 10px ) auto 0;
	font-weight: 400;
	line-height: 1.25;
	color: var( --svh-subtitle, #9F9F9F );
	font-size: max( 14px, calc( var( --svh-subtitle-fs, 20px ) * var( --svh-bs ) ) );
}

/* The row of cards */
.svh-cards {
	display: grid;
	grid-template-columns: repeat( var( --svh-cols, 3 ), minmax( 0, 1fr ) );
	column-gap: var( --svh-card-gap-x, 20px );
	row-gap: var( --svh-card-gap-y, 24px );
	align-items: stretch;
	margin-top: var( --svh-gap-cards, 26px );
}

/* A card */
.svh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var( --svh-card-min-h, 498px );
	padding: var( --svh-card-pad-top, 65px ) var( --svh-card-pad-x, 25px ) var( --svh-card-pad-bot, 24px );

	background: var( --svh-panel-bg, #FFFFFF );
	border-radius: var( --svh-card-radius, 20px );
}

.svh-card__art {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	overflow: hidden;
	pointer-events: none;
}

.svh-card__art > img,
.svh-card__art > svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: fill;
	border-radius: inherit;
}

/* The artwork as two separate pieces */
.svh-card__art > .svh-card__art-top,
.svh-card__art > .svh-card__art-bot {
	display: block;
	position: absolute;
	max-width: none !important;
	pointer-events: none;
	border-radius: 0;
}

.svh-card__art > .svh-card__art-top {
	top: 0;
	right: 0;
	width: var( --svh-art-top-w, 27.6% ) !important;
	height: var( --svh-art-top-h, auto ) !important;
	object-fit: contain;
	object-position: top right;
}

.svh-card__art > .svh-card__art-bot {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100% !important;
	height: var( --svh-art-bot-h, auto ) !important;
	object-fit: fill;
}

/* A card whose foot band is a picture */
.svh-card--band {
	min-height: 0;
	overflow: hidden;
}

.svh-card--band .svh-card__body {
	margin-bottom: var( --svh-gap-band, 60px );
}

.svh-card__foot {
	position: relative;
	z-index: 0;
	margin-top: auto;
	margin-left: calc( -1 * var( --svh-card-pad-x, 25px ) );
	margin-right: calc( -1 * var( --svh-card-pad-x, 25px ) );
	margin-bottom: calc( -1 * var( --svh-card-pad-bot, 24px ) );
	width: calc( 100% + 2 * var( --svh-card-pad-x, 25px ) );
	pointer-events: none;
}

.svh-card__foot > .svh-card__art-bot {
	position: static;
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	transform: translateY( var( --svh-art-bot-hang, 0% ) );
}

.svh-card--band .svh-card__mark {
	top: var( --svh-icon-drop-bd, 53.1% );
}

.svh-card__body {
	position: relative;
	z-index: 1;
}

.svh-num {
	font-family: 'Anybody', sans-serif !important;
	font-weight: 700;
	line-height: 1.04;
	color: var( --svh-num, #333333 );
	font-size: max( 38px, calc( var( --svh-num-fs, 75px ) * var( --svh-hs ) ) );
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1;
}

.svh-section .svh-card-title {
	margin-top: var( --svh-gap-title, 14px );
	font-family: 'Anybody', sans-serif !important;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	color: var( --svh-title, #333333 );
	font-size: max( 15px, calc( var( --svh-title-fs, 24px ) * var( --svh-hs ) ) );
}

.svh-section .svh-card-body {
	margin-top: var( --svh-gap-body, 32px );
	font-weight: 400;
	line-height: 1.25;
	color: var( --svh-body, #7D7D7D );
	font-size: max( 13px, calc( var( --svh-body-fs, 16px ) * var( --svh-bs ) ) );
}

/* The mark at a card's foot */
.svh-card__mark {
	position: absolute;
	top: var( --svh-icon-drop, 90.2% );
	left: 50%;
	transform: translate( -50%, -50% );
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.svh-card__mark img {
	display: block;
	width: auto !important;
	height: var( --svh-icon-h, 64px ) !important;
	max-width: none !important;
}

.svh-card__mark {
	color: var( --svh-mark, #141B34 );
}
.svh-card__mark svg {
	display: block;
	width: var( --svh-icon-h, 64px );
	height: var( --svh-icon-h, 64px );
	max-width: none;
}

/* REVEAL */

.svh-js .svh-rv { opacity: 0; }

.svh-js .svh-rv--rise.svh-rv-in {
	animation: svh-rise .75s cubic-bezier( .22, .8, .26, 1 ) both;
	animation-delay: calc( var( --svh-rv-i, 0 ) * 85ms );
}
@keyframes svh-rise {
	0% {
		opacity: 0;
		transform: translate3d( 0, 18px, 0 );
	}
	55% { opacity: 1; }
	100% {
		opacity: 1;
		transform: translate3d( 0, 0, 0 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.svh-js .svh-rv,
	.svh-js .svh-rv.svh-rv-in {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
}

/* Breakpoints */

@media ( max-width: 1439px ) {
	.svh-section.svh-section { --svh-gutter: clamp( 40px, 6vw, 120px ); }
}

@media ( max-width: 1200px ) {
	.svh-section.svh-section {
		--svh-hs: .9;
		--svh-bs: .95;
		--svh-card-pad-top: 52px;
		--svh-card-min-h: 460px;
	}
}

@media ( max-width: 1024px ) {
	.svh-section.svh-section { --svh-hs: .82; --svh-bs: .92; --svh-card-pad-top: 44px; padding: 48px 0; }
}

@media ( max-width: 900px ) {
	.svh-section.svh-section {
		--svh-hs: .8;
		--svh-bs: .95;
		--svh-cols: 2;
		--svh-card-min-h: 420px;
	}
}

@media ( max-width: 600px ) {
	.svh-section.svh-section {
		--svh-hs: .7;
		--svh-bs: .9;
		--svh-cols: 1;
		--svh-gutter: 20px;
		--svh-card-pad-top: 36px;
		--svh-card-pad-x: 22px;
		--svh-card-min-h: 380px;
		--svh-card-gap-y: 20px;
		padding: 40px 0;
	}
}

@media ( max-width: 400px ) {
	.svh-section.svh-section { --svh-hs: .64; --svh-bs: .88; --svh-gutter: 16px; --svh-card-min-h: 350px; }
}
