<?php include_once("include/main.inc.php");
$about_page = mysqli_query($GLOBALS['dbconn'], "select pageDesc, pageDesc1, pageImage, page_keyword, page_metadesc, page_metatitle,pageTitle from static_pages where pageID='2'");
$about_res = mysqli_fetch_array($about_page);
?>
<a href="javascript:void(0);" id="web-pulse-scroll-up" title="Go to Top">
    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-up-short" viewBox="0 0 16 16">
        <path fill-rule="evenodd" d="M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5" />
    </svg>
</a>

<header class="header">
    <div class="topbar mobile_hide">
        <div class="container-fluid px-md-5">
            <div class="row align-items-center g-3">
                <div class="col-lg-3 col-md-6 col-7">
                    <div class="logo"><a href="<?= site_url; ?>" title="<?= $admin_res['companyName']; ?>"><img src="<?= site_url; ?>/designer/images/logo.png" alt="<?= $admin_res['companyName']; ?>" title="<?= $admin_res['companyName']; ?>"></a></div>
                </div>
                <div class="col-lg-5 col-12">
                    <form method="get" action="<?= site_url; ?>/search.htm" class="search_bx">
                        <input class="form-control" name="keyword" type="text" placeholder="I am looking for..." required="">
                        <button type="submit" class="searchBtn" title="searchbar">
                            <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" width="100" height="100" viewBox="0 0 50 50">
                                <path d="M 21 3 C 11.601563 3 4 10.601563 4 20 C 4 29.398438 11.601563 37 21 37 C 24.355469 37 27.460938 36.015625 30.09375 34.34375 L 42.375 46.625 L 46.625 42.375 L 34.5 30.28125 C 36.679688 27.421875 38 23.878906 38 20 C 38 10.601563 30.398438 3 21 3 Z M 21 7 C 28.199219 7 34 12.800781 34 20 C 34 27.199219 28.199219 33 21 33 C 13.800781 33 8 27.199219 8 20 C 8 12.800781 13.800781 7 21 7 Z">
                                </path>
                            </svg>
                        </button>
                    </form>
                </div>
                <div class="col-lg-4 col-12 text-end">
                    <div class="btn-grp d-flex justify-content-end gap-4 align-items-center">
                        <div class="call-now">
                            <div class="icon-bx">
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-telephone" viewBox="0 0 16 16">
                                    <path d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"></path>
                                </svg>
                            </div>
                            <div class="con-bx">
                                <span>Customer Support</span>
                                <span><a href="tel:<?= $admin_res['mobile'] ?>" title="Call Us"><?= $admin_res['mobile'] ?></a></span>
                            </div>
                        </div>
                        <button class="main-btn" data-bs-toggle="modal" data-bs-target="#myModal">Send Enquiry <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-envelope-fill" viewBox="0 0 16 16">
                                <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414zM0 4.697v7.104l5.803-3.558zM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586zm3.436-.586L16 11.801V4.697z"></path>
                            </svg></button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="menubar">
        <div class="container-fluid px-md-5">
            <div class="navigation">
                <div class="navbar">
                    <div class="logo"><a href="<?= site_url; ?>" title="<?= $admin_res['companyName']; ?>"><img src="<?= site_url; ?>/designer/images/logo.png" 
                    alt="<?= $admin_res['companyName']; ?>" title="<?= $admin_res['companyName']; ?>"></a></div>
                    <button>
                        <span></span>
                        <span></span>
                        <span></span>
                        <span></span>
                    </button>
                </div>
                <div class="menu main_header">
                    <ul class="nav">
                        <li class="active"><a href="<?= site_url; ?>" title="Home">Home</a></li>
                        <li><a href="<?= site_url; ?>/about-us.htm" title="About Us">About Us</a></li>
                        <?php $sql=mysqli_query($GLOBALS['dbconn'],"select displayName, catName, catID, parentID from category_tbl where parentID='0'  && status='Y' order by catOrder");
                                    while($res=mysqli_fetch_array($sql)){
                                    $catID=$res['catID'];
                                    $sql_sub=mysqli_query($GLOBALS['dbconn'],"select displayName, catName, catID, parentID from category_tbl where parentID='$catID' && status='Y' order by catOrder");
                                    $num11 = mysqli_num_rows($sql_sub);
                                    ?>
                        <li class="cs-submenu">
                            <a href="<?= site_url; ?>/<?= getValidFileName($res['catName']); ?>.htm" title="<?php echo $res['displayName']; ?>"><?php echo $res['displayName']; ?></a>
                        <ul class="cs-dropdown">
                            <?php while($sub_res=mysqli_fetch_array($sql_sub)){  ?>
                                <li><a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?php echo $sub_res['displayName']; ?>"><?php echo $sub_res['displayName']; ?></a></li>
                                <?php } ?>
                                
                            </ul>
                        </li>
                        <?php } ?>

                        <li><a href="<?=site_url;?>/dealership.htm" title="Dealership">Dealership</a></li>
                        <li><a href="<?=site_url;?>/career.htm" title="Careers">Careers</a></li>
                        <li><a href="<?=site_url;?>/testimonials.htm" title="Testimonials">Testimonials</a></li>
                        <li><a href="<?=site_url;?>/blog.htm" title="Blogs">Blogs</a></li>
                        <li><a href="<?=site_url;?>/contact-us.htm" title="Contact Us">Contact Us</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</header>