/* ═══════════════════════════════════════════════════
   SAHARA VA SOLUTIONS — DESIGN SYSTEM v2
   Premium Editorial × Warm Kenyan Heritage
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600&family=Bebas+Neue&display=swap');

/* ── TOKENS ── */
:root {
  --c-bg:        #F7F2E8;
  --c-surface:   #FDFAF4;
  --c-dark:      #161009;
  --c-deep:      #211708;
  --c-mid:       #3A2D1A;
  --c-clay:      #BF6B2E;
  --c-rust:      #9E3D14;
  --c-amber:     #E8A030;
  --c-sage:      #6B8C5A;
  --c-sand:      #ECD9B8;
  --c-muted:     #7A6850;
  --c-line:      rgba(191,107,46,.15);

  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Outfit', sans-serif;
  --font-disp:   'Bebas Neue', sans-serif;

  --nav-h:       72px;
  --max-w:       1280px;
  --gutter:      clamp(1.5rem, 5vw, 5rem);

  --ease-out:    cubic-bezier(.22,.68,0,1.2);
  --ease-std:    cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-clay); border-radius: 3px; }

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
.nav {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 999;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  min-width: 420px;
  max-width: min(99vw, 1400px);
  background: rgba(247,242,232,0.65);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  border-radius: 2.5rem;
  border: 1.5px solid rgba(191,107,46,0.13);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: 0 4px 40px rgba(22,16,9,.08); }
.nav.scrolled {
  background: rgba(247,242,232,0.82);
  box-shadow: 0 8px 40px 0 rgba(31, 38, 135, 0.22);
}

.nav-logo {
  display: flex; flex-direction: column; line-height: 1;
}
.nav-logo-primary {
  font-family: var(--font-disp);
  font-size: 1.55rem; letter-spacing: .12em;
  color: var(--c-rust);
}
.nav-logo-secondary {
  font-family: var(--font-body);
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-clay); margin-top: 2px;
}

.nav-links {
  display: flex; align-items: center;
  gap: 2.2rem; list-style: none;
}
.nav-links a {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-mid);
  position: relative; padding-bottom: 3px;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--c-clay);
  transition: width .3s var(--ease-std);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-clay); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--c-rust);
  color: var(--c-surface) !important;
  padding: .6rem 1.5rem;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
  align-self: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0.5rem;
  margin-right: 0;
  display: flex;
  align-items: center;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--c-clay) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--c-mid);
  transition: .3s;
}

.nav-mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  padding: 1.5rem var(--gutter) 2rem;
  z-index: 998;
  flex-direction: column; gap: 1rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: .85rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-mid);
  padding: .6rem 0;
  border-bottom: 1px solid var(--c-line);
}

/* ══════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 7rem 0; }
.section-sm { padding: 4.5rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-clay); font-weight: 600;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--c-clay);
}

.h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 400; line-height: 1.04;
  letter-spacing: -.01em;
}
.h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400; line-height: 1.12;
}
.h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400; line-height: 1.2;
}
.h4 {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 500; line-height: 1.3;
}

em, .italic { font-style: italic; color: var(--c-clay); }

.body-lg { font-size: 1.1rem; line-height: 1.85; color: var(--c-mid); }
.body-md { font-size: .95rem; line-height: 1.8; color: var(--c-mid); }
.body-sm { font-size: .82rem; line-height: 1.7; color: var(--c-muted); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer; border: none;
  transition: all .2s var(--ease-std);
}
.btn-primary {
  background: var(--c-rust);
  color: var(--c-surface);
}
.btn-primary:hover { background: var(--c-clay); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(158,61,20,.25); }

.btn-outline {
  background: transparent;
  color: var(--c-rust);
  border: 1.5px solid var(--c-rust);
}
.btn-outline:hover { background: var(--c-rust); color: var(--c-surface); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--c-sand);
  border: 1px solid rgba(236,217,184,.35);
}
.btn-ghost-light:hover { border-color: var(--c-clay); color: var(--c-clay); }

.btn-arrow::after { content: ' →'; }

/* Divider */
.divider {
  width: 48px; height: 2px;
  background: var(--c-clay);
  margin: 1.5rem 0;
}

/* Grain overlay */
.grain::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* Cards */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(22,16,9,.1);
}

/* Tag */
.tag {
  display: inline-block;
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; padding: .3rem .8rem;
  border-radius: 20px;
}
.tag-clay { background: rgba(191,107,46,.12); color: var(--c-clay); }
.tag-sage { background: rgba(107,140,90,.12); color: var(--c-sage); }
.tag-rust { background: rgba(158,61,20,.1); color: var(--c-rust); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: var(--c-dark);
  padding: 5rem 0 0;
  border-top: 1px solid rgba(236,217,184,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(236,217,184,.07);
}
.footer-brand-logo {
  font-family: var(--font-disp);
  font-size: 2rem; letter-spacing: .1em;
  color: var(--c-clay);
  margin-bottom: .5rem;
}
.footer-brand-tag {
  font-family: var(--font-head);
  font-size: .9rem; font-style: italic;
  color: rgba(236,217,184,.4);
  margin-bottom: 1.8rem;
}
.footer-desc {
  font-size: .85rem; line-height: 1.75;
  color: rgba(236,217,184,.4);
  max-width: 320px;
  margin-bottom: 2rem;
}
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(236,217,184,.12);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: rgba(236,217,184,.4);
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--c-clay); color: var(--c-clay); }
.footer-col-title {
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--c-clay); font-weight: 600;
  margin-bottom: 1.4rem;
}
.footer-col a {
  display: block;
  font-size: .84rem; color: rgba(236,217,184,.4);
  margin-bottom: .8rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--c-sand); }
.footer-bottom {
  padding: 1.8rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-size: .72rem; letter-spacing: .06em;
  color: rgba(236,217,184,.2);
}
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a {
  font-size: .72rem; color: rgba(236,217,184,.2);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--c-clay); }

/* ══════════════════════════════════
   PAGE HERO BANNER (shared)
══════════════════════════════════ */
.page-hero {
  min-height: 60vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,16,9,.85) 40%, rgba(22,16,9,.3) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content .h1 { color: var(--c-sand); }
.page-hero-content .body-lg { color: rgba(236,217,184,.7); max-width: 560px; }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fadeup   { animation: fadeUp .8s var(--ease-out) both; }
.anim-fadein   { animation: fadeIn .8s var(--ease-std) both; }
.anim-d1 { animation-delay: .1s; }
.anim-d2 { animation-delay: .25s; }
.anim-d3 { animation-delay: .4s; }
.anim-d4 { animation-delay: .55s; }
.anim-d5 { animation-delay: .7s; }

/* Intersection observer animate class */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
