:root {
  --green-900: #16331f;
  --green-800: #1f3d2b;
  --green-700: #285236;
  --gold: #d8a13a;
  --gold-dark: #b9852a;
  --cream: #f6f1e4;
  --cream-dark: #ece4d0;
  --ink: #20281f;
  --muted: #5d6b58;
  --white: #ffffff;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 51, 31, 0.12);
  --bg: #f6f1e4;
  --bg-alt: #ece4d0;
  --bg-rgb: 246, 241, 228;
  --surface: #ffffff;
  --text: #20281f;
  --text-muted: #5d6b58;
  --heading: #1f3d2b;
  --decor: #285236;
  --decor-strong: #1f3d2b;
  --card-border: rgba(22, 51, 31, .06);
}

html[data-theme="dark"] {
  --bg: #121d15;
  --bg-alt: #0d1610;
  --bg-rgb: 18, 29, 21;
  --surface: #1b2a1f;
  --text: #e8e3d2;
  --text-muted: #a4b19b;
  --heading: #e3d5b0;
  --decor: #6f8a72;
  --decor-strong: #7d987f;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --card-border: rgba(216, 161, 58, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; line-height: 1.2; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

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

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 61, 43, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(216, 161, 58, 0.25);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(10, 22, 14, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 46px; width: auto; }
.brand-name {
  text-transform: uppercase;
  font-family: 'Lora', Georgia, serif; font-weight: 700;
  font-size: 1.02rem; color: var(--cream); letter-spacing: .2px;
}
@media (max-width: 430px) { .brand-name { display: none; } }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--cream); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 2px;
  background: var(--gold); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--gold); color: var(--green-900) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--white); }
.theme-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--cream); display: flex; align-items: center; padding: 4px;
  transition: color .2s;
}
.theme-toggle:hover { color: var(--gold); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.btn {
  display: inline-block; font-weight: 600; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; transition: transform .15s, box-shadow .2s, background .2s;
  border: none; font-size: 1rem;
}
.btn-primary { background: var(--gold); color: var(--green-900); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .5s ease; pointer-events: none;
}
.btn-primary:hover { background: #e6b450; transform: translateY(-2px); }
.btn-primary:hover::after { left: 125%; }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }

.hero {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  overflow: hidden; color: var(--cream);
  background:
    linear-gradient(160deg, rgba(20, 37, 26, .82) 0%, rgba(13, 24, 17, .90) 100%),
    url('https://images.unsplash.com/photo-1629494939320-e36ef741dc36?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
}
#gorilla-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: grab; touch-action: pan-y;
}
#gorilla-canvas:active { cursor: grabbing; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg,
    rgba(var(--bg-rgb), 0) 0%,
    rgba(var(--bg-rgb), .02) 12%,
    rgba(var(--bg-rgb), .08) 24%,
    rgba(var(--bg-rgb), .2) 37%,
    rgba(var(--bg-rgb), .39) 50%,
    rgba(var(--bg-rgb), .61) 63%,
    rgba(var(--bg-rgb), .81) 76%,
    rgba(var(--bg-rgb), .95) 89%,
    rgba(var(--bg-rgb), 1) 100%);
  pointer-events: none; z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; pointer-events: none;
  text-align: left;
  padding-top: 56px; padding-bottom: 56px;
}
.hero-content > * { max-width: 640px; }
.hero-content .btn { pointer-events: auto; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
}
.hero-mark {
  height: 54px; width: auto; flex: none;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.42));
}
.hero-kicker {
  text-transform: uppercase;
  font-size: .8rem; font-weight: 600; letter-spacing: .24em;
  color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 900; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.hero-sub { margin: 18px 0 30px; font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; color: #f0ead9; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero-hint {
  position: absolute; right: 24px; bottom: 14px; z-index: 2;
  font-size: .85rem; font-style: italic; color: var(--text-muted);
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero { min-height: 86vh; align-items: flex-end; }
  .hero-content { max-width: none; margin: 0 auto; padding: 56px 22px 70px; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-hint { right: 0; left: 0; text-align: center; }
}

.section { padding: 96px 0; position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }

.tracks-layer, .vehicle-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.vehicle-layer { opacity: .22; }
.track-print {
  position: absolute; width: 28px; height: 28px; color: var(--decor-strong);
  opacity: 0; animation: trackFade 7s ease forwards;
}
.track-print svg { width: 100%; height: 100%; display: block; fill: currentColor; }
@keyframes trackFade {
  0% { opacity: 0; }
  8% { opacity: .32; }
  65% { opacity: .32; }
  100% { opacity: 0; }
}
.track-ground {
  position: absolute; left: 0; right: 0; bottom: 8px; height: 30px;
  color: var(--decor);
}
.vehicle { position: absolute; bottom: 4px; left: 0; width: 58px; color: var(--decor); }
.vehicle-body { display: block; }
.vehicle.rtl .vehicle-body { transform: scaleX(-1); }
.vehicle svg { width: 100%; height: auto; display: block; fill: currentColor; animation: vehicleBob .42s ease-in-out infinite; }
@keyframes vehicleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.3px); }
}
.dust {
  position: absolute; bottom: 21px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--decor); opacity: 0; pointer-events: none;
  animation: dustPuff 1.1s ease-out forwards;
}
@keyframes dustPuff {
  0% { opacity: .7; transform: translate(0, 0) scale(.6); }
  100% { opacity: 0; transform: translate(-7px, -11px) scale(1.9); }
}
.giraffe {
  position: absolute; bottom: 12px; width: 26px; height: 52px;
  color: var(--decor); opacity: 0; pointer-events: none;
  animation: giraffePeek 3.2s ease forwards;
}
.giraffe svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.giraffe.flip svg { transform: scaleX(-1); }
@keyframes giraffePeek {
  0% { opacity: 0; transform: translateY(42px); }
  20% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(42px); }
}
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--heading); margin-bottom: 44px; text-align: center; }
.section h2:has(+ .section-lead) { margin-bottom: 16px; }
.section-lead { max-width: 62ch; margin: 0 auto 44px; text-align: center; color: var(--text-muted); }
.section h2::after {
  content: ""; display: block; width: 75px; height: 6px;
  margin: 16px auto 0;
  background: radial-gradient(circle, var(--gold) 2.4px, transparent 2.9px);
  background-size: 15px 6px;
  background-repeat: repeat-x;
}

.tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.tour-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; border: 1px solid var(--card-border);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(22,51,31,.1), 0 16px 44px rgba(216,161,58,.22); }
.tour-media {
  height: 170px; background: var(--green-700) center/cover no-repeat;
  display: flex; align-items: flex-end;
  transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}
.tour-card:hover .tour-media { transform: scale(1.06); }
.tour-media .tour-duration {
  background: var(--green-900); color: var(--gold); font-size: .8rem; font-weight: 600;
  padding: 5px 12px; margin: 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.tour-duration svg { width: 13px; height: 13px; }
.tour-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tour-body h3 { font-size: 1.25rem; color: var(--heading); margin-bottom: 8px; }
.tour-summary { color: var(--text-muted); font-size: .95rem; flex: 1; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.tour-price { font-weight: 700; color: var(--heading); }
.tour-where { font-size: .88rem; color: var(--text-muted); }
.tour-book {
  background: var(--green-800); color: var(--cream); font-weight: 600; font-size: .9rem;
  padding: 9px 18px; border-radius: 999px; transition: background .2s;
}
.tour-book:hover { background: var(--gold); color: var(--green-900); }
html[data-theme="dark"] .tour-book { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 8px 17px; }
html[data-theme="dark"] .tour-book:hover { background: var(--gold); color: var(--green-900); }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.about h2 { text-align: left; }
.about h2::after { margin-left: 0; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; }
.about-guide { text-align: center; }
.about-guide .guide-photo {
  width: 240px; height: 240px; object-fit: cover;
  border-radius: 50%; margin: 0 auto;
  border: 5px solid var(--gold); box-shadow: var(--shadow);
}
.about-guide figcaption { margin-top: 16px; display: flex; flex-direction: column; }
.guide-name { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--heading); }
.guide-role { font-size: .9rem; color: var(--gold-dark); font-weight: 600; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.why-card {
  background: var(--surface); padding: 28px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(22,51,31,.08), 0 14px 36px rgba(216,161,58,.18); }
.why-icon { display: inline-block; margin-bottom: 12px; color: var(--gold-dark); }
.stay-media { display: block; width: 100%; height: 132px; border-radius: 10px; margin-bottom: 14px; background: var(--green-700) center/cover no-repeat; }
.why-icon svg { width: 27px; height: 27px; display: block; }
.why-card h3 { color: var(--heading); font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: .95rem; }

.contact {
  position: relative; color: var(--cream); text-align: center;
  background: var(--green-800) url('contours.svg') center / 900px auto repeat;
}
/* waterfall background — kept for easy revert:
.contact {
  background:
    linear-gradient(180deg, rgba(11, 20, 14, .86) 0%, rgba(15, 36, 23, .72) 46%, rgba(11, 20, 14, .92) 100%),
    url('murchison.jpg') center / cover no-repeat;
}
*/
.contact > .container { position: relative; z-index: 1; }
.contact h2 { color: var(--cream); }
.contact h2::after { background: var(--gold); }
.contact-inner p { max-width: 540px; margin: 0 auto 28px; color: #e7e0cd; }
.contact-number { margin-top: 22px !important; font-size: .95rem; color: var(--gold) !important; }
html[data-theme="dark"] .contact { background-color: #1b3424; }

.contact-lead {
  margin: 0 0 4px; font-family: 'Lora', Georgia, serif; font-weight: 700; font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: #ecdcb2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.pearl-line {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .28em; line-height: 1.1; margin: 0;
  font-family: 'Lora', Georgia, serif; font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 3rem); color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.section h2.pearl-line::after { content: none; display: none; }
.pearl-stage {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.pearl-word { color: var(--gold); opacity: 1; will-change: opacity; }
#pearl-canvas {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(96px, 15vw, 140px); height: clamp(96px, 15vw, 140px);
  display: none; cursor: grab; touch-action: none;
}
.pearl-stage.pearl-ready #pearl-canvas { display: block; }
#pearl-canvas:active { cursor: grabbing; }
.pearl-author {
  margin: 12px 0 0; font-size: .95rem; font-weight: 600; letter-spacing: .04em;
  color: #e7d9b4; text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.pearl-author::before { content: "— "; }
.contact-inner > p.contact-body { margin-top: 26px; }

.site-footer { background: var(--green-900); color: #b9c4b3; font-size: .9rem; padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-loc { display: inline-flex; align-items: center; gap: 6px; }
.footer-loc svg { width: 14px; height: 14px; color: var(--gold); }
.footer-credit { text-align: center; margin-top: 14px; font-size: .82rem; color: #8a9684; }
.footer-credit .heart { color: #e0584b; }

.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item {
  padding: 0; border: none; background: var(--green-700); cursor: pointer;
  overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item { transition: box-shadow .25s; }
.gallery-item:hover { box-shadow: 0 10px 32px rgba(216,161,58,.28); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 18, 12, .93);
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox-img { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-caption { color: #e7e0cd; font-size: .9rem; margin-top: 12px; }
.lightbox-close {
  position: absolute; top: 14px; right: 22px; background: none; border: none;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .12); border: none; color: #fff;
  font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about h2, .about h2::after { text-align: center; margin-left: auto; margin-right: auto; }
  .footer-inner { justify-content: center; text-align: center; }
}
