<?php
/**
 *  For Displaying Posts 
 *
 *
 * @package Felicityhealth
 * @since Felicityhealth 1.0
 */
?>
<?php 
    get_header();
 ?>

<?php
$categories = get_categories( array(
    'orderby' => 'name',
    'order'   => 'ASC',
) );

$args = array(
    'post_type' => 'services',
    'order' => 'ASC',
    'orderby' => 'ID',
);
$services = new WP_Query($args);
?>
                
 
  
<section class="feature">
    <div class="feature_wrap__qIpNk feature_large__tYZiB">
        <div class="feature_copy__eRDg_ feature_copy-left__IWPST">
            <div class="prose_prose__r5u4D">
                <h1 class="heading_heading__ooopW heading_b2__geFx_ heading_purple"><?= the_archive_title() ?></h1>
                <h2 class="heading_heading__ooopW heading_h1__OimJX inherit"> <?php echo __( 'Our Services' );?>  </h2>
                <div class="text_text__ySj__ text_b2__Q6Iai">
                    <?php echo __( 'We offer the full spectrum of services to help organizations work better. Everything from creating standards of excellence to training your people to work in more effective ways, assessing how you’re doing, and helping you perform even better in future. Very few others do this, and none have been doing it as long as we have.  ', 'felicityhealth' );?>   
                </div>
            </div>
            <div class="group">
                <div class="buttonGroup_row1__rBgaL">
                    <div class="pos1">
                        <a class="button_button__Yaq9u button_large__xOVkf button_primary__aMXk2" href="#services"><?php echo __( 'Explore Services' );?> </a>
                    </div> 
                </div>
             </div>
        </div>
        <div class="feature_asset__7ZoNZ feature_asset-left__XBVtD">
            <img style="--aspect-ratio:1280 / 960" src="<?= site_url() ?>/wp-content/uploads/2022/10/hero2.jpeg" alt="<?= the_archive_title() ?>" width="1280" height="960" class="image_image__Ge1OD" >
        </div>
    </div>
</section>

<section id="services" class="spacer_spacer"><div class="spacer_hr"></div></section>
 
<section>
     <!-- loop items -->
    <?php  if ( $services->have_posts() ) : ?>
        <?php while ( $services->have_posts() )  : $services->the_post(); ?>
            <?php get_template_part( 'template-parts/content-service' );?>
            <section class="spacer_spacer"><div class="spacer_hr"></div></section>
        <?php endwhile; ?>
    <?php endif; ?>
</section>

<?php get_template_part( 'template-parts/snippets/support' ); ?>
 
<?php get_footer(); ?>
 