<?php
require_once 'includes/config.php';
$pageTitle = 'Visitors | 20th Kenya Expo 2026';
$pageDesc  = 'Visit the 20th Kenya Expo 2026 — free entry. 4 days, 200+ exhibitors, 16+ countries. B2B networking, 30 conference sessions, Kenya Expo Excellence Awards.';
$images    = readJSON(IMAGES_FILE);
$cats      = readJSON(EXHIBITOR_CATS_FILE);
require_once 'includes/header.php';
?>

<!-- SECTION 1 — HERO -->
<section class="hero-section" style="min-height:60vh;">
  <div class="hero-bg" style="background-image: url('<?php echo htmlspecialchars($images['networking'] ?? ''); ?>');"></div>
  <div class="hero-pattern"></div>
  <div class="container hero-content text-center">
    <div class="hero-badge reveal"><i class="fas fa-ticket me-2"></i>FREE ENTRY</div>
    <h1 class="hero-title reveal reveal-delay-1">Visit Kenya's<br><span>Trade Expo 2026</span></h1>
    <p class="hero-subtitle reveal reveal-delay-2">4 Days. 200+ Exhibitors. 16+ Countries. Free Entry.</p>
    <div class="hero-buttons justify-content-center reveal reveal-delay-3">
      <a href="#visitorForm" class="btn btn-gold btn-lg">Register Free Now</a>
      <!-- <a href="/programme.php" class="btn btn-outline-gold btn-lg">View Programme</a> -->
    </div>
  </div>
</section>

<!-- SECTION 2 — WHY VISIT -->
<section class="section-padding">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Why Visit</span>
      <h2 class="section-title text-center">4 Reasons to Attend</h2>
    </div>
    <div class="row g-4 mt-2">
      <div class="col-md-6 col-lg-3 reveal">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-shopping-cart"></i></div>
          <h4>Source Products</h4>
          <p>Find suppliers and products from 16+ countries across different industry sectors.</p>
        </div>
      </div>
      <div class="col-md-6 col-lg-3 reveal reveal-delay-1">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-handshake"></i></div>
          <h4>B2B Networking</h4>
          <p>Attend free B2B networking sessions with pre-qualified exhibitors and buyers.</p>
        </div>
      </div>
      <div class="col-md-6 col-lg-3 reveal reveal-delay-2">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-microphone"></i></div>
          <h4>Conference Sessions</h4>
          <p>Access expert-led sessions on trade, investment, manufacturing, and technology.</p>
        </div>
      </div>
      <div class="col-md-6 col-lg-3 reveal reveal-delay-3">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-trophy"></i></div>
          <h4>Excellence Awards</h4>
          <p>Witness the Kenya Expo Excellence Awards celebrating top performers.</p>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECTION 3 — WHO SHOULD ATTEND -->
<section class="section-padding section-dark">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Audience</span>
      <h2 class="section-title text-center">Who Should Attend?</h2>
    </div>
    <div class="row g-4 mt-2">
      <div class="col-6 col-md-4 reveal">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-truck"></i></div>
          <h4>Importers &amp; Distributors</h4>
        </div>
      </div>
      <div class="col-6 col-md-4 reveal reveal-delay-1">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-store"></i></div>
          <h4>Retailers &amp; Wholesalers</h4>
        </div>
      </div>
      <div class="col-6 col-md-4 reveal reveal-delay-2">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-chart-pie"></i></div>
          <h4>Investors &amp; VCs</h4>
        </div>
      </div>
      <div class="col-6 col-md-4 reveal">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-landmark"></i></div>
          <h4>Government &amp; Policymakers</h4>
        </div>
      </div>
      <div class="col-6 col-md-4 reveal reveal-delay-1">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-graduation-cap"></i></div>
          <h4>Students &amp; Researchers</h4>
        </div>
      </div>
      <div class="col-6 col-md-4 reveal reveal-delay-2">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-camera"></i></div>
          <h4>Media &amp; Press</h4>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECTION 4 — WHAT TO EXPECT -->
<section class="section-padding">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Experience</span>
      <h2 class="section-title text-center">What to Expect</h2>
    </div>
    <div class="row g-4 mt-2">
      <div class="col-md-4 reveal">
        <div class="glass-card h-100">
          <div class="card-icon"><i class="fas fa-expand"></i></div>
          <h4>Exhibition Floor</h4>
          <p>15,000 sqm of exhibition space with 200+ professional booths across different industry sectors. From manufacturing to technology, agriculture to financial services.</p>
        </div>
      </div>
      <div class="col-md-4 reveal reveal-delay-1">
        <div class="glass-card h-100">
          <div class="card-icon"><i class="fas fa-chalkboard-teacher"></i></div>
          <h4>Conference Programme</h4>
          <p>Expert-led sessions over 4 days covering trade policy, investment opportunities, manufacturing, technology, and sustainable business practices.</p>
        </div>
      </div>
      <div class="col-md-4 reveal reveal-delay-2">
        <div class="glass-card h-100">
          <div class="card-icon"><i class="fas fa-glass-cheers"></i></div>
          <h4>Networking Events</h4>
          <p>Structured networking events including the Welcome Gala, B2B matchmaking sessions, Women in Trade lunch, and the Anniversary Gala Dinner.</p>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECTION 5 — VISITOR REGISTRATION FORM -->
<section class="section-padding section-dark" id="visitorForm">
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-lg-8 reveal">
        <div class="glass-card">
          <div class="text-center mb-4">
            <span class="section-label">Register Free</span>
            <h3>Visitor Registration</h3>
            <p style="color:var(--text-muted);font-size:0.9rem;">Register now for free entry to the 20th Kenya Expo 2026.</p>
          </div>
          <form data-ajax="true">
            <input type="hidden" name="type" value="visitor">
            <input type="hidden" name="_csrf" value="<?php echo generateCSRF(); ?>">
            <div class="row g-3">
              <div class="col-md-6">
                <label class="form-label">Full Name <span class="required">*</span></label>
                <input type="text" name="name" class="form-control" required>
              </div>
              <div class="col-md-6">
                <label class="form-label">Email <span class="required">*</span></label>
                <input type="email" name="email" class="form-control" required>
              </div>
              <div class="col-md-6">
                <label class="form-label">Phone</label>
                <input type="tel" name="phone" class="form-control">
              </div>
              <div class="col-md-6">
                <label class="form-label">Country <span class="required">*</span></label>
                <select name="country" class="form-select" required>
                  <option value="">Select...</option>
                  <option>Kenya</option><option>Uganda</option><option>Tanzania</option><option>Rwanda</option>
                  <option>Ethiopia</option><option>Nigeria</option><option>South Africa</option>
                  <option>UAE</option><option>India</option><option>China</option><option>UK</option>
                  <option>USA</option><option>Germany</option><option>Other</option>
                </select>
              </div>
              <div class="col-md-6">
                <label class="form-label">Organization</label>
                <input type="text" name="company" class="form-control">
              </div>
              <div class="col-md-6">
                <label class="form-label">Job Title</label>
                <input type="text" name="job_title" class="form-control">
              </div>
              <div class="col-md-6">
                <label class="form-label">Visitor Type <span class="required">*</span></label>
                <select name="interest" class="form-select" required>
                  <option value="">Select...</option>
                  <option>Buyer</option>
                  <option>Importer</option>
                  <option>Investor</option>
                  <option>Student</option>
                  <option>Distributor</option>
                  <option>Other</option>
                </select>
              </div>
              <div class="col-md-6">
                <label class="form-label">How did you hear about us?</label>
                <select name="source" class="form-select">
                  <option value="">Select...</option>
                  <option>Social Media</option>
                  <option>Google</option>
                  <option>Partner Organisation</option>
                  <option>Marketing Team</option>
                  <option>Email From Organizer</option>
                  <option>Other</option>
                </select>
              </div>
              <div class="col-12">
                <label class="form-label">Sectors of Interest</label>
                <div class="row g-2">
                  <?php foreach ($cats['categories'] ?? [] as $cat): ?>
                  <div class="col-6 col-md-4">
                    <div class="form-check">
                      <input class="form-check-input" type="checkbox" name="sector[]" value="<?php echo htmlspecialchars($cat['name']); ?>" id="sec_<?php echo $cat['id']; ?>">
                      <label class="form-check-label" for="sec_<?php echo $cat['id']; ?>" style="font-size:0.85rem;color:var(--text);"><?php echo htmlspecialchars($cat['name']); ?></label>
                    </div>
                  </div>
                  <?php endforeach; ?>
                </div>
              </div>
            </div>
            <div class="text-center mt-4">
              <button type="submit" class="btn btn-gold btn-lg">Register Free Now</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>

<?php require_once 'includes/footer.php'; ?>
