/* ---------- Service cards ---------- */
.ry-card { cursor: pointer; }
.ry-card img { transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ry-card:hover img { transform: scale(1.07); }

/* Deep-green wash that rises over the photo on hover */
.ry-card > .e-con:first-child::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(18, 53, 43, 0) 40%, rgba(18, 53, 43, 0.45) 100%);
	opacity: 0;
	transition: opacity 0.45s ease;
}
.ry-card:hover > .e-con:first-child::after { opacity: 1; }

.ry-card .e-button-base {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, color 0.3s ease !important;
}
.ry-card:hover .e-button-base {
	background-color: #c5ee3a !important;
	color: #12352b !important;
	transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
	.ry-card img,
	.ry-card .e-button-base { transition: none !important; }
}

/* Phones: the service cards become a swipeable row instead of a tall stack,
   with the next card peeking in to show there is more. */
@media (max-width: 767px) {
	.ry-cards {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 14px;
		margin-inline: -14px !important;
		width: calc(100% + 28px) !important;
		max-width: none !important;
		align-self: stretch !important;
		box-sizing: border-box !important;
		padding: 2px 14px 6px !important;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.ry-cards::-webkit-scrollbar { display: none; }
	.ry-cards > .ry-card {
		flex: 0 0 82% !important;
		max-width: 82% !important;
		scroll-snap-align: start;
	}
}
