<?php
/**
 * The template part for Top Header
 *
 * @package Forest Jungle Safari 
 * @subpackage forest-jungle-safari
 * @since forest-jungle-safari 1.0
 */
?>

<div class="middle-header pt-2 <?php if( get_theme_mod( 'forest_jungle_safari_sticky_header', false) == 1 || get_theme_mod( 'forest_jungle_safari_stickyheader_hide_show', false) == 1) { ?> header-sticky"<?php } else { ?>close-sticky <?php } ?>">
  <div class="container">
    <div class="row top-header">
      <div class="col-xl-3 col-lg-3 col-md-5 col-sm-5 col-4 text-lg-start text-md-start text-center align-self-center">
        <div class="logo text-center text-md-start pb-0 pb-md-0">
          <?php if ( has_custom_logo() ) : ?>
            <div class="site-logo"><?php the_custom_logo(); ?></div>
          <?php endif; ?>
          <?php $forest_jungle_safari_blog_info = get_bloginfo( 'name' ); ?>
            <?php if ( ! empty( $forest_jungle_safari_blog_info ) ) : ?>
              <?php if ( is_front_page() && is_home() ) : ?>
                <?php if( get_theme_mod('forest_jungle_safari_logo_title_hide_show',true) == 1){ ?>
                  <h1 class="site-title mb-0"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                <?php } ?>
              <?php else : ?>
                <?php if( get_theme_mod('forest_jungle_safari_logo_title_hide_show',true) == 1){ ?>
                  <p class="site-title mb-0"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
                <?php } ?>
              <?php endif; ?>
            <?php endif; ?>
            <?php
              $forest_jungle_safari_description = get_bloginfo( 'description', 'display' );
              if ( $forest_jungle_safari_description || is_customize_preview() ) :
            ?>
            <?php if( get_theme_mod('forest_jungle_safari_tagline_hide_show',false) == 1){ ?>
              <p class="site-description mb-0">
                <?php echo esc_html($forest_jungle_safari_description); ?>
              </p>
            <?php } ?>
          <?php endif; ?>
        </div>
      </div>
      <div class="col-xl-9 col-lg-9 col-md-7 col-sm-7 col-8 text-lg-start text-md-start text-center align-self-center menu-btn">
        <div class="row">
          <div class="col-xl-10 col-lg-10 col-3">
            <?php get_template_part('template-parts/header/navigation'); ?>
          </div>
          <div class="col-xl-2 col-lg-2  col-9 align-self-center text-lg-end text-md-end text-sm-end text-center">
            <?php if ( get_theme_mod('forest_jungle_safari_appointment_button_text') != '' || get_theme_mod('forest_jungle_safari_banner_small_title_icon') != '' ) {?>
              <div class ="read-more">
                <a href="<?php echo esc_url(get_theme_mod('forest_jungle_safari_appointment_btn_link',false));?>"><?php echo esc_html(get_theme_mod('forest_jungle_safari_appointment_button_text'));?><span class="screen-reader-text"><?php esc_html_e( 'Book Now','forest-jungle-safari');?></span>
                </a>
              </div>
            <?php }?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>