/* West Coast Safaris game drives: the ad landing page.
   Brand as the main site (wc-safaris/theme.json): Raleway and Open Sans, reserve green,
   olive, burnt-orange buttons, light and dark. One job: book a drive or send a WhatsApp. */

@font-face {
	font-family: "Raleway";
	src: url("../fonts/raleway-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Open Sans";
	src: url("../fonts/open-sans-latin-wght.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
}

:root {
	--paper: #fbfaf6;
	--surface: #ffffff;
	--tint: #e9eddf;
	--rule: #dcdfd2;
	--ink: #1c231b;
	--muted: #5b6457;
	--green: #34683d;
	--green-ink: #2d5a35;
	--olive: #6c6a20; /* the brand olive (#9b982f), darkened so small labels pass WCAG AA */
	--orange: #b85d0b;
	--orange-hover: #a35209;
	--band: #1f3a26;
	--on-dark: rgba(255, 255, 255, 0.88);
	--whatsapp: #1c8549;
	--display: "Raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 10px;
	--wrap: 1180px;
	--gutter: max(20px, env(safe-area-inset-left, 0px));
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #111a13;
		--surface: #182319;
		--tint: #1f2d22;
		--rule: #2d3d30;
		--ink: #eef1e8;
		--muted: #a6b0a2;
		--green: #4f8f5c;
		--green-ink: #8fc49a;
		--olive: #c2bf5a;
		--orange: #b85d0b;
		--orange-hover: #a35209;
		--band: #16261a;
		--whatsapp: #1c8549;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--green-ink);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--display);
	line-height: 1.12;
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
	font-weight: 800;
}

h3 {
	font-size: 1.2rem;
	font-weight: 800;
}

p {
	margin: 0;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(56px, 8vw, 104px);
}

.section--tint {
	background: var(--tint);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7em;
	margin-bottom: 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--olive);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--orange);
}

.lede {
	max-width: 38em;
	margin-top: 1rem;
	color: var(--muted);
	font-size: 1.125rem;
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--surface);
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--olive);
	outline-offset: 3px;
}

/* Buttons: every one at least 48px tall. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 52px;
	padding: 0.8rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 6px;
	font: 700 1rem/1.2 var(--body);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--book {
	background: var(--orange);
	color: #fff;
}

.btn--book:hover {
	background: var(--orange-hover);
}

.btn--wa {
	background: var(--whatsapp);
	color: #fff;
}

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.btn--ghost:hover {
	border-color: #fff;
}

.btn svg {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Header: slim and sticky, with a booking button always in reach. */
.top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 68px;
}

.top__logo img {
	width: auto;
	height: 38px;
}

@media (prefers-color-scheme: dark) {
	.top__logo img {
		filter: invert(1);
	}
}

.top__actions {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.top__tel {
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.top .btn {
	min-height: 46px;
	padding: 0.6rem 1.1rem;
}

/* Hero: the giraffes, with the offer on top. */
.hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background: var(--band);
}

.hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 45%;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(95deg, rgba(14, 24, 16, 0.92) 0%, rgba(20, 38, 24, 0.72) 36%, rgba(20, 38, 24, 0.28) 56%, rgba(20, 38, 24, 0) 74%);
}

.hero .wrap {
	padding-block: clamp(64px, 10vw, 140px) clamp(48px, 7vw, 96px);
}

.hero .eyebrow {
	color: #d8d56e;
	text-shadow: 0 1px 3px rgba(10, 18, 12, 0.7);
}

.hero h1 {
	max-width: 12em;
	font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem);
	font-weight: 900;
	text-shadow: 0 1px 2px rgba(10, 18, 12, 0.45), 0 2px 22px rgba(10, 18, 12, 0.45);
}

.hero__sub {
	max-width: 27em;
	margin-top: 1.2rem;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
	color: var(--on-dark);
	text-shadow: 0 1px 2px rgba(10, 18, 12, 0.5);
}

.hero__price {
	display: inline-block;
	margin-top: 1.4rem;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: rgba(14, 24, 16, 0.6);
	font-weight: 700;
}

.hero .btns {
	margin-top: 1.6rem;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.6rem;
	margin: 2.2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--on-dark);
	text-shadow: 0 1px 3px rgba(10, 18, 12, 0.75), 0 0 14px rgba(10, 18, 12, 0.55);
}

.facts li {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.facts li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--olive);
}

@media (max-width: 700px) {
	.hero::before {
		background: linear-gradient(180deg, rgba(14, 24, 16, 0.74) 0%, rgba(20, 38, 24, 0.42) 50%, rgba(20, 38, 24, 0.66) 100%);
	}

	.hero .btns .btn {
		flex: 1 1 100%;
	}
}

/* Booking: three drives, one button each. */
.book__head {
	display: grid;
	gap: 0.4rem;
	max-width: 46em;
}

.drives {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	margin: 2.4rem 0 0;
	padding: 0;
	list-style: none;
}

.drive {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.6rem;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}

.drive--featured {
	border: 2px solid var(--orange);
}

.drive__tag {
	align-self: flex-start;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--tint);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--green-ink);
}

.drive__time {
	font-family: var(--display);
	font-size: 1.6rem;
	font-weight: 800;
}

.drive__price {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--green-ink);
}

.drive p {
	color: var(--muted);
}

.drive .btn {
	margin-top: auto;
}

@media (max-width: 900px) {
	.drives {
		grid-template-columns: minmax(0, 1fr);
	}
}

.rates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0.8rem 1.6rem;
	margin: 2rem 0 0;
	padding: 1.2rem 0 0;
	border-top: 1px solid var(--rule);
}

.rates div {
	margin: 0;
}

.rates dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.rates dd {
	margin: 0.15rem 0 0;
	font-weight: 700;
}

.note {
	margin-top: 1.2rem;
	color: var(--muted);
	font-size: 0.95rem;
}

/* Wildlife: photos with names. */
.animals {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(10px, 1.4vw, 16px);
	margin: 2.4rem 0 0;
	padding: 0;
	list-style: none;
}

.animals figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--tint);
}

.animals img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.animals li:hover img {
	transform: scale(1.04);
}

.animals figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.2rem 0.9rem 0.8rem;
	background: linear-gradient(0deg, rgba(10, 18, 12, 0.78), rgba(10, 18, 12, 0));
	color: #fff;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.05rem;
}

@media (max-width: 900px) {
	.animals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Split sections: text beside a photo. */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.split--flip .split__pic {
	order: -1;
}

.split__pic {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
}

.split__pic img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: minmax(0, 1fr);
	}

	.split--flip .split__pic {
		order: 0;
	}

	.split__pic img {
		aspect-ratio: 4 / 3;
	}
}

/* The programme: a timeline. */
.steps {
	display: grid;
	gap: 0;
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
}

.steps li {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	padding: 0.9rem 0;
	border-top: 1px solid var(--rule);
}

.steps li:last-child {
	border-bottom: 1px solid var(--rule);
}

.steps strong {
	font-family: var(--display);
	font-weight: 800;
	color: var(--green-ink);
}

.steps span {
	color: var(--muted);
}

@media (max-width: 420px) {
	.steps li {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.2rem;
	}
}

.lists {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.6rem;
	margin-top: 1.8rem;
}

.lists h3 {
	margin-bottom: 0.6rem;
}

.lists ul {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--muted);
}

.lists li + li {
	margin-top: 0.35rem;
}

@media (max-width: 560px) {
	.lists {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Gallery strip. */
.strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1.2vw, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.strip img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 700px) {
	.strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Questions. */
.faq {
	display: grid;
	max-width: 52rem;
	margin-top: 1.8rem;
}

.faq div {
	padding-block: 1.1rem;
	border-top: 1px solid var(--rule);
}

.faq div:last-child {
	border-bottom: 1px solid var(--rule);
}

.faq dt {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.1rem;
}

.faq dd {
	margin: 0.4rem 0 0;
	color: var(--muted);
}

/* Find us. */
.where {
	display: grid;
	gap: 1rem;
	margin: 1.6rem 0 0;
}

.where div {
	padding-top: 0.9rem;
	border-top: 1px solid var(--rule);
}

.where dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.where dd {
	margin: 0.2rem 0 0;
}

/* Closing call to action over the sunset. */
.final {
	position: relative;
	isolation: isolate;
	color: #fff;
	text-align: center;
	background: var(--band);
}

.final__img {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.final__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.final::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(14, 24, 16, 0.62);
}

.final .wrap {
	display: grid;
	justify-items: center;
	gap: 1.2rem;
	padding-block: clamp(72px, 10vw, 130px);
}

.final p {
	max-width: 34em;
	color: var(--on-dark);
}

.final .btns {
	justify-content: center;
}

/* Footer. */
.foot {
	padding-block: 2.2rem 2.6rem;
	background: var(--band);
	color: var(--on-dark);
	font-size: 0.92rem;
}

.foot .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.8rem 2rem;
}

.foot a {
	color: #fff;
}

/* On phones, Book and WhatsApp stay at the bottom of the screen. */
.dock {
	display: none;
}

@media (max-width: 700px) {
	.top__tel,
	.top .btn {
		display: none;
	}

	.dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.6rem;
		padding: 0.6rem var(--gutter) max(0.6rem, env(safe-area-inset-bottom, 0px));
		background: var(--paper);
		border-top: 1px solid var(--rule);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.35);
	}

	.dock .btn {
		min-height: 50px;
		padding-inline: 0.6rem;
	}

	body {
		padding-bottom: 84px;
	}
}
