<?php if(!defined('SITE_NAME')) require_once dirname(__DIR__).'/config.php'; ?>
<!-- Footer -->
<footer class="site-footer">
  <div class="footer-top">
    <div class="container">
      <div class="row">
        <div class="col-xl-4 col-lg-4 col-md-6 mb-4">
          <div class="footer-brand mb-3">
            <?php if(defined('LOGO_URL') && LOGO_URL !== ''): ?>
              <img src="<?php echo LOGO_URL; ?>" alt="<?php echo SITE_NAME; ?>" class="footer-logo-img">
            <?php else: ?>
              <svg width="150" height="38" viewBox="0 0 150 38" fill="none" xmlns="http://www.w3.org/2000/svg">
                <rect width="36" height="36" rx="8" fill="#2563eb"/>
                <text x="6" y="26" font-family="Nunito,sans-serif" font-size="20" font-weight="800" fill="white">D</text>
                <text x="42" y="26" font-family="Nunito,sans-serif" font-size="20" font-weight="800" fill="white">domains</text>
              </svg>
            <?php endif; ?>
          </div>
          <p class="footer-desc"><?php echo SITE_NAME; ?> will enhance your visitors' experience with a uniquely optimized and stable SSD based Web Hosting service at an affordable price.</p>
          <div class="mt-3">
            <a href="tel:<?php echo PHONE_RAW; ?>" style="color:rgba(255,255,255,.7);font-size:14px;">
              <i class="fas fa-phone me-2" style="color:#60a5fa;"></i><?php echo PHONE_DISPLAY; ?>
            </a>
          </div>
        </div>
        <div class="col-xl-2 col-lg-2 col-md-6 mb-4">
          <h5 class="footer-heading">Services</h5>
          <ul class="footer-links">
            <li><a href="web-hosting.php"><i class="fas fa-angle-right me-1"></i>Web Hosting</a></li>
            <li><a href="vps-hosting.php"><i class="fas fa-angle-right me-1"></i>VPS Hosting</a></li>
            <li><a href="email-hosting.php"><i class="fas fa-angle-right me-1"></i>eMail Hosting</a></li>
          </ul>
        </div>
        <div class="col-xl-2 col-lg-2 col-md-6 mb-4">
          <h5 class="footer-heading">Company</h5>
          <ul class="footer-links">
            <li><a href="index.php"><i class="fas fa-angle-right me-1"></i>Home</a></li>
            <li><a href="contact.php"><i class="fas fa-angle-right me-1"></i>Contact Us</a></li>
            <li><a href="privacy-policy.php"><i class="fas fa-angle-right me-1"></i>Privacy Policy</a></li>
            <li><a href="tos.php"><i class="fas fa-angle-right me-1"></i>Terms of Service</a></li>
          </ul>
        </div>
        <div class="col-xl-4 col-lg-4 col-md-6 mb-4">
          <h5 class="footer-heading">Contact Us</h5>
          <ul class="footer-contact-list">
            <li><i class="fas fa-phone me-2"></i><a href="tel:<?php echo PHONE_RAW; ?>"><?php echo PHONE_DISPLAY; ?></a></li>
            <li><i class="fas fa-envelope me-2"></i><a href="mailto:<?php echo EMAIL_SALES; ?>"><?php echo EMAIL_SALES; ?></a></li>
            <li><i class="fas fa-clock me-2"></i>24/7 x 365 Days Support</li>
            <li><i class="fas fa-user me-2"></i><a href="<?php echo CLIENT_AREA_URL; ?>" target="_blank">Client Area Login</a></li>
          </ul>
          <div class="mt-3">
            <span style="font-size:12px;color:rgba(255,255,255,.4);background:rgba(255,255,255,.07);padding:4px 12px;border-radius:20px;">
              <i class="fas fa-certificate me-1" style="color:#60a5fa;"></i>.IN Accredited Registrar
            </span>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="footer-bottom">
    <div class="container">
      <div class="footer-text text-center">
        <p>&copy; <span id="currentYear"></span> <a href="index.php"><?php echo SITE_NAME; ?></a> — All Rights Reserved</p>
        <p>18% GST of Indian Government applicable for all services.</p>
      </div>
    </div>
  </div>
</footer>

</div><!-- .page-wrapper -->

<?php
  $wa_number  = defined('WHATSAPP_NUMBER')  ? WHATSAPP_NUMBER  : '917094300800';
  $wa_message = defined('WHATSAPP_MESSAGE') ? WHATSAPP_MESSAGE : 'Hello! I need help with my domain/hosting.';
?>
<!-- WhatsApp Floating Button -->
<a class="wa-fab"
   href="https://wa.me/<?php echo $wa_number; ?>?text=<?php echo rawurlencode($wa_message); ?>"
   target="_blank" rel="noopener" title="Chat with us on WhatsApp">
  <svg class="wa-icon" viewBox="0 0 24 24" fill="currentColor" 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>
  <span class="wa-label">WhatsApp</span>
</a>

<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
  /* ---- Year ---- */
  document.getElementById('currentYear').textContent = new Date().getFullYear();

  /* ---- Bootstrap tooltips ---- */
  document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(function(el){
    new bootstrap.Tooltip(el);
  });

</script>
</body>
</html>
