/* ============================================================
   Kijani Tented Camp — reusable safari-lodge template
   A quiet, editorial safari aesthetic: warm ivory paper,
   restrained taupe accents, elegant serif type, generous air.
   ============================================================ */

:root {
  --ink: #2b2622;
  --ink-soft: #6c625b;
  --ink-faint: #9b9087;
  --bg: #f7f4ef;
  --paper: #ffffff;
  --sand: #bfa9a6;
  --sand-2: #cabfba;
  --sand-soft: #ece4dd;
  --brown: #625448;
  --line: #e6ded4;
  --line-soft: #efe8df;
  --accent: #bfa9a6;
  --band: #bfa9a6;
  --band-ink: #ffffff;
  --themebar-h: 44px;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;

  --header-h: 84px;
}

* { box-sizing: border-box; }

html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.07rem;          /* ~19px base body copy */
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-style: italic;
  margin: 0 0 0.6em;
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.9); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--solid { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* ============================================================
   Header / navigation  (always-solid sticky bar)
   ============================================================ */
/* sticky wrapper: palette bar + header */
.topwrap { position: sticky; top: 0; z-index: 100; transition: box-shadow .4s ease; }
.topwrap.is-scrolled { box-shadow: 0 10px 30px -22px rgba(43,38,34,.45); }

/* ---- colour palette switcher (demo bar) ---- */
.theme-bar {
  height: var(--themebar-h);
  background: #1c1916;
  color: #e9e2d8;
  font-family: var(--serif);
}
.theme-bar__inner {
  max-width: 1400px; margin-inline: auto; height: 100%;
  padding-inline: 18px;
  display: flex; align-items: center; gap: 18px;
}
.theme-bar__label {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: .7; white-space: nowrap;
}
.theme-bar__list {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1;
}
.theme-bar__list::-webkit-scrollbar { display: none; }
.theme-swatch {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: inherit; cursor: pointer;
  border: 1px solid rgba(233,226,216,.18); border-radius: 26px;
  padding: 5px 12px 5px 6px;
  font: inherit; font-size: .7rem; letter-spacing: .06em; white-space: nowrap;
  transition: border-color .25s ease, background .25s ease;
}
.theme-swatch:hover { border-color: rgba(233,226,216,.5); }
.theme-swatch[aria-pressed="true"] { background: rgba(233,226,216,.12); border-color: #e9e2d8; }
.theme-swatch__dots { display: inline-flex; }
.theme-swatch__dots i {
  width: 14px; height: 14px; border-radius: 100%;
  border: 1px solid rgba(255,255,255,.55); margin-left: -4px;
}
.theme-swatch__dots i:first-child { margin-left: 0; }

/* smooth colour changes when switching */
body, .site-header, .section--paper, .nav__menu, .nav, .site-footer, .amboseli {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease;
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s ease;
}
.site-header .container {
  max-width: 1400px;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav > .btn { display: none; }   /* shown only inside the mobile overlay */

.logo { display: inline-flex; flex-direction: column; line-height: 1; gap: 5px; }
.logo__mark {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.42em;
  padding: 6px 2px 6px 12px;
  border: 1px solid currentColor;
}
.logo__sub {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  opacity: .8;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor; transition: width .3s ease;
}
.nav__link:hover::after, .nav__item.is-active > .nav__link::after { width: 100%; }

.nav__item { position: relative; }
.nav__item.is-active > .nav__toggle { color: var(--accent); }
.nav__toggle {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 0;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav__caret { width: 9px; height: 9px; transition: transform .3s ease; }
.nav__item.open .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 232px; background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(43,38,34,.35);
  padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.nav__item.open .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a {
  display: block; color: var(--ink); font-size: 0.86rem; letter-spacing: 0.06em;
  padding: 11px 16px; transition: background .2s ease, padding-left .2s ease;
}
.nav__menu a:hover { background: var(--sand-soft); padding-left: 22px; }

.header__cta { display: flex; align-items: center; }
.header__cta .btn { padding: 12px 26px; font-size: 0.7rem; }

.burger { display: none; width: 34px; height: 30px; background: none; border: 0; cursor: pointer; padding: 6px 2px; color: inherit; position: relative; z-index: 95; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,24,18,.45) 0%, rgba(30,24,18,.32) 42%, rgba(30,24,18,.62) 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero__inner { max-width: 760px; }
.hero--center .hero__inner { margin-inline: auto; text-align: center; }
.hero__title {
  font-size: clamp(2.45rem, 5.2vw, 3.55rem);
  font-weight: 300;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 26px rgba(0,0,0,.4);
}
.hero__sub {
  font-size: 1.2rem; letter-spacing: 0.08em; margin-top: 0.8em;
  color: rgba(255,255,255,.95); font-style: italic;
  text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.hero__cta { margin-top: 2em; }

.eco-badge {
  position: absolute; right: clamp(16px, 6vw, 90px); bottom: 60px; z-index: 2;
  width: 118px; height: 148px; display: grid; place-items: center; text-align: center;
  color: #4b4030; background: #fff;
  clip-path: polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);
  border: 2px solid #c6a15a; padding: 16px 10px 28px;
}
.eco-badge small { display:block; font-size:.52rem; letter-spacing:.14em; text-transform:uppercase; }
.eco-badge b { font-family: var(--display); font-size: .82rem; letter-spacing: .06em; line-height:1.15; color:#7a6a3a; }

/* ============================================================
   Generic section
   ============================================================ */
.section { padding: clamp(52px, 7vw, 104px) 0; }
.section--tight { padding: clamp(44px, 5.5vw, 72px) 0; }
.section__title {
  font-size: clamp(1.95rem, 3.5vw, 2.5rem);
  color: var(--accent);
  margin-bottom: clamp(30px, 4.5vw, 56px);
}
.section--paper { background: var(--paper); }

/* ---------- Journey: three columns (home) ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 52px); align-items: start; }
.col__media { aspect-ratio: 16/10; margin-bottom: 24px; }
.col__h { font-size: 1.6rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.col__p { font-size: 1.07rem; line-height: 1.74; color: var(--ink-soft); }
.cols__foot { margin-top: clamp(36px, 4.5vw, 56px); }

/* ---------- Amboseli two-tone (home) ---------- */
.amboseli { background: var(--band); color: var(--band-ink); transition: background .45s ease; padding: clamp(52px, 7vw, 96px) 0; }
.amboseli__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.amboseli__text p { font-size: 1.18rem; line-height: 1.78; color: rgba(255,255,255,.95); }
.amboseli__media { aspect-ratio: 4/3; }

/* ---------- Video block ---------- */
.video { position: relative; aspect-ratio: 16/9; max-width: 1100px; margin-inline: auto; overflow: hidden; background: #1c1813; }
.video__bg { position:absolute; inset:0; }
.video__scrim { position:absolute; inset:0; background: rgba(20,16,12,.32); transition: opacity .3s ease; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  background: rgba(20,16,12,.62); border: 1px solid rgba(255,255,255,.4);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .3s ease, background .3s ease, opacity .3s ease;
}
.video__play:hover { transform: scale(1.06); background: rgba(20,16,12,.78); }
.video__play::before {
  content:""; width:0; height:0; margin-left:6px;
  border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video.is-playing .video__play, .video.is-playing .video__scrim { opacity: 0; pointer-events: none; }
.video__bar {
  position: absolute; left:0; right:0; bottom:0; z-index:3;
  display:flex; align-items:center; gap:18px; padding: 14px 20px;
  color:#fff; font-size:.78rem; letter-spacing:.04em;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0));
}
.video__time { font-variant-numeric: tabular-nums; }
.video__track { flex:1; height:3px; background: rgba(255,255,255,.3); position:relative; }
.video__track::before { content:""; position:absolute; left:0; top:0; height:100%; width:3%; background:#fff; }
.video__icons { display:flex; gap:16px; align-items:center; }
.video__icon { cursor:pointer; opacity:.9; background:none; border:0; color:#fff; font-size:1rem; padding:0; line-height:1; }
.video__settings { position: relative; display: inline-flex; }
.video__settings-btn {
  background:none; border:0; color:#fff; cursor:pointer; opacity:.9;
  font-family: var(--serif); font-size:.78rem; letter-spacing:.06em;
  display:inline-flex; align-items:center; gap:6px; padding:0; line-height:1;
}
.video__settings-panel {
  position:absolute; right:0; bottom:30px; z-index:4;
  background: rgba(20,16,12,.94); color:#fff; padding: 6px; min-width: 170px;
  font-size:.8rem; letter-spacing:.03em;
  box-shadow: 0 16px 36px -20px rgba(0,0,0,.6);
}
.video__settings-panel[hidden] { display:none; }
.video__settings-panel .row { display:flex; justify-content:space-between; padding:9px 14px; }
.video__settings-panel .row b { font-weight:400; opacity:.85; }

.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Feature split (lodge) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; margin-bottom: clamp(48px, 6vw, 88px); }
.split:last-child { margin-bottom: 0; }
.split--reverse .split__media { order: 2; }
.split__media { aspect-ratio: 4/3; }
.split__h { font-size: clamp(1.95rem, 3.2vw, 2.5rem); color: var(--accent); margin-bottom: 0.6em; }
.split__text p { color: var(--ink-soft); font-size: 1.18rem; line-height: 1.7; }
.lead {
  max-width: 820px; margin-inline: auto; text-align: center;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem); line-height: 1.36; color: var(--ink);
}

/* ---------- Activity cards (safari) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.card__media { position: relative; aspect-ratio: 5/4; overflow: hidden; display: flex; align-items: flex-end; }
.card__media .ph { position:absolute; inset:0; }
.card__media::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(20,16,12,.62) 0%, rgba(20,16,12,0) 55%); }
.card__label {
  position: relative; z-index: 1; width: 100%; text-align: center; color: #fff;
  font-family: var(--display); font-size: 1.7rem; letter-spacing: .03em;
  padding: 22px 16px; text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.card__p { text-align: center; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.68; padding: 22px 10px 0; }

/* ---------- Fast Facts (all-you-need-to-know) ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 4vw, 60px) clamp(40px, 6vw, 96px); }
.fact { text-align: center; }
.fact__h { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--accent); margin-bottom: .5em; }
.fact__p { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.68; }
.facts__banner { aspect-ratio: 32/9; margin: clamp(36px,4.5vw,64px) 0; }
.facts__banner--tall { aspect-ratio: 24/9; }

/* ---------- Cart ---------- */
.cart { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 100px 0 120px; }
.cart__title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); margin-bottom: .6em; }
.cart__empty { color: var(--ink-soft); margin-bottom: 2em; font-size: 1.15rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--band); color: var(--band-ink); transition: background .45s ease; padding: clamp(48px, 6vw, 80px) 0 40px; }
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
  font-family: var(--display); font-size: 1.2rem; letter-spacing: .02em;
  margin-bottom: clamp(32px, 4vw, 50px);
}
.footer__nav a { position: relative; padding: 0 20px; }
.footer__nav a:not(:last-child)::after { content:"|"; position:absolute; right:-2px; opacity:.5; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 52px); margin-bottom: clamp(26px, 4vw, 38px); }
.badge {
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.92); font-size: .6rem; letter-spacing: .08em; line-height: 1.3;
  width: 106px; height: 70px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px;
  padding: 8px; text-transform: uppercase; font-family: var(--serif);
}
.badge b { font-family: var(--display); font-size: .95rem; letter-spacing: .02em; text-transform: none; }

.footer__contact { text-align: center; font-size: 1.05rem; letter-spacing: .02em; color: rgba(255,255,255,.96); margin-bottom: 20px; }
.footer__contact a { text-decoration: underline; text-underline-offset: 3px; }
.footer__social { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.footer__social a { width: 30px; height: 30px; display: grid; place-items: center; opacity: .9; }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__copy { text-align: center; color: rgba(255,255,255,.92); font-size: .98rem; }
.footer__credit { text-align: center; color: rgba(255,255,255,.72); font-size: .84rem; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); }

/* ============================================================
   Placeholder imagery (gradients instead of brand photos)
   ============================================================ */
.ph { background: var(--sand-soft); position: relative; overflow: hidden; }
.ph::after { content:""; position:absolute; inset:0; background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.2), rgba(255,255,255,0) 55%); }
.ph--sky   { background: linear-gradient(to bottom, #7f9bb4 0%, #aeb6b1 42%, #937351 60%, #5a4433 100%); }
.ph--garden{ background: linear-gradient(160deg, #94a476 0%, #b8a985 58%, #6d5c45 100%); }
.ph--drive { background: linear-gradient(170deg, #b2914f 0%, #8a6334 55%, #432f21 100%); }
.ph--deck  { background: linear-gradient(200deg, #ab8f7f 0%, #8d9377 52%, #574636 100%); }
.ph--mountain { background: linear-gradient(to bottom, #9fb3c3 0%, #cabfab 55%, #93a37a 100%); }
.ph--dusk  { background: linear-gradient(200deg, #a97e76 0%, #7a5a53 55%, #3b2d2a 100%); }
.ph--green { background: linear-gradient(170deg, #93a278 0%, #667447 100%); }
.ph--sunset{ background: linear-gradient(to top, #5f3e32 0%, #b47e4e 45%, #dcab77 75%, #b9bebc 100%); }
.ph--pool  { background: linear-gradient(165deg, #7faaa4 0%, #93a276 55%, #627049 100%); }
.ph--maasai{ background: linear-gradient(160deg, #a53832 0%, #7a3332 50%, #3a1a19 100%); }
.ph--balloon { background: linear-gradient(to bottom, #9db0bf 0%, #c6bca8 55%, #816c53 100%); }
.ph--spa   { background: linear-gradient(165deg, #aab793 0%, #8a7c61 60%, #514636 100%); }
.ph--interior { background: linear-gradient(160deg, #b89764 0%, #815f41 55%, #3f2e20 100%); }
.ph--dining { background: linear-gradient(165deg, #b98c61 0%, #7c523a 100%); }
.ph--fire  { background: linear-gradient(200deg, #bb9158 0%, #99522f 45%, #3f251b 100%); }

/* ============================================================
   Responsive  (original switches at 768px)
   ============================================================ */
/* nav collapses to a burger menu below 900px so the bar never overflows */
@media (max-width: 899px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed; inset: 0; background: var(--paper); color: var(--ink);
    flex-direction: column; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + var(--themebar-h) + 24px) var(--pad) 40px;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; z-index: 90;
  }
  .nav-open .nav { display: flex; transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; font-size: 1rem; letter-spacing: .14em; padding: 20px 0; }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__item.open .nav__menu { max-height: 360px; transform: none; }
  .nav__menu a { padding: 12px 16px; background: var(--sand-soft); margin-bottom: 4px; }
  .nav > .btn { display: inline-block; margin-top: 28px; text-align: center; }
}

/* tablet: two activity cards per row */
@media (min-width: 768px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* phone layout: stack everything (matches the original's 768px breakpoint) */
@media (max-width: 767px) {
  :root { --header-h: 72px; --themebar-h: 42px; }
  body { font-size: 1.1rem; }
  .theme-bar__label { display: none; }
  .hero__title { font-size: 2.67rem; }   /* 48px, as the original on phones */
  .lead { font-size: 1.95rem; }          /* 35px */
  .theme-bar__inner { padding-inline: 12px; }

  .cols3, .amboseli__grid, .split, .cards, .facts { grid-template-columns: 1fr; }
  .split__media, .split--reverse .split__media { order: 0; }
  .amboseli__grid { gap: 30px; }
  .eco-badge { width: 90px; height: 114px; bottom: 36px; }
  .footer__nav { font-size: 1.05rem; }
  .footer__nav a { padding: 0 12px; }
}
