/* Makambi Safaris — base stylesheet */
:root {
  --sand: #f6f1e7;
  --sand-dark: #e9dfcb;
  --earth: #8a4b2a;
  --earth-dark: #6a3519;
  --savanna: #c98a2b;
  --acacia: #2f4a3a;
  --acacia-dark: #1f3327;
  --ink: #1d1d1b;
  --muted: #5f5b53;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 29, 27, 0.08);
  --max: 1200px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.5rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--earth);
  margin-bottom: 0.6rem;
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn-primary { background: var(--earth); color: var(--white); }
.btn-primary:hover { background: var(--earth-dark); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--acacia); color: var(--white); }
.btn-dark:hover { background: var(--acacia-dark); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled, .site-header.solid { background: var(--white); box-shadow: var(--shadow); }
.site-header.scrolled .nav a, .site-header.solid .nav a,
.site-header.scrolled .logo, .site-header.solid .logo { color: var(--ink); }
.site-header.scrolled .menu-toggle span, .site-header.solid .menu-toggle span { background: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.logo span { color: var(--savanna); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav > a, .nav .dropdown > a { color: var(--white); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--savanna) !important; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: -16px; min-width: 230px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 8px 20px; color: var(--ink) !important; font-size: 0.92rem; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; color: var(--white);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
    var(--hero-img, linear-gradient(135deg, #6a3519 0%, #c98a2b 45%, #2f4a3a 100%));
  background-size: cover; background-position: center;
  padding-top: 76px;
}
.hero.small { min-height: 60vh; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 800px; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.2rem; max-width: 620px; margin-bottom: 2rem; opacity: 0.95; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tabs { display: inline-flex; background: rgba(255,255,255,0.15); border-radius: 999px; padding: 5px; margin-bottom: 1.5rem; backdrop-filter: blur(6px); }
.hero-tabs button {
  background: none; border: 0; color: var(--white); padding: 10px 22px; border-radius: 999px;
  font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.95rem;
}
.hero-tabs button.active { background: var(--white); color: var(--ink); }
.hero-panel { display: none; }
.hero-panel.active { display: block; }

/* Category cards */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -120px; position: relative; z-index: 2; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  color: var(--white); display: flex; align-items: flex-end; padding: 28px; box-shadow: var(--shadow);
  background: var(--card-img, var(--acacia)); background-size: cover; background-position: center;
}
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7)); }
.cat-card > * { position: relative; }
.cat-card h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.cat-card p { opacity: 0.9; font-size: 0.95rem; }
.cat-card:hover { transform: translateY(-4px); transition: transform 0.2s; }

/* Why us */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature .icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Tours */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  border: 1.5px solid var(--sand-dark); background: var(--white); padding: 9px 20px; border-radius: 999px;
  cursor: pointer; font-family: inherit; font-weight: 500; font-size: 0.92rem;
}
.filters button.active { background: var(--acacia); color: var(--white); border-color: var(--acacia); }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tour-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tour-card .thumb { height: 200px; background: var(--thumb, linear-gradient(135deg, var(--savanna), var(--earth))); background-size: cover; background-position: center; position: relative; }
.tour-card .tag { position: absolute; top: 14px; left: 14px; background: var(--white); padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.tour-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tour-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tour-card .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.tour-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--sand-dark); padding-top: 14px; }
.price small { display: block; color: var(--muted); font-size: 0.75rem; }
.price strong { font-size: 1.25rem; color: var(--earth); }
.link-arrow { font-weight: 600; color: var(--acacia); }

/* Stats band */
.band { background: var(--acacia); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--savanna); }
.stat span { opacity: 0.85; font-size: 0.95rem; }

/* Call CTA */
.cta-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cta-img { min-height: 380px; border-radius: var(--radius); background: var(--cta-img, linear-gradient(135deg, var(--earth), var(--savanna))); background-size: cover; background-position: center; }
.checklist { list-style: none; margin: 1.2rem 0 2rem; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 0.7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--acacia); color: var(--white); font-size: 0.8rem; display: grid; place-items: center; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review .stars { color: var(--savanna); letter-spacing: 2px; margin-bottom: 0.6rem; }
.review p { font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.review .who { font-weight: 600; font-size: 0.92rem; }
.placeholder-note { border: 2px dashed var(--savanna); background: #fff8ea; padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; color: var(--earth-dark); margin-bottom: 24px; }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post .thumb { height: 180px; background: var(--thumb, linear-gradient(135deg, var(--acacia), var(--savanna))); background-size: cover; }
.post .body { padding: 20px; }
.post .cat { font-size: 0.78rem; font-weight: 600; color: var(--earth); text-transform: uppercase; letter-spacing: 0.1em; }
.post h3 { font-size: 1.15rem; margin: 0.4rem 0; }
.post p { color: var(--muted); font-size: 0.92rem; }

/* Form */
.form-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--sand-dark); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: var(--sand);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acacia); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; background: var(--sand); padding: 8px 14px; border-radius: 999px; cursor: pointer; margin: 0; }
.chips input { width: auto; }
.form-success { display: none; background: #e7f2ea; color: var(--acacia-dark); padding: 16px; border-radius: 10px; margin-top: 16px; }

/* Content pages */
.prose { max-width: 780px; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose h3 { margin: 2rem 0 0.6rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.route-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.route-table th, .route-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--sand-dark); font-size: 0.95rem; }
.route-table th { background: var(--acacia); color: var(--white); font-weight: 600; }
.faq details { background: var(--white); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--acacia-dark); color: rgba(255,255,255,0.85); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.site-footer a:hover { color: var(--savanna); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Floating contact */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: var(--shadow); font-size: 1.4rem; }
.float-contact .wa { background: #25d366; }
.float-contact .mail { background: var(--earth); }

/* Responsive */
@media (max-width: 960px) {
  .categories, .reviews, .posts { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-split, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 20px; gap: 14px; box-shadow: var(--shadow);
    transform: translateY(-150%); transition: transform 0.3s;
  }
  .nav.open { transform: none; }
  .nav > a, .nav .dropdown > a { color: var(--ink); }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 0 10px; }
  .categories, .reviews, .posts, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .categories { margin-top: -60px; }
  section { padding: 60px 0; }
  .form-wrap { padding: 24px; }
}
