/* ==========================================================================
   Home Page v3 — hero, search card, reviews strip, Why Detour Africa.
   Loaded on the front page only (functions.php). Markup: template-parts/home/.
   Designed mobile-first from "Home Page v3 Mobile" (Claude Design);
   wider layouts from 768px and 980px.
   ========================================================================== */

.home-v3 {
	/* Values the theme already uses — no new colours. */
	--hv3-teal: var(--colour1);
	--hv3-teal-dark: #2c7a7a;
	--hv3-teal-light: #4cb8b8; /* hero spec: second headline line + link underline */
	--hv3-charcoal: #2d2d2d;
	--hv3-grey: #4a4a4a;
	--hv3-warm: #fafaf8;
	--hv3-sand: #e8e4de;
	--hv3-star: #f6bb06;
	--hv3-head: "Raleway", var(--font1), sans-serif;
	font-family: var(--font1), sans-serif;
	box-sizing: border-box;
}
.home-v3 *,
.home-v3 *::before,
.home-v3 *::after { box-sizing: border-box; }

/* ---------- Page background ----------
   One warm off-white (#FAFAF8, same as destination pages) behind every
   non-teal section of the home page, so white cards (search, tours, team,
   reviews) stand out. Sections set it too (Why, trust row) or inherit it. */
/* !important: dev.css sets a near-transparent body colour with a long
   body:not(...) selector that would otherwise win. */
body.home { background-color: #fafaf8 !important; }

/* ---------- Hero ---------- */
.hv3-hero {
	position: relative;
	background: #1e2022;
	color: #fff;
	border-bottom: 4px solid var(--hv3-teal);
	overflow: hidden;
}
.hv3-hero__slides { position: absolute; inset: 0; }
.hv3-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease;
}
.hv3-hero__slide.is-active { opacity: 1; }
/* Slow zoom: the showing photo drifts in ~6% while it is on screen. A photo
   fading out keeps its zoom, then resets once it is invisible (the 1s delay).
   .is-ready is added by js/home.js so the first photo zooms too. */
.hv3-hero__slide { transform: scale(1); transition: opacity 1s ease, transform 0s linear 1s; }
.hv3-hero.is-ready .hv3-hero__slide.is-active {
	transform: scale(1.06);
	transition: opacity 1s ease, transform 8s ease-out;
}
.hv3-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(24, 26, 28, .18) 0%, rgba(24, 26, 28, .38) 45%, rgba(24, 26, 28, .55) 100%);
}
.hv3-hero__in {
	position: relative;
	z-index: 2;
	min-height: 520px;           /* room for the transparent QuadMenu bar on top */
	padding: 130px 20px 64px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	max-width: 1280px;
	margin: 0 auto;
}
.home-v3 .hv3-hero__h1 {
	font: 700 34px/1.08 var(--hv3-head);
	letter-spacing: -.015em;
	color: #fff;
	margin: 0;
	padding: 0;
	text-align: left;
	text-transform: none;
	text-shadow: 0 2px 14px rgba(22, 24, 26, .45);
}
.home-v3 .hv3-hero__h1 em {
	display: inline-block;
	margin-top: 8px;
	font-style: italic;
	font-weight: 500;
	font-size: 29px;
	line-height: 1.05;
	color: var(--hv3-teal-light);
}
.home-v3 .hv3-hero__lead {
	margin: 16px 0 0;
	max-width: 30ch;
	font: 500 15px/1.55 var(--font1);
	color: #fff;
	text-align: left;
	text-shadow: 0 2px 14px rgba(22, 24, 26, .45);
}
.hv3-hero__lead b {
	display: block;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.4;
}
.home-v3 .hv3-hero__h1--long em { font-size: 27px; } /* 80% of the headline size */
/* Phones: more breathing room between Why Detour Africa and "Our Top
   Tours" (the section had none; the heading's 15px margin was all). */
@media (max-width: 767px) {
	.home .top-tours { padding-top: 28px; }
}

/* Home reviews (template-parts/destination/reviews.php with class
   home-reviews): section width like destination pages, heading styled like
   the home page's "Our Top Tours". Cards/ratings bar: reviews-styles.php. */
.home-reviews {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px 48px;
}
.home-reviews h2.destination-section__heading {
	margin: 0 0 24px;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--colour1);
	text-align: center;
	text-transform: none;
}
@media (max-width: 599px) {
	.home-reviews { padding: 40px 16px 32px; }
	.home-reviews h2.destination-section__heading { font-size: 30px; }
}

/* ---------- Popular Destinations mosaic (desktop, 1025px+) ----------
   One big card (the first destination in the home page's list) spanning two
   rows on the left, the next four in a 2 x 2 on the right. Card design is
   unchanged (page-homepage.php inline styles); only size and placement.
   Below 1025px the cards stay a Slick carousel (footer.php).
   body.home section... selectors outrank the template's inline rules. */
@media (min-width: 1025px) {
	body.home section.destinations-wrapper .destinations {
		display: grid !important; /* page-homepage.php sets .home .destinations { display: block !important } for Slick */
		grid-template-columns: 2fr 1fr 1fr;
		grid-auto-rows: clamp(240px, 21vw, 300px);
		gap: 24px;
		max-width: 1280px;
		margin: 0 auto 40px;
	}
	body.home section.destinations-wrapper .destinations .card-destination {
		margin: 0 !important;
		height: 100%;
		min-width: 0;
	}
	body.home section.destinations-wrapper .destinations .card-destination:first-child {
		grid-row: span 2;
	}
	body.home section.destinations-wrapper .destinations .card-destination__link {
		height: 100%;
		aspect-ratio: auto;
	}
	body.home section.destinations-wrapper .destinations .card-destination__content { padding: 28px; }
	body.home section.destinations-wrapper .destinations .card-destination:first-child .card-destination__content { padding: 40px; }
	body.home section.destinations-wrapper .destinations .card-destination:first-child h3.card-destination__title {
		font-size: clamp(34px, 3.2vw, 46px);
		margin-bottom: 14px;
	}
}

/* Visually hidden but read by screen readers and search engines. */
.hv3-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Shorter sub-line on phones where a slide has one ('sub_m' in hero.php). */
.hv3-hero__sub--full { display: none !important; }
@media (min-width: 768px) {
	.hv3-hero__sub--full { display: block !important; }
	.hv3-hero__sub--short { display: none !important; }
}

/* Phones: the text sits mid-photo, so darken the middle more for bright
   photos (sand, sky) where the light-teal line would otherwise fade. */
@media (max-width: 767px) {
	.hv3-hero::before {
		background: linear-gradient(180deg, rgba(24, 26, 28, .22) 0%, rgba(24, 26, 28, .5) 40%, rgba(24, 26, 28, .62) 100%);
	}
	.home-v3 .hv3-hero__h1 em { text-shadow: 0 2px 14px rgba(22, 24, 26, .7); }
}

/* Every slide's text sits in the same grid cell: the block is as tall as the
   tallest slide, so the layout doesn't jump when slides change. */
.hv3-hero__copies { display: grid; }
.hv3-hero__copy {
	grid-area: 1 / 1;
	align-self: end;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility 0s linear .8s;
}
.hv3-hero__copy.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .8s ease;
}
.home-v3 .hv3-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--hv3-teal-light);
	font: 700 12.5px/1 var(--font1);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 8px rgba(22, 24, 26, .45);
}
.home-v3 .hv3-hero__link:hover { color: #fff; }
.hv3-hero__link svg { transition: transform .15s ease; }
.hv3-hero__link:hover svg { transform: translateX(3px); }

.hv3-hero__dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 26px;
}
.home-v3 .hv3-hero__dot {
	width: 7px;
	height: 7px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: rgba(250, 250, 248, .5);
	cursor: pointer;
	transition: width .3s ease, background-color .3s ease;
	/* Bigger tap target without changing the look. */
	position: relative;
}
.hv3-hero__dot::after { content: ""; position: absolute; inset: -10px -6px; }
.home-v3 .hv3-hero__dot.is-active { width: 22px; background: var(--hv3-teal); }
.hv3-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Search card ---------- */
.hv3-search-wrap {
	position: relative;
	z-index: 3;
	margin: -40px 16px 0;
	padding-bottom: 20px;
}
.hv3-search {
	background: var(--hv3-warm);
	border-radius: 10px;
	padding: 4px;
	box-shadow: 0 10px 26px rgba(22, 24, 26, .3);
	margin: 0;
}
.hv3-f {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;   /* still a comfortable tap target */
	padding: 8px 12px;
	margin: 0;
	cursor: text;
}
.hv3-f + .hv3-f { border-top: 1px solid var(--hv3-sand); }
.hv3-f > svg { flex: none; color: var(--hv3-teal); }
.hv3-f > span {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}
/* Reset the theme's global input/select styles inside the card. */
.home-v3 .hv3-f input[type="text"],
.home-v3 .hv3-f select {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font: 400 16px/1.2 var(--font1); /* 16px stops iOS zooming in on focus */
	color: var(--hv3-charcoal);
	-webkit-appearance: none;
	appearance: none;
}
.home-v3 .hv3-f input::placeholder { color: var(--colour7); opacity: 1; }
/* Single-line fields: "Where to?" / "How long?" are the field text. The
   dropdown shows grey like a placeholder until a length is picked. */
.home-v3 .hv3-f input[type="text"],
.home-v3 .hv3-f select { font-size: 15px; font-weight: 400; }
.home-v3 .hv3-f select:has(option[value=""]:checked) { color: var(--colour7); }
.hv3-f > svg { width: 17px; height: 17px; }
@media (min-width: 768px) {
	.home-v3 .hv3-f input[type="text"],
	.home-v3 .hv3-f select { font-size: 14px; }
}
.home-v3 .hv3-f select option { color: var(--hv3-charcoal); }
.hv3-f--sel { cursor: pointer; }
.home-v3 .hv3-f--sel select { cursor: pointer; padding-right: 24px; }
.hv3-f__chev {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--hv3-grey);
	pointer-events: none;
}
.hv3-f:focus-within { box-shadow: 0 0 0 3px rgba(53, 165, 165, .30); border-radius: 8px; }
.home-v3 .hv3-go {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: 4px;
	border: 0;
	border-radius: 8px;
	background: var(--hv3-teal);
	color: #fff;
	font: 700 13px/1 var(--font1);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease;
}
.home-v3 .hv3-go:hover { background: var(--hv3-teal-dark); }
.hv3-go:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(53, 165, 165, .30); }

/* ---------- "Where to?" dropdown (js/home.js) ----------
   jQuery UI adds it at the end of <body>, outside .home-v3. */
.ui-autocomplete.hv3-ac {
	z-index: 1000;
	max-height: min(380px, 60vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 0 8px;
	background: #fafaf8;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(22, 24, 26, .22);
	font-family: var(--font1), sans-serif;
}
.hv3-ac .hv3-ac__head {
	padding: 12px 16px 6px;
	font: 600 10px/1 var(--font1);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #2c7a7a;
	list-style: none;
}
.hv3-ac .hv3-ac__head + .ui-menu-item { margin-top: 0; }
.hv3-ac .ui-menu-item-wrapper {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px;
	margin: 0;
	border: 0;
	font: 400 14px/1.3 var(--font1);
	color: #2d2d2d;
}
.hv3-ac__country { flex: none; font-size: 12px; color: var(--colour7); }
.hv3-ac .ui-menu-item-wrapper.ui-state-active {
	margin: 0;
	border: 0;
	background: #e8e4de;
	color: #2d2d2d;
}
.hv3-ac .ui-state-active .hv3-ac__country { color: #2d2d2d; }

/* ---------- Reviews strip ---------- */
.hv3-rev {
	background: var(--hv3-warm);
	color: var(--hv3-charcoal);
	border-bottom: 1px solid var(--hv3-sand);
	padding: 18px 16px 16px;
}
.hv3-rev__in { max-width: 1280px; margin: 0 auto; }
.hv3-rev__top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font: 500 12px/1.3 var(--font1);
	color: var(--hv3-grey);
}
.hv3-rev__top img { height: 48px; width: auto; display: block; }
.hv3-rev__top > span { display: block; }
.hv3-rev__top b {
	display: block;
	margin-bottom: 2px;
	font: 700 15.5px/1.25 var(--hv3-head);
	color: var(--hv3-charcoal);
}
.hv3-rev__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--hv3-sand);
}
.home-v3 .hv3-rp {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	text-align: center;
	text-decoration: none;
	color: var(--hv3-charcoal);
}
.hv3-rp + .hv3-rp { border-left: 1px solid var(--hv3-sand); }
.hv3-rp__st { display: flex; gap: 1px; }
.hv3-rp__st svg { fill: var(--hv3-star); }
.hv3-rp b { font: 700 16px/1 var(--font1); }
.hv3-rp > span:last-child { font: 600 11.5px/1.2 var(--font1); }
.home-v3 .hv3-rp:hover > span:last-child { color: var(--hv3-teal-dark); }

/* ---------- Why Detour Africa ---------- */
/* ---------- Why Detour Africa (spec: "Why Detour Africa Spec.md") ---------- */
.hv3-why {
	background: var(--hv3-warm);
	padding: 56px 20px 56px;
}
.hv3-why__in { max-width: 1280px; margin: 0 auto; }
.hv3-why.home-v3 h2 {
	font: 700 36px/1.05 var(--hv3-head);
	letter-spacing: -.015em;
	color: var(--hv3-charcoal);
	text-align: left;
	text-transform: none;
	margin: 0;
	padding: 0;
}
.hv3-why.home-v3 h2 em { font-style: normal; color: var(--hv3-teal); }
.home-v3 .hv3-why__lead {
	max-width: 34em;
	margin: 20px 0 0;
	font: 500 17px/1.55 var(--font1);
	color: var(--hv3-charcoal);
	text-align: left;
}
.home-v3 .hv3-why__body {
	max-width: 36em;
	margin: 14px 0 0;
	font: 400 15px/1.75 var(--font1);
	color: var(--hv3-grey);
	text-align: left;
}
.home-v3 .hv3-why__body + .hv3-why__body { margin-top: 12px; }
.hv3-why__body strong { font-weight: 600; color: var(--hv3-charcoal); }

/* Text links with a teal underline, not buttons. */
.hv3-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.home-v3 .hv3-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--hv3-teal);
	font: 700 13px/1 var(--font1);
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--hv3-charcoal);
	text-decoration: none;
}
.home-v3 .hv3-link:hover { color: var(--hv3-teal-dark); }
.hv3-link svg { transition: transform .15s ease; }
.hv3-link:hover svg { transform: translateX(3px); }

/* Talk To Our Team card */
.hv3-team {
	margin-top: 36px;
	padding: 32px 22px;
	background: #fff;
	border: 1px solid var(--hv3-sand);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(45, 45, 45, .07);
	text-align: center;
}
.hv3-team__faces { display: flex; justify-content: center; }
.hv3-team__faces img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 4px solid #fff;
	object-fit: cover;
	box-shadow: 0 4px 12px rgba(45, 45, 45, .14);
	background: #ebe8e1;
}
.hv3-team__faces img { flex: none; } /* never squash into ovals */
.hv3-team__faces img + img { margin-left: -14px; }
.home-v3 .hv3-team__title {
	margin: 20px 0 0;
	padding: 0;
	font: 700 26px/1.15 var(--hv3-head);
	color: var(--hv3-charcoal);
	text-transform: none;
	text-align: center;
}
.home-v3 .hv3-team__text {
	max-width: 32ch;
	margin: 10px auto 0;
	font: 400 15px/1.6 var(--font1);
	color: var(--hv3-grey);
	text-align: center;
}
.home-v3 .hv3-team__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	margin-top: 24px;
	padding: 0 28px;
	border-radius: 10px;
	background: var(--hv3-teal);
	color: #fff;
	font: 700 13px/1 var(--font1);
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .15s ease;
}
.home-v3 .hv3-team__btn:hover { background: var(--hv3-teal-dark); color: #fff; }
.hv3-team__contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--hv3-sand);
}
.home-v3 .hv3-team__contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 600 14px/1 var(--font1);
	color: var(--hv3-charcoal);
	text-decoration: none;
	white-space: nowrap;
}
.home-v3 .hv3-team__contact a:hover { color: var(--hv3-teal-dark); }
/* Taller tap target (44px) without moving the text. */
.home-v3 .hv3-team__contact a { min-height: 44px; margin: -12px 0; }
.hv3-team__contact svg { flex: none; color: var(--hv3-teal); }


/* Phones: a tighter Why section. */
@media (max-width: 599px) {
	.hv3-why { padding: 44px 20px 40px; }
	.home-v3 .hv3-why__lead { margin-top: 16px; }
	.home-v3 .hv3-why__body { font-size: 14.5px; line-height: 1.7; }
	.home-v3 .hv3-why__body + .hv3-why__body { margin-top: 10px; }
	.hv3-links { margin-top: 22px; }

	.hv3-team { margin-top: 28px; padding: 24px 18px 20px; }
	.hv3-team__faces img { width: 48px; height: 48px; border-width: 3px; }
	.hv3-team__faces img + img { margin-left: -12px; }
	.home-v3 .hv3-team__title { margin-top: 14px; font-size: 22px; }
	.home-v3 .hv3-team__text { margin-top: 6px; font-size: 14px; }
	.home-v3 .hv3-team__btn { display: flex; width: 100%; height: 48px; margin-top: 18px; }
	.hv3-team__contact { margin-top: 18px; padding-top: 16px; }
}

/* ---------- How it works (template-parts/home/how.php) ----------
   Photo beside a four-step timeline on the page's off-white. Phones: photo
   on top (cropped wider), steps below. */
.hv3-how { padding: 16px 20px 56px; }
.hv3-how__in { max-width: 1280px; margin: 0 auto; }
.home-v3 .hv3-how__photo {
	margin: 0 0 32px;
	height: 300px;
	border-radius: 16px;
	overflow: hidden;
	background: #2d2d2d;
}
.hv3-how__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv3-how.home-v3 h2 {
	margin: 0;
	padding: 0;
	font: 700 32px/1.1 var(--hv3-head);
	letter-spacing: -.015em;
	color: var(--hv3-charcoal);
	text-align: left;
	text-transform: none;
}
.hv3-how.home-v3 h2 em { font-style: normal; color: var(--hv3-teal); }
.home-v3 .hv3-how__lead {
	max-width: 36em;
	margin: 14px 0 0;
	font: 500 16px/1.6 var(--font1);
	color: var(--hv3-grey);
	text-align: left;
}
.home-v3 .hv3-steps { margin: 32px 0 0; padding: 0; list-style: none; }
.home-v3 .hv3-step {
	position: relative;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0 0 28px;
	list-style: none;
}
.home-v3 .hv3-step::before { content: none; }
/* Thin teal line joining the number circles. */
.home-v3 .hv3-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 19px;
	top: 44px;
	bottom: 4px;
	width: 2px;
	background: rgba(53, 165, 165, .3);
}
.home-v3 .hv3-step:last-child { padding-bottom: 0; }
.home-v3 .hv3-step__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--hv3-teal);
	color: #fff;
	font: 700 16px/1 var(--hv3-head);
	font-variant-numeric: lining-nums;
}
.home-v3 .hv3-step__text { padding-top: 7px; }
.hv3-how.home-v3 .hv3-step h3 {
	margin: 0 0 6px;
	padding: 0;
	font: 600 19px/1.3 var(--hv3-head);
	color: var(--hv3-charcoal);
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}
.home-v3 .hv3-step p {
	margin: 0;
	font: 400 15px/1.65 var(--font1);
	color: var(--hv3-grey);
	text-align: left;
}
@media (min-width: 980px) {
	.hv3-how { padding: 24px 40px 96px; } /* the destinations section above already ends with 80px of space */
	.hv3-how__in {
		display: grid;
		grid-template-columns: 5fr 6fr;
		gap: 0 72px;
		align-items: stretch;
	}
	/* Photo matches the height of the steps column (the image fills it). */
	.home-v3 .hv3-how__photo { position: relative; margin: 0; height: auto; min-height: 520px; }
	.hv3-how__photo img { position: absolute; inset: 0; }
	.hv3-how__body { align-self: center; }
	.hv3-how.home-v3 h2 { font-size: 44px; }
	.home-v3 .hv3-how__lead { font-size: 17px; }
	.home-v3 .hv3-steps { margin-top: 40px; }
	.home-v3 .hv3-step { padding-bottom: 32px; }
}

/* ---------- Trust band: photo + teal wash + white points ----------
   The photo layer is taller than the band (inset -18% top/bottom) so
   js/home.js can drift it up/down as you scroll (parallax). */
.hv3-trust.hv3-trust--band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #24494a;
	padding: 72px 20px;
}
.hv3-trust__bg {
	position: absolute;
	inset: -18% 0;
	z-index: -2;
	background-size: cover;
	background-position: center 60%;
	will-change: transform;
}
.hv3-trust--band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(22, 62, 63, .62) 0%, rgba(22, 62, 63, .74) 100%);
}
.home-v3.hv3-trust--band .hv3-trust__icon { background-color: #fff; }
.hv3-trust--band .hv3-trust__title { color: #fff !important; }
.home-v3.hv3-trust--band .hv3-trust__text { color: rgba(255, 255, 255, .88); }
@media (min-width: 980px) {
	.hv3-trust.hv3-trust--band { padding: 112px 40px; }
	.home-v3.hv3-trust--band .hv3-trust__item + .hv3-trust__item { border-left-color: rgba(255, 255, 255, .22); }
}
@media (max-width: 599px) {
	.hv3-trust.hv3-trust--band { padding: 56px 16px; }
}

/* ---------- Trust row (template-parts/home/trust.php) ----------
   Below "How it works", above the reviews. The original site's line icons, shown teal by using
   each PNG as a mask over a teal block. Four across with thin dividers on
   desktop, 2 x 2 below 980px; phones show the line in small print. */
.hv3-trust { background: var(--hv3-warm); padding: 48px 20px; } /* same warm white as Why Detour Africa */
.home-v3 .hv3-trust__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.home-v3 .hv3-trust__item {
	margin: 0;
	padding: 0 8px;
	text-align: center;
	list-style: none;
}
.home-v3 .hv3-trust__item::before { content: none; }
.home-v3 .hv3-trust__icon {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	background-color: var(--hv3-teal);
	-webkit-mask: var(--hv3-icon) center / contain no-repeat;
	mask: var(--hv3-icon) center / contain no-repeat;
}
.home-v3 .hv3-trust__title {
	margin: 0;
	padding: 0;
	font: 600 20px/1.25 var(--hv3-head);
	color: var(--hv3-teal);
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
}
.home-v3 .hv3-trust__text {
	max-width: 26ch;
	margin: 8px auto 0;
	font: 400 14.5px/1.6 var(--font1);
	color: var(--hv3-grey);
	text-align: center;
}
@media (max-width: 599px) {
	.hv3-trust { padding: 40px 16px; }
	.home-v3 .hv3-trust__list { gap: 28px 12px; }
	.home-v3 .hv3-trust__icon { width: 48px; height: 48px; margin-bottom: 12px; }
	.home-v3 .hv3-trust__title { font-size: 16px; }
	.home-v3 .hv3-trust__text { margin-top: 4px; font-size: 12.5px; line-height: 1.45; }
}
@media (min-width: 980px) {
	.hv3-trust { padding: 56px 40px; }
	.home-v3 .hv3-trust__list { grid-template-columns: repeat(4, 1fr); gap: 0; }
	.home-v3 .hv3-trust__item { padding: 0 28px; }
	.home-v3 .hv3-trust__item + .hv3-trust__item { border-left: 1px solid var(--hv3-sand); }
}

/* Reviews on the photo beside the search bar: desktop only (≥ 1200px). */
.hv3-hrev { display: none; }

/* ---------- Tablet (≥ 768px): search becomes one row ---------- */
@media (min-width: 768px) {
	.hv3-hero__in { min-height: 560px; padding: 150px 32px 96px; }
	.home-v3 .hv3-hero__h1 { font-size: 48px; }
	.home-v3 .hv3-hero__h1 em { font-size: 40px; }
	.home-v3 .hv3-hero__h1--long em { font-size: 38px; }

	/* Same column and left edge as the hero text (.hv3-hero__in). */
	.hv3-search-wrap { max-width: 1280px; margin: -44px auto 0; padding: 0 32px 28px; }
	.hv3-search { display: flex; align-items: stretch; gap: 0; max-width: 680px; }
	.hv3-f--where { flex: 1.4; }
	.hv3-f--sel { flex: 1; }
	.hv3-f + .hv3-f { border-top: 0; border-left: 1px solid var(--hv3-sand); }
	.home-v3 .hv3-go { width: 120px; height: auto; min-height: 44px; margin: 0 0 0 4px; }

	.hv3-rev { padding: 22px 32px; }
	.hv3-why { padding: 72px 32px 64px; }
	.hv3-rev__in { display: flex; align-items: center; justify-content: center; gap: 40px; }
	.hv3-rev__row { margin: 0; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid var(--hv3-sand); grid-template-columns: repeat(3, 120px); }
}

/* ---------- Desktop (≥ 980px) ---------- */
@media (min-width: 980px) {
	/* 1280px of content plus 40px padding each side, so the hero text and
	   search start on the same left edge as Why Detour Africa below. */
	.hv3-hero__in { min-height: 640px; padding: 170px 40px 92px; max-width: 1360px; }
	.hv3-search-wrap { padding-left: 40px; padding-right: 40px; max-width: 1360px; }
	.home-v3 .hv3-hero__h1 { font-size: 60px; }
	.home-v3 .hv3-hero__h1 em { font-size: 50px; margin-top: 10px; }
	.home-v3 .hv3-hero__h1--long em { font-size: 48px; }
	.home-v3 .hv3-hero__link { margin-top: 22px; }
	.home-v3 .hv3-hero__lead { max-width: none; margin-top: 22px; font-size: 17px; }
	.hv3-hero__lead b { font-size: 20px; }
	.hv3-hero__dots { justify-content: flex-start; margin-top: 32px; }

	.hv3-why { padding: 80px 40px 72px; }
	.hv3-why__in {
		display: grid;
		grid-template-columns: 1.1fr 1fr;
		gap: 0 64px;
		align-items: center;
	}
	.hv3-why.home-v3 h2 { font-size: 50px; }
	.home-v3 .hv3-why__lead { font-size: 19px; max-width: 40em; }
	.home-v3 .hv3-why__body { font-size: 16px; max-width: none; }
	.hv3-team { margin-top: 0; padding: 40px; }
	.hv3-team__faces img { width: 76px; height: 76px; }
	.home-v3 .hv3-team__title { font-size: 28px; }
}

/* ---------- Why section from 1200px: text runs wider (~59%), card ~15% narrower ---------- */
@media (min-width: 1200px) {
	.hv3-why__in { grid-template-columns: 1.45fr 1fr; }
}

/* ---------- Wide desktop (≥ 1200px): search + reviews row on the photo ----------
   Below 1200px the Tripadvisor lockup leaves too little room for the search
   field, so the white strip shows instead. */
@media (min-width: 1200px) {
	/* Room under the dots for the 56px search row, which sits 40px above the
	   photo's bottom edge instead of overlapping it. */
	.hv3-hero__in { padding-bottom: 132px; }
	.hv3-search-wrap {
		display: flex;
		align-items: center;
		gap: 32px;
		height: 56px;
		margin-top: -96px;    /* 56px row + 40px gap */
		margin-bottom: 40px;  /* cancels the pull-up, so the next section starts at the photo's edge */
		padding-bottom: 0;
	}
	.hv3-search { flex: 0 1 620px; height: 56px; }
	.hv3-f--where { flex: 1.7; }
	.home-v3 .hv3-go { width: 112px; }

	.hv3-hrev {
		display: flex;
		align-items: center;
		gap: 18px;
		flex: none;           /* the search bar gives up space first */
		margin-left: auto;
		color: #fff;
		text-shadow: 0 1px 10px rgba(22, 24, 26, .55);
	}
	.hv3-hrev__lockup { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(22, 24, 26, .35)); }
	.hv3-hrev__txt { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .35); }
	.hv3-hrev__top { display: flex; align-items: center; gap: 10px; }
	.hv3-hrev__top b { font: 700 18px/1.2 var(--hv3-head); color: #fff; white-space: nowrap; }
	.hv3-hrev .hv3-rp__st svg { width: 13px; height: 13px; }
	.hv3-hrev__links { display: block; margin-top: 6px; font: 500 12.5px/1.3 var(--font1); white-space: nowrap; }
	.home-v3 .hv3-hrev__links a { color: rgba(255, 255, 255, .88); text-decoration: none; }
	.home-v3 .hv3-hrev__links a:hover { color: #fff; text-decoration: underline; }
	.hv3-hrev__links a + a::before { content: "·"; margin: 0 8px; color: rgba(255, 255, 255, .6); }
	.hv3-hrev__links b { font-weight: 700; color: #fff; }

	/* The white strip is replaced by the on-photo version. */
	.hv3-rev { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hv3-hero.is-ready .hv3-hero__slide.is-active { transform: none; }
	.hv3-hero__slide,
	.hv3-hero__copy,
	.hv3-hero__copy.is-active,
	.hv3-hero__link svg,
	.hv3-hero__dot { transition: none; }
}
