<footer id="main-footer" style="background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)), url('https://images.pexels.com/photos/1032650/pexels-photo-1032650.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); background-size: cover; background-position: center; padding: 100px 50px 50px; color: #fff; font-family: 'Inter', sans-serif; overflow: hidden; position: relative;">
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 60px; max-width: 1200px; margin: 0 auto;">
        <!-- Brand & About -->
        <div>
            <style>
                .footer-logo-img { height: 350px !important; }
                @media (max-width: 768px) { .footer-logo-img { height: 200px !important; } }
            </style>
            <img src="<?= $root_prefix ?? '' ?>assets/img/logo.png" alt="Logo" class="footer-logo-img" style="margin-bottom: 30px; filter: brightness(0) invert(1);">
            <p style="color: #888; line-height: 1.8; font-size: 15px;">Discover the hidden gems of Sri Lanka with expert guides and premium travel packages. We create memories that last a lifetime.</p>
            <div style="display: flex; gap: 20px; margin-top: 30px;">
                <a href="https://www.facebook.com/share/1B5UjponQh/" target="_blank" style="color: #fff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='var(--primary)'" onmouseout="this.style.color='#fff'"><i class="fab fa-facebook"></i></a>
                <a href="#" style="color: #fff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='var(--primary)'" onmouseout="this.style.color='#fff'"><i class="fab fa-instagram"></i></a>
                <a href="https://share.google/EXJuDB3sHYYNwhpM9-" target="_blank" style="color: #fff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='var(--primary)'" onmouseout="this.style.color='#fff'"><i class="fas fa-map-marker-alt"></i></a>
                <a href="https://www.tripadvisor.com/Profile/GoPlaces610138" target="_blank" style="color: #fff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='var(--primary)'" onmouseout="this.style.color='#fff'"><i class="fab fa-tripadvisor"></i></a>
            </div>
        </div>

        <!-- Quick Links -->
        <div>
            <h4 style="font-size: 18px; font-weight: 700; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px;">Explore</h4>
            <ul style="list-style: none; padding: 0;">
                <li style="margin-bottom: 15px;"><a href="index.php" style="color: #888; text-decoration: none; transition: 0.3s;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#888'">Home</a></li>
                <li style="margin-bottom: 15px;"><a href="about.php" style="color: #888; text-decoration: none; transition: 0.3s;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#888'">About Sri Lanka</a></li>
                <li style="margin-bottom: 15px;"><a href="packages.php" style="color: #888; text-decoration: none; transition: 0.3s;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#888'">Popular Tours</a></li>
                <li style="margin-bottom: 15px;"><a href="gallery.php" style="color: #888; text-decoration: none; transition: 0.3s;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#888'">Gallery</a></li>
                <li style="margin-bottom: 15px;"><a href="contact.php" style="color: #888; text-decoration: none; transition: 0.3s;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#888'">Contact Us</a></li>
            </ul>
        </div>

        <!-- Contact Info -->
        <div>
            <h4 style="font-size: 18px; font-weight: 700; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px;">Get in Touch</h4>
            <p style="color: #888; margin-bottom: 15px;"><i class="fas fa-map-marker-alt" style="color: var(--primary); margin-right: 15px;"></i> No 14, Sangamittarama road, Ramukkana, Bandaragama, Sri lanka</p>
            <p style="color: #888; margin-bottom: 15px;"><i class="fas fa-phone" style="color: var(--primary); margin-right: 15px;"></i> Hotlines: +94 77 195 7420 / +94 777 291189 | Office: +94 38 2289880 / +94 70 1111339</p>
            <p style="color: #888; margin-bottom: 15px;"><i class="fas fa-envelope" style="color: var(--primary); margin-right: 15px;"></i> methsisilatours@gmail.com / ranga@methsisilatours.com / lanka@methsisilatours.com</p>
        </div>
    </div>

    <div style="margin-top: 80px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center;">
        <p style="color: #555; font-size: 14px;">&copy; <?= date('Y') ?> methsisila. All rights reserved. | <a href="<?= $root_prefix ?? '' ?>admin/login.php" style="color: #444; text-decoration: none;">Admin Dashboard</a></p>
    </div>
</footer>

<?php if(!empty($settings['whatsapp_number'])): ?>
<style>
    @media (max-width: 768px) {
        .whatsapp-float {
            bottom: 100px !important; /* Move higher to avoid overlap with inquiry bar */
            right: 20px !important;
            width: 50px !important;
            height: 50px !important;
        }
    }
</style>
<a href="https://wa.me/<?= htmlspecialchars($settings['whatsapp_number']) ?>" target="_blank" class="whatsapp-float" style="position: fixed; bottom: 30px; right: 30px; background: #25d366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 1000; text-decoration: none; transition: transform 0.3s;" onmouseover="this.style.transform='scale(1.1)'" onmouseout="this.style.transform='scale(1)'">
    <i class="fab fa-whatsapp fs-3"></i> 
</a>
<?php endif; ?>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
  AOS.init({
    duration: 1000,
    once: true
  });
</script>
<script src="assets/js/main.js"></script>
</body>
</html>
