<?php
/**
 * Display Header.
 * @package Roofing Solutions
 */

?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width">
	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
	<?php if ( function_exists( 'wp_body_open' ) ) {
	    wp_body_open();
	} else {
	    do_action( 'wp_body_open' );
	}?>
	<header role="banner" class="banner">
		<div class="<?php if( get_theme_mod( 'roofing_solutions_sticky_header', false) != '') { ?>sticky-menubox<?php } else { ?>close-sticky <?php } ?>">
			<a class="screen-reader-text skip-link" href="#main"><?php esc_html_e( 'Skip to content', 'roofing-solutions' ); ?></a>
			<div id="header">
				<div class="container-fluid pd-0">
					<div class="header-box">
						<div class="row marrgin-0">
							<div class="col-lg-3 col-md-3 col-sm-12 logobx-out">
								<div class="logobx">
									<!-- <div class="logobxinn"></div> -->
									<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
								</div>
							</div>
							<div class="col-lg-9 col-md-9 col-sm-12"> 
								<div class="top-head row">
									<div class="col-lg-10 col-md-9 col-sm-12">
										<div class="phbox">
											<li>
												<?php if(get_theme_mod('roofing_solutions_phone') != ''){ ?>
													<a href="tel:<?php echo esc_attr(get_theme_mod('roofing_solutions_phone')); ?>"><i class="fas fa-phone me-2"></i>
													<?php echo esc_html(get_theme_mod('roofing_solutions_phone')); ?></a>
												<?php }?>
											</li>
											<li>
												<?php if(get_theme_mod('roofing_solutions_mail') != ''){ ?>
													<a href="mailto:<?php echo esc_attr(get_theme_mod('roofing_solutions_mail')); ?>"><i class="fas fa-envelope me-2"></i>
													<?php echo esc_html(get_theme_mod('roofing_solutions_mail')); ?></a>
												<?php }?>
											</li>
										</div>
									</div>
									<div class="col-lg-2 col-md-3 col-sm-12">
										<div class="social-icons">
											<?php if(get_theme_mod('roofing_solutions_facebook_url') != '') {?>
												<a href="<?php echo esc_url(get_theme_mod('roofing_solutions_facebook_url')); ?>" target="_blank"><i class="fab fa-facebook-f"></i><span class="screen-reader-text"><?php echo esc_html('Facebook', 'roofing-solutions'); ?></span></a>
											<?php }?>
											<?php if(get_theme_mod('roofing_solutions_twitter_url') != '') {?>
												<a href="<?php echo esc_url(get_theme_mod('roofing_solutions_twitter_url')); ?>" target="_blank"><i class="fab fa-twitter"></i><span class="screen-reader-text"><?php echo esc_html('Twitter', 'roofing-solutions'); ?></span></a>
											<?php }?>
											<?php if(get_theme_mod('roofing_solutions_likedin_url') != '') {?>
												<a href="<?php echo esc_url(get_theme_mod('roofing_solutions_likedin_url')); ?>" target="_blank"><i class="fab fa-linkedin"></i><span class="screen-reader-text"><?php echo esc_html('Linkedin', 'roofing-solutions'); ?></span></a>
											<?php }?>
										</div>
									</div>								
								</div>
								<div class="bottom-head row mr-0">
									<div class="col-lg-10 col-md-9 col-sm-12">
										<div class="menu-section text-lg-center">
												<?php get_template_part( 'template-parts/navigation/site', 'nav' ); ?>
										</div>
									</div>
									<div class="col-lg-2 col-md-3 col-6 pd-0">
										<div class="contactusbtn">
											<?php if(get_theme_mod('roofing_solutions_btn_link') != ''){ ?>
												<a href="<?php echo esc_html(get_theme_mod('roofing_solutions_btn_link')); ?>"><?php echo esc_html(get_theme_mod('roofing_solutions_btn_text')); ?><//?php echo esc_html('Contact Us', 'roofing-solutions'); ?> </a>
											<?php }?>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</header>

	<?php if(is_singular()) {?>
		<div class="inner-head">
			<img src="<?php if ( get_header_image() ){ echo esc_url(get_header_image()); } else { echo esc_url(get_template_directory_uri()) ?>/assets/images/head-bg.jpg<?php }?>" class="head-img" alt="<?php echo esc_html('Header Background Image', 'roofing-solutions'); ?>">
			<div class="container">
				<div class="row">
					<div class="col-lg-6 col-md-6 align-self-center">
						<div class="header-content">
							<h1><?php single_post_title(); ?></h1>
							<div class="lt-breadcrumbs">
								<?php roofing_solutions_breadcrumb(); ?>
							</div>
						</div>
					</div>
					<?php if(has_post_thumbnail()){?>
						<div class="col-lg-6 col-md-6 align-self-end">
							
						</div>
					<?php }?>
				</div>
				
			</div>
		</div>
	<?php }?>