/* ==========================================================================
   Luxury Safari Rwanda — core stylesheet (light, warm, smooth redesign)
   Palette: ivory & sage, with brand green + gold as accents, not backgrounds
   Type: Bodoni Moda (display) / Jost (body + utility)
   ========================================================================== */

:root {
  --ink:          #2B2E27;
  --forest:       #3F6932;
  --forest-deep:  #2F5024;
  --moss:         #5C8449;
  --gold:         #C9A227;
  --gold-light:   #E4C878;
  --bone:         #FBF9F4;
  --paper:        #F4F1E6;
  --sage:         #EEF1E5;
  --stone:        #8B8A7E;
  --line:         rgba(43, 46, 39, 0.12);
  --line-light:   rgba(43, 46, 39, 0.18);

  --display: "Bodoni Moda", Georgia, serif;
  --body:    "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.5rem, 5vw, 6rem);
  --max:    1360px;
  --measure: 68ch;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--forest-deep);
}
h1 { font-size: clamp(2.75rem, 6.5vw, 5.75rem); color: inherit; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
h4 { font-size: 1.125rem; letter-spacing: 0; }

p { margin: 0 0 1.25em; max-width: var(--measure); color: rgba(43, 46, 39, 0.86); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.5rem;
  display: block;
}
.eyebrow--dark { color: var(--forest); }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  font-weight: 300;
  color: #4A5149;
}

.serif-lede {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--forest-deep);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Both accent section classes now render as soft, light tints — not dark blocks.
   Text stays dark ink throughout; only the tint changes. */
.section--forest { background: var(--sage); color: var(--ink); }
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest h4 { color: var(--forest-deep); }
.section--forest .lede { color: #4A5149; }
.section--forest .eyebrow { color: var(--forest); }
.section--forest p { color: rgba(43, 46, 39, 0.82); }

.section--ink { background: var(--paper); color: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--forest-deep); }
.section--ink .lede { color: #4A5149; }

.section--paper { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ---------- contact topbar ---------- */
.topbar {
  background: var(--paper);
  color: var(--forest-deep);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 101;
}
.topbar__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar a { text-decoration: none; transition: color 0.25s; color: var(--forest-deep); }
.topbar a:hover, .topbar a:focus-visible { color: var(--gold); }
.topbar__sep { opacity: 0.35; }
.topbar__licence { margin-left: auto; opacity: 0.55; font-weight: 400; }
@media (max-width: 720px) {
  .topbar__licence { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  padding-block: 0.75rem;
  box-shadow: 0 6px 24px -18px rgba(43, 46, 39, 0.35);
}
.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--forest-deep);
}
.wordmark img { width: 44px; height: 44px; flex: none; }
.wordmark--footer img { width: 50px; height: 50px; }
@media (max-width: 480px) { .wordmark img { width: 36px; height: 36px; } }
.wordmark__text {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.35;
  font-weight: 500;
  color: var(--forest-deep);
}
.wordmark__text b { display: block; font-weight: 500; }
.wordmark__text span { color: var(--gold); font-size: 0.625rem; letter-spacing: 0.3em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a {
  color: rgba(43, 46, 39, 0.72);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] {
  color: var(--forest-deep);
  border-bottom-color: var(--gold);
}
.nav__cta {
  border: 1px solid var(--forest) !important;
  color: var(--forest) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cta:hover, .nav__cta:focus-visible {
  background: var(--forest);
  color: var(--bone) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--forest-deep);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 84vw);
    background: var(--bone);
    box-shadow: -20px 0 50px -20px rgba(43, 46, 39, 0.25);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem var(--gutter);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 0.875rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #F8F4E7 0%, #F1EFDD 45%, #E9EEDC 100%);
  color: var(--ink);
  overflow: hidden;
  padding-block: 6rem 4rem;
}
.hero--short { min-height: 56svh; padding-block: 5rem 4rem; }
.hero__ridge {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: 8%;
  left: 55%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 15ch; color: var(--forest-deep); }
.hero__rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}
.hero .lede { color: rgba(43, 46, 39, 0.78); max-width: 46ch; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(43, 46, 39, 0.55);
}

/* fade-up on load */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--bone);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(63, 105, 50, 0.5);
}
.btn:hover, .btn:focus-visible { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(63, 105, 50, 0.55); }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: none; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--forest); color: var(--bone); transform: translateY(-2px); }
.btn--dark { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); box-shadow: 0 10px 24px -14px rgba(201, 162, 39, 0.5); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--gold-light); border-color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.35rem;
  transition: gap 0.3s, color 0.3s;
}
.textlink:hover, .textlink:focus-visible { gap: 1rem; color: var(--forest-deep); }

/* ---------- ridgeline divider (signature) ---------- */
.ridge-divider { display: block; width: 100%; height: auto; }
.ridge-divider--flip { transform: scaleY(-1); }

/* ---------- cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.5s, border-color 0.5s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px -30px rgba(43, 46, 39, 0.28);
  border-color: rgba(201, 162, 39, 0.55);
}
.card__plate { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__plate svg { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { font-size: 0.9375rem; color: #565D52; margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 0.85rem; }
.card .textlink { margin-top: auto; align-self: flex-start; }
.card a { text-decoration: none; }

/* data rail — the structural device: real, checkable figures */
.datarail {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding: 0.85rem 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.datarail li { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.datarail b { display: block; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; color: var(--forest-deep); font-weight: 500; margin-top: 0.15rem; }

/* ---------- plates (photography slots) ---------- */
.plate {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #F1EEDF, #E4E5CE);
  border-radius: 4px;
}
.plate--tall { aspect-ratio: 3 / 4; }
.plate--wide { aspect-ratio: 16 / 10; }
.plate svg { width: 100%; height: 100%; }

/* ---------- list of links (pillar indexes) ---------- */
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  text-decoration: none;
  transition: padding 0.35s ease, color 0.3s;
  color: var(--forest-deep);
}
.linklist a:hover, .linklist a:focus-visible { padding-inline: 0.75rem; color: var(--forest); }
.linklist__title { font-family: var(--display); font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
.linklist__note { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); flex: none; }

/* ---------- article body ---------- */
.article { max-width: 760px; }
.article h2 { margin: 3.5rem 0 1.25rem; }
.article h3 { margin: 2.5rem 0 1rem; }
.article ul, .article ol { max-width: var(--measure); padding-left: 1.25rem; margin-bottom: 1.5rem; }
.article li { margin-bottom: 0.6rem; color: rgba(43, 46, 39, 0.86); }
.article ol li { margin-bottom: 1rem; }
.article a:not(.btn):not(.textlink) { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

.pull {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  margin: 3rem 0;
  color: var(--forest-deep);
}

table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); }
th { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
td:first-child { padding-right: 2.5rem; width: 46%; }
@media (max-width: 640px) {
  td:first-child { width: auto; padding-right: 1rem; }
  table { font-size: 0.875rem; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.5rem 2.5rem 1.5rem 0;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--forest-deep);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  translate: 0 -60%;
  rotate: 45deg;
  transition: rotate 0.35s ease;
}
.faq details[open] summary::after { rotate: -135deg; }
.faq details p { padding-bottom: 1.5rem; font-size: 0.9375rem; color: #565D52; }

/* ---------- enquiry band ---------- */
.band {
  background: linear-gradient(135deg, #F3EEDC 0%, #EFF1E1 55%, #E9EFDD 100%);
  color: var(--ink);
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band h2 { max-width: 20ch; margin-inline: auto; color: var(--forest-deep); }
.band p { margin-inline: auto; color: rgba(43, 46, 39, 0.72); }
.band .btn-row { justify-content: center; }
.band .btn { background: var(--forest); border-color: var(--forest); color: var(--bone); }
.band .btn:hover, .band .btn:focus-visible { background: var(--forest-deep); border-color: var(--forest-deep); }
.band .btn--ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.band .btn--ghost:hover, .band .btn--ghost:focus-visible { background: var(--forest); color: var(--bone); }

/* ---------- form ---------- */
.form { display: grid; gap: 1.5rem; max-width: 640px; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--bone);
  color: var(--ink);
  border-radius: 3px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}
.field textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form-status[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); color: rgba(43, 46, 39, 0.75); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; font-size: 0.875rem; }
.site-footer h4 { font-family: var(--body); font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--forest); margin-bottom: 1.25rem; font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.7rem; }
.site-footer a { text-decoration: none; transition: color 0.25s; color: rgba(43, 46, 39, 0.75); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--forest); }
.site-footer .wordmark, .site-footer .wordmark__text { color: var(--forest-deep); }
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(43, 46, 39, 0.48);
}

/* ---------- breadcrumb ---------- */
.crumbs {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(43, 46, 39, 0.5);
  margin-bottom: 2rem;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--forest); }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--line);
  color: var(--forest);
  box-shadow: 0 12px 28px -10px rgba(43, 46, 39, 0.28);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); background: var(--forest); color: var(--bone); }
.wa-float svg { width: 26px; height: 26px; }
@media print { .wa-float, .topbar { display: none; } }

/* ---------- misc ---------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--forest-deep);
  padding: 1rem 1.5rem; z-index: 200; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.note {
  background: rgba(201, 162, 39, 0.09);
  border-left: 2px solid var(--gold);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  border-radius: 0 3px 3px 0;
  margin: 2rem 0;
}
.note p:last-child { margin-bottom: 0; }
