</main>

<section class="section-pad-sm" style="background:var(--color-cream);">
  <div class="container">
    <div class="form-card reveal" style="display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-6);">
      <div>
        <h3 style="margin-bottom:var(--space-2);">Never miss the right property</h3>
        <p class="text-muted" style="margin:0;">Join VIP Property Alerts and be the first to know when a matching listing goes live.</p>
      </div>
      <a href="/vip-alerts" class="btn btn-accent"><?= e(t('cta.join_vip_alerts')) ?> <?= icon('arrow-right', 16) ?></a>
    </div>
  </div>
</section>

<footer class="site-footer">
  <div class="container">
    <div class="footer-grid">
      <div class="footer-brand">
        <a href="/" class="brand" style="margin-bottom:var(--space-4);">
          <?php if ($logo = brand_asset('logo')): ?>
            <img src="/<?= e($logo) ?>" alt="<?= e(SITE_NAME) ?>" class="brand-logo-img brand-logo-img--footer">
          <?php else: ?>
            <span class="brand-mark">KY</span>
            <span class="brand-name" style="color:#fff;">Kigali Yacu<small>Properties</small></span>
          <?php endif; ?>
        </a>
        <p><?= e(t('footer.tagline')) ?></p>
        <div class="footer-social">
          <a href="<?= e(setting('facebook', SOCIAL_FACEBOOK)) ?>" aria-label="Facebook"><?= icon('facebook', 16) ?></a>
          <a href="<?= e(setting('instagram', SOCIAL_INSTAGRAM)) ?>" aria-label="Instagram"><?= icon('instagram', 16) ?></a>
          <a href="<?= e(setting('linkedin', SOCIAL_LINKEDIN)) ?>" aria-label="LinkedIn"><?= icon('linkedin', 16) ?></a>
          <a href="<?= e(setting('twitter', SOCIAL_TWITTER)) ?>" aria-label="Twitter"><?= icon('twitter', 16) ?></a>
          <a href="<?= e(setting('youtube', SOCIAL_YOUTUBE)) ?>" aria-label="YouTube"><?= icon('youtube', 16) ?></a>
        </div>
      </div>
      <div>
        <h4><?= e(t('footer.explore')) ?></h4>
        <ul>
          <li><a href="/properties?status=sale"><?= e(t('footer.buy_property')) ?></a></li>
          <li><a href="/properties?status=rent"><?= e(t('footer.rent_property')) ?></a></li>
          <li><a href="/investment-locations"><?= e(t('footer.investment_locations')) ?></a></li>
          <li><a href="/new-development"><?= e(t('footer.new_development')) ?></a></li>
          <li><a href="/buy-and-build"><?= e(t('footer.buy_build')) ?></a></li>
          <li><a href="/compare"><?= e(t('footer.compare_listings')) ?></a></li>
        </ul>
      </div>
      <div>
        <h4><?= e(t('footer.company')) ?></h4>
        <ul>
          <li><a href="/about"><?= e(t('footer.about_us')) ?></a></li>
          <li><a href="/services"><?= e(t('footer.services')) ?></a></li>
          <li><a href="/blog"><?= e(t('footer.blog')) ?></a></li>
          <li><a href="/news"><?= e(t('footer.news')) ?></a></li>
          <li><a href="/procurement"><?= e(t('footer.procurement')) ?></a></li>
        </ul>
      </div>
      <div>
        <h4><?= e(t('footer.support')) ?></h4>
        <ul>
          <li><a href="/contact"><?= e(t('footer.contact_us')) ?></a></li>
          <li><a href="/faq"><?= e(t('footer.faq')) ?></a></li>
          <li><a href="/vip-alerts"><?= e(t('footer.vip_alerts')) ?></a></li>
          <li><a href="/valuation"><?= e(t('footer.request_valuation')) ?></a></li>
          <li><a href="/list-your-property"><?= e(t('footer.list_property')) ?></a></li>
        </ul>
      </div>
      <div>
        <h4><?= e(t('footer.contact')) ?></h4>
        <ul>
          <li><a href="<?= e(tel_link()) ?>"><?= icon('phone', 14) ?> <?= e(setting('phone', SITE_PHONE)) ?></a></li>
          <li><a href="mailto:<?= e(setting('email', SITE_EMAIL)) ?>"><?= icon('mail', 14) ?> <?= e(setting('email', SITE_EMAIL)) ?></a></li>
          <li><?= icon('map-pin', 14) ?> <?= e(setting('address', SITE_ADDRESS)) ?></li>
        </ul>
        <form class="newsletter-form" action="/api/newsletter.php" method="post">
          <input type="email" name="email" placeholder="<?= e(t('footer.newsletter_placeholder')) ?>" aria-label="Email for newsletter" required>
          <button type="submit" class="btn btn-accent btn-sm"><?= e(t('footer.newsletter_button')) ?></button>
        </form>
      </div>
    </div>
    <div class="footer-bottom">
      <span>© <?= date('Y') ?> Kigali Yacu Properties. <?= e(t('footer.rights_reserved')) ?></span>
      <span>Designed for Rwanda's real estate market · <a href="/sitemap.xml"><?= e(t('footer.sitemap')) ?></a></span>
    </div>
  </div>
</footer>

<a href="<?= e(whatsapp_link('Hello! I would like to know more about a property on your website.')) ?>" class="float-whatsapp no-print" aria-label="Chat on WhatsApp" target="_blank" rel="noopener">
  <?= icon('whatsapp', 26) ?>
</a>

<script src="/assets/js/main.js" defer></script>
</body>
</html>
