/* Ruta Legacy Safaris — design system */
@import url("https://api.fontshare.com/v2/css?f[]=zodiak@400,500,600,700&f[]=satoshi@400,500,700&display=swap");

:root {
  --sand-50: #FBF7F0;
  --sand-100: #F4EDE1;
  --sand-200: #E7DBC7;
  --sand-300: #D6C4A6;
  --ink: #1F1B14;
  --ink-soft: #423B30;
  --muted: #6E6354;
  --faint: #9C9484;
  --acacia: #2E4A34;
  --acacia-deep: #1D3123;
  --ochre: #B26A22;
  --ochre-hover: #96571A;
  --whatsapp: #1FA855;

  --maxw: 1200px;
  --radius: 4px;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.6vw, 1.3rem);
  --text-xl: clamp(1.5rem, 3vw, 2rem);
  --text-2xl: clamp(2rem, 4.5vw, 3rem);
  --text-hero: clamp(2.5rem, 7vw, 4.6rem);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Zodiak", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-family: "Satoshi", sans-serif; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); max-width: 68ch; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--sand-100); }
.section--dark { background: var(--acacia-deep); color: var(--sand-100); }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ochre);
  margin: 0 0 var(--space-3);
}
.section--dark .eyebrow { color: var(--sand-300); }
.lead { font-size: var(--text-lg); color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-200);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* LOGO SLOT — badilisha picha hapa na logo yako: assets/img/logo.png */
.brand__logo { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; color: var(--acacia); }
.brand__logo img, .brand__logo svg { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-family: "Zodiak", serif; font-weight: 600; font-size: 1.3rem; line-height: 1.12; color: var(--ink); letter-spacing: .005em; }
@media (max-width: 520px) { .brand__name { font-size: 1.08rem; } }
.brand__tag { display: block; font-family: "Satoshi", sans-serif; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ochre); }
.nav__group { position: relative; }
.nav__group > button {
  font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0;
}
.nav__group > button:hover { color: var(--ochre); }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 264px;
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(31, 27, 20, 0.12);
  padding: var(--space-3); display: none; flex-direction: column; gap: 2px;
}
.nav__group.open .nav__menu { display: flex; }
.nav__menu a { padding: 9px 10px; border-radius: 3px; }
.nav__menu a:hover { background: var(--sand-100); }
.nav__toggle { display: none; background: none; border: 1px solid var(--sand-300); border-radius: 3px; padding: 8px 12px; font: inherit; font-size: var(--text-sm); cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }
.btn--primary { background: var(--ochre); color: #fff; }
.btn--primary:hover { background: var(--ochre-hover); }
.btn--dark { background: var(--acacia); color: #fff; }
.btn--dark:hover { background: var(--acacia-deep); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--light { background: #fff; color: var(--acacia-deep); }
.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: #16853f; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,18,.62) 0%, rgba(20,24,18,.45) 45%, rgba(20,24,18,.82) 100%);
}
.hero__inner { position: relative; padding: clamp(5rem, 14vw, 10rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero h1 { font-size: var(--text-hero); color: #fff; max-width: 20ch; }
.hero p { color: rgba(255,255,255,.88); font-size: var(--text-lg); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-12); font-size: var(--text-sm); color: rgba(255,255,255,.82); border-top: 1px solid rgba(255,255,255,.22); padding-top: var(--space-4); }
.hero--page .hero__inner { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero--page h1 { font-size: var(--text-2xl); }

.crumbs { font-size: var(--text-xs); color: rgba(255,255,255,.75); margin-bottom: var(--space-4); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.card:hover .card__img img { transform: scale(1.045); }
.card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: var(--space-2); }
.card__meta { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ochre); font-weight: 700; margin-bottom: var(--space-3); }
.card__body p { font-size: var(--text-sm); color: var(--muted); }
.card__link { margin-top: auto; font-size: var(--text-sm); font-weight: 700; color: var(--acacia); text-decoration: none; padding-top: var(--space-3); }
.card__link:hover { color: var(--ochre); }

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature__img img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature--flip .feature__img { order: 2; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6); }
.stat__num { font-family: "Zodiak", serif; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--ochre); }
.stat__label { font-size: var(--text-sm); color: var(--muted); margin-top: 6px; }
.section--dark .stat__label { color: var(--sand-300); }

.list { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: var(--text-sm); }
.list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border: 1.5px solid var(--ochre); border-radius: 50%; }
.list--check li::before { border-radius: 0; border: 0; width: 12px; height: 7px; border-left: 2px solid var(--acacia); border-bottom: 2px solid var(--acacia); transform: rotate(-45deg); top: 7px; left: 2px; }

.itinerary { border-top: 1px solid var(--sand-200); }
.itinerary__day { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid var(--sand-200); }
.itinerary__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ochre); padding-top: 4px; }
.itinerary__day h3 { font-size: var(--text-base); margin-bottom: 6px; }
.itinerary__day p { font-size: var(--text-sm); color: var(--muted); margin: 0; }

.panel { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: var(--space-8); }
.pricebar { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-12); align-items: baseline; }
.pricebar div span { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.pricebar div strong { font-family: "Zodiak", serif; font-weight: 600; font-size: 1.35rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--sand-200); padding: var(--space-4) 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: var(--text-base); list-style: none;
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ochre); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--text-sm); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filters button {
  font: inherit; font-size: var(--text-sm); font-weight: 600; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--sand-300); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--acacia); color: #fff; border-color: var(--acacia); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--sand-200); }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.gallery figure.tall img { aspect-ratio: 3/4.6; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px; font-size: var(--text-xs); color: #fff;
  background: linear-gradient(transparent, rgba(20,24,18,.85)); opacity: 0; transition: opacity .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(16,18,14,.94); display: none; place-items: center; z-index: 200; padding: var(--space-6); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { color: rgba(255,255,255,.8); font-size: var(--text-sm); text-align: center; margin-top: var(--space-4); }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-sm); padding: 12px 14px; border: 1px solid var(--sand-300);
  border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ochre); outline-offset: 1px; border-color: var(--ochre); }
.form__note { font-size: var(--text-xs); color: var(--muted); }
.form__status { font-size: var(--text-sm); font-weight: 600; display: none; padding: 12px 14px; border-radius: var(--radius); }
.form__status.ok { display: block; background: #E7F2E3; color: #2C5520; }
.form__status.err { display: block; background: #FBE9E3; color: #8C3517; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 700; font-size: var(--text-sm);
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 10px 28px rgba(31,168,85,.35);
}
.wa-float:hover { background: #16853f; }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ---------- Footer ---------- */
.footer { background: var(--acacia-deep); color: var(--sand-200); padding: var(--section-y) 0 var(--space-8); font-size: var(--text-sm); }
.footer a { color: var(--sand-200); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h4 { color: #fff; font-family: "Satoshi", sans-serif; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--space-4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--text-xs); color: rgba(255,255,255,.6); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--sand-200); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4) var(--space-6) var(--space-6); max-height: 78vh; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav__group > button { padding: 12px 0; border-bottom: 1px solid var(--sand-100); width: 100%; text-align: left; justify-content: space-between; }
  .nav__menu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 var(--space-3) var(--space-4); }
  .nav__group.open .nav__menu { display: flex; }
  .nav .btn { margin-top: var(--space-4); }
  .nav__toggle { display: inline-flex; }
  .header__inner { position: relative; }
  .itinerary__day { grid-template-columns: 1fr; gap: var(--space-2); }
  .feature--flip .feature__img { order: 0; }
}

/* ---------- contact CTA strip (site-wide, above footer) ---------- */
.cta { background: var(--acacia-deep); color: #F3EFE6; padding: clamp(3rem, 6vw, 5rem) 0; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta__text h2 { color: #fff; font-size: var(--text-2xl); margin: .4rem 0 .9rem; }
.cta__text p { color: rgba(243,239,230,.82); max-width: 46ch; }
.eyebrow--light { color: var(--sand-300); }
.cta__actions { display: grid; gap: .85rem; }
.cta__card {
  display: block; padding: 1.05rem 1.25rem; border-radius: 14px; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.cta__card:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.cta__card span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-300); }
.cta__card strong { display: block; margin-top: .25rem; font-size: 1.12rem; color: #fff; font-weight: 700; }
.cta__card em { display: block; margin-top: .15rem; font-style: normal; font-size: .85rem; color: rgba(243,239,230,.62); }
.cta__card--wa { background: rgba(31,168,85,.18); border-color: rgba(31,168,85,.45); }
.cta__card--wa:hover { background: rgba(31,168,85,.28); }
@media (max-width: 860px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__card strong { font-size: 1rem; word-break: break-word; }
}
