<?php
/**
 * Home services section.
 *
 * @package ALFASMART
 */

$services = alfasmart_query_posts_or_fallback('services', alfasmart_service_items());
?>
<section class="as-services-section" id="services" aria-labelledby="as-services-title">
    <div class="container as-section-container">
        <div class="as-services-head as-reveal">
            <p class="as-section-kicker"><?php echo esc_html(alfasmart_get_home_field('home_services_kicker', 'What We Do?')); ?></p>
            <h2 class="as-section-heading" id="as-services-title"><?php echo esc_html(alfasmart_get_home_field('home_services_title', 'Services designed for modern trade.')); ?></h2>
            <p><?php echo esc_html(alfasmart_get_home_field('home_services_description', 'In a world of complex global markets, the key is to stand out with precision and reliability. Generic approaches won\'t help you scale. With ALPHA Smart, you can ensure your operations are structured for sustainable growth.')); ?></p>
        </div>
        <div class="row as-card-row as-services-grid">
            <?php foreach ($services as $service) : ?>
                <div class="col-12 col-md-6 col-lg-4">
                    <?php get_template_part('template-parts/components/service-card', null, array('service' => $service, 'heading' => 'h3')); ?>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
