  <!-- ============ CTA ============ -->
  <section class="cta-band">
    <div class="angle l"></div><div class="angle r"></div>
    <div class="container reveal">
      <h2>Ready to Make an Impact with Your Research?</h2>
      <a href="<?php echo GX_MAIN_SITE_URL; ?>/contact.php" class="btn-gx mx-auto">Get Started Free</a>
    </div>
  </section>

  <!-- FOOTER -->
  <footer class="footer" id="footer">
    <div class="container">
      <div class="row g-5">
        <div class="col-lg-4">
          <img src="<?php echo GX_MAIN_SITE_URL; ?>/images/logo.png" alt="Globinex Research" class="f-logo" />
          <div class="f-contact"><i class="bi bi-geo-alt-fill"></i> <a href="https://maps.google.com/?q=C1+Building+Ajman+United+Arab+Emirates" target="_blank" rel="noopener noreferrer" class="text-decoration-none text-reset" style="font-size: 16px;">
            C1, 1F - SF14129, C1 Building, Ajman, United Arab Emirates.
          </a></div>
          <div class="f-contact">
            <i class="bi bi-envelope-fill"></i>
            <a href="mailto:business@globinexresearch.com" class="text-decoration-none text-reset">business@globinexresearch.com</a>
          </div>
        </div>
        <div class="col-6 col-lg-2">
          <h5>EXPLORE</h5>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/about.php">About GXR</a>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/solutions.php">Solutions</a>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/case-studies.php">Case Studies</a>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/careers.php">Join the GXR Team</a>
          <a class="f-link" href="<?php echo home_url('/'); ?>">Blog</a>
        </div>
        <div class="col-6 col-lg-2">
          <h5>OUR SERVICES</h5>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/solutions.php">Fast Development</a>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/solutions.php">All Support</a>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/solutions.php">Market Research</a>
          <a class="f-link" href="<?php echo GX_MAIN_SITE_URL; ?>/solutions.php">Solution</a>
        </div>
        <div class="col-lg-4">
          <h5>Newsletter</h5>
          <p class="f-news">Don't miss the latest news</p>
          <form class="news-form" onsubmit="return false;"><input type="email" placeholder="Enter email..." /><button type="submit"><i class="bi bi-arrow-right"></i></button></form>
        </div>
      </div>
      <div class="footer-bottom d-flex justify-content-between align-items-center flex-wrap gap-3">
        <div class="copy">
          © 2026, All Right Reserved | Globinex Research
        </div>

        <div class="footer-legal-links d-flex gap-3">
          <a href="<?php echo GX_MAIN_SITE_URL; ?>/terms-and-conditions.php" class="text-decoration-none text-white">Terms &amp; Conditions</a>
          <span>|</span>
          <a href="<?php echo GX_MAIN_SITE_URL; ?>/privacy-policy.php" class="text-decoration-none text-white">Privacy Policy</a>
        </div>

        <div class="d-flex gap-3">
          <a class="social-ic" href="#"><i class="bi bi-whatsapp"></i></a>
          <a class="social-ic" href="#"><i class="bi bi-linkedin"></i></a>
          <a class="social-ic" href="#"><i class="bi bi-instagram"></i></a>
        </div>
      </div>
    </div>
  </footer>

  <?php wp_footer(); ?>

  <script type="text/javascript">
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({
        pageLanguage: 'en',
        layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
        autoDisplay: false
      }, 'google_translate_element');
    }
  </script>
  <script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
  <script>
    (function () {
      var wrap = document.getElementById('langSwitch');
      if (!wrap) return;
      var trigger = document.getElementById('langTrigger');
      var menu = document.getElementById('langMenu');
      var label = document.getElementById('langTriggerLabel');

      trigger.addEventListener('click', function (e) {
        e.preventDefault();
        wrap.classList.toggle('open');
      });
      document.addEventListener('click', function (e) {
        if (!wrap.contains(e.target)) wrap.classList.remove('open');
      });
      document.addEventListener('keydown', function (e) {
        if (e.key === 'Escape') wrap.classList.remove('open');
      });

      function fireChange(el) {
        var evt = document.createEvent('HTMLEvents');
        evt.initEvent('change', true, true);
        el.dispatchEvent(evt);
      }

      function triggerTranslate(code, attemptsLeft) {
        var combo = document.querySelector('#google_translate_element select.goog-te-combo');
        if (combo) {
          combo.value = code;
          fireChange(combo);
          fireChange(combo);
          return;
        }
        if (attemptsLeft > 0) {
          setTimeout(function () { triggerTranslate(code, attemptsLeft - 1); }, 300);
        }
      }

      function restoreFromCookie(attemptsLeft) {
        var match = document.cookie.match(/googtrans=\/en\/([a-zA-Z\-]+)/);
        var code = match ? match[1] : null;
        if (!code || code === 'en') return;
        var item = menu.querySelector('.lang-item[data-lang="' + code + '"]');
        if (item) {
          label.textContent = item.getAttribute('data-label');
          menu.querySelectorAll('.lang-item').forEach(function (i) { i.classList.remove('active'); });
          item.classList.add('active');
        }
        triggerTranslate(code, attemptsLeft);
      }
      restoreFromCookie(15);

      menu.querySelectorAll('.lang-item').forEach(function (item) {
        item.addEventListener('click', function (e) {
          e.preventDefault();
          var code = item.getAttribute('data-lang');
          triggerTranslate(code, 10);
          label.textContent = item.getAttribute('data-label');
          menu.querySelectorAll('.lang-item').forEach(function (i) { i.classList.remove('active'); });
          item.classList.add('active');
          wrap.classList.remove('open');
        });
      });
    })();
  </script>
</body>
</html>
