/**
 * Homepage Master Layout — unified rail + tonal rhythm.
 *
 * Outer section = full-bleed background.
 * Inner content = same horizontal rail as `.container` (1300 / responsive gutters).
 *
 * Scoped to body.home. Does not redesign Hero, Booking Widget, or Footer chrome.
 * Dark Build My Journey band lives in homepage-build-journey-band.css (reversible).
 */

body.home {
	--pg-rail-max: 1300px;
	--pg-gutter-x: 48px; /* matches .container calc(100% - 96px) */
	--pg-surface-white: #ffffff;
	--pg-surface-ivory: #faf9f7;
	--pg-surface-mist: #f0f4f3;
	--pg-surface-pale: #eaf1f2;
	--pg-surface-soft: #f5f7f7;
	--pg-surface-line: rgba(3, 63, 75, 0.08);
	--pg-petrol: #033f4b;
}

/* Mirror blacklane-top .container gutters */
@media (max-width: 1120px) {
	body.home {
		--pg-gutter-x: 28px; /* calc(100% - 56px) */
	}
}

@media (max-width: 850px) {
	body.home {
		/* .container becomes min(100% - 36px, 650px) — center via side padding */
		--pg-rail-max: 650px;
		--pg-gutter-x: 18px;
	}
}

/* —— Full-bleed section shells —— */
body.home #main > .hero,
body.home #main > .booking-zone,
body.home #main > .service-selector,
body.home #main > .routes-section,
body.home #main > .pg-city-transfers,
body.home #main > .pg-sightseeing,
body.home #main > .pg-vehicle-classes,
body.home #main > .pg-build-journey,
body.home #main > .pg-destinations,
body.home #main > .how-section,
body.home #main > .business-section,
body.home #main > .pg-trust-faq {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/*
 * Content rail: align `.wide` (and footer) to the same left edge as `.container`.
 * Padding formula matches margin:auto + min(rail-max, 100% - 2×gutter).
 * Restores Build / Trust / Vehicle gutters lost to `padding: … 0` shorthands.
 */
body.home #main .wide,
body.home #footer.pg-footer .wide {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: max(var(--pg-gutter-x), calc((100% - var(--pg-rail-max)) / 2));
	padding-right: max(var(--pg-gutter-x), calc((100% - var(--pg-rail-max)) / 2));
	box-sizing: border-box;
}

/* Vehicle Classes: rail is on the inner layout, not the section */
body.home #main .pg-vehicle-classes {
	padding-left: 0;
	padding-right: 0;
}

/* —— Tonal rhythm (restrained family; not mechanical dark/light) —— */
body.home #main > .service-selector.pg-services-v2 {
	background-color: var(--pg-surface-white);
}

body.home #main > .pg-airport-transfers,
body.home #main > .routes-section.pg-airport-transfers {
	background-color: var(--pg-surface-ivory);
}

body.home #main > .pg-city-transfers {
	background-color: var(--pg-surface-mist);
}

body.home #main > .pg-sightseeing {
	background-color: var(--pg-surface-white);
}

body.home #main > .pg-vehicle-classes {
	background-color: var(--pg-surface-pale);
}

body.home #main > .pg-destinations,
body.home #main > .pg-featured-journeys {
	background-color: var(--pg-surface-ivory);
}

body.home #main > .how-section {
	background-color: var(--pg-surface-white);
}

body.home #main > .business-section {
	background-color: var(--pg-surface-soft);
}

body.home #main > .pg-trust-faq {
	background-color: var(--pg-surface-white);
}

/* Selective hairlines where adjacent soft tones need a quiet seam */
body.home #main > .pg-sightseeing {
	border-top: 1px solid var(--pg-surface-line);
}

body.home #main > .how-section {
	border-top: 1px solid var(--pg-surface-line);
}

body.home #main > .pg-trust-faq {
	border-top: 1px solid var(--pg-surface-line);
}

/* C2C secondary list stays on white card within mist band */
body.home #main .pg-c2c-secondary__list {
	background: var(--pg-surface-white);
}

/* Vehicle photo well — keep quiet lift on pale band */
body.home #main .pg-vehicle-photo {
	background: linear-gradient(180deg, #f7fafb 0%, #e4ecee 100%);
}

/* Prevent accidental page-level horizontal scroll from layout work */
body.home {
	overflow-x: clip;
}
