<footer class="bg-primary-dark text-white font-sans relative">
  <div class="container mx-auto px-6 pt-16 pb-12">
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 lg:gap-8">

      <!-- Brand Column -->
      <div class="space-y-6">
        <div>
          <h3 class="text-2xl font-black uppercase tracking-tighter leading-none mb-4">
            Mount Kenya <br><span class="text-secondary">Treks and Safaris.</span>
          </h3>
          <p class="text-white text-sm leading-relaxed max-w-xs">
            The premier guiding service for the Mount Kenya massif. We combine local expertise with international safety standards.
          </p>
        </div>

        <div class="flex gap-3">
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-secondary hover:text-white transition-all duration-300">
            <i data-lucide="instagram" class="w-4 h-4"></i>
          </a>
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-secondary hover:text-white transition-all duration-300">
            <i data-lucide="facebook" class="w-4 h-4"></i>
          </a>
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-secondary hover:text-white transition-all duration-300">
            <i data-lucide="youtube" class="w-4 h-4"></i>
          </a>
        </div>
      </div>

      <!-- Expeditions -->
      <div>
        <h4 class="text-xs font-black uppercase tracking-[0.2em] text-secondary mb-5">Expeditions</h4>
        <ul class="space-y-3">
          <li><a href="<?= base_url('tours?route=sirimon') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Sirimon Route</a></li>
          <li><a href="<?= base_url('tours?route=chogoria') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Chogoria Route</a></li>
          <li><a href="<?= base_url('tours?route=naro-moru') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Naro Moru Route</a></li>
          <li><a href="<?= base_url('tours?type=summit-circuit') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Summit Circuit</a></li>
          <li><a href="<?= base_url('tours?type=wildlife') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Wildlife Safaris</a></li>
        </ul>
      </div>

      <!-- Company -->
      <div>
        <h4 class="text-xs font-black uppercase tracking-[0.2em] text-secondary mb-5">Company</h4>
        <ul class="space-y-3">
          <li><a href="<?= base_url('about') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">About the Team</a></li>
          <li><a href="<?= base_url('blog') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Expedition Log</a></li>
          <li><a href="<?= base_url('faqs') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Climbing FAQs</a></li>
          <li><a href="<?= base_url('gear-list') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Essential Gear</a></li>
          <li><a href="<?= base_url('contact') ?>" class="text-white/80 hover:text-secondary transition-colors inline-block text-sm">Contact Us</a></li>
        </ul>
      </div>

      <!-- Contact & Trust -->
      <div class="space-y-6">
        <h4 class="text-xs font-black uppercase tracking-[0.2em] text-secondary mb-5">Basecamp Support</h4>
        <ul class="space-y-4 text-white/80">
          <li class="flex items-start gap-3">
            <i data-lucide="map-pin" class="w-5 h-5 text-secondary shrink-0 mt-0.5"></i>
            <span class="text-sm leading-relaxed">Nanyuki Town, Central Kenya<br>Mount Kenya Region</span>
          </li>
          <li class="flex items-center gap-3">
            <i data-lucide="phone" class="w-5 h-5 text-secondary shrink-0"></i>
            <a href="tel:+254725814384" class="text-white/80 hover:text-secondary text-sm font-medium transition-colors">+254 725 814384</a>
          </li>
          <li class="flex items-center gap-3">
            <i data-lucide="mail" class="w-5 h-5 text-secondary shrink-0"></i>
            <a href="mailto:info@mountkenyatreks.co.ke" class="text-white/80 hover:text-secondary text-sm font-medium transition-colors">info@mountkenyatreks.co.ke</a>
          </li>
        </ul>

        <div class="pt-5 border-t border-secondary/20">
          <div class="flex items-center gap-3 opacity-90">
            <i data-lucide="shield-check" class="w-7 h-7 text-secondary"></i>
            <div>
              <span class="text-[10px] font-black uppercase text-white block">Licensed by</span>
              <span class="text-[9px] uppercase text-white/60">Tourism Regulatory Authority</span>
            </div>
          </div>
        </div>
      </div>

    </div>
  </div>

  <!-- Bottom Bar -->
  <div class="bg-primary border-t border-primary/30">
    <div class="container mx-auto px-6 py-5">
      <div class="flex flex-col md:flex-row justify-between items-center gap-4 text-xs">
        <p class="text-white/70 font-medium">
          &copy; <?= date('Y') ?> Mount Kenya Treks & Safaris. All rights reserved.
        </p>

        <div class="flex items-center gap-5">
          <a href="#" class="text-white/70 hover:text-secondary transition-colors">Privacy Policy</a>
          <a href="#" class="text-white/70 hover:text-secondary transition-colors">Terms of Service</a>
          <div class="flex items-center gap-2 ml-4 border-l border-secondary/30 pl-5">
            <i data-lucide="credit-card" class="w-4 h-4 text-white"></i>
            <span class="text-[10px] text-white uppercase font-bold">Secure Payment</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</footer>

<!-- WhatsApp Floating Button (unchanged, but ensured visible) -->
<div class="fixed bottom-6 right-6 z-50">
  <a href="https://wa.me/254725814384" target="_blank" class="relative group flex items-center justify-center">
    <span class="absolute inline-flex h-16 w-16 rounded-full bg-secondary opacity-20 animate-ping"></span>
    <span class="absolute inline-flex h-12 w-12 rounded-full bg-secondary opacity-40 animate-pulse"></span>
    
    <div class="relative bg-secondary w-14 h-14 rounded-full shadow-[0_4px_20px_rgba(234,83,24,0.5)] flex items-center justify-center group-hover:bg-secondary/90 group-hover:-translate-y-1 transition-all duration-300">
      <svg viewBox="0 0 24 24" class="w-7 h-7 fill-white" xmlns="http://www.w3.org/2000/svg">
        <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
      </svg>
    </div>

    <span class="absolute right-16 top-1/2 -translate-y-1/2 bg-white text-primary-dark text-xs font-bold py-1.5 px-3 rounded-lg shadow-lg opacity-0 group-hover:opacity-100 transition-all duration-300 pointer-events-none whitespace-nowrap">
      Chat with us
    </span>
  </a>
</div>

<script>
  if (typeof lucide !== 'undefined') {
    lucide.createIcons();
  }
</script>