/* ==========================================================================
   Wild Expert Safari — 1.8.0 refinement layer
   --------------------------------------------------------------------------
   Loads AFTER main.css and only adds or refines. Nothing here changes layout
   structure, routing, or the navigation (hamburger-everywhere stays exactly
   as main.css defines it). Delete this one file to return to 1.7.x visuals.
   ========================================================================== */

:root {
	/* Extra tokens used only by this layer */
	--wes-gold-soft: rgba(232, 199, 126, 0.16);
	--wes-gold-line: rgba(232, 199, 126, 0.42);
	--wes-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--wes-card-radius: 18px;
	--wes-ring: 0 0 0 3px rgba(232, 199, 126, 0.55);
}

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

::selection { background: rgba(232, 199, 126, 0.35); color: #fff; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

html { scrollbar-color: rgba(232, 199, 126, 0.45) transparent; scrollbar-width: thin; }

/* Visible, on-brand keyboard focus everywhere (mouse users never see it). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: none;
	box-shadow: var(--wes-ring);
	border-radius: 10px;
}
.wes-btn:focus-visible { border-radius: 999px; }

/* Slim reading-progress line along the top edge. Pure CSS scroll-driven
   animation: browsers without support simply never show it. */
@supports (animation-timeline: scroll()) {
	body::before {
		content: '';
		position: fixed; top: 0; left: 0; right: 0; z-index: 400;
		height: 3px;
		background: linear-gradient(90deg, var(--wes-earth), var(--wes-gold));
		transform-origin: 0 50%;
		transform: scaleX(0);
		animation: wes-progress linear both;
		animation-timeline: scroll(root block);
		pointer-events: none;
	}
	@keyframes wes-progress { to { transform: scaleX(1); } }
}

/* ---- Section headings: gold hairline accent ---------------------------- */

.wes-section__header h2 { position: relative; padding-bottom: 14px; }
.wes-section__header h2::after {
	content: '';
	position: absolute; left: 0; bottom: 0;
	width: 56px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--wes-gold), transparent);
}
.wes-section__header--centered h2::after { left: 50%; transform: translateX(-50%); }

.wes-link-arrow { display: inline-flex; align-items: center; gap: 6px; transition: gap 220ms var(--wes-ease-out), color 200ms ease; }
.wes-link-arrow:hover { gap: 12px; }

/* ---- Buttons ----------------------------------------------------------- */

.wes-btn { letter-spacing: 0.01em; position: relative; overflow: hidden; }

/* A single soft light sweep on hover — premium, not busy. */
.wes-btn::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 650ms var(--wes-ease-out);
	pointer-events: none;
}
.wes-btn:hover::after { transform: translateX(120%); }

.wes-btn--ghost { border-color: var(--wes-gold-line); }
.wes-btn--ghost:hover { border-color: var(--wes-gold); }

/* ---- Cards ------------------------------------------------------------- */
/* main.css already aligns the homepage Featured Safaris cards (#wes-packages)
   with the Packages-page cards, so this layer only adds shared finishing:
   a deeper, warmer hover on both card families and a nudge on the CTA. */

.wes-package-card,
.wes-pk__card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }

.wes-package-card:hover,
.wes-pk__card:hover {
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px var(--wes-gold-soft);
}

.wes-badge {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	letter-spacing: 0.02em;
}

.wes-package-card__go { transition: transform 220ms var(--wes-ease-out), color 200ms ease; }
.wes-package-card:hover .wes-package-card__go { transform: translateX(4px); }

/* Chips: linked destination chips respond to hover. */
a.wes-chip { transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms var(--wes-ease-out); }
a.wes-chip:hover {
	background: var(--wes-gold-soft);
	border-color: var(--wes-gold-line);
	color: #fff;
	transform: translateY(-1px);
}

/* ---- Footer: aligned with the current design direction ----------------- */

.wes-footer {
	position: relative;
	border: 1px solid var(--glass-border);
	border-bottom: 0;
	box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.28);
}
.wes-footer::before {
	content: '';
	position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--wes-gold), transparent);
}
.wes-footer__col h4 {
	font-family: var(--font-accent);
	font-size: 12px; font-weight: 600;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--wes-gold);
}
.wes-footer__col a,
.wes-footer__contact a {
	display: inline-block;
	transition: color 200ms ease, transform 220ms var(--wes-ease-out);
}
.wes-footer__col a:hover,
.wes-footer__contact a:hover { transform: translateX(4px); color: #fff; }
.wes-footer__tagline { font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--wes-text-dim); }

/* ---- Forms: clearer fields on glass ------------------------------------ */

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) {
	transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea):focus {
	border-color: var(--wes-gold);
	background: var(--glass-bg-strong);
}

/* ---- Small screens ----------------------------------------------------- */

@media (max-width: 768px) {
	.wes-footer__col a:hover,
	.wes-footer__contact a:hover { transform: none; }
}

/* ---- Honour reduced-motion for everything this file adds --------------- */

@media (prefers-reduced-motion: reduce) {
	.wes-btn::after { display: none; }
	body::before { animation: none; transform: scaleX(0); }
	.wes-link-arrow, a.wes-chip, .wes-package-card__go,
	.wes-footer__col a, .wes-footer__contact a { transition: none; }
}

/* ---- Accessibility: skip link ------------------------------------------ */

.wes-skip {
	position: fixed; top: 10px; left: 10px; z-index: 500;
	padding: 10px 18px; border-radius: 999px;
	background: var(--wes-gold); color: var(--wes-earth-deep);
	font-weight: 700; font-size: 14px;
	transform: translateY(-160%);
	transition: transform 200ms var(--wes-ease-out);
}
.wes-skip:focus { transform: translateY(0); }

/* ==========================================================================
   1.9.0 — EDITORIAL LAYER
   Hero plan bar, route-trace safari cards, paper bands, offset destinations,
   numerals, cursor ring and a larger type scale. Everything below sits on top
   of main.css; navigation (hamburger-everywhere) is not touched.
   ========================================================================== */

:root {
	--paper: #F3ECDD;
	--paper-light: #F8F3E7;
	--ink: #2A211A;
	--ink-dim: rgba(42, 33, 26, 0.74);
	--ink-faint: rgba(42, 33, 26, 0.5);
	--gold-ink: #8F6420; /* gold that still reads on cream */
}

/* ---- Type scale -------------------------------------------------------- */

.wes-section__header h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.wes-why__intro h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.wes-final-cta__inner h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.015em; }

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

.wes-hero { align-items: flex-end; padding-bottom: var(--space-12); }

.wes-hero__content {
	max-width: var(--wes-max-width);
	width: 100%;
	margin: 0 auto;
	padding: 140px var(--space-6) 0;
}

.wes-hero__headline {
	font-size: clamp(46px, 8vw, 112px);
	line-height: 0.98;
	letter-spacing: -0.02em;
	max-width: 15ch;
	margin-bottom: var(--space-6);
}
.wes-hero__subtext { font-size: clamp(17px, 1.5vw, 21px); max-width: 540px; margin-bottom: var(--space-12); }

/* Plan bar */
.wes-planbar {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr auto;
	max-width: 960px;
	margin: 0 0 var(--space-4);
	padding: 8px;
	border-radius: 24px;
	background: rgba(20, 16, 12, 0.55);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.24);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}
.wes-planbar__field {
	display: flex; flex-direction: column; gap: 2px;
	padding: 12px 24px;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	cursor: pointer;
	transition: background 200ms ease;
}
.wes-planbar__field:hover,
.wes-planbar__field:focus-within { background: rgba(255, 255, 255, 0.08); }
.wes-planbar__label {
	font-family: var(--font-accent);
	font-size: 10.5px; font-weight: 600;
	letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--wes-gold);
}
.wes-planbar select {
	-webkit-appearance: none; appearance: none;
	width: 100%;
	padding: 2px 22px 2px 0;
	border: 0; outline: none;
	background-color: transparent;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E8C77E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right center;
	color: #fff;
	font: 600 17px/1.3 var(--font-body);
	cursor: pointer;
	box-shadow: none;
}
.wes-planbar select:focus-visible { box-shadow: none; }
.wes-planbar select option { color: var(--ink); background: #fff; }
.wes-planbar__go {
	align-self: stretch;
	margin-left: 8px;
	padding: 0 38px;
	border-radius: 16px;
	justify-content: center;
}

.wes-hero__alt {
	margin: 0 0 var(--space-8);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.wes-hero__alt a { color: #fff; border-bottom: 1px solid rgba(232, 199, 126, 0.55); padding-bottom: 1px; transition: border-color 200ms ease, color 200ms ease; }
.wes-hero__alt a:hover { color: var(--wes-gold); border-bottom-color: var(--wes-gold); }

/* Stats: from a boxed glass panel to a quiet line under the bar */
.wes-hero__stats {
	display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-12);
	margin-top: 0;
	padding: var(--space-5) 0 0;
	background: none; border: 0; border-radius: 0; box-shadow: none;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	overflow: visible;
}
.wes-hero__stat {
	display: flex; align-items: baseline; gap: 10px;
	padding: 0; border: 0;
}
.wes-hero__stat .wes-icon { display: none; }
.wes-hero__stat b { font-size: 34px; }
.wes-hero__stat span { font-size: 11px; letter-spacing: 0.18em; }

/* ---- Featured Safaris: taller photos, price in the photo, route trace -- */

#wes-packages .wes-card-scroll { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
#wes-packages .wes-package-card__image { aspect-ratio: 4 / 5; }
#wes-packages .wes-package-card__image::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 38%, rgba(0, 0, 0, 0.78) 100%);
	transition: opacity 300ms ease;
}
#wes-packages .wes-package-card__body h3 { font-size: 26px; }

.wes-package-card__tag {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(20, 16, 12, 0.62);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.26);
	font-size: 12px; letter-spacing: 0.04em; color: #fff;
}
.wes-package-card__tag strong { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--wes-gold); margin-left: 4px; vertical-align: -1px; }

/* Route trace — stops joined by a dashed line that draws in on hover */
.wes-route-trace {
	position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
	display: flex; margin: 0; padding: 0; list-style: none;
	opacity: 0; transform: translateY(10px);
	transition: opacity 320ms ease, transform 420ms var(--wes-ease-out);
	pointer-events: none;
}
.wes-route-trace li {
	position: relative; flex: 1 1 0; min-width: 0;
	padding-top: 20px; padding-right: 8px;
	font-family: var(--font-accent);
	font-size: 10.5px; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase;
	line-height: 1.25;
	color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
	overflow: hidden; text-overflow: ellipsis;
}
.wes-route-trace li::before {
	content: '';
	position: absolute; top: 0; left: 0;
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--wes-gold);
	box-shadow: 0 0 0 4px rgba(232, 199, 126, 0.28);
}
.wes-route-trace li:not(:last-child)::after {
	content: '';
	position: absolute; top: 4px; left: 18px; right: 4px; height: 2px;
	background: repeating-linear-gradient(90deg, rgba(232, 199, 126, 0.95) 0 6px, transparent 6px 11px);
	clip-path: inset(0 100% 0 0);
	transition: clip-path 520ms var(--wes-ease-out);
}
.wes-package-card:hover .wes-route-trace,
.wes-package-card:focus-within .wes-route-trace { opacity: 1; transform: none; }
.wes-package-card:hover .wes-route-trace li:not(:last-child)::after,
.wes-package-card:focus-within .wes-route-trace li:not(:last-child)::after { clip-path: inset(0 0 0 0); }
.wes-package-card:hover .wes-route-trace li:nth-child(2)::after { transition-delay: 140ms; }
.wes-package-card:hover .wes-route-trace li:nth-child(3)::after { transition-delay: 280ms; }

/* Touch screens have no hover, so the trace is simply always shown there. */
@media (hover: none) {
	.wes-route-trace { opacity: 1; transform: none; }
	.wes-route-trace li:not(:last-child)::after { clip-path: inset(0 0 0 0); }
}

/* ---- Paper bands ------------------------------------------------------- */

.wes-section--paper {
	--wes-text: var(--ink);
	--wes-text-dim: var(--ink-dim);
	--wes-text-faint: var(--ink-faint);
	--glass-bg: #fff;
	--glass-bg-strong: #fff;
	--glass-border: rgba(42, 33, 26, 0.12);
	--glass-blur: none;
	--glass-shadow: 0 22px 48px -22px rgba(42, 33, 26, 0.32);
	position: relative;
	background: linear-gradient(180deg, var(--paper) 0%, var(--paper-light) 100%);
	color: var(--ink);
	box-shadow: inset 0 16px 32px -20px rgba(0, 0, 0, 0.4), inset 0 -16px 32px -20px rgba(0, 0, 0, 0.35);
}
.wes-section--paper::before {
	content: '';
	position: absolute; inset: 0; z-index: 0;
	pointer-events: none;
	opacity: 0.55; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .16  0 0 0 0 .13  0 0 0 0 .1  0 0 0 .06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.wes-section--paper > .wes-container { position: relative; z-index: 2; }

.wes-section--paper h2,
.wes-section--paper h3 { color: var(--ink); text-shadow: none; }
.wes-section--paper .wes-eyebrow { color: var(--gold-ink); text-shadow: none; }
.wes-section--paper .wes-section__header h2::after { background: linear-gradient(90deg, var(--gold-ink), transparent); }
.wes-section--paper .wes-link-arrow { color: var(--gold-ink); }
.wes-section--paper .wes-btn--ghost {
	background: transparent; color: var(--ink);
	border-color: rgba(42, 33, 26, 0.35);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.wes-section--paper .wes-btn--ghost:hover { background: rgba(42, 33, 26, 0.06); border-color: var(--ink); }
.wes-section--paper .wes-btn::after { display: none; }

/* Why-us tiles on paper */
.wes-section--paper .wes-why-tile { border-radius: 22px; }
.wes-section--paper .wes-why-tile:hover { box-shadow: 0 30px 56px -24px rgba(42, 33, 26, 0.4); }

/* Destinations on paper: separate offset cards with large cropped numerals */
.wes-section--paper .wes-dest-panel {
	counter-reset: dest;
	align-items: start;
	gap: 28px;
	padding-bottom: 44px;
	background: transparent; border: 0; box-shadow: none;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	overflow: visible;
}
.wes-section--paper .wes-dest-panel__col {
	counter-increment: dest;
	position: relative; overflow: hidden;
	padding: 60px 28px 28px;
	background: #fff;
	border: 1px solid rgba(42, 33, 26, 0.1);
	border-radius: 26px;
	box-shadow: var(--glass-shadow);
}
.wes-section--paper .wes-dest-panel__col:nth-child(even) { margin-top: 44px; margin-bottom: -44px; }
.wes-section--paper .wes-dest-panel__col::before {
	content: counter(dest, decimal-leading-zero);
	position: absolute; top: -26px; right: 14px;
	font-family: var(--font-display); font-weight: 700;
	font-size: 168px; line-height: 1;
	color: rgba(42, 33, 26, 0.07);
	pointer-events: none;
}
.wes-section--paper .wes-dest-panel__region { position: relative; color: var(--ink); border-bottom-color: rgba(42, 33, 26, 0.12); }
.wes-section--paper .wes-dest-panel__list a { color: var(--ink-dim); }
.wes-section--paper .wes-dest-panel__list a:hover { background: rgba(42, 33, 26, 0.06); color: var(--ink); }
.wes-section--paper .wes-dest-panel__more { color: var(--gold-ink) !important; }
.wes-section--paper .wes-dest-panel__more:hover { color: var(--ink) !important; }

@supports (animation-timeline: view()) {
	.wes-section--paper .wes-dest-panel__col::before {
		animation: wes-num-drift linear both;
		animation-timeline: view();
	}
	@keyframes wes-num-drift {
		from { transform: translateY(34px); }
		to   { transform: translateY(-34px); }
	}
}

/* ---- Final CTA: a warm glow behind the panel --------------------------- */

.wes-final-cta { position: relative; }
.wes-final-cta::before {
	content: '';
	position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 55% at 50% 50%, rgba(232, 199, 126, 0.16) 0%, transparent 70%);
}
.wes-final-cta__inner { position: relative; border-color: rgba(232, 199, 126, 0.35); }

/* ---- Cursor ring (fine pointers only; the real cursor stays) ----------- */

.wes-cursor {
	position: fixed; left: 0; top: 0; z-index: 9999;
	width: 40px; height: 40px;
	border: 1.5px solid rgba(232, 199, 126, 0.95);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: width 260ms var(--wes-ease-out), height 260ms var(--wes-ease-out), background 260ms ease, opacity 260ms ease, border-color 260ms ease;
	will-change: transform;
}
.wes-cursor.is-on { opacity: 1; }
.wes-cursor.is-hover { width: 68px; height: 68px; background: rgba(232, 199, 126, 0.16); }
.wes-cursor.is-down { width: 30px; height: 30px; }

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 900px) {
	.wes-planbar { grid-template-columns: 1fr 1fr; }
	.wes-planbar__field:nth-child(2) { border-right: 0; }
	.wes-planbar__field:nth-child(1),
	.wes-planbar__field:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; }
	.wes-planbar__go { grid-column: 1 / -1; margin: 8px 0 0; padding: 18px; }
	.wes-section--paper .wes-dest-panel__col:nth-child(even) { margin-top: 0; margin-bottom: 0; }
}
@media (max-width: 560px) {
	.wes-planbar { grid-template-columns: 1fr; }
	.wes-planbar__field { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; }
	.wes-hero__content { padding-top: 110px; }
	.wes-hero__stats { gap: var(--space-3) var(--space-8); }
	.wes-hero__stat b { font-size: 28px; }
	.wes-section--paper .wes-dest-panel__col::before { font-size: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	.wes-route-trace, .wes-route-trace li::after { transition: none; }
	.wes-section--paper .wes-dest-panel__col::before { animation: none; }
	.wes-cursor { display: none; }
}
