/* 2Fifty Widgets: service-cards */
/* ==========================================================================
   4) SERVICE CARDS
   ========================================================================== */

.shw-sc {
	--shw-dur: 350ms;
	--shw-lift: 6px;
	--shw-accent: 4px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.shw-sc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	isolation: isolate;
	padding: 0;
	background-color: #fff;
	border: 1px solid #e3e5ea;
	border-radius: 4px;
	transition:
		transform var(--shw-dur) var(--shw-ease),
		box-shadow var(--shw-dur) var(--shw-ease),
		border-color var(--shw-dur) var(--shw-ease),
		background-color var(--shw-dur) var(--shw-ease);
}

.shw-sc__card:hover,
.shw-sc__card:focus-within,
.shw-sc__card.is-featured {
	border-color: #0e1f3d;
	box-shadow: 0 18px 40px rgba(14, 31, 61, .12);
	transform: translateY(calc(var(--shw-lift) * -1));
}

.shw-sc__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 38px 28px 32px;
}

/* Photo styles */
.shw-sc__photo {
	position: relative;
	overflow: hidden;
	flex: none;
	height: var(--shw-photo-h, 220px);
}

.shw-sc__photo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform calc(var(--shw-dur) * 2) var(--shw-ease);
}

.shw-sc__card:hover .shw-sc__photo img {
	transform: scale(var(--shw-zoom, 1.06));
}

.shw-sc--photo-top .shw-sc__card.has-photo .shw-sc__body {
	padding-top: 26px;
}

.shw-sc--photo-bg .shw-sc__card {
	min-height: var(--shw-card-h, 440px);
	background-color: #0e1f3d;
	border-color: transparent;
}

.shw-sc--photo-bg .shw-sc__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: auto;
}

.shw-sc--photo-bg .shw-sc__body {
	justify-content: flex-end;
}

.shw-sc__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(to top, rgba(8, 16, 32, .92) 0%, rgba(8, 16, 32, .7) 50%, rgba(8, 16, 32, .45) 100%);
	transition: opacity var(--shw-dur) var(--shw-ease);
}

.shw-sc__overlay--hover {
	opacity: 0;
	background-image: none;
	background-color: rgba(8, 16, 32, .25);
}

.shw-sc__card:hover .shw-sc__overlay--hover {
	opacity: 1;
}

.shw-sc--photo-bg .shw-sc__title,.shw-sc--photo-bg .shw-sc__link.shw-sc__link { color: #fff; }
.shw-sc--photo-bg .shw-sc__desc { color: rgba(255, 255, 255, .85); }
.shw-sc--photo-bg .shw-sc__tag { background-color: rgba(255, 255, 255, .14); color: #fff; }
.shw-sc--photo-bg .shw-sc__card:hover .shw-sc__tag { background-color: rgba(255, 255, 255, .22); }

/* Accent bar */
.shw-sc__accent {
	position: absolute;
	z-index: 2;
	background-color: #f2b41b;
	pointer-events: none;
	transition: transform var(--shw-dur) var(--shw-ease), opacity var(--shw-dur) var(--shw-ease);
}

.shw-sc--accent-pos-top .shw-sc__accent {
	top: 0;
	right: 0;
	left: 0;
	height: var(--shw-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

.shw-sc--accent-pos-bottom .shw-sc__accent {
	right: 0;
	bottom: 0;
	left: 0;
	height: var(--shw-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

.shw-sc--accent-pos-left .shw-sc__accent {
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--shw-accent);
	transform: scaleY(0);
	transform-origin: center top;
}

.shw-sc--accent-center .shw-sc__accent {
	transform-origin: center center;
}

.shw-sc--accent-fade .shw-sc__accent,
.shw-sc--accent-always .shw-sc__accent {
	transform: none;
}

.shw-sc--accent-fade .shw-sc__accent {
	opacity: 0;
}

.shw-sc__card:hover .shw-sc__accent,
.shw-sc__card:focus-within .shw-sc__accent,
.shw-sc__card.is-featured .shw-sc__accent {
	opacity: 1;
	transform: none;
}

.shw-sc__icon {
	display: inline-flex;
	margin-bottom: 18px;
	color: #c9a227;
	font-size: 36px;
	line-height: 1;
}

.shw-sc__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.shw-sc__num {
	display: block;
	margin-bottom: 18px;
	color: #c9a227;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .1em;
	transition: color .3s ease;
}

.shw-sc__title {
	margin: 0 0 16px;
	padding: 0;
	color: #0e1f3d;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	transition: color .3s ease;
}

.shw-sc__desc {
	margin: 0 0 24px;
	color: #5a6070;
	font-size: 15px;
	line-height: 1.6;
}

.shw-sc__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.shw-sc__tag {
	margin: 0;
	padding: 7px 10px;
	background-color: #f3f1ec;
	border-radius: 2px;
	color: #2a2f3a;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: background-color var(--shw-dur) ease;
}

.shw-sc__link.shw-sc__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	color: #0e1f3d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .18em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: color .3s ease;
}

.shw-sc__arrow {
	flex: none;
	font-size: 1.15em;
	transition: transform .3s var(--shw-ease);
}

.shw-sc__card:hover .shw-sc__link.shw-sc__link ,.shw-sc__card.is-featured .shw-sc__link.shw-sc__link {
	color: #c9a227;
}

.shw-sc__card:hover .shw-sc__arrow {
	transform: translateX(5px);
}

.shw-sc--clickable a.shw-sc__link.shw-sc__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Center alignment option (desktop / tablet / mobile) */
.shw-sc-align-center .shw-sc__body { align-items: center; text-align: center; }
.shw-sc-align-center .shw-sc__tags { justify-content: center; }
.shw-sc-align-left .shw-sc__body { align-items: flex-start; text-align: left; }
.shw-sc-align-left .shw-sc__tags { justify-content: flex-start; }

@media (max-width: 1024px) {
	.shw-sc-align-tablet-center .shw-sc__body { align-items: center; text-align: center; }
	.shw-sc-align-tablet-center .shw-sc__tags { justify-content: center; }
	.shw-sc-align-tablet-left .shw-sc__body { align-items: flex-start; text-align: left; }
	.shw-sc-align-tablet-left .shw-sc__tags { justify-content: flex-start; }
}

@media (max-width: 767px) {
	.shw-sc-align-mobile-center .shw-sc__body { align-items: center; text-align: center; }
	.shw-sc-align-mobile-center .shw-sc__tags { justify-content: center; }
	.shw-sc-align-mobile-left .shw-sc__body { align-items: flex-start; text-align: left; }
	.shw-sc-align-mobile-left .shw-sc__tags { justify-content: flex-start; }
}

@media (max-width: 1024px) {
	.shw-sc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.shw-sc { grid-template-columns: minmax(0, 1fr); }
	.shw-sc__title { font-size: 26px; }
}
