<?php
require_once 'includes/config.php';
$pageTitle    = 'Exhibition Packages | 20th Kenya Expo 2026';
$pageDesc     = 'Choose your exhibition booth package for the 20th Kenya Expo 2026. Standard, Premium and Platinum packages at Kenyatta International Convention Center (KICC), Nairobi. November 19-22, 2026.';
$images       = readJSON(IMAGES_FILE);
$packages     = readJSON(PACKAGES_FILE);
$activePackages = array_filter($packages, fn($p) => !empty($p['active']));
usort($activePackages, fn($a,$b) => ($a['sort_order']??0) <=> ($b['sort_order']??0));
require_once 'includes/header.php';
?>

<!-- SECTION 1 — HERO -->
<section class="hero-section packages-hero" style="min-height:60vh;">
  <div class="hero-bg" style="background-image: url('<?php echo htmlspecialchars($images['packages_hero'] ?? ''); ?>');"></div>
  <div class="hero-pattern"></div>
  <div class="container hero-content text-center">
    <div class="hero-badge reveal">20TH KENYA EXPO 2026 | NOV 19-22</div>
    <h1 class="hero-title reveal reveal-delay-1">Exhibition <span>Booth Packages</span></h1>
    <p class="hero-subtitle reveal reveal-delay-2">Find the right space for your brand</p>
    <p class="mb-4 reveal reveal-delay-2" style="color:var(--text-muted);max-width:800px;margin:0 auto;">From local Kenyan SMEs to international multinationals — we have a booth package to match your goals and budget at East Africa's longest-running trade expo.</p>
    <div class="hero-buttons justify-content-center reveal reveal-delay-3">
      <a href="#packages-grid" class="btn btn-gold btn-lg">Compare Packages <i class="fas fa-arrow-down ms-2"></i></a>
      <a href="/contact.php" class="btn btn-outline-gold btn-lg">Speak to Our Team</a>
    </div>
  </div>
</section>

<!-- SECTION 2 — WHY EXHIBIT -->
<section class="section-padding section-dark">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Benefits</span>
      <h2 class="section-title text-center">Why Exhibit at Kenya Expo?</h2>
    </div>
    <div class="row g-4 mt-2">
      <div class="col-md-4 reveal">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-globe-africa"></i></div>
          <h4>35,000+ Verified Trade Visitors</h4>
          <p>From 16+ countries — buyers, distributors, and decision-makers.</p>
        </div>
      </div>
      <div class="col-md-4 reveal reveal-delay-1">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-handshake"></i></div>
          <h4>Pre-Scheduled B2B Meetings</h4>
          <p>Connect with verified international buyers and investors.</p>
        </div>
      </div>
      <div class="col-md-4 reveal reveal-delay-2">
        <div class="glass-card text-center h-100">
          <div class="card-icon"><i class="fas fa-bullhorn"></i></div>
          <h4>Brand Exposure</h4>
          <p>Across all expo print and digital channels — website, social, email, catalogue.</p>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECTION 3 — PACKAGES GRID -->
<section class="section-padding" id="packages-grid">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Pricing</span>
      <h2 class="section-title text-center">Choose Your Package</h2>
      <p style="color:var(--text-muted);max-width:700px;margin:12px auto 0;">All packages include 4-day exhibition at Kenyatta International Convention Center (KICC), venue Wi-Fi, 24-hour security, daily cleaning and full Inexpo Group exhibitor support.</p>
    </div>

    <!-- Filter Pills -->
    <div class="filter-pills mt-4 reveal">
      <button class="filter-pill pkg-filter-btn active" data-filter="all">All</button>
      <button class="filter-pill pkg-filter-btn" data-filter="Standard">Standard</button>
      <button class="filter-pill pkg-filter-btn" data-filter="Premium">Premium</button>
      <button class="filter-pill pkg-filter-btn" data-filter="Platinum">Platinum</button>
    </div>

    <div class="row g-4 mt-2">
      <?php foreach ($activePackages as $pkg): ?>
      <?php $isHighlighted = !empty($pkg['highlight']); ?>
      <div class="col-lg-4 pkg-col reveal">
        <div class="pkg-card <?php echo $isHighlighted ? 'highlighted' : ''; ?>" data-name="<?php echo htmlspecialchars($pkg['name']); ?>">
          <?php if (!empty($pkg['badge'])): ?>
          <div class="pkg-badge"><?php echo htmlspecialchars($pkg['badge']); ?></div>
          <?php endif; ?>
          <i class="fas <?php echo htmlspecialchars($pkg['icon']); ?> pkg-icon" style="color:<?php echo htmlspecialchars($pkg['color']); ?>"></i>
          <h3 class="pkg-name"><?php echo htmlspecialchars($pkg['name']); ?></h3>
          <div class="pkg-price"><?php echo htmlspecialchars($pkg['price_label']); ?></div>
          <div class="pkg-note"><?php echo htmlspecialchars($pkg['price_note']); ?></div>
          <ul class="pkg-features">
            <?php foreach ($pkg['features'] ?? [] as $feat): ?>
            <li><span class="feat-label"><?php echo htmlspecialchars($feat['label']); ?></span><span class="feat-value"><?php echo htmlspecialchars($feat['value']); ?></span></li>
            <?php endforeach; ?>
          </ul>
          <button class="btn btn-gold w-100 pkg-enquire-btn" data-package="<?php echo htmlspecialchars($pkg['name']); ?>">
            <?php echo htmlspecialchars($pkg['cta_label']); ?>
          </button>
        </div>
      </div>
      <?php endforeach; ?>
    </div>
  </div>
</section>

<!-- SECTION 4 — COMPARISON TABLE -->
<section class="section-padding section-darker">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Compare</span>
      <h2 class="section-title text-center">Package Comparison</h2>
    </div>
    <div class="table-responsive mt-4 reveal">
      <table class="pkg-comparison-table">
        <thead>
          <tr>
            <th style="min-width:200px;">Feature</th>
            <?php foreach ($activePackages as $pkg): ?>
            <th class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>" style="min-width:140px;"><?php echo htmlspecialchars($pkg['name']); ?></th>
            <?php endforeach; ?>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Exhibition Space</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $space = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Exhibition Space') { $space = $f['value']; break; } } ?>
              <?php echo htmlspecialchars($space); ?>
            </td>
            <?php endforeach; ?>
          </tr>
          <tr>
            <td>Tables &amp; Chairs</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $v = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Tables & Chairs') { $v = $f['value']; break; } } ?>
              <i class="fas fa-check" style="color:var(--secondary);"></i> <?php echo htmlspecialchars($v); ?>
            </td>
            <?php endforeach; ?>
          </tr>
          <tr>
            <td>Electricity</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $v = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Electricity Supply') { $v = $f['value']; break; } } ?>
              <i class="fas fa-check" style="color:var(--secondary);"></i> <?php echo htmlspecialchars($v); ?>
            </td>
            <?php endforeach; ?>
          </tr>
          <tr>
            <td>Wi-Fi</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $v = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Wi-Fi') { $v = $f['value']; break; } } ?>
              <?php echo $v === 'Shared' ? '<i class="fas fa-check" style="color:var(--secondary);"></i> Shared' : '<i class="fas fa-check" style="color:var(--secondary);"></i> Dedicated'; ?>
            </td>
            <?php endforeach; ?>
          </tr>
          <!-- <tr>
            <td>Conference Passes</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $v = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Conference Passes') { $v = $f['value']; break; } } ?>
              <i class="fas fa-check" style="color:var(--secondary);"></i> <?php echo htmlspecialchars($v); ?>
            </td>
            <?php endforeach; ?>
          </tr> -->
          <tr>
            <td>Visitor Passes</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $v = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Visitor Passes') { $v = $f['value']; break; } } ?>
              <i class="fas fa-check" style="color:var(--secondary);"></i> <?php echo htmlspecialchars($v); ?>
            </td>
            <?php endforeach; ?>
          </tr>
          <tr>
            <td>Social Media Mention</td>
            <?php foreach ($activePackages as $pkg): ?>
            <td class="<?php echo !empty($pkg['highlight']) ? 'col-highlight' : ''; ?>">
              <?php $v = ''; foreach ($pkg['features'] ?? [] as $f) { if ($f['label'] === 'Social Media Mention') { $v = $f['value']; break; } } ?>
              <?php echo $v !== 'No' ? '<i class="fas fa-check" style="color:var(--secondary);"></i> ' . htmlspecialchars($v) : '<i class="fas fa-times" style="color:var(--text-muted);"></i>'; ?>
            </td>
            <?php endforeach; ?>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</section>

<!-- SECTION 5 — WHAT'S INCLUDED -->
<section class="section-padding">
  <div class="container">
    <div class="text-center reveal">
      <span class="section-label">Inclusions</span>
      <h2 class="section-title text-center">What's Included in Every Package</h2>
    </div>
    <div class="row g-3 mt-4 justify-content-center reveal">
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Professional fascia board with your company name</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Fully well organized exhibition space</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Daily cleaning service throughout the event</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>24-hour on-site security</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Exhibitor badge and access pass</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Listing in the official expo catalogue</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Wi-Fi</span></div></div>
      <div class="col-md-6"><div class="d-flex align-items-center gap-3 p-3" style="background:var(--glass);border-radius:8px;"><i class="fas fa-check-circle" style="color:var(--secondary);font-size:1.2rem;"></i><span>Dedicated Inexpo Group exhibitor support</span></div></div>
    </div>
  </div>
</section>

<!-- SECTION 6 — FAQ -->
<section class="section-padding section-darker">
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-lg-8">
        <div class="text-center reveal">
          <span class="section-label">FAQ</span>
          <h2 class="section-title text-center">Frequently Asked Questions</h2>
        </div>
        <div class="accordion mt-4 reveal" id="pkgFaq">
          <div class="accordion-item">
            <h2 class="accordion-header"><button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#faq1">What is the deadline to book a booth?</button></h2>
            <div id="faq1" class="accordion-collapse collapse show" data-bs-parent="#pkgFaq">
              <div class="accordion-body">Early bird deadline is August 31, 2026. Standard booking deadline is October 1, 2026. We recommend booking early to secure prime locations.</div>
            </div>
          </div>
          <div class="accordion-item">
            <h2 class="accordion-header"><button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq2">Can I request a custom booth size?</button></h2>
            <div id="faq2" class="accordion-collapse collapse" data-bs-parent="#pkgFaq">
              <div class="accordion-body">Custom configurations from 36 sqm upward are available. Contact our team to discuss your specific requirements and we'll design a tailored solution.</div>
            </div>
          </div>
          <div class="accordion-item">
            <h2 class="accordion-header"><button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq3">What is the payment schedule?</button></h2>
            <div id="faq3" class="accordion-collapse collapse" data-bs-parent="#pkgFaq">
              <div class="accordion-body">50% deposit on booking confirmation. Remaining 50% due 60 days before the event. Payment plans are available for Platinum exhibitors.</div>
            </div>
          </div>
          <div class="accordion-item">
            <h2 class="accordion-header"><button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq4">Can I co-exhibit with another company?</button></h2>
            <div id="faq4" class="accordion-collapse collapse" data-bs-parent="#pkgFaq">
              <div class="accordion-body">Co-exhibiting is allowed within Platinum packages only. Both companies must be registered and approved by the organizer.</div>
            </div>
          </div>
          <div class="accordion-item">
            <h2 class="accordion-header"><button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq5">Are travel and accommodation included?</button></h2>
            <div id="faq5" class="accordion-collapse collapse" data-bs-parent="#pkgFaq">
              <div class="accordion-body">Yes we do provide the hotel & transfer packages include visa support and other travel assistance as well. And it's optional if any customer want's to book with us.</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECTION 7 — ENQUIRY FORM -->
<section class="section-padding" id="enquiry-form">
  <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">Enquire</span>
            <h3>Request a Booth Enquiry</h3>
            <p style="color:var(--text-muted);font-size:0.9rem;">Our team will respond within 24 hours with availability and pricing.</p>
          </div>
          <form data-ajax="true">
            <input type="hidden" name="type" value="exhibitor">
            <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">Company Name <span class="required">*</span></label>
                <input type="text" name="company" 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 <span class="required">*</span></label>
                <input type="tel" name="phone" class="form-control" required>
              </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">Package Interest <span class="required">*</span></label>
                <select name="interest" class="form-select" id="enquiryPackage" required>
                  <option value="">Select...</option>
                  <option>Standard</option>
                  <option>Premium</option>
                  <option>Platinum</option>
                  <option>Custom</option>
                  <option>Other</option>
                </select>
              </div>
              <div class="col-12">
                <label class="form-label">Message / Special Requirements</label>
                <textarea name="message" class="form-control" rows="3"></textarea>
              </div>
            </div>
            <div class="text-center mt-4">
              <button type="submit" class="btn btn-gold btn-lg">Submit Enquiry</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECTION 8 — CTA STRIP -->
<section class="section-padding section-dark">
  <div class="container">
    <div class="pkg-cta-strip reveal">
      <h3 style="font-family:var(--font-heading);color:#fff;margin-bottom:12px;">Not sure which package suits your needs?</h3>
      <p style="color:var(--text-muted);margin-bottom:24px;">Our team is happy to advise on the best option for your brand and goals.</p>
      <a href="/contact.php" class="btn btn-gold btn-lg">Contact Our Team</a>
    </div>
  </div>
</section>

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