/* ============================================================
   BEHO BEHO — Shared Stylesheet
   All pages inherit from this file.
   Fonts: Cormorant Garamond (headings), Jost (body), BudHand (logo only)
   ============================================================ */

/* ---------- Custom font: BudHand (logo fallback) ---------- */
@font-face {
  font-family: "BudHand";
  src: url("../fonts/BUDHAND2.TTF") format("truetype");
  font-weight: normal;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Design tokens ---------- */
:root {
  --sand:   #c9b99a;
  --earth:  #8b6f47;
  --deep:   #1c1410;   /* near-black base */
  --dusk:   #3d2b1f;
  --bone:   #f2ede6;   /* warm off-white sections */
  --ivory:  #faf8f4;   /* page background */
  --accent: #a67c52;   /* warm copper */
  --gold:   #d4a855;   /* highlight / CTA */
  --forest: #2c3b2a;   /* dark-green sections */
  --sky:    #7ba7bc;   /* river / water hints */
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Jost", sans-serif;
  background: var(--ivory);
  color: var(--deep);
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  transition: all 0.5s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(28, 20, 16, 0.96);
  padding: 16px 56px;
  backdrop-filter: blur(8px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Hide text fallback when image loads successfully */
.nav-logo-img ~ .nav-logo-text { display: none; }
.nav-logo-text {
  font-family: "BudHand", "Brush Script MT", cursive;
  font-size: 32px;
  font-weight: normal;
  color: white;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Enquire button (desktop) */
.nav-book {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 10px 24px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.nav-book:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}

/* Hamburger icon (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 16, 0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.nav-mobile-menu a:hover { color: var(--gold); }
.nav-mobile-menu .nav-book-mobile {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 12px 36px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s;
}
.nav-mobile-menu .nav-book-mobile:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}

/* ============================================================
   HERO (full-bleed, used on homepage and inner pages)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Inner pages use a shorter hero */
.hero--inner {
  height: 55vh;
  min-height: 420px;
}

/* Background image layer — swap src via hero-bg style attribute per page */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(28,20,16,0.5) 0%, rgba(28,20,16,0.2) 30%, rgba(28,20,16,0.7) 100%),
    linear-gradient(to right, rgba(28,20,16,0.75) 0%, transparent 60%);
}

/* Full-screen video background (homepage hero) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Explicit dark overlay for video hero (matches inner-page ::after gradient) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(28,20,16,0.5) 0%, rgba(28,20,16,0.2) 30%, rgba(28,20,16,0.7) 100%),
    linear-gradient(to right, rgba(28,20,16,0.75) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  color: white;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero--inner .hero-title {
  font-size: clamp(38px, 5vw, 68px);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 48px;
  font-weight: 300;
}

/* CTA buttons inside hero */
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  position: relative;
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollDrip 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hero-scroll span { animation: scrollFade 2s ease-in-out infinite; }

@keyframes scrollDrip {
  0%   { top: -60%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 120%; opacity: 0; }
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%       { opacity: 0.9; transform: translateY(3px); }
}

/* ============================================================
   BUTTONS (reusable across all pages)
   ============================================================ */
.btn-primary {
  background: var(--gold);
  color: var(--deep);
  border: none;
  padding: 16px 40px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: white; }

.btn-ghost {
  background: transparent;
  color: white;
  border: none;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  transition: gap 0.3s, color 0.3s;
  text-decoration: none;
}
.btn-ghost:hover { gap: 14px; color: var(--gold); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 16px 40px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline--dark {
  border-color: rgba(28, 20, 16, 0.4);
  color: var(--deep);
}
.btn-outline--dark:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   STAT STRIP (below homepage hero)
   ============================================================ */
.intro-strip {
  background: var(--deep);
  padding: 32px 80px;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
}
.strip-stat {
  text-align: center;
  flex: 1;
  max-width: 180px;
}
.strip-stat .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  display: block;
}
.strip-stat .label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}
.strip-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
section { padding: 120px 80px; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
  display: block;
}
/* Gold variant used on dark backgrounds */
.section-eyebrow--gold,
.accommodations .section-eyebrow,
.location .section-eyebrow,
.booking-cta .section-eyebrow {
  color: var(--gold);
}
.section-eyebrow--gold::before,
.accommodations .section-eyebrow::before,
.location .section-eyebrow::before { background: var(--gold); }
.booking-cta .section-eyebrow::before { display: none; }

/* ============================================================
   ABOUT / INTRO SPLIT (2-col image + text)
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  background: var(--ivory);
}
.about-text h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--deep);
  margin-bottom: 28px;
}
.about-text h2 em { font-style: italic; color: var(--accent); }
.about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #5a4a3a;
  margin-bottom: 20px;
  font-weight: 300;
  text-align: justify;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
/* Decorative border offset behind image */
.about-img-accent {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 60%;
  aspect-ratio: 1;
  border: 2px solid var(--gold);
  z-index: -1;
}
.about-quote {
  margin-top: 36px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}
.about-quote p {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-style: italic;
  color: var(--deep);
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================================
   ACCOMMODATION CARDS (dark section)
   ============================================================ */
.accommodations {
  background: var(--deep);
  padding: 120px 80px;
}
.acc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}
.acc-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: white;
  line-height: 1.1;
}
.acc-header h2 em { font-style: italic; color: var(--gold); }

/* Grid of 3 image cards */
.acc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.acc-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.acc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.acc-card:hover img { transform: scale(1.06); }
.acc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,20,16,0.9) 0%, rgba(28,20,16,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: all 0.4s;
}
.acc-card:hover .acc-card-overlay {
  background: linear-gradient(to top, rgba(28,20,16,0.95) 0%, rgba(28,20,16,0.3) 60%);
}
.acc-tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.acc-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 300;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}
.acc-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-card:hover .acc-desc { max-height: 80px; }
.acc-arrow {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s;
}
.acc-card:hover .acc-arrow { opacity: 1; transform: translateY(0); }

/* ============================================================
   SAFARI SECTION (bone background, 2-col image+content)
   ============================================================ */
.safari {
  background: var(--bone);
  padding: 120px 80px;
}
.safari-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}
.safari-img-wrap { position: relative; }
.safari-img-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
/* Inset image overlay */
.safari-img-inset {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 4px solid var(--bone);
}
.safari-content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--deep);
  margin-bottom: 28px;
}
.safari-content h2 em { font-style: italic; color: var(--accent); }
.safari-content > p {
  font-size: 14px;
  color: #5a4a3a;
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 0;
}
.safari-features {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.safari-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 16px;
}
.feature-text h4 {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 13px;
  color: #6b5a4a;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   LOCATION / GETTING HERE (forest green section)
   ============================================================ */
.location {
  background: var(--forest);
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
}
/* Decorative concentric circles (top-right) */
.location::before,
.location::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.location::before {
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border: 1px solid rgba(212, 168, 85, 0.15);
}
.location::after {
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border: 1px solid rgba(212, 168, 85, 0.08);
}
.location-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.location h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
}
.location h2 em { font-style: italic; color: var(--gold); }
.location p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 16px;
}
.location-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.loc-fact { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 16px; }
.loc-fact .val {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--gold);
  display: block;
}
.loc-fact .lbl {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}
/* Tanzania SVG map container */
.map-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 168, 85, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--ivory);
  padding: 120px 80px;
  text-align: center;
}
.testimonials h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 64px;
  line-height: 1.1;
}
.testimonials h2 em { font-style: italic; color: var(--accent); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}
.testi-card {
  padding: 40px;
  border: 1px solid #e0d5c8;
  position: relative;
}
/* Opening quote mark decoration */
.testi-card::before {
  content: '"';
  font-family: "Cormorant Garamond", serif;
  font-size: 80px;
  font-weight: 300;
  color: var(--gold);
  position: absolute;
  top: 16px;
  left: 32px;
  line-height: 1;
  opacity: 0.4;
}
.testi-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--deep);
  margin-bottom: 24px;
  padding-top: 20px;
  font-weight: 400;
}
.testi-author { display: flex; flex-direction: column; gap: 2px; }
.testi-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep);
}
.testi-source { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.stars { color: var(--gold); font-size: 12px; margin-bottom: 16px; letter-spacing: 3px; }

/* ============================================================
   BOOKING CTA (full-bleed image with overlay)
   Image is set via inline style on the element per page.
   ============================================================ */
.booking-cta {
  position: relative;
  padding: 140px 80px;
  overflow: hidden;
  text-align: center;
}
.booking-cta .section-eyebrow { justify-content: center; }
.booking-cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  color: white;
  margin-bottom: 20px;
  line-height: 1.05;
}
.booking-cta h2 em { font-style: italic; color: var(--gold); }
.booking-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.8;
  font-weight: 300;
}
.booking-cta-btns { display: flex; gap: 20px; justify-content: center; }

/* ============================================================
   PAGE CONTENT SECTIONS (inner pages)
   ============================================================ */

/* Standard rich-text content block */
.content-block {
  max-width: 760px;
  margin: 0 auto;
}
.content-block h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--deep);
  margin-bottom: 24px;
}
.content-block h2 em { font-style: italic; color: var(--accent); }
.content-block h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--deep);
  margin: 40px 0 16px;
}
.content-block p {
  font-size: 15px;
  line-height: 1.95;
  color: #5a4a3a;
  margin-bottom: 20px;
  font-weight: 300;
}
.content-block ul {
  margin: 0 0 20px 20px;
}
.content-block ul li {
  font-size: 15px;
  line-height: 1.9;
  color: #5a4a3a;
  font-weight: 300;
  margin-bottom: 8px;
}

/* Two-column layout for inner page sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-section--reverse { direction: rtl; }
.split-section--reverse > * { direction: ltr; }

/* Full-width image within a section */
.full-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Gallery grid for wildlife / photo pages */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-grid img:hover { transform: scale(1.04); }

/* ── Fact Sheet card layout ──────────────────────────────────── */
.fact-cards { margin-top: 56px; }

.fact-group { margin-bottom: 60px; }
.fact-group:last-child { margin-bottom: 0; }

.fact-group-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--earth);
  padding-bottom: 14px;
  border-bottom: 1px solid #e0d5c8;
}

.fact-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #ede7de;
  align-items: baseline;
}
.fact-item:last-child { border-bottom: none; }

.fact-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.7;
  padding-top: 2px;
}

.fact-body {
  font-size: 15px;
  line-height: 1.9;
  color: #5a4a3a;
  font-weight: 300;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.fact-body strong { font-weight: 500; color: var(--deep); }
.fact-body em { font-style: italic; }
.fact-body a { color: var(--accent); text-decoration: none; }
.fact-body a:hover { text-decoration: underline; }

/* Team/host card grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 64px;
}
.team-card { text-align: center; }
.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 20px;
  display: block;
}
.team-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 6px;
}
.team-card .role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.team-card p {
  font-size: 15px;
  color: #5a4a3a;
  line-height: 1.95;
  font-weight: 300;
  text-align: justify;
}

/* Plan Your Safari widget (placeholder, connects to n8n AI agent later) */
.safari-planner {
  background: var(--bone);
  border: 1px solid #d4c8b8;
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.safari-planner h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 12px;
}
.safari-planner p {
  font-size: 14px;
  color: #6b5a4a;
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  background: rgba(28, 20, 16, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s, color 0.3s;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { background: var(--gold); color: var(--deep); }
.scroll-top svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   SCROLL-REVEAL ANIMATION
   Elements with class "reveal" animate in when scrolled into view.
   JS (main.js) drives the .visible class via IntersectionObserver.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* On mobile, reduce the translate distance and delays so animations
   feel snappier on short, fast-scrolling screens */
@media (max-width: 768px) {
  .reveal { transform: translateY(18px); transition-duration: 0.6s; }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.16s; }
  .reveal-delay-3 { transition-delay: 0.24s; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--deep);
  padding: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 16px; }
.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.social-icon:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
  letter-spacing: 0.03em;
}
.footer-col ul li a:hover { color: white; }
.footer-contact p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  font-weight: 300;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  section { padding: 80px 40px; }
  .accommodations, .safari, .testimonials { padding: 80px 40px; }
  .location { padding: 80px 40px; }
  .booking-cta { padding: 100px 40px; }
  footer { padding: 60px 40px; }
  .intro-strip { padding: 28px 40px; gap: 32px; }
  .about { gap: 60px; }
  .safari-grid { gap: 48px; }
  .acc-cards { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav: hide desktop links, show hamburger */
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links, .nav-book { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding-bottom: 60px; min-height: 600px; }
  .hero--inner { height: 45vh; min-height: 320px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-scroll { right: 24px; bottom: 24px; }

  /* Stat strip */
  .intro-strip { padding: 28px 24px; flex-wrap: wrap; gap: 24px; justify-content: flex-start; }
  .strip-stat { flex: 0 0 calc(50% - 12px); max-width: none; }
  .strip-stat .label { font-size: 11px; }
  .strip-divider { display: none; }

  /* Sections */
  section { padding: 60px 24px; }
  .section-eyebrow { font-size: 11px; }
  .accommodations, .safari, .testimonials { padding: 60px 24px; }
  .location { padding: 60px 24px; }
  .booking-cta { padding: 80px 24px; }
  footer { padding: 60px 24px; }

  /* About */
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-text p { font-size: 16px; }
  .about-quote p { font-size: 19px; }
  .about-img-accent { display: none; }

  /* Accommodation cards — always readable on mobile (no hover dependency) */
  .acc-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .acc-cards { grid-template-columns: 1fr; }
  .acc-card { aspect-ratio: 16/9; }
  /* Darken the overlay across the full card so text sits on solid contrast */
  .acc-card .acc-card-overlay {
    background: linear-gradient(
      to top,
      rgba(28, 20, 16, 0.97) 0%,
      rgba(28, 20, 16, 0.65) 55%,
      rgba(28, 20, 16, 0.25) 100%
    );
  }
  .acc-tag { font-size: 10px; }
  .acc-name { font-size: 22px; margin-bottom: 10px; }
  /* Always show description and arrow — no hover required on touch screens */
  .acc-desc { max-height: none; font-size: 14px; line-height: 1.65; }
  .acc-arrow { opacity: 1; transform: translateY(0); margin-top: 12px; }

  /* Safari */
  .safari-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .safari-img-inset { display: none; }
  .safari-img-main { aspect-ratio: 16/9; }
  .safari-content p { font-size: 15px; }
  .feature-text p { font-size: 14px; }

  /* Location */
  .location-inner { grid-template-columns: 1fr; gap: 48px; }
  .location p { font-size: 15px; }
  .location-facts { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; gap: 24px; }
  .testi-text { font-size: 18px; }

  /* Booking CTA */
  .booking-cta-btns { flex-direction: column; align-items: center; gap: 16px; }
  .booking-cta p { font-size: 16px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: 14px; max-width: 380px; }
  .footer-col ul li a { font-size: 14px; }
  .footer-col.footer-contact { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; }
  .footer-contact p { font-size: 14px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer-bottom p { font-size: 12px; }
  .scroll-top { bottom: 24px; right: 20px; }

  /* Inner page sections */
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-section--reverse { direction: ltr; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .safari-planner { padding: 32px 24px; }

  /* Fact sheet — stack label above body on mobile */
  .fact-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 22px 0;
  }
  .fact-body {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    font-size: 14px;
  }

  /* Justify body text in content blocks for clean edges on mobile */
  .content-block p,
  .content-block li,
  .about-text p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .intro-strip { flex-direction: column; align-items: center; }
  .strip-stat { flex: 0 0 auto; width: 100%; }
  .hero-content { padding: 0 20px; }
  .location-facts { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  /* Footer: keep 2-col grid — brand + reservations span both, nav cols sit side by side */
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand,
  .footer-col.footer-contact { grid-column: 1 / -1; }

  /* Acc cards: taller crop on very small screens so text has room */
  .acc-card { aspect-ratio: 3/2; }
}
