<?php
$phone      = rush_get('rush_phone', '855.347.2445');
$phone_link = rush_get('rush_phone_link', '18553472445');
?>

<!-- ══════════════════════════════════
     FOOTER
══════════════════════════════════ -->
<footer class="site-footer">
  <div class="footer-inner">

    <!-- COL 1: Logo + Phone + Social -->
    <div class="footer-col footer-brand">
      <a href="<?php echo home_url(); ?>" class="foot-logo-link">
        <img src="<?php echo get_template_directory_uri(); ?>/assets/img/logo-white.webp" alt="Rushed Passport" style="height:38px;width:auto;display:block;margin-bottom:14px;">
      </a>
      <div class="foot-call-label">CALL TOLL FREE</div>
      <a href="tel:<?php echo esc_attr($phone_link); ?>" class="foot-phone"><?php echo esc_html($phone); ?></a>
      <div class="foot-social">
        <a href="https://www.facebook.com/RushedPassport" class="soc-btn" aria-label="Facebook">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="white"><path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"/></svg>
        </a>
        <a href="https://x.com/RushedPassport" class="soc-btn" aria-label="Twitter/X">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="white"><path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"/></svg>
        </a>
        <a href="https://www.instagram.com/rushedpassport/" class="soc-btn" aria-label="Instagram">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z"/><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"/></svg>
        </a>
        <a href="#" class="soc-btn" aria-label="LinkedIn">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="white"><path d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6z"/><rect x="2" y="9" width="4" height="12"/><circle cx="4" cy="4" r="2"/></svg>
        </a>
      </div>
    </div>

    <!-- COL 2: Services -->
    <div class="footer-col">
      <ol class="foot-list">
        <li><a href="/product/rushed-new-passport/">New Passport</a></li>
        <li><a href="/product/renew-passport/">Renew Passport</a></li>
        <li><a href="/product/minor-passport/">Child/Minor Passport</a></li>
        <li><a href="/product/name-change/">Name Change Service</a></li>
        <li><a href="/product/lost-stolen-passport/">Lost/Old Passport</a></li>
        <li><a href="/product/second-passport/">Second Passport</a></li>
      </ol>
    </div>

    <!-- COL 3: Company -->
    <div class="footer-col">
      <ol class="foot-list">
        <li><a href="/about-rushed/">About Us</a></li>
        <li><a href="/resources/">Resources</a></li>
        <li><a href="/locations/">Locations</a></li>
        <li><a href="/in-the-press/">In The News</a></li>
        <li><a href="/blog/">Blog</a></li>
        <li><a href="/contact-us/">Contact Us</a></li>
        <li><a href="/affiliates/">Affiliate Program</a></li>
      </ol>
    </div>

    <!-- COL 4: Hours + Payment -->
    <div class="footer-col footer-info">
      <div class="foot-hours-label">Office Hours</div>
      <div class="foot-hours">M–F (9:00AM – 9:00PM EST)<br>Appointments Only, NO Walk-Ins.</div>
      <div class="foot-accept-label">We Accept</div>
      <div class="foot-payments">
        <img src="<?php echo get_template_directory_uri(); ?>/assets/img/payments.svg" alt="Visa Mastercard Amex Discover" style="max-width:160px;height:auto;filter:brightness(0) invert(1) opacity(0.7);">
      </div>
    </div>

  </div>
</footer>

<!-- LEGAL BAR -->
<div class="legal-bar">
  <div class="legal-inner">
    <span class="legal-copy">First Passport &amp; Visa Services &copy; <?php echo date('Y'); ?></span>
    <div class="legal-badges">
      <span class="legal-badge">BBB A+</span>
      <span class="legal-badge">🔒 SafeSite</span>
    </div>
    <div class="legal-links">
      <a href="/sitemap/">Sitemap</a>
      <a href="/privacy-policy/">Privacy Policy</a>
      <a href="/refund-policy/">Refund Policy</a>
      <a href="/cookie-policy/">Cookie Policy</a>
      <a href="/terms/">Terms &amp; Conditions</a>
    </div>
  </div>
</div>

<?php wp_footer(); ?>
</body>
</html>
