/**
 * Afrosafaris design system.
 *
 * Typography follows the scale measured on the reference site: Poppins for
 * body copy and most headings, a high-contrast display serif for hero titles.
 * Colours come from the brand palette in the project brief.
 */

/* ------------------------------------------------------------------
 * Fonts (self-hosted — no third-party request, so nothing to consent to)
 * --------------------------------------------------------------- */

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/poppins-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/poppins-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/poppins-600.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/poppins-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variable face: one file covers the 600 and 700 display weights. */
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/playfair-display-var.woff2') format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin Extended-A and friends, for Polish and Czech.
   The five faces above are subset to Latin-1, which has none of
   ą ć ę ł ń ś ź ż or ě š č ř ž ů — so without these companion files a Polish
   page renders single letters MID-WORD in the visitor's system font. The two
   subsets are complementary: the files above hold Ó and ó, these hold the
   other sixteen, and the browser picks per character from unicode-range.
   Still self-hosted, so there is still no third-party request. */

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/poppins-400-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/poppins-500-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/poppins-600-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/poppins-700-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/playfair-display-var-ext.woff2') format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------
 * Tokens
 * --------------------------------------------------------------- */

:root {
	/* Brand palette, sampled from the logo artwork.
	   The badge's dominant colour (30% of it) is the rust #b84800, and that is
	   what carries white text at 5.30:1. The brighter sky orange #e07300 only
	   reaches 3.17:1 against white, so it is used decoratively — never behind
	   white text. */
	--afs-primary: #b84800;        /* logo rust — buttons, links */
	--afs-primary-dark: #9a3a00;
	--afs-rust: #8a2d00;           /* logo lower background — hover */
	--afs-accent: #e07300;         /* logo sky orange — decorative only */
	--afs-brown: #532300;          /* logo outer border */
	--afs-brown-soft: #6e3410;
	--afs-amber: #f0a040;
	--afs-amber-soft: #f8ddb0;
	--afs-cream: #fbecbe;          /* logo ring and wordmark cream */
	--afs-cream-deep: #f2dca4;
	--afs-white: #fff;

	/* Derived */
	--afs-text: #3b1e08;
	--afs-text-muted: #764a28;
	--afs-border: #eedcb8;
	--afs-border-strong: #dcc08a;
	--afs-shadow: 0 2px 10px rgba(83, 35, 0, 0.06);
	--afs-shadow-lg: 0 14px 40px rgba(83, 35, 0, 0.13);

	/* Type */
	--afs-font-body: 'Poppins', -apple-system, 'system-ui', 'Segoe UI', Roboto, sans-serif;
	--afs-font-heading: 'Poppins', -apple-system, 'system-ui', 'Segoe UI', Roboto, sans-serif;
	--afs-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

	/* Scale, measured from the reference site */
	--afs-h1: clamp(2.05rem, 1.35rem + 2.8vw, 2.95rem);  /* ~33 → 47px */
	--afs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);   /* ~24 → 30px */
	--afs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);    /* ~20 → 24px */
	--afs-h4: 1.125rem;

	/* Layout */
	--afs-container: 1200px;
	--afs-container-narrow: 760px;
	--afs-gutter: clamp(1rem, 4vw, 2rem);
	--afs-section-y: clamp(3rem, 7vw, 5.5rem);
	--afs-radius: 6px;
	--afs-radius-lg: 10px;
	--afs-header-h: 76px;
}

/* ---------------------------------------------------------------------------
   Simplified Chinese: system faces only, nothing extra downloaded.

   Poppins and Playfair Display carry no CJK glyphs, so they are kept at the
   front of the stack — they still set the Latin text on a Chinese page (the
   company name, prices, dates, route names) — and the browser falls through
   to the first installed CJK face for the Chinese characters. That fall-
   through is the whole mechanism: no webfont is added, so the speed rules
   hold and there is no 7 MB CJK download.

   Playfair is dropped from the display stack for Chinese. Its character is
   carried entirely by its Latin letterforms, and the CJK face behind it would
   render the headline anyway, so pairing it with a system serif only risked
   SimSun turning up. Chinese headings use the same sans stack as the body.

   :lang(zh) matches lang="zh-CN" by language range, so this covers the
   document and anything inside it.
   --------------------------------------------------------------------------- */

:root:lang(zh),
:root[lang|="zh"] {
	--afs-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
	--afs-font-body: 'Poppins', var(--afs-cjk);
	--afs-font-heading: 'Poppins', var(--afs-cjk);
	--afs-font-display: 'Poppins', var(--afs-cjk);
}

/* ---------------------------------------------------------------------------
   Cyrillic (Russian)

   Poppins has no Cyrillic at all — not a subsetting choice, the typeface
   simply does not cover the script — and Playfair Display ships here as
   Latin and Latin Extended-A subsets only. None of those @font-face rules
   covers Cyrillic, so on a Russian page the browser uses them for the Latin
   runs ("WhatsApp", "USD", "KPAP", "4x4") and falls through to whatever
   system font it likes for the Cyrillic around them. The result is two
   different typefaces inside one sentence.

   Note that this is NOT how Polish is handled: Polish needs sixteen
   characters that Latin-1 lacks, and those exist in Poppins, so Polish is
   fixed by the latin-ext @font-face rules above and keeps the webfonts.
   Cyrillic has nothing to fall back to inside Poppins, which is why only
   Russian swaps the whole stack.

   So Russian drops both webfonts and takes a system stack that covers Latin
   and Cyrillic in a single face. The serif/sans contrast the design relies
   on is kept, with a serif that actually has Cyrillic: Georgia does, and on
   Linux Noto Serif and Liberation Serif do.

   This is the opposite of the CJK treatment above, deliberately. Latin beside
   Chinese is expected to be a different face; Latin beside Cyrillic is not.

   :lang(ru) matches lang="ru-RU" by language range, so this covers the
   document and anything inside it.
   --------------------------------------------------------------------------- */

/* The Cyrillic stack is declared on :root so it exists on every page, not
   only Russian ones. Poppins is subset to Latin and Latin Extended, so a
   Cyrillic word anywhere else on the site falls through the family list to
   whatever comes next — and on a Chinese, Korean or Japanese page that is a
   CJK face, which draws Cyrillic full-width. "Русский" in the language
   switcher came out twice its proper width, spaced like a shop sign. The one
   place this matters is the switcher, which names every language in its own
   script; the rule that uses it lives beside the switcher in core.css. */
:root {
	--afs-cyrillic: -apple-system, 'system-ui', 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

:root:lang(ru),
:root[lang|="ru"] {
	--afs-font-body: var(--afs-cyrillic);
	--afs-font-heading: var(--afs-cyrillic);
	--afs-font-display: Georgia, 'Noto Serif', 'Liberation Serif', 'Times New Roman', serif;
}

/* Russian words are longer than their English equivalents, so headings wrap
   more often and the tight display tracking starts to look cramped. */
:lang(ru) h1, :lang(ru) h2, :lang(ru) h3,
[lang|="ru"] h1, [lang|="ru"] h2, [lang|="ru"] h3 {
	letter-spacing: normal;
}

/* CJK glyphs are square and dense: they need a little more room between
   lines than Latin, and none of the tracking the Latin small-caps labels
   use — letter-spacing on Chinese pushes the characters apart and reads as
   a typesetting fault rather than as emphasis. */
:lang(zh) body,
[lang|="zh"] body {
	line-height: 1.8;
}

:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4,
[lang|="zh"] h1, [lang|="zh"] h2, [lang|="zh"] h3, [lang|="zh"] h4 {
	line-height: 1.45;
}

:lang(zh) [class*="afs-"],
[lang|="zh"] [class*="afs-"] {
	letter-spacing: normal;
}

/* Chinese has no spaces between words, and the default already allows a line
   to break between any two characters, which is correct for CJK. What is
   worth setting is line-break: strict, so a line cannot start with a closing
   bracket or a full stop — the one wrapping fault a reader notices.

   overflow-wrap: anywhere is deliberately NOT set: it would also let the
   Latin runs on a Chinese page (the company name, email addresses, route
   names like Lemosho) break mid-word, which is a worse fault than the long
   line it would prevent. */
:lang(zh), [lang|="zh"] {
	word-break: normal;
	line-break: strict;
}


/* ---------------------------------------------------------------------------
   Korean (Hangul)

   Same mechanism as Chinese above, for the same reason: Poppins and Playfair
   carry no Hangul, so a Korean page would otherwise render its Latin runs
   ("WhatsApp", "USD", "KPAP", "4x4", lodge names) in the webfonts and fall
   through to some system face for the Hangul around them. Poppins is kept at
   the front of the stack on purpose — it should set that Latin text — and the
   browser falls through to the first installed Hangul face for the rest.
   Nothing extra is downloaded, so the speed rules hold.

   Playfair is dropped from the display stack, as it is for Chinese: its
   character is entirely in its Latin letterforms, and pairing it with a
   system serif here only risks Batang turning up behind a heading.

   Where Korean parts company with Chinese is word breaking. Chinese has no
   spaces and may break between any two characters. Korean DOES space its
   words, so the default break-anywhere behaviour would split a word down the
   middle — a visible fault to a Korean reader. word-break: keep-all is the
   fix: lines break at spaces, as they do in English.

   :lang(ko) matches lang="ko-KR" by language range, so this covers the
   document and anything inside it.
   --------------------------------------------------------------------------- */

:root:lang(ko),
:root[lang|="ko"] {
	--afs-hangul: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', 'Source Han Sans KR', 'NanumGothic', 'Dotum', sans-serif;
	--afs-font-body: 'Poppins', var(--afs-hangul);
	--afs-font-heading: 'Poppins', var(--afs-hangul);
	--afs-font-display: 'Poppins', var(--afs-hangul);
}

/* Hangul syllables are square and dense, like CJK, and need the same extra
   room between lines. The tracking the Latin small-caps labels use pushes
   the syllables apart and reads as a typesetting fault, so it goes. */
:lang(ko) body,
[lang|="ko"] body {
	line-height: 1.8;
}

:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4,
[lang|="ko"] h1, [lang|="ko"] h2, [lang|="ko"] h3, [lang|="ko"] h4 {
	line-height: 1.45;
	letter-spacing: normal;
}

:lang(ko) [class*="afs-"],
[lang|="ko"] [class*="afs-"] {
	letter-spacing: normal;
}

/* keep-all keeps Korean words whole; line-break: strict stops a line starting
   with a closing bracket or a full stop. overflow-wrap is deliberately not
   set, for the same reason as Chinese: it would let the Latin runs break
   mid-word, which is the worse fault. */
:lang(ko), [lang|="ko"] {
	word-break: keep-all;
	line-break: strict;
}


/* ---------------------------------------------------------------------------
   Japanese (kana and kanji)

   Same mechanism as Chinese and Korean, and measured the same way before it
   was written: of thirteen test characters — hiragana, katakana and kanji —
   Poppins and Playfair supply **none**, while the Latin control 'A' comes
   from Poppins. So a Japanese page without this block renders its Latin runs
   ("WhatsApp", "USD", "KPAP", "4x4", lodge names) in the webfonts and falls
   through to whatever system face the browser likes for the Japanese around
   them: two typefaces inside one sentence.

   Poppins stays at the front of the stack on purpose — it should set that
   Latin text — and the Japanese face behind it picks up everything else. No
   webfont is added, so the speed rules hold and there is no multi-megabyte
   CJK download.

   Playfair is dropped from the display stack, as it is for Chinese and
   Korean: its character is carried entirely by its Latin letterforms, and
   pairing it with a system serif only risks a mincho face turning up behind
   a heading where the design wants a gothic one.

   Line breaking follows CHINESE, not Korean. Japanese does not put spaces
   between words, so the default break-between-any-two-characters is correct;
   word-break: keep-all — which Korean needs, because Korean does space its
   words — would here produce lines that refuse to break at all. What is
   worth setting is line-break: strict, which is CSS's name for the kinsoku
   rules: no line may start with a small kana, a closing bracket or a full
   stop, and none may end with an opening bracket.

   overflow-wrap: anywhere is deliberately NOT set, for the same reason as
   Chinese: it would let the Latin runs break mid-word, which is the worse
   fault.

   :lang(ja) matches lang="ja" by language range, so this covers the document
   and anything inside it.
   --------------------------------------------------------------------------- */

:root:lang(ja),
:root[lang|="ja"] {
	--afs-kana: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', 'Source Han Sans JP', sans-serif;
	--afs-font-body: 'Poppins', var(--afs-kana);
	--afs-font-heading: 'Poppins', var(--afs-kana);
	--afs-font-display: 'Poppins', var(--afs-kana);
}

/* Kana and kanji are square and dense like the rest of CJK: more room between
   lines, and none of the tracking the Latin small-caps labels use. */
:lang(ja) body,
[lang|="ja"] body {
	line-height: 1.9;
}

:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4,
[lang|="ja"] h1, [lang|="ja"] h2, [lang|="ja"] h3, [lang|="ja"] h4 {
	line-height: 1.5;
	letter-spacing: normal;
}

:lang(ja) [class*="afs-"],
[lang|="ja"] [class*="afs-"] {
	letter-spacing: normal;
}

:lang(ja), [lang|="ja"] {
	word-break: normal;
	line-break: strict;
}


/* ------------------------------------------------------------------
 * Base
 * --------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--afs-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--afs-white);
	color: var(--afs-text);
	font-family: var(--afs-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.afs-nav-open {
	overflow: hidden;
}

img,
picture,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--afs-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--afs-rust);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--afs-brown);
	font-family: var(--afs-font-heading);
	line-height: 1.25;
	text-wrap: balance;
}

h1 {
	font-family: var(--afs-font-display);
	font-size: var(--afs-h1);
	font-weight: 700;
	line-height: 1.2;
}

h2 {
	font-size: var(--afs-h2);
	font-weight: 600;
	line-height: 1.35;
}

h3 {
	font-size: var(--afs-h3);
	font-weight: 700;
}

h4 {
	font-size: var(--afs-h4);
	font-weight: 600;
}

p {
	margin: 0 0 1.15em;
}

:focus-visible {
	outline: 3px solid var(--afs-amber);
	outline-offset: 2px;
}

.afs-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--afs-brown);
	color: #fff;
	border-radius: 0 0 var(--afs-radius) var(--afs-radius);
	text-decoration: none;
}

.afs-skip-link:focus {
	top: 0;
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------------
 * Layout primitives
 * --------------------------------------------------------------- */

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

.afs-container--narrow {
	max-width: var(--afs-container-narrow);
}

.afs-section {
	padding-block: var(--afs-section-y);
}

.afs-section--cream {
	background: var(--afs-cream);
}

.afs-section--brown {
	background: var(--afs-brown);
	color: #f6e8d8;
}

.afs-section--brown h2,
.afs-section--brown h3 {
	color: #fff;
}

.afs-section--tight {
	padding-block: clamp(2rem, 4vw, 3rem);
}

.afs-section__head {
	max-width: 46rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.afs-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.afs-section__title {
	margin-bottom: 0.4em;
}

.afs-section__intro {
	margin: 0;
	color: var(--afs-text-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.afs-section--brown .afs-section__intro {
	color: #e3cdb5;
}

.afs-eyebrow {
	margin: 0 0 0.6rem;
	color: var(--afs-primary);
	font-family: var(--afs-font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.afs-section--brown .afs-eyebrow {
	color: var(--afs-amber);
}

.afs-grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.afs-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.afs-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.afs-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

/* Seven cards in a three-column grid leave the seventh alone on the left,
   which reads as a mistake rather than a list. Centre it once there are
   actually three columns to centre it in; below that the grid is one or two
   across and a trailing card looks like any other row. */
@media (min-width: 64rem) {
	.afs-grid--3.afs-grid--orphan > :last-child {
		grid-column: 2;
	}
}

/* Two columns leave the same orphan on the left. Span both and centre it at a
   column's width, so it still reads as one of the cards rather than a banner. */
@media (min-width: 40rem) and (max-width: 63.999rem) {
	.afs-grid--3.afs-grid--orphan > :last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - (clamp(1.25rem, 3vw, 2rem) / 2));
	}
}

.afs-center {
	text-align: center;
}

.afs-section__cta {
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
	text-align: center;
}

/* ------------------------------------------------------------------
 * Header
 * --------------------------------------------------------------- */

.afs-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--afs-border);
	backdrop-filter: saturate(140%) blur(8px);
	transition: box-shadow 0.2s ease;
}

.afs-header.is-stuck {
	box-shadow: var(--afs-shadow-lg);
}

.afs-header__topbar {
	background: var(--afs-brown);
	color: #f0ddc9;
	font-size: 0.8rem;
}

.afs-header__topbar .afs-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-block: 0.45rem;
}

.afs-header__topbar a {
	color: #f0ddc9;
	text-decoration: none;
}

.afs-header__topbar a:hover {
	color: var(--afs-amber);
}

/* The tagline must sit on one line at every width, so the second clause is
   dropped on narrow screens rather than allowed to wrap. */
.afs-header__topbar-tagline {
	white-space: nowrap;
}

/* Two complete sentences, written separately in Settings → Afrosafaris, with
   one hidden at each size. The owner reads exactly what each screen shows. */
.afs-header__topbar-narrow {
	display: none;
}

@media (max-width: 640px) {
	.afs-header__topbar-wide {
		display: none;
	}

	.afs-header__topbar-narrow {
		display: inline;
	}
}

.afs-header__topbar-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
}

.afs-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--afs-header-h);
}

/* The logo never shrinks and never gives ground. flex: 0 0 auto.
   
   It was briefly flex: 0 1 auto with min-width: 0, to stop the header actions
   being pushed past the container's right gutter at 320px. That fixed the
   phone and broke the desktop: with the brand willing to shrink, a seven-item
   menu that does not fit simply took the logo's space instead, and at 1025px
   the whole lockup was squeezed to ZERO width while "Safaris" and its
   dropdown sat where the logo should have been. A logo that can be crushed
   is not a logo.
   
   The phone is handled properly instead, by the 480px and 360px blocks
   further down, which shrink the lockup deliberately rather than letting a
   flexbox do it by accident. */
.afs-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	flex: 0 0 auto;
	text-decoration: none;
}

.afs-brand img,
.afs-brand svg {
	width: auto;
	height: 52px;
	flex: 0 0 auto;
}

.afs-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.afs-brand__name {
	color: var(--afs-brown);
	font-family: var(--afs-font-heading);
	font-size: 1.22rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.afs-brand__tagline {
	color: var(--afs-primary);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Primary navigation */

/* min-width: 0 lets the nav shrink below its content width, which is what
   makes the brand's flex: 0 0 auto bite: the menu gives way, the logo never
   does. A menu too wide for the space then shrinks its items and they
   ellipsise (see the links below) rather than spilling over the logo beside
   them. That is the belt-and-braces for the moment before script runs and
   for no script at all; the fit check in core.js is what means it should
   never actually be seen. */
.afs-nav {
	flex: 1 1 auto;
	min-width: 0;
}

/* wp_nav_menu emits <ul class="sub-menu"> for second-level items, so the
   dropdown rules below target that class rather than a custom one. */
.afs-nav__list,
.afs-nav__list .sub-menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afs-nav__list {
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
}

/* min-width: 0 lets an item shrink past its own text, which is what sends a
   too-wide menu into the ellipsis below instead of out of the nav box and
   over the logo. The dropdowns must NOT be clipped to achieve that: an
   overflow: hidden on the list cuts off every sub-menu, since they hang
   below it. Shrinking the items is the way to contain the row. */
.afs-nav__list > li {
	position: relative;
	min-width: 0;
}

.afs-nav__list a {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding: 0.6rem 0.75rem;
	color: var(--afs-brown);
	font-family: var(--afs-font-heading);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--afs-radius);
}

.afs-nav__list > li > a:hover,
.afs-nav__list > li.current-menu-item > a,
.afs-nav__list > li.current-menu-ancestor > a {
	background: var(--afs-cream);
	color: var(--afs-primary);
}

/* Dropdowns */

.afs-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	flex-direction: column;
	min-width: 15rem;
	padding: 0.5rem;
	background: #fff;
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
	box-shadow: var(--afs-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.afs-nav__list > li:hover > .sub-menu,
.afs-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.afs-nav__list .sub-menu li {
	list-style: none;
}

.afs-nav__list .sub-menu a {
	padding: 0.55rem 0.75rem;
	font-size: 0.88rem;
	font-weight: 500;
	white-space: nowrap;
}

.afs-nav__list .sub-menu a:hover {
	background: var(--afs-cream);
	color: var(--afs-primary);
}

/* A caret on items that open a dropdown. */
.afs-nav__list > li.menu-item-has-children > a::after {
	display: inline-block;
	margin-left: 0.35rem;
	content: '▾';
	font-size: 0.7em;
	opacity: 0.7;
}

.afs-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: 0 0 auto;
}

.afs-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: var(--afs-cream);
	border: 1px solid var(--afs-border-strong);
	border-radius: var(--afs-radius);
	color: var(--afs-brown);
	cursor: pointer;
}

@media (max-width: 1024px) {
	/* backdrop-filter makes the header a containing block for fixed-position
	   descendants, which would size the full-screen menu against the header
	   instead of the viewport. The blur buys little here, so drop it. */
	.afs-header {
		backdrop-filter: none;
		background: #fff;
	}

	.afs-nav-toggle {
		display: inline-flex;
	}

	.afs-header__actions .afs-btn {
		display: none;
	}

	/* The open menu starts at the bottom edge of the header, whatever height
	   the header happens to be.

	   It used to be position: fixed with top: var(--afs-header-h), and 76px
	   is only the height of the logo bar — the topbar above it is another
	   59px. So the open panel was pinned 59px too high and painted straight
	   over the bottom of the header: the logo, the menu button and (now) the
	   language globe were all half covered, and because the nav is a child of
	   the header its z-index of 480 put it above them. Tapping the menu
	   button to close the menu hit a menu link instead. Escape worked, which
	   is no use at all on a phone.

	   position: absolute resolves against the header, which is sticky and so
	   a positioned ancestor, so top: 100% means "under the header" and the
	   percentage in the height resolves against the header too. That also
	   drops the old dependency on backdrop-filter being none here: the panel
	   now WANTS the header as its containing block. */
	.afs-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 480;
		display: none;
		height: calc(100vh - 100%);
		height: calc(100dvh - 100%);
		padding: 1.25rem var(--afs-gutter) 4rem;
		background: #fff;
		overflow-y: auto;
	}

	.afs-nav.is-open {
		display: block;
	}

	.afs-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.afs-nav__list > li {
		border-bottom: 1px solid var(--afs-border);
	}

	.afs-nav__list a {
		padding: 0.9rem 0.25rem;
		font-size: 1rem;
	}

	.afs-nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0.75rem 0.75rem;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.afs-nav__list > li.menu-item-has-children > a::after {
		content: none;
	}
}

/* ------------------------------------------------------------------
 * The header has to FIT, in fourteen languages
 *
 * Seven top-level items, a logo lockup with a tagline, a language switcher
 * and a CTA button. Measured against the 1200px container that used to hold
 * them, the bar needed 1489px in English and 1652px in Russian and had
 * 1136px to do it in. It had never fitted, in any language, at any width:
 * the nav simply overflowed and painted over the logo, which is the bug the
 * owner reported as "the Safaris dropdown overlaps the logo".
 *
 * Three things together, and the third is the one that actually guarantees
 * it:
 *
 *  1. the header bar is allowed to be wider than the 1200px body column;
 *  2. the desktop nav is tightened a little — less padding, a smaller gap,
 *     a slightly smaller face;
 *  3. core.js measures what the bar needs against what it has and switches
 *     that header to the hamburger when it will not fit.
 *
 * (3) is what makes this hold in every language rather than in the ones a
 * breakpoint happened to be tuned for. Russian's menu is 18% wider than
 * English's; a single breakpoint that suited Russian would have put English
 * laptops on a hamburger for no reason, and one that suited English would
 * have left Russian broken.
 * --------------------------------------------------------------- */

/* The body column stays at 1200px; the header spans the window, with the
   same gutter as everything else. A header that runs wider than the text
   column is ordinary, and on a 1600px screen it is 400px of room the menu
   did not have before — the difference between a horizontal menu and a
   hamburger in most languages. */
.afs-header .afs-container {
	max-width: none;
}

@media (min-width: 1025px) {
	/* Tightened only where the horizontal menu exists. Below this the same
	   values would make the stacked mobile menu cramped and harder to tap. */
	.afs-nav__list {
		gap: 0.15rem;
	}

	.afs-nav__list > li > a {
		padding-inline: 0.5rem;
		font-size: 0.885rem;
	}
}

/* Compact mode: the same header a phone gets, applied at any width because
   the menu does not fit. core.js puts the class on <body> — on the body and
   not the header, because the language sheet the globe opens is printed in
   the footer and has to come out of hiding too.
   
   These rules deliberately repeat the @media (max-width: 1024px) block
   above. The media query is the no-script path and the one that applies
   before core.js has run; this is the measured one. CHANGE THEM TOGETHER. */
body.afs-nav-compact .afs-header {
	backdrop-filter: none;
	background: #fff;
}

body.afs-nav-compact .afs-nav-toggle {
	display: inline-flex;
}

body.afs-nav-compact .afs-header__actions .afs-btn {
	display: none;
}

body.afs-nav-compact .afs-nav {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 480;
	display: none;
	height: calc(100vh - 100%);
	height: calc(100dvh - 100%);
	padding: 1.25rem var(--afs-gutter) 4rem;
	background: #fff;
	overflow-y: auto;
}

body.afs-nav-compact .afs-nav.is-open {
	display: block;
}

body.afs-nav-compact .afs-nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	overflow: visible;
}

body.afs-nav-compact .afs-nav__list > li {
	border-bottom: 1px solid var(--afs-border);
}

body.afs-nav-compact .afs-nav__list > li > a {
	padding: 0.9rem 0.25rem;
	font-size: 1rem;
}

body.afs-nav-compact .afs-nav__list .sub-menu {
	position: static;
	min-width: 0;
	padding: 0 0 0.75rem 0.75rem;
	border: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

body.afs-nav-compact .afs-nav__list > li.menu-item-has-children > a::after {
	content: none;
}

/* Narrow phones. Three things now want the header bar: the logo lockup, the
   language globe and the menu button. The lockup is the only one that can
   give, so below 480px the tagline goes, the badge comes down to 42px and the
   wordmark shrinks — which leaves both buttons at a full 44px target and the
   gutter intact at 320px. The tagline is a strapline, not information: it is
   on the homepage hero and in the footer on the same screen. */
@media (max-width: 480px) {
	.afs-header__bar {
		gap: 0.6rem;
	}

	.afs-brand {
		gap: 0.5rem;
	}

	.afs-brand img,
	.afs-brand svg {
		height: 42px;
	}

	.afs-brand__name {
		font-size: 1.02rem;
		letter-spacing: 0.04em;
	}

	.afs-brand__tagline {
		display: none;
	}

	.afs-header__actions {
		gap: 0.4rem;
	}
}

/* Smallest phones in circulation. The wordmark is the first thing that may be
   clipped, never the two controls. */
@media (max-width: 360px) {
	.afs-brand__name {
		font-size: 0.92rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.afs-brand__text {
		min-width: 0;
	}
}

/* ------------------------------------------------------------------
 * Hero
 * --------------------------------------------------------------- */

.afs-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(30rem, 68vh, 42rem);
	padding-block: clamp(3rem, 8vw, 5rem);
	background: var(--afs-brown);
	color: #fff;
	isolation: isolate;
	overflow: hidden;
}

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

.afs-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The background video sits in the same box as the poster photograph, out of
   the layout flow, so swapping one for the other shifts nothing. It stays
   invisible until it is actually playing — if autoplay is refused or the file
   never arrives, the photograph simply remains. */
.afs-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.9s ease;
	pointer-events: none;
}

.afs-hero__video.is-playing {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.afs-hero__video {
		display: none;
	}
}

/* Deeper than a still image needs: moving footage changes luminance under the
   headline from frame to frame, so the scrim has to hold contrast at the
   brightest moment, not the average one. */
.afs-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			100deg,
			rgba(30, 14, 4, 0.88) 0%,
			rgba(30, 14, 4, 0.68) 45%,
			rgba(30, 14, 4, 0.42) 100%
		);
	content: '';
}

.afs-hero__inner {
	max-width: 44rem;
}

.afs-hero h1 {
	margin-bottom: 0.5em;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.afs-hero__tagline {
	margin: 0 0 1.5rem;
	color: var(--afs-amber);
	font-family: var(--afs-font-heading);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.afs-hero__lede {
	margin: 0 0 2rem;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.7;
	color: #f3e3d2;
}

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

.afs-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 0.85rem;
	color: #efdcc8;
}

.afs-hero__trust span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* Page hero, used on interior pages */

.afs-pagehero {
	position: relative;
	padding-block: clamp(2.75rem, 7vw, 4.5rem);
	background: var(--afs-brown);
	color: #fff;
	isolation: isolate;
	overflow: hidden;
}

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

.afs-pagehero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afs-pagehero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(42, 17, 7, 0.72), rgba(42, 17, 7, 0.86));
	content: '';
}

.afs-pagehero h1 {
	margin-bottom: 0.35em;
	color: #fff;
}

.afs-pagehero__lede {
	max-width: 44rem;
	margin: 0;
	color: #f0dcc8;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.afs-breadcrumbs {
	margin-bottom: 0.9rem;
	color: #e0c7ad;
	font-size: 0.82rem;
}

.afs-breadcrumbs a {
	color: var(--afs-amber);
	text-decoration: none;
}

.afs-breadcrumbs span + span::before {
	content: '/';
	margin: 0 0.45rem;
	opacity: 0.6;
}

/* ------------------------------------------------------------------
 * Trip search (hero) and tour filters
 * --------------------------------------------------------------- */

.afs-tripsearch {
	margin-top: 2rem;
	padding: 1.1rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: var(--afs-radius-lg);
	box-shadow: var(--afs-shadow-lg);
}

.afs-tripsearch__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: 0.75rem;
	align-items: end;
}

.afs-tripsearch label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--afs-brown);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.afs-tripsearch select,
.afs-filters select {
	width: 100%;
	padding: 0.7rem 0.75rem;
	background: #fff;
	border: 1px solid var(--afs-border-strong);
	border-radius: var(--afs-radius);
	color: var(--afs-brown);
	font-family: inherit;
	font-size: 0.95rem;
}

.afs-filters {
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
	padding: 1.1rem 1.25rem;
	background: var(--afs-cream);
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
}

.afs-filters__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: 0.75rem;
	align-items: end;
}

.afs-filters__count {
	margin: 0.9rem 0 0;
	color: var(--afs-text-muted);
	font-size: 0.86rem;
}

/* ------------------------------------------------------------------
 * Value proposition strip
 * --------------------------------------------------------------- */

.afs-values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1px;
	background: var(--afs-border);
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
	overflow: hidden;
}

.afs-value {
	display: flex;
	gap: 0.9rem;
	padding: clamp(1.15rem, 3vw, 1.6rem);
	background: #fff;
}

.afs-value__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--afs-amber-soft);
	border-radius: 50%;
	color: var(--afs-rust);
}

.afs-value__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
}

.afs-value__text {
	margin: 0;
	color: var(--afs-text-muted);
	font-size: 0.88rem;
	line-height: 1.6;
}

/* ------------------------------------------------------------------
 * Cards (tours, posts)
 * --------------------------------------------------------------- */

.afs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
	box-shadow: var(--afs-shadow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.afs-card:hover {
	box-shadow: var(--afs-shadow-lg);
	transform: translateY(-3px);
}

.afs-card__media {
	position: relative;
	aspect-ratio: 10 / 7;
	background: var(--afs-cream-deep);
	overflow: hidden;
}

.afs-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.afs-card:hover .afs-card__img {
	transform: scale(1.04);
}

.afs-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 70% 30%, var(--afs-amber-soft), transparent 60%),
		var(--afs-cream-deep);
}

.afs-card__badge {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	padding: 0.32rem 0.7rem;
	background: rgba(83, 35, 0, 0.88);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.afs-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.15rem 1.25rem 1.35rem;
}

.afs-card__eyebrow {
	margin: 0 0 0.4rem;
	color: var(--afs-primary);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.afs-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
}

.afs-card__title a {
	color: inherit;
	text-decoration: none;
}

.afs-card__title a:hover {
	color: var(--afs-primary);
}

.afs-card__excerpt {
	margin: 0 0 1rem;
	color: var(--afs-text-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

.afs-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin: 0 0 1rem;
	color: var(--afs-text-muted);
	font-size: 0.82rem;
}

.afs-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.afs-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.9rem;
	border-top: 1px solid var(--afs-border);
}

.afs-card__price {
	color: var(--afs-brown);
	font-family: var(--afs-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
}

.afs-card__price small {
	display: block;
	color: var(--afs-text-muted);
	font-size: 0.72rem;
	font-weight: 500;
}

.afs-card__link {
	color: var(--afs-primary);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.afs-card__link::after {
	content: ' →';
}

/* Destination tiles */

.afs-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--afs-radius-lg);
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.afs-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	z-index: -2;
}

.afs-tile::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(42, 17, 7, 0.05) 30%, rgba(42, 17, 7, 0.85) 100%);
	content: '';
}

.afs-tile:hover img {
	transform: scale(1.06);
}

.afs-tile__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.25rem;
}

.afs-tile__title {
	margin: 0 0 0.2rem;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
}

.afs-tile__meta {
	margin: 0;
	color: #e9d3bb;
	font-size: 0.82rem;
}

/* Feature blocks ("why travel with us") */

.afs-feature {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
}

.afs-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	background: var(--afs-cream);
	border-radius: var(--afs-radius);
	color: var(--afs-primary);
}

.afs-feature h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
}

.afs-feature p {
	margin: 0;
	color: var(--afs-text-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

/* Stats band */

.afs-stats {
	display: grid;
	/* Explicit counts rather than auto-fit: with four stats, auto-fit dropped to
	   three columns around 800px and left the fourth alone on its own row. The
	   column count follows the number of stats instead, so removing one does not
	   leave an empty cell and an off-centre row. */
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	text-align: center;
}

.afs-stats--1 { grid-template-columns: 1fr; }
.afs-stats--2 { grid-template-columns: repeat(2, 1fr); }
.afs-stats--3 { grid-template-columns: repeat(3, 1fr); }
.afs-stats--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	/* Three across is too tight here, and 2 + 1 leaves a stray. One per row
	   reads better than either. */
	.afs-stats,
	.afs-stats--3 {
		grid-template-columns: repeat(2, 1fr);
		column-gap: clamp(1rem, 4vw, 2rem);
		row-gap: clamp(1.75rem, 5vw, 2.5rem);
	}

	.afs-stats--3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 400px) {
	/* Two columns of a long label become a column of single words. */
	.afs-stats {
		grid-template-columns: 1fr;
	}
}

.afs-stat__figure {
	display: block;
	text-wrap: balance;
	color: var(--afs-amber);
	font-family: var(--afs-font-display);
	font-size: clamp(2.1rem, 5vw, 2.9rem);
	font-weight: 700;
	line-height: 1;
}

.afs-stat__unit {
	font-size: 0.45em;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.afs-stat__label {
	display: block;
	margin-top: 0.5rem;
	color: #e5cfb7;
	font-size: 0.86rem;
}

/* Testimonials */

.afs-quote {
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
}

.afs-quote__stars {
	margin-bottom: 0.75rem;
	color: var(--afs-amber);
	font-size: 1rem;
	letter-spacing: 0.1em;
}

.afs-quote__text {
	margin: 0 0 1.15rem;
	font-size: 0.95rem;
	line-height: 1.7;
}

.afs-quote__author {
	margin: auto 0 0;
	color: var(--afs-text-muted);
	font-size: 0.84rem;
}

.afs-quote__author strong {
	display: block;
	color: var(--afs-brown);
	font-size: 0.92rem;
}

/* CTA band */

.afs-cta {
	position: relative;
	padding-block: clamp(3rem, 7vw, 4.5rem);
	background: var(--afs-rust);
	color: #fff;
	isolation: isolate;
	overflow: hidden;
	text-align: center;
}

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

.afs-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afs-cta::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(160, 68, 26, 0.9), rgba(83, 35, 0, 0.94));
	content: '';
}

.afs-cta h2 {
	color: #fff;
}

.afs-cta p {
	max-width: 40rem;
	margin-inline: auto;
	color: #f5e2cf;
	font-size: 1.05rem;
	line-height: 1.7;
}

.afs-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* ------------------------------------------------------------------
 * Single tour
 * --------------------------------------------------------------- */

.afs-tour__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 3rem);
	align-items: start;
}

@media (min-width: 62rem) {
	.afs-tour__layout {
		grid-template-columns: minmax(0, 1fr) 22rem;
	}
}

.afs-tour__aside {
	position: sticky;
	top: calc(var(--afs-header-h) + 1.25rem);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.afs-tour__glance {
	padding: 1.35rem 1.5rem;
	background: var(--afs-cream);
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
}

.afs-tour__price {
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--afs-border-strong);
	color: var(--afs-brown);
	font-family: var(--afs-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
}

.afs-tour__price small {
	display: block;
	margin-top: 0.2rem;
	color: var(--afs-text-muted);
	font-size: 0.76rem;
	font-weight: 500;
}

.afs-tour__tiers {
	width: 100%;
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--afs-border-strong);
	border-collapse: collapse;
	font-size: 0.88rem;
}

.afs-tour__tiers th {
	padding: 0.4rem 0;
	color: var(--afs-text-muted);
	font-weight: 500;
	text-align: left;
}

.afs-tour__tiers td {
	padding: 0.4rem 0;
	color: var(--afs-brown);
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.afs-tour__facts {
	margin: 0;
	font-size: 0.89rem;
}

.afs-tour__facts div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px dashed var(--afs-border-strong);
}

.afs-tour__facts div:last-child {
	border-bottom: 0;
}

.afs-tour__facts dt {
	color: var(--afs-text-muted);
}

.afs-tour__facts dd {
	margin: 0;
	color: var(--afs-brown);
	font-weight: 600;
	text-align: right;
}

.afs-tour__block {
	margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.afs-tour__block h2 {
	margin-bottom: 0.75em;
}

.afs-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 0.6rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afs-highlights li {
	position: relative;
	padding-left: 1.75rem;
	font-size: 0.95rem;
	line-height: 1.6;
}

.afs-highlights li::before {
	position: absolute;
	top: 0.08em;
	left: 0;
	color: var(--afs-primary);
	content: '✦';
	font-size: 0.95rem;
}

.afs-inclusions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.afs-inclusions ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.afs-inclusions li {
	position: relative;
	padding: 0.4rem 0 0.4rem 1.85rem;
	font-size: 0.92rem;
	line-height: 1.6;
}

.afs-inclusions li::before {
	position: absolute;
	top: 0.45rem;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	font-size: 0.72rem;
	font-weight: 700;
}

.afs-inclusions--in li::before {
	background: #e4f2e2;
	color: #2f6b36;
	content: '✓';
}

.afs-inclusions--out li::before {
	background: #f7e3dd;
	color: #a33a1c;
	content: '✕';
}

.afs-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 0.75rem;
}

.afs-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--afs-radius);
	object-fit: cover;
}

/* ------------------------------------------------------------------
 * Blog
 * --------------------------------------------------------------- */

.afs-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 3rem);
	align-items: start;
}

@media (min-width: 62rem) {
	.afs-post__layout {
		grid-template-columns: minmax(0, 1fr) 18rem;
	}
}

.afs-prose {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.afs-prose > * + * {
	margin-top: 1.15em;
}

.afs-prose h2 {
	margin-top: 2em;
}

.afs-prose h3 {
	margin-top: 1.6em;
}

.afs-prose img {
	border-radius: var(--afs-radius-lg);
}

.afs-prose blockquote {
	margin: 1.75em 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 4px solid var(--afs-amber);
	color: var(--afs-brown-soft);
	font-size: 1.1rem;
	font-style: italic;
}

.afs-prose ul,
.afs-prose ol {
	padding-left: 1.4rem;
}

.afs-prose li + li {
	margin-top: 0.4em;
}

.afs-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin-bottom: 1.5rem;
	color: var(--afs-text-muted);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------------
 * Travel Tips article extras
 * --------------------------------------------------------------- */

.afs-quickanswers,
.afs-article-tours {
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.afs-quickanswers h2,
.afs-article-tours h2 {
	margin-bottom: 1rem;
}

.afs-article-cta {
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--afs-cream);
	border: 1px solid var(--afs-border);
	border-radius: var(--afs-radius-lg);
	text-align: center;
}

.afs-article-cta h2 {
	margin-bottom: 0.5rem;
}

.afs-article-cta p {
	max-width: 36rem;
	margin: 0 auto 1.5rem;
	color: var(--afs-text-muted);
	font-size: 0.98rem;
	line-height: 1.7;
}

/* The prose wrapper adds vertical rhythm to everything inside it; the extras
   manage their own spacing. */
.afs-prose .afs-quickanswers > :first-child,
.afs-prose .afs-article-tours > :first-child,
.afs-prose .afs-article-cta > :first-child {
	margin-top: 0;
}

.afs-widget {
	margin-bottom: 1.75rem;
	padding: 1.25rem;
	background: var(--afs-cream);
	border-radius: var(--afs-radius-lg);
}

.afs-widget__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.afs-widget ul {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.92rem;
}

/* Pagination */

.afs-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: clamp(2rem, 5vw, 3rem);
}

.afs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.7rem;
	background: #fff;
	border: 1px solid var(--afs-border-strong);
	border-radius: var(--afs-radius);
	color: var(--afs-brown);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.afs-pagination .page-numbers:hover,
.afs-pagination .page-numbers.current {
	background: var(--afs-primary);
	border-color: var(--afs-primary);
	color: #fff;
}

/* ------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------- */

.afs-footer {
	background: var(--afs-brown);
	color: #e7d3bd;
	font-size: 0.92rem;
}

.afs-footer a {
	color: #e7d3bd;
	text-decoration: none;
}

.afs-footer a:hover {
	color: var(--afs-amber);
}

.afs-footer__main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: clamp(1.75rem, 4vw, 2.75rem);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.afs-footer__brand .afs-brand__name {
	color: #fff;
}

.afs-footer__brand .afs-brand__tagline {
	color: var(--afs-amber);
}

.afs-footer__about {
	margin: 1.1rem 0 1.25rem;
	color: #cdb49a;
	font-size: 0.88rem;
	line-height: 1.7;
}

.afs-footer h3 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.afs-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.afs-footer li + li {
	margin-top: 0.55rem;
}

.afs-footer__contact li {
	display: flex;
	gap: 0.6rem;
	line-height: 1.6;
}

.afs-footer__socials {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.afs-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transition: background-color 0.16s ease;
}

.afs-footer__socials a:hover {
	background: var(--afs-primary);
	color: #fff;
}

/* Anything that sets its own colour for a light background has to be reset
   here, or it lands dark-on-dark. Two offenders: Astra styles bare <label>
   elements slate blue (#1e293b, 1.12:1 on the footer), and core.css colours
   the consent text with --afs-text-muted, which is meant for cream panels. */
.afs-footer label,
.afs-footer .afs-newsletter__label {
	color: var(--afs-cream);
}

.afs-footer .afs-consent,
.afs-footer .afs-consent span,
.afs-footer .afs-form__smallprint {
	color: #e7d3bd;
}

.afs-footer .afs-consent a {
	color: var(--afs-amber);
}

/* The email field is white, so its own text must stay dark. */
.afs-footer input[type="email"] {
	color: var(--afs-text);
}

.afs-footer input::placeholder {
	color: #7a6652;
	opacity: 1;
}

.afs-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.afs-footer__bar .afs-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1.25rem;
	color: #b89b80;
	font-size: 0.82rem;
}

.afs-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

/* ------------------------------------------------------------------
 * 404 and search
 * --------------------------------------------------------------- */

.afs-404 {
	padding-block: clamp(3rem, 9vw, 6rem);
	text-align: center;
}

.afs-404__code {
	display: block;
	color: var(--afs-amber);
	font-family: var(--afs-font-display);
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 700;
	line-height: 1;
}

.afs-searchform {
	display: flex;
	gap: 0.5rem;
	max-width: 26rem;
	margin: 1.75rem auto 0;
}

.afs-searchform input[type="search"] {
	flex: 1 1 auto;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--afs-border-strong);
	border-radius: var(--afs-radius);
	font-family: inherit;
	font-size: 1rem;
}

/* ------------------------------------------------------------------
 * Motion
 * --------------------------------------------------------------- */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
