<!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=Poppins:ital,wght@0,400;0,500;0,600;1,200;1,400;1,500;1,600&family=Special+Gothic+Expanded+One&family=Special+Gothic:wght@400..700&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" role="banner">
				<div class="uk-container">
					<div class="uk-flex uk-flex-middle uk-padding-small uk-padding-remove-horizontal" 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/the-golf-tour-company-wide-logo.webp" alt="Logo">
							</a>

						</div>
						<div class="uk-width-expand uk-width-1-2@m uk-text-center uk-visible@m">
							<a class=" " href="#guided-tours">GOLF TOURS</a>
						</div>
						<div class="uk-width-1-2 uk-width-1-4@m uk-flex uk-flex-right">

							<a class="btn" href="<?php echo home_url(); ?>/contact/">BOOK A GOLF TOUR <i class="fa-regular uk-margin-small-left fa-golf-flag-hole"></i></a>
							
						</div>
					</div>
				</div>
			</header>
