<?php
$settings = json_decode(file_get_contents('data/settings.json'), true);
?>
    <footer class="footer">
        <div class="container">
            <div class="footer-grid">
                <!-- Brand Info -->
                <div class="footer-brand">
                    <div style="display: flex; align-items: center; margin-bottom: 20px;">
                        <img src="<?php echo $settings['logo_url']; ?>" alt="<?php echo htmlspecialchars($settings['site_title']); ?>" class="logo-img">
                        <span class="footer-logo-text"><?php echo htmlspecialchars($settings['site_title']); ?></span>
                    </div>
                    <p class="footer-desc"><?php echo htmlspecialchars($settings['footer_desc']); ?></p>
                    <div style="margin-top: 25px;">
                        <a href="#" style="color: white; margin-right: 15px; font-size: 1.2rem;"><i class="fab fa-facebook-f"></i></a>
                        <a href="#" style="color: white; margin-right: 15px; font-size: 1.2rem;"><i class="fab fa-instagram"></i></a>
                        <a href="#" style="color: white; font-size: 1.2rem;"><i class="fab fa-linkedin-in"></i></a>
                    </div>
                </div>
                
                <!-- Quick Links -->
                <div class="footer-links">
                    <h4>Quick Links</h4>
                    <ul>
                        <li><a href="index.php">Home</a></li>
                        <li><a href="about.php">Who We Are</a></li>
                        <li><a href="projects.php">Ongoing Projects</a></li>
                        <li><a href="projects.php">Completed Projects</a></li>
                        <li><a href="contact.php">Contact Us</a></li>
                    </ul>
                </div>
                
                <!-- Contact Info -->
                <div class="footer-links">
                    <h4>Get In Touch</h4>
                    <ul>
                        <li><i class="fas fa-phone" style="color: var(--accent); width: 25px;"></i> <?php echo htmlspecialchars($settings['phone']); ?></li>
                        <li><i class="fas fa-envelope" style="color: var(--accent); width: 25px;"></i> <?php echo htmlspecialchars($settings['email']); ?></li>
                        <li style="display: flex; align-items: flex-start; margin-top: 15px;">
                            <i class="fas fa-map-marker-alt" style="color: var(--accent); width: 25px; margin-top: 5px;"></i>
                            <span><?php echo htmlspecialchars($settings['corporate_office']); ?></span>
                        </li>
                    </ul>
                </div>
                
                <!-- Newsletter -->
                <div class="footer-links">
                    <h4>Newsletter</h4>
                    <p style="color: #aaaaaa; margin-bottom: 15px;">Subscribe to our newsletter for the latest updates, exclusive properties, and more.</p>
                    <form class="newsletter-form" onsubmit="event.preventDefault(); alert('Thank you for subscribing!');">
                        <input type="email" placeholder="Your Email Address" required>
                        <button type="submit"><i class="fas fa-paper-plane"></i></button>
                    </form>
                </div>
            </div>
            
            <div class="footer-bottom">
                <p>&copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars($settings['site_title']); ?>. All Rights Reserved. Designed by <?php echo htmlspecialchars($settings['site_title']); ?>.</p>
            </div>
        </div>
    </footer>
    <script src="js/script.js"></script>
</body>
</html>
