/* Let's Go Wild Tanzania — site styles
   Palette: forest #1E4A30, deep forest #143323, cream #F3E4C4, paper #FFF8EA,
   orange #E07A2F, mustard #F2B54A, brick #B4541E, rust text #8E3F12, ink #1A140E */

:root {
  --forest: #1E4A30;
  --forest-deep: #143323;
  --cream: #F3E4C4;
  --cream-2: #E9DCC0;
  --sand: #D8C8A6;
  --paper: #FFF8EA;
  --orange: #E07A2F;
  --mustard: #F2B54A;
  --brick: #B4541E;
  --rust: #8E3F12;
  --ink: #1A140E;
  --ink-2: #3A2F1F;
  --muted: #5A4A30;
  --display: 'Sankofa Display', Georgia, serif;
  --heading: 'Ga Maamli', 'Arial Black', sans-serif;
  --label: 'Special Elite', 'Courier New', monospace;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; position: relative; overflow-x: hidden; background: var(--forest); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--mustard); }
a:hover { color: #FFD27F; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--mustard); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-deep { background: var(--forest-deep); color: var(--cream); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-orange { background: var(--orange); color: var(--ink); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-cream a, .bg-orange a { color: var(--forest); }

.eyebrow { margin: 0; font-family: var(--label); font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mustard); }
.bg-cream .eyebrow { color: var(--rust); }
.bg-orange .eyebrow { color: var(--ink); }
.display { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; }
.h1 { font-size: clamp(44px, 7vw, 92px); }
.h2 { font-size: clamp(36px, 4.5vw, 58px); }
.bg-cream .h2 { color: var(--forest); }
.h3 { margin: 0; font-family: var(--heading); font-weight: 400; font-size: 30px; line-height: 1.05; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; max-width: 640px; }
.bg-forest .lead, .bg-deep .lead { color: var(--cream-2); }
.bg-cream .lead { color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; border: 3px solid var(--ink); background: var(--orange); color: var(--ink); cursor: pointer; }
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.btn-shadow { box-shadow: 5px 5px 0 var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { color: var(--cream); background: rgba(243, 228, 196, 0.08); }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { color: var(--cream); }
.bg-cream .btn-dark, .bg-orange .btn-dark, .bg-cream .btn-dark:hover { color: var(--cream); }
.bg-cream .guide-card, .bg-cream .guide-card:hover { color: var(--ink); }
.btn-mustard { background: var(--mustard); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.bg-cream .btn-ghost { color: var(--ink); border-color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 14px 8px; border: 3px solid var(--cream); outline: 2px solid var(--cream); outline-offset: 4px; text-decoration: none; color: var(--cream); }
.logo:hover { color: var(--cream); }
.logo-name { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: 0.04em; }
.logo-country { background: var(--cream); color: var(--forest); font-family: var(--label); font-size: 12px; letter-spacing: 0.5em; text-align: center; padding: 3px 0 2px 0.5em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--cream); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--mustard); }
.nav .btn { padding: 0 16px; min-height: 44px; border-radius: 999px; border-width: 0; background: var(--mustard); color: var(--ink); }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; background: transparent; border: 2px solid var(--cream); color: var(--cream); font: 600 15px var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; }
.hero-waves { position: absolute; top: 185px; right: -170px; width: 600px; height: 480px; opacity: 0.85; pointer-events: none; z-index: 0; }
@media (max-width: 1280px) { .hero-waves { display: none; } }
main { position: relative; z-index: 1; display: block; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 80px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.kanga { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; background: var(--cream); padding: 14px; transform: rotate(2deg); box-shadow: 10px 10px 0 var(--forest-deep); }
.kanga-border { height: 18px; }
.kanga-caption { background: var(--ink); color: var(--mustard); font-family: var(--heading); font-size: 26px; text-align: center; padding: 12px 8px 10px; }
.kanga-note { margin: 0; padding: 8px 0 0; font-family: var(--label); font-size: 13px; color: #4A3B22; text-align: center; }
.page-hero { position: relative; overflow: hidden; padding: 24px 0 72px; }
.page-hero .stack { position: relative; max-width: 820px; }

/* Photos */
.photo { position: relative; background: var(--sand); display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-label { margin: 0; font-family: var(--label); font-size: 14px; color: #4A3B22; text-align: center; }
.photo-hero { height: 380px; }
.photo-card { height: 210px; border-bottom: 3px solid var(--ink); }

/* Bands */
.band { height: 28px; background: var(--ink); display: block; }
.band svg { display: block; }

/* Cards */
.card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); display: flex; flex-direction: column; }
.card.alt { box-shadow: 8px 8px 0 var(--forest); }
.card.mustard { box-shadow: 8px 8px 0 var(--mustard); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.card-meta { margin: 0; font-family: var(--label); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); }
.card .h3 { color: var(--forest); }
.card .tagline { margin: 0; font-style: italic; color: var(--ink-2); }
.card p { margin: 0; color: var(--ink-2); }
.card a.card-link { color: inherit; text-decoration: none; }
.price-rows { display: flex; flex-direction: column; border-top: 2px dashed var(--brick); margin-top: auto; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 2px dashed var(--sand); }
.price-row strong { font-size: 16px; }
.price-row .price { font-family: var(--heading); font-size: 24px; white-space: nowrap; }
.price-big { font-family: var(--heading); font-size: 26px; }
.badge { display: inline-block; font-family: var(--label); font-size: 12px; letter-spacing: 0.12em; padding: 4px 10px; border: 2px solid currentColor; text-transform: uppercase; }

/* Group size picker */
.group-picker { display: flex; flex-direction: column; gap: 8px; }
.group-picker .opts { display: flex; gap: 6px; }
.group-picker button { min-width: 64px; min-height: 52px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--heading); font-size: 24px; cursor: pointer; }
.group-picker button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.bg-forest .group-picker button, .bg-deep .group-picker button { border-color: var(--mustard); }

/* Departure board */
.board { overflow-x: auto; border: 4px solid var(--mustard); outline: 2px solid var(--orange); outline-offset: 6px; background: var(--ink); }
.board table { width: 100%; min-width: 820px; border-collapse: collapse; font-family: var(--label); font-size: 16px; }
.board th { background: var(--orange); color: var(--ink); text-align: left; font-weight: 400; font-size: 13px; letter-spacing: 0.14em; padding: 14px 18px; }
.board td { padding: 16px 18px; color: var(--sand); border-top: 2px dashed #4A3B22; }
.board td.date { color: var(--mustard); white-space: nowrap; }
.board td.trip { color: var(--cream); font-family: var(--heading); font-size: 19px; }
.board td.price { color: var(--cream); white-space: nowrap; }
.board td.act { text-align: right; }

/* Tables (light) */
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--ink); }
.table th { background: var(--forest); color: var(--cream); text-align: left; font-family: var(--label); font-weight: 400; letter-spacing: 0.08em; padding: 12px 14px; }
.table td { padding: 12px 14px; border-top: 2px dashed var(--sand); vertical-align: top; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .name { font-family: var(--heading); font-size: 19px; color: var(--forest); }

/* Itinerary */
.days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.days li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 18px 0; border-top: 2px dashed var(--sand); }
.days .dnum { font-family: var(--heading); font-size: 28px; color: var(--rust); line-height: 1; }
.days h3 { margin: 0 0 4px; font-family: var(--heading); font-weight: 400; font-size: 24px; color: var(--forest); }
.days p { margin: 0; color: var(--ink-2); }
.days .facts { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Promise */
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.promise li { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.promise .n { font-family: var(--heading); font-size: 32px; line-height: 1; color: var(--rust); }
.promise strong { font-size: 18px; }
.promise span { color: var(--ink-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 6px double var(--mustard); padding-top: 20px; }
.steps .k { font-family: var(--label); font-size: 14px; letter-spacing: 0.18em; color: var(--mustard); }
.steps strong { font-family: var(--heading); font-weight: 400; font-size: 26px; color: var(--cream); }
.steps span { color: var(--cream-2); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
input, select, textarea { font: 16px var(--body); padding: 12px 12px; min-height: 48px; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
textarea { min-height: 120px; }
.form .full { grid-column: 1 / -1; }
.panel { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); padding: 26px; }
.result { background: var(--ink); color: var(--cream); border: 3px solid var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.result .big { font-family: var(--heading); font-size: 40px; color: var(--mustard); line-height: 1; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.result-grid div { border: 2px solid #4A3B22; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.result-grid span { font-size: 13px; color: var(--sand); }
.result-grid strong { font-family: var(--heading); font-weight: 400; font-size: 22px; }
.bar { height: 10px; background: #2A2218; }
.bar > i { display: block; height: 100%; background: var(--mustard); }
.notice { background: var(--mustard); color: var(--ink); padding: 14px 18px; border: 3px solid var(--ink); }
.error { background: #F7D4C8; color: #6B1D0A; padding: 14px 18px; border: 3px solid #6B1D0A; }

/* Partner strip */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.partner-logo { height: 56px; width: auto; background: #fff; padding: 6px; }
.partner-text { display: inline-flex; align-items: center; min-height: 56px; padding: 0 14px; border: 2px dashed var(--sand); font-family: var(--label); font-size: 13px; letter-spacing: 0.08em; color: var(--sand); }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--forest-deep); padding: 80px 0 40px; }
.footer-wave { position: absolute; top: 16px; left: 0; right: 0; height: 40px; opacity: .8; }
.site-footer .cols { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--cream); }
.site-footer a { text-decoration: none; font-weight: 700; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #2E5A40; font-size: 14px; color: var(--sand); }
.foot-links { display: flex; flex-direction: column; gap: 6px; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; background: var(--mustard); color: var(--ink); font-weight: 700; text-decoration: none; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.wa-float:hover { color: var(--ink); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .days li { grid-template-columns: 1fr; gap: 6px; }
  .kanga { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sand); }
.crumbs a { color: var(--sand); }
.crumbs [aria-current] { color: var(--cream); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--paper); border: 2px solid var(--ink); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; }
.faq-a { padding: 0 0 16px; color: var(--ink-2); }
.faq-a p { margin: 0 0 10px; }

/* Guides (articles) */
.prose { max-width: 820px; color: var(--ink); font-size: 18px; line-height: 1.7; }
.prose h2 { font-family: var(--heading); font-weight: 400; font-size: 30px; color: var(--forest); margin: 40px 0 12px; line-height: 1.15; }
.prose h3 { font-family: var(--heading); font-weight: 400; font-size: 22px; color: var(--rust); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--forest); font-weight: 600; }
.prose .table-wrap { margin: 16px 0 22px; font-size: 15px; }
.prose .callout { background: var(--paper); border-left: 6px solid var(--orange); padding: 14px 18px; margin: 0 0 18px; }
.answer { background: var(--forest); color: var(--cream); padding: 18px 22px; border: 3px solid var(--ink); font-size: 18px; }
.answer strong { color: var(--mustard); }
.byline { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero .byline { color: var(--sand); }
.toc { background: var(--paper); border: 2px dashed var(--brick); padding: 14px 18px; font-size: 16px; }
.toc ol { margin: 6px 0 0; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.guide-card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; box-shadow: 6px 6px 0 var(--mustard); }
.guide-card:hover { color: var(--ink); transform: translate(-2px, -2px); }
.guide-card strong { font-family: var(--heading); font-weight: 400; font-size: 22px; color: var(--forest); line-height: 1.15; }
.guide-card span { color: var(--ink-2); font-size: 15px; }

/* SEO additions: keyword line under package names, short answer line */
.h1-sub { display: block; font-family: var(--body, 'Work Sans', sans-serif); font-size: clamp(17px, 2vw, 22px); font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-top: 10px; text-transform: none; }
.answer-line { font-size: 17px; margin: 0; }

/* Google reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.review-card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--mustard); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review-head { display: flex; gap: 12px; align-items: center; }
.review-head strong { display: block; font-size: 17px; line-height: 1.2; }
.review-head small { display: block; color: var(--ink-2); font-size: 14px; }
.review-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.stars { color: #C98A12; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.review-text p { margin: 0 0 10px; color: var(--ink); font-size: 16px; }
.review-text p:last-child { margin-bottom: 0; }
.review-text.clamp { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--forest); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.review-tr { margin: 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
.review-tr span { font-style: normal; font-weight: 700; }
.review-foot { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--sand); padding-top: 10px; margin-top: auto; }
.bg-cream .review-foot a { color: var(--forest); }
.rating-big { font-family: var(--heading); font-size: 34px; color: var(--forest); vertical-align: middle; margin-right: 6px; }
.btn-ghost-dark { background: transparent; color: var(--forest); border-color: var(--forest); }
.bg-cream .btn-ghost-dark, .bg-cream .btn-ghost-dark:hover { color: var(--forest); }
.btn-ghost-dark:hover { background: rgba(30, 74, 48, 0.08); }