<?php
/*
* Display Logo and header details
*/
?>
<div class="main-header">
  <div class="menubox py-md-2 py-3">
    <?php if (get_theme_mod('hr_staffing_agency_topbar_visibility', true)) : ?>
        <div class="top-header py-2">
          <div class="container">
            <div class="row">
              <div class="col-lg-7 col-md-6 col-12 align-self-center">
                <div class="left contact">
                  <?php if (get_theme_mod('hr_staffing_agency_call')) : ?>
                      <span class="contact-content call">
                        <a href="tel:<?php echo esc_attr(get_theme_mod('hr_staffing_agency_call')); ?>">
                          <i class="fas fa-phone me-1"></i>
                          <?php echo esc_html(get_theme_mod('hr_staffing_agency_call')); ?>
                        </a>
                      </span>
                    <?php endif; ?>
                    <?php if (get_theme_mod('hr_staffing_agency_mail')) : ?>
                      <span class="contact-content ms-lg-5 ms-md-3 me-0">
                        <a href="mailto:<?php echo esc_attr(get_theme_mod('hr_staffing_agency_mail')); ?>">
                          <i class="fas fa-envelope me-1"></i>
                          <?php echo esc_html(get_theme_mod('hr_staffing_agency_mail')); ?>
                        </a>
                      </span>
                    <?php endif; ?>
                  </div>
              </div>
              <div class="col-lg-5 col-md-6 col-12 align-self-center">
                <div class="top-btn">
                <?php if (get_theme_mod('hr_staffing_agency_top_btn_link') || get_theme_mod('hr_staffing_agency_top_btn_text', 'Submit Resume')) : ?>
                  <span class="header-btn-top ms-md-3">
                    <a href="<?php echo esc_url(get_theme_mod('hr_staffing_agency_top_btn_link')); ?>" class="book-appoin"><?php echo esc_html(get_theme_mod('hr_staffing_agency_top_btn_text', 'Submit Resume')); ?></a>
                  </span>
                <?php endif; ?>
              </div>
              </div>
            </div>
          </div>
        </div>
      <?php endif; ?>
    <div class="headerbox">
        <div class="container">
          <div class="row">
            <div class="col-xl-3 col-lg-3 col-md-4 logo-col align-self-center">
              <div class="logo my-lg-2 my-3">
                <?php if( has_custom_logo() ) hr_staffing_agency_the_custom_logo(); ?>
                <?php if(get_theme_mod('hr_staffing_agency_site_title',true) == 1){ ?>
                  <?php if (is_front_page() && is_home()) : ?>
                    <h1 class="text-capitalize">
                      <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
                    </h1> 
                  <?php else : ?>
                    <p class="text-capitalize site-title mb-1">
                      <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
                    </p>
                  <?php endif; ?>
                <?php }?>
                <?php $hr_staffing_agency_description = get_bloginfo( 'description', 'display' );
                if ( $hr_staffing_agency_description || is_customize_preview() ) : ?>
                  <?php if(get_theme_mod('hr_staffing_agency_site_tagline',false)){ ?>
                    <p class="site-description mb-0"><?php echo esc_html($hr_staffing_agency_description); ?></p>
                  <?php }?>
                <?php endif; ?>
              </div>
            </div>
            <div class="col-xl-6 col-lg-5 col-md-2 align-self-center">
              <?php get_template_part('template-parts/navigation/site-nav'); ?>
            </div>
            <div class="col-xl-3 col-lg-4 col-md-6 align-self-center text-center text-md-end align-items-center">
              <div class="searchbox">
                <?php if (get_theme_mod('hr_staffing_agency_header_first_link') || get_theme_mod('hr_staffing_agency_first_header_button', 'Hire Talent')) : ?>
                  <span class="header-btn-first">
                    <a href="<?php echo esc_url(get_theme_mod('hr_staffing_agency_header_first_link')); ?>" class="book-appoin"><?php echo esc_html(get_theme_mod('hr_staffing_agency_first_header_button', 'Hire Talent')); ?></a>
                  </span>
                <?php endif; ?>
                <?php if (get_theme_mod('hr_staffing_agency_header_sec_link') || get_theme_mod('hr_staffing_agency_sec_header_button', 'Find Jobs')) : ?>
                  <span class="header-btn-sec ms-md-3">
                    <a href="<?php echo esc_url(get_theme_mod('hr_staffing_agency_header_sec_link')); ?>" class="book-appoin"><?php echo esc_html(get_theme_mod('hr_staffing_agency_sec_header_button', 'Find Jobs')); ?></a>
                  </span>
                <?php endif; ?>
              </div>
            </div>
            </div>
          </div>
        </div>
    </div>
  </div>
</div>