<?php

include_once('include/head.php');
include_once('include/purepower-data.php');

$category = $purepower['categories']['commercial'];

?>

<body>

<div class="main-page-wrapper">

<?php include_once('include/header.php'); ?>
	<link rel="stylesheet" href="<?php path(); ?>/assets/css/purepower.css" />

<main>

<div class="page-title-area text-center pt-100 pb-100 pt-lg-130 pb-lg-130"
    data-background="assets/img/background/commercial-banner.png">

    <div class="container">

        <span class="purepower-label">
            <?= htmlspecialchars($category['label']); ?>
        </span>

        <h2 class="page-title mb-15">
            <?= htmlspecialchars($category['title']); ?>
        </h2>

        <p class="purepower-page-subtitle">
            <?= htmlspecialchars($category['subtitle']); ?>
        </p>

    </div>

</div>

<section class="service-details-section pt-120 pt-lg-80 pb-100">

<div class="container">

    <div class="row align-items-center mb-80">

        <div class="col-lg-6">

            <div class="purepower-content">

                <span class="section-subtitle">
                    PuREPower Commercial
                </span>

                <h1>
                    <?= htmlspecialchars($category['subtitle']); ?>
                </h1>

                <p>
                    <?= htmlspecialchars($category['description']); ?>
                </p>

                <a href="<?php path(); ?>/contact-us.php" class="btn btn-brand">
                    Enquire Now
                    <i class="bi bi-arrow-right"></i>
                </a>

            </div>

        </div>

        <div class="col-lg-6">

            <div class="purepower-main-image">

                <img src="<?php path(); ?>/<?= htmlspecialchars($category['image']); ?>"
                     alt="PuREPower Commercial">

            </div>

        </div>

    </div>

    <div class="section-title text-center mb-50">

        <span class="section-subtitle">
            Commercial Product Range
        </span>

        <h2>
            PuREPower Commercial Solutions
        </h2>

        <p>
            Scalable energy storage solutions for demanding commercial applications.
        </p>

    </div>

    <div class="row">

        <?php foreach ($category['products'] as $slug): ?>

        <?php $product = $purepower['products'][$slug]; ?>

        <div class="col-lg-4 col-md-6 mb-40">

            <div class="purepower-product-card">

                <div class="product-image">

                    <img src="<?php path(); ?>/<?= htmlspecialchars($product['image']); ?>"
                         alt="<?= htmlspecialchars($product['name']); ?>">

                </div>

                <div class="product-content">

                    <span class="product-capacity">
                        <?= htmlspecialchars($product['capacity']); ?>
                    </span>

                    <h3>
                        <?= htmlspecialchars($product['name']); ?>
                    </h3>

                    <p>
                        <?= htmlspecialchars($product['short_description']); ?>
                    </p>

                    <a href="<?php path(); ?>/purepower-product/<?= htmlspecialchars($slug); ?>">
                        Explore Product
                        <i class="bi bi-arrow-right"></i>
                    </a>

                </div>

            </div>

        </div>

        <?php endforeach; ?>

    </div>

</div>

</section>

</main>

<?php include_once('include/footer.php'); ?>

</div>

<style>
 
</style>

</body>
</html>