/*
 * French homepage reference implementation.
 *
 * Measurements and composition are ported directly from the supplied
 * rive-droite-html-review-v2/reference-html-css files.
 */

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

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

body.home .site-header {
	min-height: 78px;
}

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

body.home .site-branding {
	flex: 0 0 auto;
	width: 224px;
}

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

body.home .site-navigation {
	margin-inline-start: auto;
}

body.home .primary-menu {
	gap: 24px;
}

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

body.home .site-header__actions {
	gap: 14px;
}

body.home .site-header__booking {
	height: 44px;
	padding-inline: 22px;
}

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

.hero-home {
	position: relative;
	height: 390px;
	overflow: hidden;
	color: #fff;
}

.hero-home-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-home::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(90deg, rgb(20 20 20 / 88%) 0%, rgb(20 20 20 / 68%) 33%, rgb(20 20 20 / 12%) 65%);
	content: "";
}

.hero-copy {
	position: relative;
	z-index: 2;
	width: 430px;
	padding: 52px 48px;
}

.hero-copy h1 {
	margin: 0 0 18px;
	color: #fff;
	font: 400 56px / 0.98 var(--rd-font-display);
	letter-spacing: -0.025em;
}

.kicker {
	font-size: 14px;
	letter-spacing: 0.05em;
	line-height: 1.6;
	text-transform: uppercase;
}

.rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	margin-block-start: 12px;
	background: #fff;
	color: #4c4844;
	border-radius: 18px;
	font-size: 13px;
	line-height: 1.6;
}

.stars {
	color: #d29330;
	letter-spacing: 1px;
}

.rd-home .section {
	padding: 52px 42px;
}

.rd-home .section-tight {
	padding: 34px 42px;
}

.about-grid {
	display: grid;
	grid-template-columns: 36% 1fr;
	align-items: center;
	gap: 42px;
}

.about-grid > img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.eyebrow {
	margin-block-end: 7px;
	color: #845035;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.about-grid h2 {
	margin: 0 0 18px;
	font-size: 34px;
	line-height: 1.05;
}

.about-grid p {
	margin-block: 0 1em;
}

.signature {
	margin: 14px 0;
	color: #a24c2a;
	font: italic 30px var(--rd-font-display);
}

.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;
}

.btn.secondary {
	background: transparent;
	color: #6c3d29;
	border-color: #b97958;
}

.services-overview {
	border-block: 1px solid #d8c9ba;
}

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

.service-icons {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
}

.service-tile {
	padding: 18px 10px;
	color: inherit;
	border-inline-end: 1px solid #d8c9ba;
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.service-tile:last-child {
	border-inline-end: 0;
}

.service-tile img {
	width: 42px;
	height: 42px;
	margin: 0 auto 10px;
}

.service-tile span {
	display: block;
	max-width: 12ch;
	margin-inline: auto;
}

.testimonials {
	background:
		linear-gradient(rgb(109 50 26 / 95%), rgb(109 50 26 / 95%)),
		url("../images/brand/salon-rive-droite-logo-rust-background.webp") center / cover;
	color: #fff;
}

.testimonials .section-title {
	color: #fff;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
}

.quote {
	padding-block-start: 16px;
	margin: 0;
	font-size: 13px;
}

.quote p {
	margin: 0;
}

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

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

body.home .site-footer__section:last-child {
	border-inline-end: 0;
}

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

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

body.home .site-footer__booking,
body.home .site-footer__bar {
	display: none;
}

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

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

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

	body.home .site-branding {
		width: 172px;
	}

	body.home .site-branding__logo {
		height: auto;
	}

	body.home .site-header__actions {
		gap: 4px;
	}

	body.home .site-navigation {
		margin-inline-start: 0;
	}

	.hero-home {
		height: 520px;
	}

	.hero-home-image {
		object-position: 58% center;
	}

	.hero-home::before {
		background: linear-gradient(0deg, rgb(20 20 20 / 92%) 0%, rgb(20 20 20 / 55%) 52%, rgb(20 20 20 / 12%) 100%);
	}

	.hero-copy {
		position: absolute;
		inset-block-end: 0;
		width: 100%;
		padding: 32px 18px;
	}

	.hero-copy h1 {
		max-width: 330px;
		font-size: 38px;
	}

	.rd-home .section,
	.rd-home .section-tight {
		padding: 34px 18px;
	}

	.about-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.about-grid > img {
		max-height: 430px;
	}

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

	.service-tile {
		border-block-end: 1px solid #d8c9ba;
	}

	.testimonials-grid {
		grid-template-columns: 1fr;
	}

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

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

	body.home .site-footer__section:last-child {
		border-block-end: 0;
	}
}
