/*
 * Services & prices page reference implementation.
 *
 * Measurements and composition are ported directly from the supplied
 * rive-droite-html-review-v2/reference-html-css/prestations.html and
 * styles.css files, the same project-wide handoff Task 26 used for the
 * homepage. The framed shell, compact header, and compact footer treatment
 * mirror homepage-reference.css so all three approved-mockup pages read as
 * one composition.
 */

body.rd-services-page {
	background: #efe7dc;
	font-size: 15px;
	line-height: 1.6;
}

body.rd-services-page .site {
	width: min(100%, 1200px);
	margin-inline: auto;
	background: #fbf8f3;
	box-shadow: 0 0 38px rgb(59 42 30 / 12%);
}

body.rd-services-page .site-header {
	min-height: 78px;
}

body.rd-services-page .site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: 100%;
	min-height: 78px;
	padding-inline: 24px;
}

body.rd-services-page .site-branding {
	flex: 0 0 auto;
	width: 224px;
}

body.rd-services-page .site-branding__logo {
	width: 100%;
	height: 45px;
	object-fit: contain;
	object-position: left center;
}

body.rd-services-page .site-navigation {
	margin-inline-start: auto;
}

body.rd-services-page .primary-menu {
	gap: 24px;
}

body.rd-services-page .primary-menu a {
	padding-block: 31px;
	font-size: 12px;
	letter-spacing: 0;
}

body.rd-services-page .site-header__actions {
	gap: 14px;
}

body.rd-services-page .site-header__booking {
	height: 44px;
	padding-inline: 22px;
}

body.rd-services-page .site-footer__inner {
	grid-template-columns: 28% 22% 28% 22%;
	gap: 0;
	width: 100%;
	min-height: 160px;
	padding: 34px 32px;
}

body.rd-services-page .site-footer__brand,
body.rd-services-page .site-footer__section {
	padding-inline: 22px;
	border-inline-end: 1px solid rgb(255 255 255 / 16%);
}

body.rd-services-page .site-footer__section:last-child {
	border-inline-end: 0;
}

body.rd-services-page .site-footer__heading {
	margin-block-end: 8px;
	color: var(--rd-color-ivory);
}

body.rd-services-page .site-footer__section:not(.site-footer__actions) .site-footer__heading {
	display: none;
}

body.rd-services-page .site-footer__booking,
body.rd-services-page .site-footer__bar {
	display: none;
}

body.rd-services-page .site-footer__social-placeholder {
	margin: 0;
	font-size: 24px;
	letter-spacing: 8px;
}

.rd-services {
	overflow: hidden;
	background: #fbf8f3;
}

.rd-services .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding-inline: 22px;
	background: var(--rd-color-rust);
	color: #fff;
	border: 1px solid var(--rd-color-rust);
	font-size: 12px;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
}

.rd-services .section-title {
	margin: 0 0 20px;
	font: 400 23px var(--rd-font-display);
	text-align: center;
	text-transform: uppercase;
}

.rd-page-hero {
	display: grid;
	grid-template-columns: 45% 55%;
	height: 255px;
	background: var(--rd-color-ivory);
	overflow: hidden;
}

.rd-page-hero__copy {
	padding: 44px 42px;
}

.rd-page-hero__copy h1 {
	margin: 0 0 15px;
	color: #8b3f20;
	font: 400 44px / 1.02 var(--rd-font-display);
	text-transform: uppercase;
}

.rd-page-hero__copy p {
	margin: 0;
}

.rd-page-hero__image {
	height: 255px;
	overflow: hidden;
}

.rd-page-hero__image img {
	width: 100%;
	height: 255px;
	object-fit: cover;
	object-position: center 36%;
}

.rd-service-list {
	padding-inline: 26px;
}

.rd-diagnostic {
	position: relative;
	min-height: 112px;
	margin: 26px;
	padding: 24px 300px 24px 34px;
	overflow: hidden;
	border: 1px solid #c9aa95;
}

.rd-diagnostic h2 {
	margin: 0 0 12px;
	font-size: 22px;
	text-transform: uppercase;
}

.rd-diagnostic p {
	margin: 0;
}

.rd-diagnostic img {
	position: absolute;
	inset-inline-end: 24px;
	inset-block-end: 8px;
	width: 250px;
	height: 100px;
	object-fit: contain;
	object-position: right bottom;
	opacity: 0.82;
}

.rd-gallery {
	padding: 0 26px 28px;
}

.rd-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.rd-gallery__grid img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

.rd-gallery__cta {
	margin-block-start: 22px;
	text-align: center;
}

.rd-gallery__cta .btn {
	width: 430px;
	max-width: 100%;
}

@media (max-width: 800px) {
	body.rd-services-page .site-header {
		min-height: 66px;
	}

	body.rd-services-page .site-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		min-height: 66px;
		padding-inline: 16px;
	}

	body.rd-services-page .site-branding {
		width: 172px;
	}

	body.rd-services-page .site-branding__logo {
		height: auto;
	}

	body.rd-services-page .site-header__actions {
		gap: 4px;
	}

	body.rd-services-page .site-navigation {
		margin-inline-start: 0;
	}

	body.rd-services-page .site-footer__inner {
		grid-template-columns: 1fr;
		padding: 30px 18px;
	}

	body.rd-services-page .site-footer__brand,
	body.rd-services-page .site-footer__section {
		grid-column: auto;
		padding: 18px 0;
		border-inline-end: 0;
		border-block-end: 1px solid rgb(255 255 255 / 16%);
	}

	body.rd-services-page .site-footer__section:last-child {
		border-block-end: 0;
	}

	.rd-page-hero {
		grid-template-columns: 1fr;
		height: auto;
	}

	.rd-page-hero__copy {
		padding: 34px 18px;
	}

	.rd-page-hero__copy h1 {
		font-size: 34px;
	}

	.rd-page-hero__image,
	.rd-page-hero__image img {
		height: 240px;
	}

	.rd-service-list {
		padding-inline: 18px;
	}

	.rd-diagnostic {
		margin: 22px 18px;
		padding: 22px;
	}

	.rd-diagnostic img {
		width: 190px;
		height: 90px;
		opacity: 0.18;
	}

	.rd-gallery {
		padding: 0 18px 26px;
	}

	.rd-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
