<!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 rel="preconnect" href="https://fonts.googleapis.com">
		<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
		<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">

		<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>

	</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>
*/
?>

		<div class="top-header uk-scrollspy-inview uk-animation-fade" uk-scrollspy="cls: uk-animation-fade; delay: 300" style="">
			<div class="uk-container uk-text-right">
				<a class="blue" href="tel:250.317.4403">
					<i class="fas fa-phone-alt"></i> 250.317.4403
				</a>
				<a href="#quote" uk-scroll class="blue-top-btn uk-margin-left">
					FREE ESTIMATE
				</a>
			</div>

		</div>

			<header class="header clear" role="banner">
				<div class="uk-container">
					<div class="uk-flex uk-flex-middle" uk-grid>
						<div class="uk-width-1-2 uk-width-1-4@m">
							<a href="<?php echo home_url(); ?>">
								<img class="logo" src="<?php echo get_template_directory_uri(); ?>/images/malibu-janitorial-logo-white.png" alt="Logo">
							</a>

						</div>
						<div class="uk-width-1-2 uk-width-3-4@m">

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

							<a class="uk-float-right uk-hidden@m menu_pointer white" href="#mobile_nav" uk-toggle>
								<i class="far fa-bars fa-2x"></i>
							</a>
						</div>
					</div>
				</div>
			</header>
