/*
 * JRS service cards — written from scratch for the jrs/services block.
 * The outer card and the inner photo were previously two different arch
 * shapes (a large px radius outer vs. a shallow percentage-radius inner),
 * so the white card edge and the photo's curve didn't line up. Both now
 * use the same oversized radius so they clamp to true, concentric
 * semicircles no matter the card width.
 */

.jrs2-service-card {
	flex: 0 0 calc((100% - 54px) / 4);
	min-width: 0;
	scroll-snap-align: start;
	overflow: hidden;
	border: 1px solid var(--jrs-line);
	border-radius: 999px 999px 24px 24px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(83, 58, 48, .06);
}

.jrs2-service-card__image {
	aspect-ratio: 1.12;
	overflow: hidden;
	margin: 13px 13px 0;
	border-radius: 999px 999px 14px 14px;
}

.jrs2-service-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.jrs2-service-card:hover img {
	transform: scale(1.04);
}

.jrs2-service-card h3 {
	margin: 17px 17px 7px;
	font: 500 18px/1.5 var(--jrs-serif);
}

.jrs2-service-card p {
	min-height: 43px;
	margin: 0 17px;
	font-size: 12px;
	line-height: 1.75;
}

.jrs2-service-card span {
	display: block;
	margin: 17px;
	color: var(--jrs-rose);
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.jrs2-service-card {
		flex: 0 0 min(78vw, 300px);
	}

	.jrs2-service-card__image {
		aspect-ratio: .78;
	}
}
