/* =========================================================
   Kigali Charm Safaris — styles
   Warm safari / earthy palette · single-page · mobile-first
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --terracotta: #B5651D;
  --terracotta-dk: #984e11;
  --ochre: #D9A441;
  --olive: #6B7A4F;
  --olive-dk: #4f5c39;
  --sand: #F4EDE0;
  --sand-dk: #E7DBC7;
  --charcoal: #2B2621;
  --charcoal-soft: #4a4239;
  --cream: #FBF7EF;
  --white: #ffffff;

  /* semantic */
  --bg: var(--sand);
  --surface: var(--cream);
  --text: var(--charcoal);
  --muted: var(--charcoal-soft);
  --accent: var(--terracotta);

  /* fluid type */
  --fs-eyebrow: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
  --fs-hero: clamp(2.3rem, 1.5rem + 4vw, 4.5rem);

  /* spacing */
  --sp-sm: clamp(0.75rem, 0.6rem + 0.6vw, 1.1rem);
  --sp-md: clamp(1.2rem, 1rem + 1vw, 2rem);
  --sp-lg: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(43, 38, 33, 0.08);
  --shadow-md: 0 10px 30px rgba(43, 38, 33, 0.12);
  --shadow-lg: 0 24px 60px rgba(43, 38, 33, 0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; line-height: 1.12; font-weight: 700; }
ul { list-style: none; padding: 0; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.7rem;
}
.eyebrow--light { color: var(--ochre); }
.section__head { max-width: 640px; margin-bottom: var(--sp-lg); }
.section__head h2 { font-size: var(--fs-h2); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--charcoal); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.5rem;
  font-weight: 600; font-size: 0.98rem;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease-spring), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--terracotta); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracotta-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.7); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.95); color: var(--charcoal); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #0a3d1c; }
.btn--wa:hover { background: #1fb857; transform: translateY(-2px); }

.link-arrow { display: inline-block; margin-top: 0.6rem; font-weight: 600; color: var(--terracotta); transition: gap 0.2s; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(251, 247, 239, 0.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--white); }
.site-header.scrolled .brand { color: var(--charcoal); }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta); color: var(--cream); flex-shrink: 0; }
.brand__text { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand__text em { font-style: italic; color: var(--ochre); }

.primary-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.primary-nav a { color: var(--white); font-weight: 500; font-size: 0.98rem; transition: color 0.2s; }
.site-header.scrolled .primary-nav a { color: var(--charcoal-soft); }
.primary-nav a:not(.btn):hover { color: var(--ochre); }
.nav__cta { color: #0a3d1c !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; z-index: 120;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.site-header.scrolled .nav-toggle span, body.nav-open .nav-toggle span { background: var(--charcoal); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(43,38,33,0.55) 0%, rgba(43,38,33,0.15) 35%, rgba(43,38,33,0.65) 100%),
    linear-gradient(90deg, rgba(43,38,33,0.55), rgba(43,38,33,0) 60%);
}
.hero__content { color: var(--white); max-width: 760px; padding-top: var(--header-h); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: var(--fs-eyebrow); font-weight: 600; color: var(--ochre); margin-bottom: 1rem; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero__sub { margin-top: 1.2rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 560px; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.7); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-lg); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; right: -14px; bottom: -20px;
  background: var(--olive); color: var(--cream);
  border-radius: var(--radius); padding: 0.9rem 1.2rem;
  display: flex; align-items: center; gap: 0.6rem; box-shadow: var(--shadow-md);
}
.about__badge strong { font-family: "Playfair Display", serif; font-size: 2.4rem; line-height: 1; }
.about__badge span { font-size: 0.82rem; line-height: 1.2; }
.about__text h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.about__text p { color: var(--muted); margin-bottom: 1rem; }
.about__text .btn { margin-top: 0.6rem; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.why__card {
  background: var(--surface); border-radius: var(--radius);
  padding: var(--sp-md); box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-dk);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease);
}
.why__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(181,101,29,0.12); color: var(--terracotta); margin-bottom: 1rem; }
.why__card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.why__card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dk) 100%); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.service {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service--wide { grid-column: 1 / -1; flex-direction: row; }
.service__media { position: relative; overflow: hidden; background: var(--olive); }
.service__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform 0.6s var(--ease); }
.service:hover .service__media img { transform: scale(1.06); }
.service--wide .service__media { flex: 1 1 45%; }
.service--wide .service__media img { aspect-ratio: auto; min-height: 260px; }
.service__body { padding: var(--sp-md); }
.service--wide .service__body { flex: 1 1 55%; display: flex; flex-direction: column; justify-content: center; }
.service__body h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.service__body p { color: var(--muted); }

/* ---------- Destinations ---------- */
.destinations { background: var(--charcoal); color: var(--cream); }
.destinations .section__head h2 { color: var(--cream); }
.dest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.dest { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; display: block; box-shadow: var(--shadow-md); }
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%); }
.dest:hover img { transform: scale(1.07); }
.dest__label { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2; display: flex; flex-direction: column; color: #fff; font-size: 0.9rem; }
.dest__label strong { font-family: "Playfair Display", serif; font-size: 1.6rem; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--olive-dk) 0%, var(--olive) 100%); color: var(--cream); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-lg); align-items: center; }
.contact__text h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 0.8rem; }
.contact__text p { color: rgba(255,255,255,0.9); max-width: 420px; }
.contact__cards { display: grid; gap: var(--sp-sm); }
.contact__card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 1rem; align-items: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px); border-radius: var(--radius);
  padding: 1rem 1.3rem; transition: transform 0.2s var(--ease-spring), background 0.2s var(--ease);
}
.contact__card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.18); }
.contact__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.15); color: #fff; }
.contact__k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ochre); }
.contact__v { font-weight: 600; color: #fff; word-break: break-word; }
.contact__card--wa { background: #25D366; border-color: #25D366; }
.contact__card--wa:hover { background: #22c35d; }
.contact__card--wa .contact__ic { background: rgba(255,255,255,0.25); }
.contact__card--wa .contact__k { color: #0a3d1c; }
.contact__card--wa .contact__v { color: #0a3d1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(251,247,239,0.85); padding-top: var(--sp-lg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-lg); padding-bottom: var(--sp-lg); }
.footer__brand .brand__text { color: #fff; font-size: 1.3rem; }
.footer__brand p { margin-top: 0.8rem; max-width: 340px; font-size: 0.95rem; color: rgba(251,247,239,0.7); }
.footer__nav h4, .footer__contact h4 { color: var(--ochre); font-family: "Inter", sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.9rem; }
.footer__nav li, .footer__contact li { margin-bottom: 0.5rem; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--ochre); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1.3rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: rgba(251,247,239,0.6); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--cream); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    padding: calc(var(--header-h) + 1.5rem) 1.8rem 2rem; overflow-y: auto;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .primary-nav a:not(.btn) { display: block; padding: 0.75rem 0; color: var(--charcoal); border-bottom: 1px solid var(--sand-dk); }
  .nav__cta { margin-top: 0.8rem; }

  .about__grid, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .service--wide { flex-direction: column; }
  .service--wide .service__media img { min-height: 220px; }
  .dest__grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .why__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
}
