/* ============================================================
   ALMOND SAFARIS — Master Stylesheet v2.0
   Editorial travel design system
   ============================================================ */

/* ---------- Design Tokens (overridden per page) ---------- */
:root {
  /* Brand neutrals (always available) */
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --paper: #ffffff;
  --bone: #f7f3ec;
  --line: #e5ded2;
  --mute: #767066;

  /* Palette — overridden per page */
  --accent: #b85c2c;
  --accent-soft: #d4a547;
  --accent-deep: #6b3a1a;
  --hero-tint: rgba(26, 26, 26, 0.45);

  /* Typography */
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* Scale */
  --max: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 7vw, 6rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 700ms;
  --med: 350ms;
  --fast: 200ms;

  /* Shadows */
  --lift-1: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --lift-2: 0 6px 18px rgba(0,0,0,0.08), 0 18px 40px rgba(0,0,0,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.lede {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 60ch;
}
p { max-width: 68ch; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.grid { display: grid; gap: var(--gutter); }
.flex { display: flex; gap: var(--gutter); flex-wrap: wrap; }

/* ---------- Top Navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color var(--fast) var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--med) var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 8px;
    background: var(--bone);
  }
  .menu-toggle span {
    width: 18px; height: 2px;
    background: var(--ink);
    display: block;
    position: relative;
  }
  .menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 0;
    width: 18px; height: 2px; background: var(--ink);
  }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1.5rem var(--gutter);
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  padding: 1.2rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.6rem; opacity: 0.5; }

/* ---------- Hero variants — base ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
}
.hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

/* Hero variant A: full-bleed editorial */
.hero-editorial {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  padding: var(--section-y) 0 calc(var(--section-y) - 1rem);
}
.hero-editorial .eyebrow { color: var(--accent-soft); }
.hero-editorial h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  color: var(--paper);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0.8rem 0 1.2rem;
}
.hero-editorial .lede {
  color: rgba(255,255,255,0.85);
  font-style: normal;
  max-width: 56ch;
}

/* Hero variant B: split (image + text) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 78vh;
}
.hero-split .panel-text {
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bone);
}
.hero-split h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin: 0.8rem 0 1.2rem;
}
.hero-split .panel-img {
  background-size: cover;
  background-position: center;
}
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .panel-img { min-height: 50vh; }
}

/* Hero variant C: magazine */
.hero-mag {
  padding: var(--section-y) 0 0;
  background: var(--bone);
  position: relative;
}
.hero-mag .label-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.hero-mag h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  font-style: italic;
  margin-bottom: 2rem;
}
.hero-mag .feature-img {
  width: 100%;
  height: clamp(420px, 60vh, 700px);
  background-size: cover;
  background-position: center;
  margin-top: 2rem;
}

/* ---------- Stat bar ---------- */
.statbar {
  background: var(--ink);
  color: var(--paper);
  padding: 1.6rem 0;
}
.statbar .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.statbar .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.3rem;
}
.statbar .stat-value {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--paper);
}
@media (max-width: 720px) {
  .statbar .row { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}

/* ---------- Two-column body ---------- */
.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 880px) { .col2 { grid-template-columns: 1fr; } }

.col-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.meta-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.meta-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.4rem;
}
.meta-card .value {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Highlight cards (Why this place is special) ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.highlight {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: var(--bone);
  border-radius: 4px;
  transition: transform var(--med) var(--ease);
}
.highlight:hover { transform: translateY(-4px); }
.highlight .num {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
}
.highlight h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.highlight p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Itinerary timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.day {
  position: relative;
  padding-bottom: 2.4rem;
}
.day::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.day-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.day h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.day p { color: var(--ink-soft); }
.day-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--mute);
}
.day-meta span::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--accent);
}

/* ---------- Lodge cards ---------- */
.lodges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.lodge {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--med) var(--ease);
}
.lodge:hover {
  border-color: var(--accent);
  box-shadow: var(--lift-2);
  transform: translateY(-3px);
}
.lodge-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bone);
}
.lodge-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.lodge-tier {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.lodge h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.lodge p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.lodge-price {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.lodge-price .from { font-size: 0.78rem; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }
.lodge-price .amt { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }

/* ---------- Wildlife / highlights gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bone);
  position: relative;
  overflow: hidden;
}
.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: var(--paper);
}
.gallery-item .caption h4 {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
}
.gallery-item .caption p {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
  transition: color var(--fast) var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform var(--med) var(--ease);
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--slow) var(--ease);
}
.faq-item.open .faq-a { max-height: 1000px; }
.faq-a-inner { padding: 0 0 1.6rem; color: var(--ink-soft); }

/* ---------- Pricing block ---------- */
.pricing {
  background: var(--bone);
  padding: var(--section-y) 0;
}
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-list { list-style: none; padding: 0; }
.price-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.price-list .ic-yes { color: #2d8659; font-weight: 700; flex-shrink: 0; }
.price-list .ic-no { color: #b85c2c; font-weight: 700; flex-shrink: 0; }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
  position: sticky;
  top: 92px;
}
.price-card .from-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.price-card .amount {
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1;
  margin: 0.4rem 0 0.2rem;
}
.price-card .per { font-size: 0.92rem; color: var(--mute); margin-bottom: 1.5rem; }
.btn-book {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--paper);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all var(--med) var(--ease);
}
.btn-book:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--lift-2); }
.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--ink);
  padding: 0.95rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 0.6rem;
  transition: all var(--med) var(--ease);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cross-sell ---------- */
.crosssell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.cross-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bone);
}
.cross-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}
.cross-card .body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem;
  z-index: 2;
  color: var(--paper);
}
.cross-card .body h4 {
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 0.3rem;
}
.cross-card .body p {
  font-size: 0.85rem;
  opacity: 0.85;
}
.cross-card:hover .body h4 { transform: translateX(4px); }
.cross-card .body h4 { transition: transform var(--med) var(--ease); }

/* ---------- Quote / pull-quote ---------- */
.pullquote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 3rem 0;
  max-width: 60ch;
}
.pullquote-attr {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1rem;
  display: block;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.foot a { color: rgba(255,255,255,0.7); transition: color var(--fast) var(--ease); }
.foot a:hover { color: var(--accent-soft); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h5 {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.2rem;
}
.foot ul { list-style: none; }
.foot ul li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.foot .brand { color: var(--paper); margin-bottom: 1rem; }
.foot .brand-mark { background: var(--accent); }
.foot-tagline { font-size: 0.92rem; max-width: 32ch; }
.foot-base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.socials { display: flex; gap: 1rem; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  transition: all var(--med) var(--ease);
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- Animation: section reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.tac { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mw-60 { max-width: 60ch; }
.mw-72 { max-width: 72ch; }
.mw-cen { margin-left: auto; margin-right: auto; }

/* ---------- Float WhatsApp button ---------- */
.fab-wa {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--med) var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; }
