<?php
/**
 * Companies archive.
 *
 * @package ALFASMART
 */

get_header();

$companies = alfasmart_query_posts_or_fallback('companies', alfasmart_company_items());
?>
<section class="as-archive-section as-archive-companies" aria-labelledby="as-archive-companies-title">
    <div class="video-shape" aria-hidden="true">
        <video class="as-inner-hero-video" src="<?php echo esc_url(alfasmart_img('breadcrumb.mp4')); ?>" autoplay muted loop playsinline></video>
    </div>
    <div class="container as-section-container">
        <div class="as-archive-head as-reveal">
            <p class="as-section-kicker"><?php echo esc_html(alfasmart_text('Our Group', 'مجموعتنا')); ?></p>
            <h1 class="as-section-heading" id="as-archive-companies-title"><?php echo esc_html(alfasmart_text('Four focused companies. One unified vision.', 'أربع شركات متخصصة. رؤية واحدة موحدة.')); ?></h1>
        </div>
        <div class="row as-card-row as-archive-company-grid">
            <?php foreach ($companies as $company) : ?>
                <div class="col-12 col-sm-6 col-lg-3">
                    <?php get_template_part('template-parts/components/company-card', null, array('company' => $company, 'heading' => 'h2')); ?>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
<?php
get_footer();
