/* ─────────────────────────────────────────────────────────────────────────
   WETRIPER — Homepage
   Bold & Editorial layout for the front-page template.
   All tokens from core.css (--c-*).
   ───────────────────────────────────────────────────────────────────────── */

/* ── Page stack ─────────────────────────────────────────────────────────── */
.home-sections {
	display: grid;
	gap: clamp(80px, 12vw, 160px);
	padding-bottom: clamp(80px, 12vw, 160px);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.home-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(82vh, 860px);
	padding: var(--sp-8);
	border-radius: var(--r-xl);
	overflow: hidden;
	background-color: var(--c-dark);
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--hero-image);
	background-size: cover;
	background-position: center;
}

.home-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.3) 55%,
		transparent 100%
	);
	pointer-events: none;
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: var(--sp-7);
}

.home-hero__headline {
	font-size: var(--text-hero);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.92;
	color: var(--c-white);
	max-width: 14ch;
}

.home-hero__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--sp-4);
}

.home-hero__desc {
	max-width: 28ch;
	text-align: right;
	font-size: var(--text-base);
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.65;
}

.home-hero__ctas {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	align-items: flex-end;
}

/* Frosted pill CTAs */
.blur-pill,
.c-blur-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 0.55rem 1.1rem;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--r-pill);
	color: var(--c-white);
	font-size: var(--text-sm);
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: background 200ms;
}

.blur-pill:hover,
.c-blur-pill:hover { background: rgba(255, 255, 255, 0.26); }

.blur-pill img,
.c-blur-pill img {
	width: 18px;
	height: 18px;
	filter: brightness(0) invert(1);
}

.blur-pill i,
.c-blur-pill i {
	font-size: 1rem;
	line-height: 1;
	/* color inherits var(--c-white) from parent */
}

/* Legacy: marwa-hero = home-hero */
.marwa-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(82vh, 860px);
	padding: var(--sp-8);
	border-radius: var(--r-xl);
	overflow: hidden;
	background-color: var(--c-dark);
	background-image: var(--hero-image);
	background-size: cover;
	background-position: center;
}

.marwa-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.3) 55%,
		transparent 100%
	);
}

.marwa-hero h1 {
	position: relative;
	z-index: 1;
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.92;
	color: var(--c-white);
	max-width: 14ch;
}

.marwa-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: 5px;
}

.marwa-hero__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-5);
}

.marwa-hero__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--sp-4);
}

.marwa-hero__right p {
	max-width: 32ch;
	font-size: var(--text-base);
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.65;
	text-align: right;
}

.marwa-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--sp-2);
}

.marwa-hero__secondary-links {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.45);
	flex-wrap: wrap;
}

.marwa-hero__secondary-links a {
	color: rgba(255, 255, 255, 0.6);
	text-underline-offset: 2px;
	text-decoration: underline;
	transition: color 150ms;
}

.marwa-hero__secondary-links a:hover {
	color: rgba(255, 255, 255, 0.9);
}

/* ── Destination showcase ────────────────────────────────────────────────── */
.destination-showcase {
	display: grid;
	gap: var(--sp-6);
}

.destination-showcase__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-5);
	flex-wrap: wrap;
}

.destination-showcase__heading h2 { max-width: 18ch; }

.destination-showcase__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-accent);
	white-space: nowrap;
	flex-shrink: 0;
	padding-bottom: 3px;
	border-bottom: 1.5px solid var(--c-accent);
	text-decoration: none;
}

.destination-showcase__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--sp-4);
	align-items: end;
}

/* ── Tour / guide / post / quote grids ───────────────────────────────────── */
.tour-grid  { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.post-grid  { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.faq-grid   { display: grid; gap: var(--sp-3); }

/* ── Guide + CTA two-panel section ───────────────────────────────────────── */
.guide-cta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-5);
}

.content-card--warm {
	padding: var(--sp-7);
	background: var(--c-surface-2);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	display: grid;
	gap: var(--sp-6);
}

.content-card--dark {
	padding: var(--sp-7);
	background: var(--c-dark);
	border-radius: var(--r-xl);
	display: grid;
	gap: var(--sp-6);
	color: var(--c-white);
}

.content-card--dark h2 { color: var(--c-white); }
.content-card--dark .eyebrow { color: var(--c-accent); }

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	background: var(--c-dark);
	border-radius: var(--r-xl);
	overflow: hidden;
}

.stats-bar__item {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	padding: var(--sp-6) var(--sp-5);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-bar__item:last-child { border-right: none; }

.stats-bar__num {
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 1;
	color: var(--c-white);
}

.stats-bar__label {
	font-size: var(--text-xs);
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 500;
}

/* ── Editorial section wrapper ───────────────────────────────────────────── */
/* .home-sections gap handles inter-section rhythm; reset the global padding-block
   that components.css adds for inner pages so sections don't double-space. */
.home-sections .editorial-section {
	padding-block: 0;
}

/* ── CTA panel ───────────────────────────────────────────────────────────── */
.cta-banner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--sp-6);
	align-items: center;
	padding: var(--sp-8);
	background: var(--c-dark);
	border-radius: var(--r-xl);
	color: var(--c-white);
}

.cta-banner > div { display: grid; gap: var(--sp-5); }
.cta-banner h2 { color: var(--c-white); font-size: var(--text-3xl); }
.cta-banner > div > p { color: rgba(255, 255, 255, 0.6); }
.cta-banner .eyebrow { color: var(--c-accent); }

.section-actions {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
}

/* ── Split story ─────────────────────────────────────────────────────────── */
.split-story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-8);
	align-items: center;
	padding: var(--sp-8);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
}

.split-story__copy {
	display: grid;
	gap: var(--sp-5);
}

.split-story__copy h2 { font-size: var(--text-3xl); }

.media-stack {
	display: grid;
	gap: var(--sp-4);
}

.media-stack__item {
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.media-stack__item img { width: 100%; height: 100%; object-fit: cover; }

/* ── How it works ────────────────────────────────────────────────────────── */
.how-it-works-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-5);
}

.hiw-step {
	display: grid;
	gap: var(--sp-3);
	padding: var(--sp-6);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
}

.hiw-step__num {
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 1;
	color: var(--c-line);
}

.hiw-step h3 {
	font-size: var(--text-lg);
	font-weight: 700;
	line-height: 1.25;
}

.hiw-step p {
	font-size: var(--text-sm);
	color: var(--c-muted);
	line-height: 1.65;
}

.hiw-step__link {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-top: var(--sp-2);
	transition: opacity 150ms;
}

.hiw-step__link:hover { opacity: 0.6; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.destination-showcase__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.destination-showcase__grid > *:nth-child(2n) { margin-top: 0; }

	.guide-cta-grid { grid-template-columns: 1fr; }

	.cta-banner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.how-it-works-grid,
	.trip-request-grid {
		grid-template-columns: 1fr;
	}

	.marwa-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-5);
	}

	.marwa-hero__right {
		align-items: flex-start;
	}

	.marwa-hero__right p {
		text-align: left;
	}

	.marwa-hero__actions {
		justify-content: flex-start;
	}

	.marwa-hero,
	.home-hero {
		min-height: min(75vh, 680px);
		padding: var(--sp-6);
	}

	.home-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-5);
	}

	.home-hero__side {
		align-items: flex-start;
	}

	.home-hero__desc { text-align: left; max-width: none; }
	.home-hero__ctas { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }

	.tour-grid,
	.guide-grid,
	.post-grid,
	.quote-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.split-story {
		grid-template-columns: 1fr;
		padding: var(--sp-6);
	}

	/* cta-banner padding stays at desktop value */
}

@media (max-width: 640px) {
	.home-sections {
		gap: 80px;
		padding-bottom: 80px;
	}

	.marwa-hero,
	.home-hero {
		padding: var(--sp-5);
		min-height: min(80vh, 660px);
	}

	/* Right col goes full-width on mobile */
	.marwa-hero__right p {
		max-width: none;
	}

	/* Pills: horizontal scrolling row, no wrap */
	.marwa-hero__actions {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: var(--sp-2);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.marwa-hero__actions::-webkit-scrollbar {
		display: none;
	}

	.blur-pill,
	.c-blur-pill {
		flex-shrink: 0;
		font-size: var(--text-xs);
		padding: 0.45rem 0.9rem;
	}

	.destination-showcase__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-3);
	}

	.tour-grid,
	.guide-grid,
	.post-grid,
	.quote-grid {
		grid-template-columns: 1fr;
	}

	.cta-banner {
		padding: var(--sp-6);
	}

	.cta-banner h2 {
		font-size: var(--text-2xl);
	}

	/* CTA action buttons stay in a horizontal row on mobile */
	.section-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}
}
