/*
 * Contact & Booking page reference implementation.
 *
 * Measurements and composition are ported directly from the supplied
 * rive-droite-html-review-v2/reference-html-css/contact.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 and services-reference.css so all approved-mockup
 * pages read as one composition.
 *
 * The mockup's two-column "hours-row" list assumes structured per-day data
 * that the site does not yet have (opening hours remain one freeform,
 * central textarea per language until Task 38 builds a structured editor),
 * so the hours block here is a single wrapped paragraph instead — the same
 * treatment footer.php already uses for the same setting.
 *
 * The mockup's static map graphic is replaced with a live Google Maps embed
 * (an iframe, `.rd-map-frame`) per Raj's decision on 2026-07-24 — see
 * docs/project/GOOGLE_MAPS_INTEGRATION.md.
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.rd-contact .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-contact .btn:hover {
	background: #703116;
}

.rd-contact-top {
	display: grid;
	grid-template-columns: 36% 64%;
	min-height: 475px;
}

.rd-contact-info {
	padding: 44px 42px;
}

.rd-contact-info h2 {
	margin: 0 0 18px;
	font: 400 34px / 1.05 var(--rd-font-display);
}

.rd-contact-top > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 42% center;
}

.rd-contact-line {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	margin: 17px 0;
}

.rd-contact-line img {
	width: 24px;
	height: 24px;
}

.rd-contact-line a {
	color: inherit;
	text-decoration: none;
}

.rd-contact-line small {
	color: var(--rd-color-muted);
	font-size: 13px;
}

.rd-contact-hours {
	margin-block-start: 28px;
}

.rd-contact-hours h3 {
	margin: 0 0 12px;
	font: 400 22px var(--rd-font-display);
}

.rd-contact-hours p {
	margin: 0;
	font-size: 13px;
}

.rd-map-booking {
	display: grid;
	grid-template-columns: 64% 36%;
	min-height: 280px;
	border-block: 1px solid var(--rd-color-line);
}

.rd-map-frame {
	width: 100%;
	height: 100%;
	border: 0;
}

.rd-booking-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 42px;
	text-align: center;
}

.rd-booking-card h3 {
	margin: 0 0 12px;
	font: 400 22px var(--rd-font-display);
}

.rd-booking-card p {
	margin: 0 0 14px;
}

.rd-booking-card .btn {
	align-self: center;
}

.rd-booking-card small {
	display: block;
	margin-block-start: 14px;
	color: var(--rd-color-muted);
	font-size: 13px;
}

.rd-location-row {
	display: grid;
	grid-template-columns: 44% 56%;
	gap: 30px;
	padding: 34px 42px;
}

.rd-location-row h3 {
	margin: 0 0 12px;
	font: 400 22px var(--rd-font-display);
}

.rd-location-row p {
	margin: 8px 0 0;
}

.rd-maps-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 126px;
	padding: 20px;
	color: inherit;
	text-align: center;
	text-decoration: none;
	border: 1px solid #b97958;
}

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

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

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

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

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

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

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

	body.rd-contact-page .site-footer__brand,
	body.rd-contact-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-contact-page .site-footer__section:last-child {
		border-block-end: 0;
	}

	.rd-contact-top,
	.rd-map-booking,
	.rd-location-row {
		grid-template-columns: 1fr;
		height: auto;
	}

	.rd-contact-info {
		padding: 34px 18px;
	}

	.rd-contact-top > img {
		height: 280px;
	}

	.rd-map-frame {
		height: 260px;
	}

	.rd-booking-card {
		padding: 34px 18px;
	}

	.rd-location-row {
		padding: 30px 18px;
	}
}
