/* ==========================================================================
   Naisuyo Campsite — shared stylesheet
   Palette: dry acacia scrub, red-ochre earth, dry manyatta grass, warm off-white.
   One accent (beadwork red) reserved for calls-to-action only.
   ========================================================================== */

:root {
  /* Palette */
  --color-earth: #a85c3b;       /* red-ochre earth */
  --color-earth-dark: #7c4028;
  --color-scrub: #cdbf94;       /* dry acacia scrub / tan */
  --color-scrub-light: #eee7d3;
  --color-grass: #4a3f1e;       /* dry manyatta grass — khaki-brown, not green */
  --color-grass-dark: #332b14;
  --color-offwhite: #f8f4ea;    /* warm off-white surface */
  --color-charcoal: #2a2420;    /* near-black, warm */
  --color-accent: #c81e3a;      /* beadwork red — CTAs and small accents only */
  --color-accent-dark: #9e1830;
  --color-white: #ffffff;

  /* Type */
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --measure: 68ch;
  --radius: 4px;
  --shadow-soft: 0 4px 24px rgba(42, 36, 32, 0.12);
  --focus-ring: 3px solid #2f6fed;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-offwhite);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 var(--space-3); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { margin: 0 0 var(--space-3); max-width: var(--measure); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }
button { font-family: inherit; }

/* Visible focus ring everywhere, keyboard-first */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--color-grass);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout helpers ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
main { display: block; }
/* Keep in-page anchor targets clear of the sticky header on jump/scroll */
[id] { scroll-margin-top: 6rem; }
.section {
  padding: var(--space-6) 0;
}
.section--tight { padding: var(--space-5) 0; }
.section-header { max-width: 46rem; margin-bottom: var(--space-5); }
.section-header--right { margin-left: auto; text-align: right; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-offwhite);
  border-bottom: 1px solid rgba(42,36,32,0.1);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: 1180px;
  margin: 0 auto;
  gap: var(--space-2);
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-grass);
}
.site-logo span { color: var(--color-earth); }
@media (min-width: 400px) {
  .site-header__bar { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .site-logo { font-size: 1.35rem; white-space: nowrap; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-grass);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  order: 3;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-grass);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__icon::before { content: ""; position: absolute; top: -6px; }
.nav-toggle__icon::after { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,17,14,0.5);
  z-index: 98;
  display: none;
}
.nav-backdrop.is-open { display: block; }

.site-nav {
  order: 4;
}
.site-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-offwhite);
  z-index: 99;
  padding: var(--space-4);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
}
.site-nav__panel.is-open { transform: translateX(0); }
.nav-close {
  display: block;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-grass);
  border-radius: var(--radius);
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}
.site-nav__list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.site-nav__list a {
  display: block;
  padding: var(--space-3);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  background: var(--color-scrub-light);
  color: var(--color-earth-dark);
}
.site-nav__panel-cta { margin-top: var(--space-4); }

.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--accent:hover { background: var(--color-accent-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--color-grass);
  color: var(--color-grass);
}
.btn--outline:hover { background: var(--color-grass); color: var(--color-white); }
.btn--whatsapp {
  background: #25623f;
  color: var(--color-white);
}
.btn--whatsapp:hover { background: #1d4d32; }
.btn--block { display: block; width: 100%; }
.btn--ghost-light { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn--ghost-light:hover { background: var(--color-white); color: var(--color-grass); }

.header-cta {
  order: 2;
  margin-left: auto;
  padding: 0.5em 0.75em;
  font-size: 0.8rem;
}
@media (min-width: 400px) {
  .header-cta { padding: 0.7em 1.4em; font-size: 0.95rem; }
}
.nav-toggle { width: 38px; height: 38px; flex-shrink: 0; }
@media (min-width: 400px) {
  .nav-toggle { width: 44px; height: 44px; }
}

/* Desktop header */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { order: 2; }
  .site-nav__panel {
    position: static;
    width: auto;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }
  .nav-close, .nav-backdrop { display: none; }
  .site-nav__list {
    flex-direction: row;
    gap: var(--space-4);
    margin: 0;
  }
  .site-nav__list a { padding: var(--space-2) var(--space-1); }
  .site-nav__panel-cta { display: none; }
  .header-cta { order: 3; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,26,20,0.15) 0%, rgba(32,26,20,0.78) 100%);
}
.hero__content {
  position: relative;
  padding: var(--space-6) var(--space-4);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero__content h1 { color: var(--color-white); margin-bottom: var(--space-2); }
.hero__content p { color: var(--color-scrub-light); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hero--page { min-height: 42vh; }

/* ---- Asymmetric bands ---- */
.band {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.band__media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .band { grid-template-columns: 1.1fr 0.9fr; }
  .band--reverse { grid-template-columns: 0.9fr 1.1fr; }
  .band--reverse .band__media { order: 2; }
  /* More text than a portrait image can visually balance — give the copy
     more width and let it flow in two columns instead of one tall strip.
     .band__media is first in the DOM, so the narrow fraction goes first. */
  .band--text-heavy { grid-template-columns: 0.95fr 1.05fr; gap: var(--space-4); }
}
.band__copy p { margin-bottom: var(--space-3); }
@media (min-width: 640px) {
  .band__copy {
    column-count: 2;
    column-gap: var(--space-5);
  }
  .band__copy p { max-width: none; }
}

/* ---- About collage: two overlapping photos + a stat-style badge ---- */
.about-collage {
  position: relative;
  max-width: 480px;
  margin: 0 auto var(--space-6);
  padding: 0 0 var(--space-6) 0;
}
.about-collage__main img {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-collage__badge {
  position: absolute;
  top: var(--space-4);
  right: 0;
  background: var(--color-grass);
  color: var(--color-white);
  border-radius: 18px;
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  line-height: 1.2;
}
.about-collage__badge-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.about-collage__badge-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-scrub-light);
  margin-top: 0.2em;
}
.about-collage__secondary {
  position: absolute;
  bottom: 0;
  left: -12%;
  width: 55%;
}
.about-collage__secondary img {
  border-radius: 20px;
  border: 4px solid var(--color-offwhite);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (min-width: 480px) {
  .about-collage { margin: 0 0 var(--space-6); }
}

/* ---- Checklist (paired with the collage) ---- */
.checklist-label { font-weight: 700; margin-bottom: var(--space-2); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-2) var(--space-4);
}
.checklist__item { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: 0; }
.checklist__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-grass);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 0.15em;
}
@media (min-width: 480px) {
  .checklist { grid-template-columns: 1fr 1fr; }
}

.btn--pill { border-radius: 999px; }

.band-full {
  position: relative;
  color: var(--color-white);
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.band-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-full::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(32,26,20,0.82) 0%, rgba(32,26,20,0.35) 70%);
  z-index: -1;
}
.band-full__content { max-width: 32rem; padding: var(--space-6) var(--space-4); }
.band-full__content p { color: var(--color-scrub-light); }

/* ---- Feature lists (used instead of generic three-card grids) ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.feature-list__item {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(42,36,32,0.12);
}
.feature-list__item:last-child { border-bottom: none; }
.feature-list__item h3 { color: var(--color-grass); margin-bottom: var(--space-1); }
.feature-list__item p { margin-bottom: 0; }

/* ---- Rates table ---- */
.rates-table {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.rates-table__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-3);
  background: var(--color-offwhite);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.rates-table__row > span:first-child { font-weight: 700; color: var(--color-grass); }
.rates-table__row--head { display: none; }
.rates-table__note { margin-top: var(--space-3); font-size: 0.9rem; color: var(--color-charcoal); opacity: 0.8; }
@media (min-width: 640px) {
  .rates-table__row {
    grid-template-columns: 1.6fr 1fr 0.8fr;
    align-items: center;
  }
  .rates-table__row--head {
    display: grid;
    background: none;
    padding: 0 var(--space-3);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-earth-dark);
  }
  .rates-table__row--head span { font-weight: 700; color: var(--color-earth-dark); }
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.gallery-grid__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: block;
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.3s ease; }
.gallery-grid__item:hover img { transform: scale(1.04); }
.gallery-grid__item--tall img { aspect-ratio: 3 / 4; }
.gallery-grid__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-2) var(--space-2);
  background: linear-gradient(0deg, rgba(32,26,20,0.85), transparent);
  color: var(--color-white);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-grid__item:hover .gallery-grid__caption,
.gallery-grid__item:focus-visible .gallery-grid__caption { opacity: 1; }

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20,17,14,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox__caption { color: var(--color-scrub-light); margin-top: var(--space-2); font-size: 0.9rem; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); }

/* ---- Book-now panel ---- */
.enquiry {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}
.form-hint {
  font-size: 0.85rem;
  color: #574f47;
  margin-top: var(--space-1);
}
.enquiry-note {
  background: var(--color-scrub-light);
  border-left: 4px solid var(--color-earth);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-top: var(--space-4);
}

/* ---- WhatsApp floating button ---- */
.whatsapp-fab {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #25623f;
  color: var(--color-white);
  padding: 0.8em 1.1em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.whatsapp-fab:hover { background: #1d4d32; }
.whatsapp-fab svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-grass);
  color: var(--color-scrub-light);
  padding: var(--space-6) 0 var(--space-5);
}
.site-footer a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--color-scrub); }
.footer-grid {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.footer-grid h4 { color: var(--color-white); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-4);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 404 ---- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* ---- Motion ----
   Only animated when JS has added .js-anim to <html> AND the visitor has no
   reduced-motion preference. Without JS, .fade-up elements are always
   fully visible — content never depends on script running. */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js-anim .fade-up.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Misc content pages ---- */
.list-plain { list-style: none; padding: 0; }
.list-plain li { padding-left: 1.4em; position: relative; }
.list-plain li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-earth);
}
.map-embed-note {
  background: var(--color-scrub-light);
  padding: var(--space-4);
  border-radius: var(--radius);
}
.pill {
  display: inline-block;
  background: var(--color-scrub-light);
  color: var(--color-grass);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 var(--space-1) var(--space-1) 0;
}
