/* ===========================
   Rafiki Safari Lodge — Redesign
   =========================== */

:root {
  --dark: #171410;
  --dark-2: #211c16;
  --orange: #e8791a;
  --orange-dark: #c4630f;
  --cream: #f5f1e9;
  --cream-2: #eee9dd;
  --text-light: #f5f1e9;
  --text-muted: #cfc7b8;
  --text-dark: #201c16;
  --text-dark-muted: #5a5346;
  --radius: 4px;
  --container: 1240px;
  --font-head: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Guard against stray horizontal scroll on mobile (e.g. a wide child
   spilling past the viewport). `clip` — not `hidden` — so it doesn't
   create a scroll container and keeps `position: sticky` working. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0;
}

.accent { color: var(--orange); }

.section { padding: 96px 0; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 48px;
}
.section-title.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebe57; }
.btn-whatsapp svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-group .btn { flex: 1; justify-content: center; white-space: nowrap; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(15,13,10,0.85), rgba(15,13,10,0));
  padding: 2px 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.site-header.scrolled {
  background: var(--dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { flex-shrink: 0; display: flex; }
.logo img { height: 160px; width: auto; display: block; }

.main-nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: flex-start;
  margin-left: 12px;
  min-width: 0;
}
.main-nav { align-items: center; }
.main-nav a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--orange); }

/* ----- Dropdown submenu (Stay With Us) ----- */
.nav-item.has-sub { position: relative; display: flex; align-items: center; }
.nav-item.has-sub > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 8px 0;
  background: var(--dark);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-item.has-sub:hover .sub-menu,
.nav-item.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a { padding: 9px 20px; }

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions .btn-primary {
  padding: 11px 22px;
  font-size: 11.5px;
}

/* TranslatePress language switcher, restyled to match the header chrome */
.trp-floating-switcher { display: none !important; }

/* Hidden for now — remove this rule to bring the switcher back. */
.lang-switcher { display: none !important; }

.lang-switcher .trp-shortcode-switcher__wrapper {
  --bg: transparent !important;
  --bg-hover: rgba(255,255,255,0.1) !important;
  --text: #fff !important;
  --text-hover: #e8791a !important;
  --border-color: rgba(255,255,255,0.35) !important;
  --border-width: 1px !important;
  --border-radius: 999px !important;
  --font-size: 13px !important;
}
.lang-switcher .trp-flag-image { display: none; }
.lang-switcher .trp-language-item-name {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.lang-switcher .trp-current-language-item__wrapper,
.lang-switcher a.trp-language-item {
  padding: 7px 16px;
}
.lang-switcher .trp-switcher-dropdown-list {
  background: var(--dark);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.lang-switcher .trp-switcher-dropdown-list a.trp-language-item {
  color: #fff;
}
.lang-switcher .trp-switcher-dropdown-list a.trp-language-item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--orange);
}
.lang-switcher .trp-shortcode-arrow path { stroke: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Home hero slideshow: stacked images crossfading via .is-active (main.js) */
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slides img.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0.55) 0%, rgba(10,9,7,0.35) 45%, rgba(8,7,5,0.85) 100%);
}
.hero-content {
  width: 100%;
  padding-top: 200px;
  padding-bottom: 60px;
}
.hero-content-inner {
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 74px);
  text-transform: uppercase;
}
.hero-sub {
  margin: 24px 0 32px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-features {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(10,9,7,0.92);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0;
}
.hero-features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
a.feature-item {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a.feature-item:hover strong { color: var(--orange); }
a.feature-item:hover { opacity: 0.92; }
.feature-item svg {
  width: 34px;
  height: 34px;
  color: var(--orange);
  flex-shrink: 0;
}
.feature-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.feature-item span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== For You ===== */
.for-you { background: var(--cream); }
.for-you-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
  margin-bottom: 56px;
}
.for-you-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.for-you-item svg {
  width: 46px;
  height: 46px;
  color: var(--orange);
  margin-bottom: 18px;
}
.for-you-item h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.for-you-item p {
  font-size: 14.5px;
  color: var(--text-dark-muted);
  line-height: 1.55;
  margin: 0;
}

/* ----- Self-qualification checklist (Does Rafiki Fit Your Trip) -----
   Deliberately not another icon-card grid — this section sits right
   after the "Why Stay Here" cards, so it reads as a plain scan-down
   checklist instead of a third near-identical block. */
.fit-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 56px;
  max-width: 980px;
  margin: 48px auto 0;
  text-align: left;
}
.fit-checklist-item { display: flex; gap: 16px; align-items: flex-start; }
.fit-checklist-item svg { width: 22px; height: 22px; color: var(--orange); flex: 0 0 22px; margin-top: 3px; }
.fit-checklist-item h3 { font-size: 16px; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.3px; }
.fit-checklist-item p { font-size: 14.5px; line-height: 1.6; color: var(--text-dark-muted); margin: 0; }

/* ----- Compact trust strip (under testimonials) ----- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(32,28,22,0.1);
  text-align: center;
}
.trust-strip-item svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: 10px; }
.trust-strip-item strong { display: block; font-family: var(--font-head); font-size: 19px; letter-spacing: 0.4px; margin-bottom: 4px; }
.trust-strip-item span { display: block; font-size: 13px; color: var(--text-dark-muted); }

.for-you-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.for-you-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== Experience ===== */
.experience { background: var(--cream-2); }
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.experience-grid.archive-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* Home's 5-card set (odd count) — flex + centered wrap so a lone last
   row (e.g. 3 + 2) centers instead of grid-stretching to fill columns
   or leaving a stranded gap on the right. */
.experience-grid.home-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.experience-grid.home-grid .experience-card {
  flex: 0 1 calc(33.333% - 11px);
  min-width: 260px;
}
.experience-card {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}
.experience-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.experience-card:hover img { transform: scale(1.06); }
.experience-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0) 40%, rgba(10,9,7,0.92) 100%);
}
.experience-card-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 22px;
  color: #fff;
}
.experience-card-content h3 {
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.experience-card-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
}

/* ===== Why Rafiki ===== */
.why-rafiki { padding: 0; background: var(--dark); }
.why-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
.why-media {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}
.why-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-media-text {
  position: relative;
  z-index: 1;
  padding: 56px;
  background: linear-gradient(180deg, rgba(10,9,7,0) 0%, rgba(10,9,7,0.55) 35%, rgba(10,9,7,0.92) 100%);
  color: #fff;
  width: 100%;
}
.why-media-text h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.why-media-text p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 460px;
  margin: 0 0 26px;
  line-height: 1.6;
}

.why-grid-boxed { border-radius: var(--radius); overflow: hidden; }
.why-grid-boxed .why-media { min-height: 440px; }

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--dark-2);
}
.stat {
  padding: 48px 40px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.stat svg { width: 36px; height: 36px; color: var(--orange); margin-bottom: 16px; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.stat span {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.testimonials { background: var(--cream); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 6px 18px rgba(20,15,5,0.05);
}
.testimonial-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 18px;
}
.testimonial-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  padding: 130px 0;
  color: #fff;
  text-align: left;
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-content { max-width: 620px; }
.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: var(--text-muted);
  padding-top: 72px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.3fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 60px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--orange); }
.footer-contact p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 6px 0 18px;
  color: var(--text-muted);
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.social-icons a:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(245,241,233,0.5);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1280px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark);
    padding: 20px 24px 28px;
    gap: 16px;
  }

  /* Submenu flows inline (indented) inside the mobile menu — no hover. */
  .site-header.nav-open .nav-item.has-sub { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-header.nav-open .nav-item.has-sub > a::after { display: none; }
  .site-header.nav-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 16px;
    gap: 14px;
  }
  .site-header.nav-open .sub-menu a { padding: 0; font-size: 11px; opacity: 0.8; }

  /* Hide the header while scrolling down, reveal it on scroll up. */
  .site-header.header-hidden { transform: translateY(-100%); }
  .site-header.nav-open.header-hidden { transform: none; }

  .hero-features-inner { grid-template-columns: repeat(2, 1fr); }
  .for-you-grid { grid-template-columns: repeat(2, 1fr); }
  .for-you-photos { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid.home-grid .experience-card { flex-basis: calc(50% - 8px); }
  .why-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .plan-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  /* .hero-features is pinned to the bottom of the 100vh hero via
     position:absolute; on mobile hero-features-inner drops to 1 column
     (below) and grows taller than the space left under the centered
     hero-content, so it overlapped the CTA buttons. Let it flow in
     normal document order under the content instead of overlaying it. */
  .hero { min-height: 0; }
  .hero-content { padding-top: 160px; padding-bottom: 32px; }
  .hero-features { position: static; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-features-inner { grid-template-columns: 1fr; }
  .for-you-grid { grid-template-columns: 1fr; }
  .for-you-photos { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-grid.home-grid .experience-card { flex-basis: 100%; }
  .experience-card { height: 320px; }
  .why-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .logo img { height: 118px; }
  .plan-grid.cols-4,
  .plan-grid.cols-2 { grid-template-columns: 1fr; }
  .fit-checklist { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
}

/* Header actions (lang switcher + CTA + hamburger) don't fit next to the
   logo on narrow phones — the CTA's full-width text plus the switcher push
   .nav-toggle off-screen, making the mobile menu unreachable. Drop the
   switcher and shrink the CTA so everything stays on one row. */
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions .lang-switcher { display: none; }
  .header-actions .btn-primary {
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .nav-toggle { flex-shrink: 0; }
}

@media (max-width: 360px) {
  /* No <span> to hide around the CTA's text node — collapse it with
     font-size:0 and swap in a short label via ::after instead. */
  .header-actions .btn-primary { font-size: 0; padding: 9px 10px; }
  .header-actions .btn-primary::after {
    content: 'Book';
    font-size: 11px;
    letter-spacing: 0.6px;
  }
}

/* ===========================
   Detail pages (Stay / Experience)
   =========================== */

.breadcrumb {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: #fff; }

.page-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero-content {
  width: 100%;
  padding-top: 200px;
  padding-bottom: 56px;
}
.page-hero-content-inner {
  max-width: 760px;
}
.page-hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  text-transform: uppercase;
}
.page-hero .hero-sub { max-width: 600px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(10,9,7,0.35);
}
.badge svg { width: 16px; height: 16px; color: var(--orange); }

/* Intro layout: text + sticky facts card */
.detail-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.eyebrow.center { text-align: center; }
.detail-intro-text h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.detail-intro-text p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-dark-muted);
  margin: 0 0 18px;
}
.detail-intro-text p:last-child { margin-bottom: 0; }

.facts-card {
  position: sticky;
  top: 110px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.facts-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-bottom: 20px;
}
.facts-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.facts-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.facts-list li:last-child { border-bottom: none; padding-bottom: 0; }
.facts-list span:first-child { color: var(--text-muted); }
.facts-list span:last-child { font-weight: 700; text-align: right; }
.facts-card .btn { width: 100%; justify-content: center; }
.facts-card .btn-group { flex-direction: column; }

.facts-price {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--orange);
  margin-bottom: 4px;
}
.facts-price-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-grid .span-2 { grid-column: span 2; }
.gallery-grid .span-2-row { grid-row: span 2; }

/* Amenities / includes grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.amenity-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.amenity-item svg {
  width: 30px;
  height: 30px;
  color: var(--orange);
  flex-shrink: 0;
}
.amenity-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.amenity-item span {
  font-size: 13.5px;
  color: var(--text-dark-muted);
  line-height: 1.5;
}

/* Variant / room cards */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.variant-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(20,15,5,0.05);
}
.variant-card img { width: 100%; height: 220px; object-fit: cover; }
.variant-card-body { padding: 22px; }
.variant-card-body h3 {
  font-size: 19px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.variant-card-body p {
  font-size: 14px;
  color: var(--text-dark-muted);
  line-height: 1.55;
  margin: 0;
}

/* Rate table */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20,15,5,0.05);
}
.rate-table th, .rate-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.rate-table th {
  background: var(--dark);
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.rate-table tr:last-child td { border-bottom: none; }
.rate-table td strong { color: var(--orange); }

/* Itinerary timeline */
.itinerary {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.itinerary-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position: relative;
}
.itinerary-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.08);
}
.itinerary-step-num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  flex-shrink: 0;
}
.itinerary-step-num::before { content: counter(step); }
.itinerary-step-body h3 {
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.itinerary-step-body p {
  font-size: 14.5px;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin: 0;
}
.section-title-mark {
  color: var(--orange);
  font-weight: inherit;
}
.itinerary-note {
  margin: 22px 0 0;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-dark-muted);
}

/* ===========================================================
   New pages: Bring Your Group, Why Rafiki, Meet Rafiki,
   Plan Your Trip, Rafiki Journal
   =========================================================== */

/* ----- Placeholder photo (used wherever real photography is missing —
   e.g. Loki / Mauren portraits — so it can never be mistaken for a real,
   final image) ----- */
.placeholder-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 10px, var(--cream) 10px, var(--cream) 20px);
  border: 2px dashed rgba(32,28,22,0.3);
  border-radius: var(--radius);
  text-align: center;
  padding: 24px;
}
.placeholder-photo span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  max-width: 220px;
}

/* ----- Generic intro block for simple pages (Why Rafiki, Plan Your Trip) ----- */
.intro-block { max-width: 760px; margin: 0 auto 56px; }
.intro-block p { font-size: 17px; line-height: 1.7; color: var(--text-dark-muted); margin: 0 0 16px; }

/* ----- Asymmetric title/copy intro (Why Stay Here) ----- */
.why-stay-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.why-stay-intro .section-title { margin-bottom: 0; }
.why-stay-intro p { color: var(--text-dark-muted); font-size: 16px; line-height: 1.75; margin: 0; }

/* ----- Not-for-everyone split (Why Rafiki) ----- */
.filter-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(32,28,22,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}
.filter-split-col { background: var(--cream); padding: 40px; }
.filter-split-col.is-yes { background: var(--dark); color: var(--text-light); }
.filter-split-col h3 { font-size: 22px; margin-bottom: 16px; }
.filter-split-col.is-yes h3 { color: #fff; }
.filter-split-col ul { margin: 0; padding: 0; list-style: none; }
.filter-split-col li {
  padding: 10px 0;
  border-top: 1px solid rgba(32,28,22,0.08);
  font-size: 15px;
  line-height: 1.5;
}
.filter-split-col.is-yes li { border-top-color: rgba(255,255,255,0.12); color: var(--text-muted); }
.filter-split-col li:first-child { border-top: none; }

/* ----- Meet Rafiki: profile cards ----- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.profile-card { display: flex; flex-direction: column; gap: 20px; }
.profile-card .placeholder-photo,
.profile-card img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-card h3 { font-size: 26px; margin-bottom: 4px; }
.profile-card .profile-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.profile-card p { font-size: 15px; line-height: 1.7; color: var(--text-dark-muted); margin: 0 0 12px; }
@media (max-width: 780px) {
  .profile-grid { grid-template-columns: 1fr; }
  .filter-split { grid-template-columns: 1fr; }
}

/* ----- Plan Your Trip: quick-facts + FAQ ----- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.plan-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.plan-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(32,28,22,0.08);
}
.plan-card svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.plan-card h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 10px; }
.plan-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-dark-muted); margin: 0; }
/* Column-count modifiers are declared above with higher specificity than
   .plan-grid alone, so the breakpoints must target them too. */
@media (max-width: 900px) { .plan-grid, .plan-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plan-grid, .plan-grid.cols-4, .plan-grid.cols-2 { grid-template-columns: 1fr; } }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(32,28,22,0.12);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.3px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--orange);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark-muted);
}

/* ----- Bring Your Group: form ----- */
.group-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.group-intro h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 20px; }
.group-intro p { font-size: 16px; line-height: 1.7; color: var(--text-dark-muted); margin: 0 0 16px; }
.group-intro ul { margin: 24px 0 0; padding: 0; list-style: none; }
.group-intro li {
  padding: 12px 0;
  border-top: 1px solid rgba(32,28,22,0.1);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.group-intro li:first-child { border-top: none; }
.group-intro li svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--orange); margin-top: 2px; }

.rafiki-form { background: #fff; border-radius: var(--radius); padding: 36px; border: 1px solid rgba(32,28,22,0.08); }
.rafiki-form-row { margin-bottom: 18px; }
.rafiki-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rafiki-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dark-muted);
  margin-bottom: 6px;
}
.rafiki-form input,
.rafiki-form select,
.rafiki-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(32,28,22,0.18);
  background: var(--cream);
  color: var(--text-dark);
}
.rafiki-form textarea { min-height: 110px; resize: vertical; }
.rafiki-form input:focus,
.rafiki-form select:focus,
.rafiki-form textarea:focus { outline: none; border-color: var(--orange); }
.rafiki-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-notice {
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  margin-bottom: 24px;
}
.form-notice.is-success { background: #e6f4ea; color: #1e6b34; border: 1px solid #b8dfc4; }
.form-notice.is-error { background: #fbe9e7; color: #a13a2c; border: 1px solid #f0c4bd; }

@media (max-width: 900px) {
  .group-layout { grid-template-columns: 1fr; }
  .rafiki-form-row-2 { grid-template-columns: 1fr; }
}

/* ----- Rafiki Journal ----- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.journal-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(32,28,22,0.08); }
.journal-card img,
.journal-card .placeholder-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; min-height: 0; }
.journal-card-body { padding: 22px; }
.journal-card-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.journal-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.journal-card p { font-size: 14px; color: var(--text-dark-muted); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.journal-pagination .page-numbers {
  min-width: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(32,28,22,0.15);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.journal-pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.journal-pagination .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.journal-pagination .page-numbers.dots { border-color: transparent; }

.journal-article { max-width: 760px; margin: 0 auto; }
.journal-article-meta {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.journal-article-body { font-size: 17px; line-height: 1.8; color: var(--text-dark); }
.journal-article-body p { margin: 0 0 22px; }
.journal-article-body h2 { font-size: 26px; margin: 40px 0 16px; }

/* Package cross-sell chips */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.package-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
}
.package-card .package-name {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.package-card h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.package-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}
.package-card .package-price {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
}
.package-card .package-price span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 960px) {
  .detail-intro { grid-template-columns: 1fr; }
  .why-stay-intro { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .facts-card { position: static; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .variant-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 620px) {
  .page-hero-content { padding-top: 160px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .itinerary-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .itinerary-step-num { width: 44px; height: 44px; font-size: 17px; }
  .itinerary-step:not(:last-child)::before { left: 21px; top: 44px; }
  .rate-table { font-size: 12.5px; }
  .rate-table th, .rate-table td { padding: 12px 10px; }
}

/* Plain page.php pages have no hero, so their content must clear the
   fixed header itself. */
.page-plain { padding-top: 200px; }

/* ===========================
   Mobile polish — kept last so it wins over component rules declared
   after the main Responsive block above.
   =========================== */
.eyebrow { line-height: 1.45; }

@media (max-width: 620px) {
  .page-plain { padding-top: 150px; }

  /* Header: smaller logo so the fixed bar doesn't eat a seventh of the
     screen; slightly larger CTA text for legibility. */
  .logo img { height: 96px; }
  .header-actions .btn-primary { font-size: 11px; padding: 10px 12px; }
  .page-hero-content,
  .hero-content { padding-top: 140px; }
  .page-hero { min-height: 0; }
  .breadcrumb { line-height: 1.6; margin-bottom: 12px; }
  .hero-sub { font-size: 16px; }

  /* Buttons: allow long labels (with trailing arrows) to wrap cleanly
     and centered instead of leaving the arrow alone on a new line. */
  .btn { padding: 14px 22px; justify-content: center; text-align: center; flex-wrap: wrap; }
  .btn-group .btn { white-space: normal; }

  .section-title { margin-bottom: 32px; }
  .plan-card { padding: 24px; }

  /* Footer: link columns side by side instead of one long list. */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 40px; }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .site-footer { padding-top: 56px; }

  /* Gallery: big lead photo full-width, then clean pairs. The desktop
     span-2 on a later tile left holes in a 2-column grid. */
  .gallery-grid { grid-auto-flow: dense; grid-auto-rows: 130px; gap: 10px; }
  .gallery-grid > .span-2:not(.span-2-row) { grid-column: auto; }
  .gallery-grid > .span-2-row { grid-column: 1 / -1; grid-row: span 2; }
  .gallery-grid > :last-child:nth-child(even) { grid-column: 1 / -1; }

  /* Rates (4 columns) → one card per season. */
  .rate-table-stack thead { display: none; }
  .rate-table-stack,
  .rate-table-stack tbody,
  .rate-table-stack tr,
  .rate-table-stack td { display: block; width: 100%; }
  .rate-table-stack tr { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .rate-table-stack tr:last-child { border-bottom: none; }
  .rate-table-stack td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 18px;
    border-bottom: none;
    text-align: right;
  }
  .rate-table-stack td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-dark-muted);
    text-align: left;
    flex-shrink: 0;
  }
  .rate-table-stack td:first-child { font-weight: 700; }

  .facts-card { padding: 26px 22px; }
  .rafiki-form { padding: 24px 20px; }
  .filter-split-col { padding: 28px 22px; }
  .why-media-text { padding: 32px 22px; }
  .stat { padding: 32px 24px; }
  .testimonial-card { padding: 24px; }
  .cta-banner { padding: 88px 0; }
}

/* Narrow phones: keep CTA + hamburger on one row next to the logo. */
@media (max-width: 380px) {
  .header-actions .btn-primary { font-size: 10px; padding: 9px 10px; letter-spacing: 0.4px; }
}
@media (max-width: 340px) {
  .logo img { height: 84px; }
  .header-actions .btn-primary { font-size: 0; padding: 9px 12px; }
}

/* Open mobile menu: flush with the screen edges and scrollable — the
   header is position:fixed, so a menu taller than the viewport would
   otherwise leave its last links unreachable. */
@media (max-width: 1280px) {
  .site-header.nav-open .main-nav {
    margin-left: 0;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ----- Mobile menu accordion -----
   Only top-level items show; each submenu opens from the arrow button
   main.js inserts next to its parent link (one open at a time). */
.sub-toggle { display: none; }
@media (max-width: 1280px) {
  .site-header.nav-open .main-nav { gap: 0; padding: 6px 24px 18px; }
  .site-header.nav-open .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-header.nav-open .nav-item:last-child { border-bottom: none; }
  .site-header.nav-open .nav-item > a { display: block; padding: 15px 0; font-size: 13px; }
  .site-header.nav-open .nav-item.has-sub {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .site-header.nav-open .nav-item.has-sub > a { flex: 1; }
  .site-header.nav-open .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  .sub-toggle::before {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
  }
  .nav-item.sub-open > .sub-toggle { color: var(--orange); }
  .nav-item.sub-open > .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
  .site-header.nav-open .nav-item.sub-open > a { color: var(--orange); }
  .site-header.nav-open .sub-menu { display: none; }
  .site-header.nav-open .nav-item.has-sub.sub-open > .sub-menu {
    display: flex;
    flex-basis: 100%;
    padding: 0 0 16px 16px;
    gap: 14px;
  }
  .site-header.nav-open .sub-menu a { font-size: 12px; }
}

/* ----- Contact page ----- */
.contact-details li span { display: flex; flex-direction: column; gap: 2px; }
.contact-details li strong {
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}
.contact-details li a { color: var(--text-dark); font-weight: 600; }
.contact-details li a:hover { color: var(--orange); }
.contact-details li em { font-size: 13px; color: var(--text-dark-muted); }
.contact-details .btn-group .btn { flex: 0 1 auto; }
.rafiki-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-map { line-height: 0; scroll-margin-top: 90px; } /* clears the fixed header when linked as /contact/#map */
.contact-map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(0.25); }

/* ----- Journal article body: images, galleries, press logos, quotes ----- */
.journal-article-body figure { margin: 32px 0; }
.journal-article-body img { border-radius: var(--radius); width: 100%; height: auto; }
.journal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.journal-gallery img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.journal-press-logo {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(32,28,22,0.08);
  border-radius: var(--radius);
  padding: 28px;
}
.journal-press-logo img { width: auto; max-width: 220px; max-height: 140px; border-radius: 0; }
.journal-article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--orange);
  font-style: italic;
  color: var(--text-dark-muted);
}
.journal-article-body blockquote p { margin-bottom: 10px; }
.journal-article-body blockquote cite { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.journal-article-body .btn { margin-top: 8px; }
.journal-article-body a:not(.btn) { color: var(--orange-dark); text-decoration: underline; }

@media (max-width: 620px) {
  .contact-map iframe { height: 320px; }
  .journal-article-body { font-size: 16px; }
  .journal-gallery { gap: 8px; }
  .journal-press-logo { padding: 20px; }
}

/* ===== Bushmaster Enduro (Coming Soon teaser) =====
   Darker, more technical than the family pages, still Rafiki's palette. */
.bm-soon {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: rgba(232,121,26,0.14);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.page-hero .bm-soon { background: var(--orange); color: #fff; }
.bm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.bm-dark { background: var(--dark); color: var(--text-light); }
.bm-dark h2, .bm-dark h3 { color: var(--text-light); }
.bm-dark .intro-block p, .bm-dark p { color: var(--text-muted); }
.bm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bm-split img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.bm-split p { font-size: 17px; line-height: 1.7; color: var(--text-dark-muted); margin: 0 0 16px; }
.bm-chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bm-chips li {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}
.bm-expect { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.bm-expect .plan-card svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.bm-expect .plan-card h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 10px; }
.bm-expect .plan-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-dark-muted); margin: 0; }
.bm-waitlist { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.bm-big { font-size: clamp(48px, 8vw, 96px); line-height: 0.95; margin-bottom: 20px; }
.bm-waitlist p { font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; }
.bm-wa a { color: var(--orange); font-weight: 600; }
.bm-modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 36px 32px 32px;
  border: none;
  border-radius: 6px;
  background: var(--cream);
  color: var(--text-dark);
}
.bm-modal::backdrop { background: rgba(10,9,7,0.75); }
.bm-modal h2 { font-size: 30px; margin-bottom: 12px; }
.bm-modal > p { font-size: 15px; line-height: 1.6; color: var(--text-dark-muted); margin: 0 0 20px; }
.bm-modal .rafiki-form { padding: 0; border: none; background: transparent; }
.bm-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 30px; line-height: 1;
  color: var(--text-dark-muted); cursor: pointer;
}
@media (max-width: 1100px) { .bm-expect { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .bm-split, .bm-waitlist { grid-template-columns: 1fr; gap: 32px; }
  .bm-expect { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bm-expect { grid-template-columns: 1fr; }
  .bm-modal { padding: 32px 20px 24px; }
  .bm-modal .rafiki-form-row-2 { grid-template-columns: 1fr; }
}
