/* ============================================================
   SWB Nav — swb-nav.css
   Desktop: centred logo, transparent on hero pages
   Mobile:  fixed bar + slide-in drawer with accordion
   Breakpoint: 960px
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ── CSS tokens ───────────────────────────────────────────── */
:root {
	--swb-nav-h:        72px;
	--swb-nav-bg:       #fff;
	--swb-nav-bg-trans: transparent;
	--swb-mega-bg:      #fff;
	--swb-sand:         #E8DDD0;
	--swb-warm:         #ded4c8;
	--swb-charcoal:     #2C2825;
	--swb-maroon:       #800000;
	--swb-red:          #800000;
	--swb-forest:       #3D6B4F;
	--swb-font:         'Aspekta', sans-serif;
}

/* ════════════════════════════════════════════════════════════
   DESKTOP NAV   hidden ≤ 960px
   ════════════════════════════════════════════════════════ */
.swbm-bar,
.swbm-drawer,
.swbm-backdrop {
	display: none;
}

.swb-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	height: var(--swb-nav-h);
	background: var(--swb-nav-bg);
	border-bottom: 1px solid rgba(128,0,0,0.16);
	transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Transparent on hero pages before scroll */
.swb-hero-page .swb-nav {
	background: var(--swb-nav-bg-trans);
	border-bottom-color: transparent;
}

/* Solidified state (JS adds this class on scroll) */
.swb-nav--solid,
.swb-hero-page .swb-nav--solid {
	background: var(--swb-nav-bg);
	border-bottom-color: rgba(128,0,0,0.16);
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.swb-nav__bar {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 40px;
	height: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

/* ── Nav groups ───────────────────────────────────────────── */
.swb-nav__group {
	display: flex;
	align-items: center;
	gap: 0;
}

.swb-nav__group--center {
	justify-content: center;
}

.swb-nav__group--right {
	justify-content: flex-end;
	gap: 0;
}

/* ── Nav links + buttons ──────────────────────────────────── */
.swb-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 16px;
	height: var(--swb-nav-h);
	font-family: var(--swb-font);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--swb-charcoal);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
	position: relative;
}

/* White text on transparent hero */
.swb-hero-page .swb-nav:not(.swb-nav--solid) .swb-nav__link {
	color: rgba(255,255,255,0.9);
}

.swb-nav__link:hover,
.swb-nav__link[aria-expanded="true"] {
	color: var(--swb-maroon);
}

.swb-nav__chevron {
	width: 9px;
	height: 9px;
	flex-shrink: 0;
	transition: transform 0.2s;
}

.swb-nav__link[aria-expanded="true"] .swb-nav__chevron {
	transform: rotate(180deg);
}

/* ── CTA button ───────────────────────────────────────────── */
.swb-nav__cta {
	margin-left: 12px;
	display: inline-flex;
	align-items: center;
	font-family: var(--swb-font);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--swb-maroon);
	border: none;
	border-radius: 100px;
	padding: 10px 22px;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.2s;
}
.swb-nav__cta:hover { background: #600000; }

/* On transparent nav the CTA gets an outline style */
.swb-hero-page .swb-nav:not(.swb-nav--solid) .swb-nav__cta {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.6);
	color: #fff;
}
.swb-hero-page .swb-nav:not(.swb-nav--solid) .swb-nav__cta:hover {
	background: rgba(255,255,255,0.12);
	border-color: #fff;
}

/* ── Logo ─────────────────────────────────────────────────── */
.swb-nav__logo {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	text-decoration: none;
	position: relative;
	z-index: 501;                    /* sit above the nav bar */
}

.swb-nav__logo-img {
	height: 64px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	display: block;
}

/* Solid (red) logo is the default; swap to the light/transparent
   version only while a hero page's nav hasn't scrolled solid yet. */
.swb-nav__logo-img--transparent { display: none; }

.swb-hero-page .swb-nav:not(.swb-nav--solid) .swb-nav__logo-img--solid { display: none; }
.swb-hero-page .swb-nav:not(.swb-nav--solid) .swb-nav__logo-img--transparent { display: block; }

.swb-nav__logo-word {
	font-family: var(--swb-font);
	font-size: 16px;
	font-weight: 400;
	color: var(--swb-charcoal);
	letter-spacing: 0.05em;
}

.swb-hero-page .swb-nav:not(.swb-nav--solid) .swb-nav__logo-word {
	color: #fff;
}

/* ── Backdrop ─────────────────────────────────────────────── */
.swb-nav__backdrop {
	display: none;
	position: fixed;
	inset: var(--swb-nav-h) 0 0 0;
	background: rgba(0,0,0,0.28);
	z-index: 499;
}
.swb-nav__backdrop--visible { display: block; }

/* ════════════════════════════════════════════════════════════
   MEGA MENUS
   ════════════════════════════════════════════════════════ */
.swb-mega {
	display: none;
	position: fixed;
	top: var(--swb-nav-h);
	left: 0;
	right: 0;
	z-index: 500;
	background: var(--swb-mega-bg);
	border-top: 1px solid rgba(44,40,37,0.08);
	box-shadow: 0 16px 48px rgba(0,0,0,0.12);
	animation: swbMegaIn 0.22s ease both;
}

.swb-mega--open { display: block; }

@keyframes swbMegaIn {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

.swb-mega__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 40px 32px;
}

.swb-mega__eyebrow {
	font-family: var(--swb-font);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--swb-maroon);
	margin: 0 0 24px 0;
}

/* Mega footer */
.swb-mega__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(44,40,37,0.08);
}

.swb-mega__foot-note {
	font-family: var(--swb-font);
	font-size: 12px;
	color: #999;
	font-style: italic;
}

.swb-mega__foot-cta {
	font-family: var(--swb-font);
	font-size: 13px;
	color: var(--swb-maroon);
	text-decoration: none;
	transition: opacity 0.2s;
}
.swb-mega__foot-cta:hover { opacity: 0.7; }

/* ── Text card grid (Safari Types, About Us) ──────────────── */
.swb-txt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}

.swb-txt-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

/* Safari Types has 6 items — 3×2 */
#swb-mega-types .swb-txt-grid {
	grid-template-columns: repeat(3, 1fr);
}

/* About Us has 4 items — 2×2 */
#swb-mega-about .swb-txt-grid {
	grid-template-columns: repeat(2, 1fr);
}

.swb-txt-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.15s;
}
.swb-txt-card:hover { background: #f9f7f5; }

.swb-txt-card__icon {
	display: flex;
	align-items: center;
	width: 28px;
	height: 28px;
	color: var(--swb-forest);
	flex-shrink: 0;
}
.swb-txt-card__icon svg { width: 24px; height: 24px; }

.swb-txt-card__title {
	font-family: var(--swb-font);
	font-size: 15px;
	font-weight: 400;
	color: var(--swb-charcoal);
	line-height: 1.3;
}

.swb-txt-card__desc {
	font-family: var(--swb-font);
	font-size: 13px;
	color: #777;
	line-height: 1.55;
}

/* ── Image card grid (Destinations, Accommodations) ──────── */
.swb-img-grid {
	display: grid;
	gap: 16px;
}

.swb-img-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.swb-img-card {
	position: relative;
	height: 220px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
}

.swb-img-card:hover .swb-img-card__bg {
	transform: scale(1.04);
}

.swb-img-card__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
	/* Placeholder colours until real images are set */
}

.swb-img-card__bg--kenya    { background-color: #5c7a4e; }
.swb-img-card__bg--tanzania { background-color: #8b6914; }
.swb-img-card__bg--uganda   { background-color: #3d6b4f; }

.swb-img-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.65) 100%);
}

.swb-img-card__body {
	position: relative;
	z-index: 2;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.swb-img-card__title {
	font-family: var(--swb-font);
	font-size: 20px;
	font-weight: 400;
	color: #fff;
	line-height: 1.2;
}

.swb-img-card__sub {
	font-family: var(--swb-font);
	font-size: 12px;
	color: rgba(255,255,255,0.82);
	line-height: 1.5;
}

/* ── Destinations mega — 2 column: list + preview ─────────── */
.swb-mega--dest .swb-mega__inner {
	min-height: 420px;
}

.swb-dest-columns {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
}

.swb-dest-list {
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(44,40,37,0.08);
	padding-right: 8px;
}

.swb-dest-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 16px;
	text-decoration: none;
	border-radius: 4px;
	border-left: 2px solid transparent;
	transition: background 0.15s, border-color 0.15s;
}

.swb-dest-item__name {
	font-family: var(--swb-font);
	font-size: 17px;
	font-weight: 400;
	color: var(--swb-charcoal);
}

.swb-dest-item__arrow {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	color: var(--swb-maroon);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s, transform 0.15s;
}

.swb-dest-item:hover,
.swb-dest-item:focus-visible,
.swb-dest-item--active {
	background: #f9f7f5;
	border-left-color: var(--swb-maroon);
}
.swb-dest-item:hover .swb-dest-item__arrow,
.swb-dest-item:focus-visible .swb-dest-item__arrow,
.swb-dest-item--active .swb-dest-item__arrow {
	opacity: 1;
	transform: translateX(0);
}
.swb-dest-item:hover .swb-dest-item__name,
.swb-dest-item:focus-visible .swb-dest-item__name,
.swb-dest-item--active .swb-dest-item__name {
	color: var(--swb-maroon);
}

.swb-dest-preview { position: relative; }

.swb-dest-panel {
	display: none;
}
.swb-dest-panel--active {
	display: block;
}

.swb-dest-safaris {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.swb-dest-safari-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
}

.swb-dest-safari-card__img {
	height: 140px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--swb-sand);
}
.swb-dest-safari-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.swb-dest-safari-card:hover .swb-dest-safari-card__img img {
	transform: scale(1.05);
}

.swb-dest-safari-card__title {
	font-family: var(--swb-font);
	font-size: 14px;
	font-weight: 400;
	color: var(--swb-charcoal);
	line-height: 1.4;
}
.swb-dest-safari-card:hover .swb-dest-safari-card__title {
	color: var(--swb-maroon);
}

.swb-dest-empty {
	font-family: var(--swb-font);
	font-size: 14px;
	color: #999;
	font-style: italic;
	padding: 40px 0;
}

/* ════════════════════════════════════════════════════════════
   MOBILE NAV   visible ≤ 960px
   ════════════════════════════════════════════════════════ */
@media (max-width: 960px) {

	.swb-nav,
	.swb-mega,
	.swb-nav__backdrop { display: none !important; }

	/* ── Mobile bar ──────────────────────────────────────── */
	.swbm-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 500;
		height: 60px;
		padding: 0 20px;
		background: #fff;
		border-bottom: 1px solid rgba(44,40,37,0.1);
		transition: background 0.3s, border-color 0.3s;
	}

	.swb-hero-page .swbm-bar {
		background: transparent;
		border-bottom-color: transparent;
	}

	.swb-hero-page .swbm-bar--solid,
	.swbm-bar--solid {
		background: #fff;
		border-bottom-color: rgba(44,40,37,0.1);
	}

	.swbm-logo {
		display: flex;
		align-items: center;
	}

	.swbm-logo__img {
		height: 44px;
		width: auto;
		max-width: 150px;
		object-fit: contain;
		display: block;
	}

	.swbm-logo__img--transparent { display: none; }

	.swb-hero-page .swbm-bar:not(.swbm-bar--solid) .swbm-logo__img--solid { display: none; }
	.swb-hero-page .swbm-bar:not(.swbm-bar--solid) .swbm-logo__img--transparent { display: block; }

	.swbm-logo__word {
		font-family: var(--swb-font);
		font-size: 15px;
		color: var(--swb-charcoal);
	}

	/* ── Burger ──────────────────────────────────────────── */
	.swbm-burger {
		display: flex;
		flex-direction: column;
		gap: 5px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 6px;
	}

	.swbm-burger span {
		display: block;
		width: 22px;
		height: 1.5px;
		background: var(--swb-charcoal);
		transition: background 0.2s;
	}

	.swb-hero-page .swbm-bar:not(.swbm-bar--solid) .swbm-burger span {
		background: #fff;
	}

	/* ── Drawer ──────────────────────────────────────────── */
	.swbm-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(380px, 100vw);
		z-index: 600;
		background: #fff;
		transform: translateX(100%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
		overflow-y: auto;
	}

	.swbm-drawer--open {
		transform: translateX(0);
	}

	.swbm-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		border-bottom: 1px solid rgba(44,40,37,0.08);
		flex-shrink: 0;
	}

	.swbm-drawer__logo img { height: 36px; width: auto; }

	.swbm-drawer__close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: #f5f2ef;
		border: none;
		cursor: pointer;
		color: var(--swb-charcoal);
	}
	.swbm-drawer__close svg { width: 18px; height: 18px; }

	/* ── Drawer nav ──────────────────────────────────────── */
	.swbm-nav {
		flex: 1;
		padding: 8px 0;
	}

	.swbm-section { border-bottom: 1px solid rgba(44,40,37,0.06); }

	.swbm-section__trigger {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		font-family: var(--swb-font);
		font-size: 15px;
		font-weight: 400;
		color: var(--swb-charcoal);
		background: none;
		border: none;
		cursor: pointer;
		text-decoration: none;
		text-align: left;
		transition: color 0.2s;
	}

	.swbm-section__trigger--plain {
		justify-content: flex-start;
	}

	.swbm-section__trigger:hover { color: var(--swb-maroon); }

	.swbm-section__chevron {
		width: 10px;
		height: 10px;
		flex-shrink: 0;
		transition: transform 0.2s;
	}

	.swbm-section__trigger[aria-expanded="true"] .swbm-section__chevron {
		transform: rotate(180deg);
	}

	.swbm-section__body {
		padding: 0 20px 12px 20px;
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.swbm-link {
		display: block;
		padding: 10px 0 10px 12px;
		font-family: var(--swb-font);
		font-size: 14px;
		color: #555;
		text-decoration: none;
		border-left: 2px solid transparent;
		transition: color 0.2s, border-color 0.2s;
	}

	.swbm-link:hover {
		color: var(--swb-maroon);
		border-left-color: var(--swb-maroon);
	}

	/* ── Drawer footer ───────────────────────────────────── */
	.swbm-drawer__foot {
		padding: 20px;
		border-top: 1px solid rgba(44,40,37,0.08);
		flex-shrink: 0;
	}

	/* ── Mobile backdrop ─────────────────────────────────── */
	.swbm-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.4);
		z-index: 590;
	}
	.swbm-backdrop--visible { display: block; }

	/* ── Body scroll lock ────────────────────────────────── */
	body.swbm-open { overflow: hidden; }

}
