<!DOCTYPE html>
<html <?php language_attributes(); ?>
        prefix="og: http://ogp.me/ns#">
<head>
    <?php wp_head(); ?>
</head>
<body <?php body_class(''); ?> >


<div class="loade">


    <div class="loader">

        <img src="<?php echo get_field('logo_footer', 'option')['url'] ?>">

    </div>


</div>




<!--<div class="fixed-icon">-->
<!--    <a  class="uptohead" href="#comeup">-->
<!--        <i class="fa-solid fa-angles-up"></i>-->
<!--    </a>-->
<!--</div>-->


<!-- Start Header -->

<section class="mobile-nav-list">
    <div class="logo">
        <a href="<?php echo home_url(); ?>">
            <img  src="<?php the_field('logo', 'option') ?>"
                  class="img-fluid" alt="<?php bloginfo("title"); ?>"
                  title="<?php bloginfo("title"); ?>">
        </a>
    </div>


    <?php
    wp_nav_menu(array(
        'theme_location' => 'primary',
        'container' => '',
        'container_id' => '',
        'container_class' => '',
        'menu_id' => false,
        'menu_class' => 'mobile-list list-unstyled',
        'depth' => 4,
        'fallback_cb' => 'navwalker::fallback',
        'walker' => new navwalker()
    ));
    ?>

</section>
<section class="nav-overlay"></section>

<?php if(  is_home() ): ?>

<header id="comeup" class="header-home">

<?php else: ?>
<section class="allheaderbread">
<header id="comeup" class=" inside-header">

<?php endif; ?>


    <div class="container-fluid">
        <div class="row     align-items-center">
            <div class="col-lg-1 col-4">
                <div class="logo">
                    <a href="<?php echo home_url(); ?>">
                        <img  src="<?php the_field('logo', 'option') ?>"
                              class="img-fluid" alt="<?php bloginfo("title"); ?>"
                              title="<?php bloginfo("title"); ?>">
                    </a>
                </div>
            </div>
            <div class="col-lg-10  no-padding">
                <div class="main-nav">

                    <?php
                    wp_nav_menu(array(
                        'theme_location' => 'primary',
                        'container' => '',
                        'container_id' => '',
                        'container_class' => '',
                        'menu_id' => false,
                        'menu_class' => 'nav-list',
                        'depth' => 4,
                        'fallback_cb' => 'navwalker::fallback',
                        'walker' => new navwalker()
                    ));
                    ?>
<img  src="<?php the_field('additional_logo', 'option') ?>"
                              class="img-fluid" alt="<?php bloginfo("title"); ?>"
                              title="<?php bloginfo("title"); ?>">

                </div>
            </div>
            <div class="col-lg-1  ">
                <div class="left-header">
                    <div class="main-buttons">
                        <button class="nav-btn">
                            <i class="fas fa-bars"></i>
                        </button>

                        <div class="lang-section lang-mb">
                            <?php the_switch_language('<a class="lang "   href="?lang=en"> En </a>',
                                '<a class="lang  "    href="?lang=ar"> Ar </a>') ?>
                        </div>
                        <div class="  search-btn">
                            <i class="fa-solid fa-magnifying-glass search-svg"></i>
                            <svg class="close-svg" width="28" height="28" viewBox="0 0 24 24" aria-hidden="true"
                                 xmlns="http://www.w3.org/2000/svg">
                                <path d="M6 6 L18 18 M18 6 L6 18"
                                      stroke="#000" stroke-width="2.2" stroke-linecap="round" />
                            </svg>

                            <div class="search-area">
                                    <div class="search-content">
                                        <form id="searchform" method="get" action="<?php bloginfo('url'); ?>/">
                                            <input type="search"
                                                   placeholder=" <?php echo _e("<!--:en-->Search Here.. <!--:--><!--:ar--> ابحث هنا ..<!--:-->"); ?>"
                                                   value="<?php the_search_query(); ?>" name="s" id="s" >
                                            <button type="submit" id="button" class="search-content"><i class="fas fa-search"></i></button>

                                        </form>

                                        <div class="search-butt">

                                            <button class="search-close"><i class="far fa-times-circle"></i></button>
                                        </div>

                                    </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>





<?php  if (!is_home()) : get_template_part('template-parts/breadcrumb'); endif; ?>