@charset "utf-8";
/* CSS Document */

/*The repair shop's Services page and service pages (services.php, service.php).

The tile and page rules are copied from the MecanoPro theme's css/page/page.css, which keeps its own copy for the city pages. This file is what lets the
same pages look right under a theme that has none of that.*/

/* The sub-title and page text set on the Services Page tab, above the service grid - see
   php/services/view-inc.php */
.services-page-sub-title {
	margin-top: 10px;
	margin-bottom: 0;
	font-size: 22px;
	line-height: 30px;
}

.services-page-text {
	max-width: 72ch;
	margin: 16px auto 0;
	line-height: 1.7;
}

/* The same measure on the copy the services index carries - see services.php */
.services-page .page-copy {
	max-width: 72ch;
	margin: 0 auto 24px;
	line-height: 1.7;
}


/* Sheen sweep across a service tile on hover - a skewed band of light that crosses the card
   once, left to right. Same gesture the DealerPro vehicle tiles carry.

   ?The band is a pseudo-element of the tile, so nothing had to be added to the markup but the
   ?service-card class itself, and the tile clips it (overflow: hidden) so the band follows the
   ?14px corners .aduvio-feature-card draws and never shows outside them. It animates transform
   ?rather than left, so the sweep stays on the compositor and never reflows the grid: at rest the
   ?band sits off the left edge and the keyframes carry it past the right edge, so at every moment
   ?other than the sweep itself it is outside the clip and invisible.
   ?The band is a navy tint rather than white - the card is white, so a white sheen would have
   ?nothing to show against. It is not put on .aduvio-feature-card itself because that class is a
   ?core front-end style every Aduvio site uses, including as a plain page-body wrapper */
.service-card {
	position: relative;
	overflow: hidden;
}

.service-card:after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	pointer-events: none;
	background: linear-gradient(to right, rgba(15,41,66,0) 0%, rgba(15,41,66,0.07) 50%, rgba(15,41,66,0) 100%);
	transform: skewX(-20deg) translateX(0);
}

.service-card:hover:after {
	animation: service-card-sheen 0.85s ease-out;
}

@keyframes service-card-sheen {
	from { transform: skewX(-20deg) translateX(0); }
	to   { transform: skewX(-20deg) translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
	.service-card:hover:after {
		animation: none;
	}
}

/* The picture a service page has been given, shown in place of the icon - see
   php/services/view-inc.php. A fixed box with object-fit rather than a free-standing img, so
   photographs of any proportion all crop to the same tile and a row of them lines up. The corners
   are its own: .aduvio-feature-card carries 15px of padding, so the picture sits inside the card
   rather than flush against its edge. */
.service-card-picture {
	height: 140px;
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #f5f5f5;
}

.service-card-picture img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/*The call to action band the page ends with. Wrapped in :where() so it has no weight: a theme that styles .cta-band and .primary-bg (MecanoPro) wins everywhere it
says anything, and a theme that does not still gets a readable band rather than white text on white.*/

:where(.rs-cta-band) {
	background-color: #1f2933;
	color: #fff;
	padding-top: 60px;
	padding-bottom: 60px;
}

:where(.rs-cta-band) .cta-band-title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 34px;
	color: #fff;
}

@media (max-width: 767px) {

	:where(.rs-cta-band) {
		padding-top: 45px;
		padding-bottom: 45px;
	}

	:where(.rs-cta-band) .cta-band-title {
		font-size: 26px;
	}
}
