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

/*Home hero.

The padding and the 75px title were inline on the markup, which is the one place a media query can
never reach - so a 360px phone was shown a 75px slogan in a section 360px of padding tall, and the
logo above it at whatever width it happened to be uploaded at*/

.home-hero {
	padding-top: 155px;
	padding-bottom: 205px;
	max-width: inherit;
}

.home-hero-inner {
	text-align: center;
	color: #fff;
}

.home-hero-logo {
	max-width: 100%;
	height: auto;
}

.home-hero-title {
	margin-top: 0px;
	font-size: 75px;
	line-height: 85px;
}


/*Shop details card.

It hangs out of a zero height row into the bottom of the hero. Stacked, it is far too tall to hang
- it would cover the section below it - so below the desktop layout the row takes its own height
back and the card only laps the hero by the amount it can*/

.home-intro-holder {
	min-height: 0px;
	height: 0px;
}

.home-intro-card {
	position: relative;
	top: -105px;
	z-index: 90;
	padding: 0px;
	background: #fff;
	border: 2px solid #111;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(16,42,82,.12), 0 4px 8px rgba(16,42,82,.06);
}

.home-intro-card-head {
	background: #111;
	color: #fff;
	text-align: center;
	border-radius: 10px 10px 0px 0px;
}

.home-intro-card-body {
	border-radius: 0px 0px 10px 10px;
}

.home-intro-row {
	padding: 25px;
	border: none;
}

.home-intro-address,
.home-intro-phone {
	color: #fff;
}

.home-intro-phone {
	text-align: center;
}

.home-intro-phone a {
	color: #fff;
}

.home-intro-actions a {
	display: block;
	text-decoration: none;
}

.home-intro-actions .btn {
	width: 100%;
}


/*Photo and copy, side by side on a wide screen and stacked below it. The photo used to be held
open by an empty 300px spacer inside 200px of its own padding, so it was 500px tall on a phone too*/

.home-about-row {
	margin: 0px;
	background-color: #fff;
}

.home-about-art {
	padding: 0px;
	min-height: 500px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.home-about-text {
	padding: 40px;
	padding-top: 120px;
	background-color: #fff;
}

.home-about-title {
	font-size: 36px;
}

.home-about-paragraph {
	font-size: 18px;
	line-height: 28px;
}


/*"Our Services" and "Latest from our blog".

Both sections only exist on a page that has something to put in them - see index.php - and both
are laid out the same way: a centred heading, a flexed grid of cards and the button that opens
the full listing. The cards are the core .aduvio-feature-card, so the border, the corners and the
lift on hover are the ones every Aduvio site draws*/

.home-section {
	margin-top: 60px;
	margin-bottom: 60px;
}

.home-section-title {
	margin-top: 0px;
	margin-bottom: 30px;
	font-size: 36px;
}

.home-section-link {
	display: inline-block;
	margin-top: 25px;
	text-decoration: none;
}


/*Gallery band - photos staff upload on the home tab of the website settings. Cropped to one
  shape so photos of every size sit in an even grid; the lightbox shows them whole. Flex like
  the service tiles so a partial last row stays centred*/

.home-gallery-text {
	max-width: 760px;
	margin: -10px auto 30px auto;
	font-size: 17px;
	line-height: 28px;
}

.home-gallery-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	--tile-cols: 4;
	--tile-gap: 15px;
	gap: var(--tile-gap);
}

.home-gallery-tile {
	display: block;
	flex: 0 1 calc((100% - (var(--tile-cols) - 1) * var(--tile-gap)) / var(--tile-cols));
	overflow: hidden;
	background-color: #f5f6f8;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
}

.home-gallery-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.home-gallery-tile:hover img,
.home-gallery-tile:focus img {
	transform: scale(1.05);
}

@media (max-width: 991px) {
	.home-gallery-grid {
		--tile-cols: 3;
	}
}

@media (max-width: 767px) {
	.home-gallery-grid {
		--tile-cols: 2;
		--tile-gap: 10px;
	}

	.home-gallery-text {
		margin-bottom: 22px;
		font-size: 15px;
		line-height: 24px;
	}
}

/*Service tiles.

Flexed rather than floated - the tiles are as tall as their title, and a float drop would leave
the last one of a row hanging off the one above it. Centred so a short last row sits in the
middle rather than against the left edge*/

.home-service-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.home-service-column {
	display: flex;
	padding: 15px;
}

/*The card fills its column, so every tile in a row ends up the same height*/
.home-service-card {
	width: 100%;
	padding: 25px 15px;
	text-align: center;
}

.home-service-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.home-service-icon {
	font-size: 48px;
	color: #fb172b;
	margin-bottom: 15px;
}

/*The picture a service page has been given, shown in place of the icon - see
themes/mecanopro/php/index/_helpers/services-section-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. Its own corners: the card carries padding, so the picture sits inside it rather
than flush against its edge*/
.home-service-picture {
	height: 140px;
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #f5f5f5;
}

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

.home-service-title {
	margin: 0px;
	font-size: 18px;
}


/*Post cards - the same card the blog listing draws, three across*/

.home-blog-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.home-blog-column {
	display: flex;
	margin-bottom: 25px;
}

.home-blog-card {
	display: block;
	width: 100%;
	padding: 25px;
	text-align: left;
	text-decoration: none;
	color: inherit;
}

.home-blog-card:hover,
.home-blog-card:focus {
	text-decoration: none;
	color: inherit;
}

/*Fixed height and cropped, so a row of cards lines up whatever the uploads happen to be*/
.home-blog-card-image {
	margin-bottom: 15px;
	border-radius: 4px;
	overflow: hidden;
}

.home-blog-card-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.home-blog-date {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #8a94a0;
	margin-bottom: 8px;
}

.home-blog-title {
	margin-top: 0px;
	margin-bottom: 8px;
	font-size: 22px;
}

.home-blog-excerpt {
	margin-bottom: 15px;
}

.home-blog-read-more {
	font-weight: bold;
	color: #fb172b;
}


@media (max-width: 991px) {
	.home-section {
		margin-top: 45px;
		margin-bottom: 45px;
	}

	.home-section-title {
		font-size: 30px;
	}


	.home-hero {
		padding-top: 120px;
		padding-bottom: 130px;
	}

	.home-hero-title {
		font-size: 46px;
		line-height: 56px;
	}

	.home-intro-holder {
		height: auto;
	}

	.home-intro-card {
		top: 0px;
		margin-top: -60px;
	}

	.home-intro-address,
	.home-intro-phone {
		text-align: center;
	}

	.home-about-art {
		min-height: 320px;
	}

	.home-about-text {
		padding: 40px 25px;
	}
}


@media (max-width: 767px) {
	.home-section {
		margin-top: 35px;
		margin-bottom: 35px;
	}

	.home-section-title {
		font-size: 26px;
	}

	.home-service-column {
		padding: 8px;
	}

	.home-service-icon {
		font-size: 38px;
	}

	.home-service-picture {
		height: 110px;
	}

	.home-blog-card-image img {
		height: 180px;
	}


	.home-hero {
		padding-top: 90px;
		padding-bottom: 100px;
	}

	.home-hero-title {
		font-size: 30px;
		line-height: 38px;
	}

	.home-hero-logo {
		max-height: 80px;
	}

	.home-intro-row {
		padding: 20px 15px;
	}

	.home-intro-address h2,
	.home-intro-phone h2 {
		font-size: 21px;
		line-height: 29px;
	}

	.home-about-art {
		min-height: 220px;
	}

	.home-about-title {
		font-size: 26px;
	}

	.home-about-paragraph {
		font-size: 16px;
		line-height: 26px;
	}
}
