/**
 * Homepage Final Layout — How It Works timeline + Trust & FAQ hierarchy.
 *
 * Scoped polish on top of master layout rail / tonal system.
 * Does not redesign Hero, Booking, product showcases, Build, Destinations,
 * Business, or Footer.
 */

/* —— Phase A: keep How / Trust content on the shared rail —— */
body.home #main > .how-section.pg-how--timeline,
body.home #main > .pg-trust-faq {
	/* rail padding inherited from .wide via homepage-master-layout.css */
	box-sizing: border-box;
}

/* —— Phase B: How It Works — editorial timeline —— */
body.home .pg-how--timeline .section-top {
	margin-bottom: clamp(40px, 4.5vw, 56px);
}

body.home .pg-how-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 36px;
	position: relative;
	isolation: isolate;
}

/* Thin horizontal connector through marker centers */
body.home .pg-how-timeline::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 15px; /* vertical center of 30px markers */
	height: 1px;
	background: rgba(3, 63, 75, 0.14);
	z-index: 0;
	pointer-events: none;
}

body.home .pg-how-timeline__step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.home .pg-how-timeline__marker {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: 0 0 22px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid rgba(3, 63, 75, 0.18);
	box-sizing: border-box;
}

body.home .pg-how-timeline__num {
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--gold, #e1b76e);
	line-height: 1;
}

body.home .pg-how-timeline__body {
	min-width: 0;
	max-width: 34ch;
}

body.home .pg-how-timeline__title {
	display: block;
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: clamp(17px, 1.15vw, 19px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--pg-ink, #161b1e);
	margin: 0 0 10px;
	line-height: 1.3;
}

body.home .pg-how-timeline__body p {
	margin: 0;
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--pg-muted, #687277);
}

/* Override legacy .three-steps rules if residual classes appear */
body.home .pg-how--timeline .three-steps,
body.home .pg-how--timeline .pg-how-steps {
	display: none;
}

/* Tablet mid-width: keep horizontal with tighter gaps */
@media (max-width: 1024px) and (min-width: 769px) {
	body.home .pg-how-timeline {
		gap: 0 28px;
	}

	body.home .pg-how-timeline__body {
		max-width: none;
	}

	body.home .pg-how-timeline__title {
		font-size: 16.5px;
	}
}

/* Tablet portrait / mobile: vertical timeline with connecting line */
@media (max-width: 768px) {
	body.home .pg-how-timeline {
		grid-template-columns: 1fr;
		gap: 0;
		padding-left: 0;
	}

	body.home .pg-how-timeline::before {
		left: 14px;
		right: auto;
		top: 8px;
		bottom: 8px;
		width: 1px;
		height: auto;
	}

	body.home .pg-how-timeline__step {
		display: grid;
		grid-template-columns: 30px minmax(0, 1fr);
		column-gap: 18px;
		align-items: start;
		padding: 0 0 28px;
	}

	body.home .pg-how-timeline__step:last-child {
		padding-bottom: 0;
	}

	body.home .pg-how-timeline__marker {
		margin: 0;
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	body.home .pg-how-timeline__body {
		grid-column: 2;
		max-width: none;
		padding-top: 4px;
	}

	body.home .pg-how-timeline__title {
		margin-bottom: 8px;
	}
}

/* —— Phase C: Trust & FAQ hierarchy —— */
body.home .pg-trust-faq .section-top {
	margin-bottom: clamp(36px, 4vw, 48px);
}

body.home .pg-trust-grid {
	gap: 28px 40px;
	margin-bottom: 0;
	padding-bottom: clamp(40px, 5vw, 56px);
}

body.home .pg-trust-item strong {
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: 16.5px;
	font-weight: 700;
	color: var(--pg-ink, #161b1e);
	margin-bottom: 10px;
	letter-spacing: -0.015em;
}

body.home .pg-trust-item p {
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--pg-muted, #687277);
	max-width: 36ch;
}

/* FAQ clearly separated as a second editorial block */
body.home .pg-faq {
	margin-top: 8px;
	padding-top: clamp(40px, 5vw, 56px);
	border-top: 1px solid rgba(3, 63, 75, 0.1);
}

body.home .pg-faq__head {
	margin: 0 0 22px;
}

body.home .pg-faq__head .kicker {
	display: inline-block;
	margin: 0 0 10px;
}

body.home .pg-faq__head h3 {
	font-family: var(--pg-font-display, 'Newsreader', Georgia, serif);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0;
	color: var(--pg-ink, #161b1e);
}

body.home .pg-faq-item {
	border-top: 1px solid rgba(3, 63, 75, 0.1);
	border-bottom: 0;
}

body.home .pg-faq-item:last-child {
	border-bottom: 1px solid rgba(3, 63, 75, 0.1);
}

body.home .pg-faq-item summary {
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: 15.5px;
	font-weight: 650;
	color: #1f3336;
	padding: 18px 0;
	min-height: 52px;
	gap: 18px;
	transition: color 0.15s ease;
}

body.home .pg-faq-item summary:hover {
	color: var(--pg-petrol, #033f4b);
}

body.home .pg-faq-item summary:focus-visible {
	outline: 3px solid rgba(225, 183, 110, 0.7);
	outline-offset: 3px;
	border-radius: 4px;
}

body.home .pg-faq-item summary:after {
	content: '+';
	color: var(--gold, #e1b76e);
	font-size: 20px;
	font-weight: 500;
	flex: none;
	width: 1.25em;
	text-align: center;
}

body.home .pg-faq-item[open] summary:after {
	content: '–';
}

body.home .pg-faq-item p {
	margin: 0 0 20px;
	padding-right: 2rem;
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--pg-muted, #687277);
	max-width: 68ch;
}

body.home .pg-trust-cta {
	margin-top: clamp(36px, 4vw, 48px);
	gap: 12px;
}

body.home .pg-trust-cta .button-main,
body.home .pg-trust-cta .btn {
	border-radius: var(--pg-radius-control, 8px);
	font-family: var(--pg-font-ui, 'DM Sans', Arial, sans-serif);
}

/* —— Phase D: soft transition accents (no new bands) —— */
/* Destinations (ivory) → How (white): existing master hairline retained */
/* How (white) → Business (soft): quiet seam */
body.home #main > .business-section {
	border-top: 1px solid rgba(3, 63, 75, 0.06);
}

@media (max-width: 768px) {
	body.home .pg-trust-grid {
		gap: 24px;
		padding-bottom: 36px;
	}

	body.home .pg-trust-item p {
		max-width: none;
	}

	body.home .pg-faq {
		padding-top: 36px;
	}

	body.home .pg-faq-item summary {
		min-height: 48px;
		padding: 16px 0;
		font-size: 15px;
	}

	body.home .pg-faq-item p {
		padding-right: 0;
		margin-bottom: 16px;
	}

	body.home .pg-trust-cta {
		margin-top: 32px;
	}
}
