<div class="myhome-menu__desktop">
    <div class="myhome-menu__wrapper">
        <div class="myhome-menu__left">
            <div class="myhome-logo">
                <a
                        href="<?php echo esc_url(get_site_url()); ?>"
                        title="<?php echo esc_attr(get_bloginfo('name')); ?>"
                >
                    <?php if (has_custom_logo()) : ?>
                        <img
                                src="<?php echo esc_url(wp_get_attachment_image_url(get_theme_mod('custom_logo'))); ?>"
                                alt="<?php echo esc_attr(get_bloginfo('name')); ?>"
                        >
                    <?php else : ?>
                        <?php echo esc_html(get_bloginfo('name')); ?>
                    <?php endif; ?>
                </a>
            </div>

            <div class="myhome-logo myhome-logo--sticky">
                <a
                        href="<?php echo esc_url(get_site_url()); ?>"
                        title="<?php echo esc_attr(get_bloginfo('name')); ?>"
                >
                    <?php if (has_custom_logo()) : ?>
                        <img
                                src="<?php echo esc_url(wp_get_attachment_image_url(get_theme_mod('custom_logo'))); ?>"
                                alt="<?php echo esc_attr(get_bloginfo('name')); ?>"
                        >
                    <?php else : ?>
                        <?php echo esc_html(get_bloginfo('name')); ?>
                    <?php endif; ?>
                </a>
            </div>

            <div class="myhome-menu__container">
                <div class="myhome-menu-hover"></div>

                <?php

                if (has_nav_menu('myhome-primary')) :
                    wp_nav_menu([
                        'theme_location' => 'myhome-primary',
                        'container' => 'div',
                        'container_class' => 'myhome-menu',
                        'container_id' => 'myhome-menu',
                        'walker' => new MyHomeMenuWalker(),
                        'items_wrap' => '%3$s',
                        'depth' => 4,
                    ]);
                else :
                    wp_nav_menu([
                        'container' => 'div',
                        'container_class' => 'myhome-menu',
                        'container_id' => 'myhome-menu',
                        'walker' => new MyHomeMenuWalker(),
                        'items_wrap' => '%3$s',
                        'depth' => 4,
                    ]);
                endif;
                ?>
            </div>
        </div>
    </div>
</div>