<!doctype html>
<html <?php language_attributes(); ?> class="no-js">
	<head>
		<meta charset="<?php bloginfo('charset'); ?>">
		<title><?php wp_title(''); ?></title>

		<link href="//www.google-analytics.com" rel="dns-prefetch">

		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<!-- fix for woocommerce remove if not needed
			<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
			<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" />
			<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>
		fix for woocommerce remove if not needed -->

		<?php wp_head(); ?>

		<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Inter:wght@800&display=swap" rel="stylesheet">
	</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

		<div class="wrapper">

<div id="mobile_nav" uk-offcanvas="flip: true">
	<div class="uk-offcanvas-bar">
		<?php html5blank_nav(); ?>
	</div>
</div>
<?php
/* THIS SCRIPT WILL MAKE THE SIDEBAR ITEMS THAT HAS DROPDOWNS COLLAPSE. USE THIS ON WEBSITES THAT HAVE LARGER MENUS AND MORE DROPDOWNS.
<script>
document.addEventListener('DOMContentLoaded', function() {
    var hasChildren = document.querySelectorAll('.menu-item-has-children');

    hasChildren.forEach(function(item) {
        var subMenu = item.querySelector('.sub-menu');
        if (subMenu) {
            subMenu.style.display = 'none'; // Ensure all sub-menus start closed
        }

        var anchor = item.querySelector('a'); // Get the first anchor tag

        anchor.addEventListener('click', function(event) {
            // Check if there's a sub-menu
            if (subMenu) {
                event.preventDefault(); // Prevent default only if there's a sub-menu

                // Toggle the display of the submenu
                if (subMenu.style.display === 'block') {
                    subMenu.style.display = 'none';
                } else {
                    subMenu.style.display = 'block';
                }

                // Close other open sub-menus (optional)
                hasChildren.forEach(function(otherItem) {
                    if (otherItem !== item) {
                        var otherSubMenu = otherItem.querySelector('.sub-menu');
                        if (otherSubMenu) {
                            otherSubMenu.style.display = 'none';
                        }
                    }
                });
            }
        });
    });
});
</script>
*/
?>
			<header class="header clear uk-card uk-card-default" 
        role="banner" 
        uk-sticky="cls-active: uk-active; top: 150;">
				<div class="uk-container uk-container-expand">
					<div class="uk-flex uk-flex-middle" uk-grid>
						<div class="uk-width-1-2 uk-width-1-6@m">
							<a href="<?php echo home_url(); ?>">
								<img class="logo uk-padding-small" src="<?php echo get_template_directory_uri(); ?>/images/hingley-construction-and-renovations-logo.webp" alt="Logo">
							</a>

						</div>
						<div class="uk-width-1-2 uk-width-expand@m uk-flex uk-flex-center">

							<nav class="nav uk-visible@m hvr-underline-from-center" role="navigation">
								<?php html5blank_nav(); ?>
							</nav>

							<a class="uk-float-right uk-hidden@m menu_pointer" href="#mobile_nav" uk-toggle>
								<i class="far brown fa-bars fa-2x"></i>
							</a>
						</div>
						<div class="uk-width-1-2 uk-width-auto@m uk-flex uk-flex-middle uk-visible@m">
							<h5 class="uk-margin-remove-bottom uk-margin-medium-right">
								<a href="tel:2506814338">
									<i class="fal fa-lg  brown  uk-margin-small-right fa-phone-waveform"></i> (250)-681-4338
								</a>
							</h5> 
							
							<a class="btn" href="<?php echo home_url(); ?>/contact/">CONTACT HINGLEY</a>
						</div>
					</div>
				</div>
			</header>
