/* =========================================================
   GAMBIA TRAVEL TOURS — travel guide
   Built on the Yeelen card palette (sand, olive, terracotta)
   with a river motif and the Gambian flag's blue as accent.
========================================================= */

:root {
  --page: #eee9e0;
  --surface: #fffdf9;
  --surface-soft: #f4efe6;
  --ink: #201e1a;
  --muted: #686259;
  --olive: #617047;
  --olive-deep: #3f4a2d;
  --terracotta: #c56a3d;
  --river: #2c5a7a;
  --river-soft: #dbe6ec;
  --line: #ded6ca;
  --whatsapp: #25d366;
  --on-whatsapp: #102116;

  --font-body: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --shadow: 0 14px 34px rgba(39, 31, 20, 0.09);
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--olive-deep); }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238, 233, 224, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.topbar__nav { display: flex; align-items: center; gap: 8px; }
.topbar__link { display: none; font-size: 0.88rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.topbar__link:hover { background: var(--surface-soft); color: var(--ink); }
@media (min-width: 760px) { .topbar__link { display: inline-block; } }

.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 0.84rem; font-weight: 700;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; display: grid;
}
.lang__panel a { padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.lang__panel a:hover, .lang__panel a[aria-current] { background: var(--surface-soft); }
.lang__panel a[aria-current] { font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--olive-deep); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 14, 0.15) 0%, rgba(20, 22, 14, 0.35) 45%, rgba(20, 22, 14, 0.82) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(110px, 22vw, 220px) 0 44px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 0.82rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.7; }
.crumbs a { color: #fff; opacity: 0.9; }
.tag {
  display: inline-block; margin: 0 0 12px; padding: 5px 11px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; max-width: 18ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__credit { position: absolute; right: 10px; bottom: 6px; z-index: 1; font-size: 0.66rem; line-height: 1.3; color: rgba(255,255,255,0.78); max-width: 92%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__credit a { color: rgba(255,255,255,0.9); }

/* river divider */
.river { display: block; width: 100%; height: 26px; color: var(--river); margin-top: -1px; }

/* ---------- layout ---------- */
.layout { display: grid; gap: 28px; padding: 28px 0 56px; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
  .aside { position: sticky; top: 84px; }
}
.lead {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.6vw, 1.38rem); line-height: 1.55; color: var(--ink);
}
.article { max-width: 720px; counter-reset: sec; }
.article h2 {
  counter-increment: sec;
  position: relative;
  margin: 2.2em 0 0.6em; padding-top: 18px;
  font-family: var(--font-display); font-size: clamp(1.45rem, 3.4vw, 1.85rem);
  line-height: 1.18; letter-spacing: -0.02em;
  border-top: 1px solid var(--line);
}
.article h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: 4px;
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--terracotta);
}
.article p { margin: 0 0 1em; }
.article ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.article li { position: relative; padding-left: 22px; margin: 0 0 0.6em; }
.article li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em;
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--olive); border-radius: 1px;
}
.article strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-soft); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:not(:first-child), th:not(:first-child) { text-align: right; white-space: nowrap; }
.table-note { font-size: 0.85rem; color: var(--muted); margin-top: -0.6em; }
@media (max-width: 560px) { th, td { padding: 9px 10px; } th { letter-spacing: 0.04em; } th:not(:first-child) { white-space: normal; } }

/* ---------- at a glance ledger ---------- */
.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.ledger__title { margin: 0 0 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.ledger dl { margin: 0; display: grid; gap: 10px; }
.ledger div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ledger div:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger dt { font-size: 0.8rem; color: var(--muted); }
.ledger dd { margin: 0; font-weight: 700; line-height: 1.35; }

.mini-cta {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--r-l);
  background: var(--river); color: #fff; display: grid; gap: 10px;
}
.mini-cta p { margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--wa { background: var(--whatsapp); color: var(--on-whatsapp); }
.btn--wa:hover { filter: brightness(0.96); color: var(--on-whatsapp); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Ebrima CTA ---------- */
.ebrima {
  position: relative; overflow: hidden;
  margin: 8px 0 0; padding: 30px 24px;
  border-radius: var(--r-l);
  background: var(--olive-deep); color: #fff;
}
.ebrima::before {
  /* thin flag stripes: red, white, blue, white, green */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(90deg, #ce1126 0 33%, #fff 33% 35%, #0c1c8c 35% 65%, #fff 65% 67%, #3a7728 67% 100%);
}
.ebrima__grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 720px) { .ebrima__grid { grid-template-columns: 132px 1fr; gap: 28px; } .ebrima { padding: 38px 40px; } }
.ebrima__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.85); }
@media (min-width: 720px) { .ebrima__photo { width: 132px; height: 132px; } }
.ebrima__kicker { margin: 0 0 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #e9c9a8; }
.ebrima__title { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.ebrima__text { margin: 0 0 18px; color: rgba(255,255,255,0.88); }
.ebrima__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- figures ---------- */
.figure { margin: 1.4em 0; }
.figure img { border-radius: var(--r-m); width: 100%; }
.figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.figure-pair { display: grid; gap: 12px; margin: 1.4em 0; }
@media (min-width: 620px) { .figure-pair { grid-template-columns: 1fr 1fr; } }
.figure-pair .figure { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 1em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--olive); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- related cards ---------- */
.section-title { margin: 48px 0 16px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -0.02em; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  color: var(--ink); text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface-soft); }
.card__body { padding: 14px 16px 16px; display: grid; gap: 4px; align-content: start; }
.card__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); }
.card__title { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.22; font-weight: 700; }
.card__text { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* featured story card on the home page */
.feature {
  display: grid; overflow: hidden; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
@media (min-width: 760px) { .feature { grid-template-columns: 1fr 1.1fr; } }
.feature img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature__body { padding: 26px; display: grid; gap: 10px; align-content: center; }
.feature__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin: 0; }
.feature:hover { color: var(--ink); }

/* home facts strip */
.strip { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin: 22px 0 0; }
.strip div { background: var(--surface); padding: 14px 16px; }
.strip dt { font-size: 0.76rem; color: var(--muted); }
.strip dd { margin: 2px 0 0; font-weight: 700; }
.strip dl { display: contents; }

/* ---------- sources ---------- */
.sources { margin-top: 40px; padding: 18px 20px; border-radius: var(--r-m); background: var(--surface-soft); font-size: 0.88rem; }
.sources h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-family: var(--font-body) !important; font-size: 0.76rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.sources h2::before { display: none !important; }
.sources p { margin: 0 0 8px; color: var(--muted); }
.sources ul { margin: 0 !important; }
.sources li { margin-bottom: 4px !important; }

/* credits table */
.credits td, .credits th { text-align: left !important; white-space: normal !important; vertical-align: top; }
.credits img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; }

/* ---------- footer ---------- */
.footer { background: #26291d; color: rgba(255,255,255,0.8); padding: 40px 0 48px; font-size: 0.9rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { margin: 0 0 8px; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer small { display: block; margin-top: 26px; color: rgba(255,255,255,0.55); }

/* sticky WhatsApp on phones */
.wa-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: var(--on-whatsapp);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 980px) { .wa-float { display: none; } }

.home-group { margin-top: 44px; }
.home-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.home-group__head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -0.02em; }
.home-group__head span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--terracotta); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.layout > * { min-width: 0; }

/* ---------- Ebrima's voice: hello block ---------- */
.hello { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; margin: 4px 0 22px; }
@media (min-width: 720px) { .hello { grid-template-columns: 84px 1fr; gap: 18px; } }
.hello__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 62%; border: 3px solid var(--surface); box-shadow: 0 6px 16px rgba(39,31,20,0.16); }
@media (min-width: 720px) { .hello__photo { width: 84px; height: 84px; } }
.hello__bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px var(--r-m) var(--r-m) var(--r-m); padding: 16px 18px 6px; box-shadow: var(--shadow); }
.hello__bubble::before { content: ""; position: absolute; left: -8px; top: 18px; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.hello__name { margin: 0 0 4px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); }
.hello .lead { margin-top: 0; font-size: clamp(1.06rem, 2.4vw, 1.3rem); }

/* ---------- Quick read ---------- */
.quick { margin: 0 0 30px; border-radius: var(--r-m); background: var(--river-soft); border: 1px solid #c3d5df; overflow: hidden; }
.quick summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 52px 16px 20px; position: relative; }
.quick summary::-webkit-details-marker { display: none; }
.quick summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--river); color: #fff; display: grid; place-items: center; font-weight: 700; line-height: 1; }
.quick[open] summary::after { content: "–"; }
.quick__label { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--river); }
.quick__hint { font-size: 0.86rem; color: var(--muted); }
.quick ul { margin: 0; padding: 4px 22px 18px 22px; list-style: none; border-top: 1px dashed #b6cad6; }
.quick li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px dashed #c9d8e0; }
.quick li:last-child { border-bottom: 0; }
.quick li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 9px; background: var(--terracotta); transform: rotate(45deg); }

/* ---------- Home hero with Ebrima ---------- */
.home-hero { background: var(--surface-soft); padding: 26px 0 18px; }
.home-hero__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .home-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 26px 0; } }
.home-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; margin: 10px 0 14px; color: var(--ink); }
.home-hero__lead { font-size: 1.12rem; color: #3a362f; margin: 0 0 22px; max-width: 36em; }
.home-hero__photo { margin: 0; position: relative; order: -1; }
@media (min-width: 900px) { .home-hero__photo { order: 0; } }
.home-hero__photo img { display: block; width: 100%; height: auto; border-radius: var(--r-l) var(--r-l) var(--r-l) 6px; box-shadow: 0 22px 44px rgba(39,31,20,0.18); }
.home-hero__photo img { box-shadow: 14px 14px 0 #dcc6a6, 0 22px 44px rgba(39,31,20,0.16); }
.home-hero__photo figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.home-hero { position: relative; z-index: 0; }
.tag--dark { background: var(--olive); color: #fff; border: 0; }
.btn--line { border: 1px solid var(--olive); color: var(--olive-deep); background: transparent; }
.btn--line:hover { background: var(--olive); color: #fff; }

/* ---------- About me ---------- */
.about { display: grid; gap: 24px; margin-top: 48px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 520px 1fr; gap: 40px; } }
.about__photo { margin: 0; }
.about__photo img { display: block; width: 100%; height: auto; border-radius: var(--r-l); box-shadow: var(--shadow); }
.ebrima__photo { object-fit: cover; }
