<?php get_header(); ?>

<div class="uk-container">
	<main role="main">
		<div >
			<section >

			<?php if (have_posts()): while (have_posts()) : the_post(); ?>

				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>


					<h1 class="uk-margin-large-bottom uk-text-center blue uk-margin-medium-top"><?php the_title(); ?></h1>

					<div uk-grid>

					<?php if ( has_post_thumbnail() ) : ?>
						<div class="uk-width-1-3@m">

								<img uk-img data-src="<?php the_post_thumbnail_url('full'); ?>" data-width data-height>

								<?php
								$image = get_field('service_icon');
								if( !empty( $image ) ): ?>
								<div class="uk-text-center">
									<img class="service-icon" src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
								</div>
								<?php endif; ?>


						</div>
					<?php endif; ?>
						<div class="uk-width-expand@m">
							<?php if( have_rows('list') ): ?>
							<ul class="uk-list uk-text-left">
							<?php while( have_rows('list') ): the_row();
									?>
									<li>
											<p><?php the_sub_field('expertise'); ?></p>
									</li>
							<?php endwhile; ?>
							</ul>
							<?php endif; ?>						</div>
					</div>

					<!-- AddToAny BEGIN -->
					<div class="a2a_kit a2a_kit_size_32 a2a_default_style uk-margin">
					<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
					<a class="a2a_button_facebook"></a>
					<a class="a2a_button_twitter"></a>
					<a class="a2a_button_linkedin"></a>
					<a class="a2a_button_email"></a>
					</div>
					<script>
					var a2a_config = a2a_config || {};
					a2a_config.onclick = 1;
					</script>
					<script async src="https://static.addtoany.com/menu/page.js"></script>
					<!-- AddToAny END -->

					<p class="uk-text-right"><?php edit_post_link( __('Edit this page'), '', '', 0, 'post-edit-link uk-text-large uk-padding-small uk-button-large uk-button uk-button-primary' ); ?></p>

				</article>

			<?php endwhile; ?>
			<?php endif; ?>

			</section>
		</div>
	</main>
</div>
<?php get_footer(); ?>
