<?php
/**
 * Template part for displaying header in header.php
 *
 * @package xrprompt
 */
?>

</head>

<?php if(get_field('page_background_image', 'option')) : $pagebg = get_field('page_background_image' , 'option'); endif;?>


<body <?php body_class();?> <?php if(get_field('page_background_image', 'option')) : ?> style="background-image: url(<?php echo $pagebg; ?>)" <?php endif; ?>>

<section class="headerSection">  
    <div class="container">   

      <div class="header-top">  
          <div class="logo-center">                        
                  <?php if(get_field('logo', 'option')) { ?>
                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
                         <img src="<?php the_field('logo', 'option'); ?>" alt="" />
                        </a>
                  <?php } ?>              
            </div> 
      </div>     

      <div class="header-menu">
         <nav>
            <button class="grt-mobile-button">
              <div class="line1"></div>
              <div class="line2"></div>
              <div class="line3"></div>
            </button>
            <ul class="grt-menu">
              <?php wp_nav_menu();           
              ?>
            </ul>
        </nav>
      </div>

    </div>
</section>


<div id="page" class="row">

