<?php
/**
 * The header for our theme
 *
 * @subpackage Forest Nature
 * @since 1.0
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<?php
	if ( function_exists( 'wp_body_open' ) ) {
	    wp_body_open();
	} else {
	    do_action( 'wp_body_open' );
	}
?>
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'forest-nature' ); ?></a>
	<?php if( get_option('forest_nature_theme_loader',true) != 'off'){ ?>
		<?php $forest_nature_loader_option = get_theme_mod( 'forest_nature_loader_style','style_one');
		if($forest_nature_loader_option == 'style_one'){ ?>
			<div id="preloader" class="circle">
				<div id="loader"></div>
			</div>
		<?php }
		else if($forest_nature_loader_option == 'style_two'){ ?>
			<div id="preloader">
				<div class="spinner">
					<div class="rect1"></div>
					<div class="rect2"></div>
					<div class="rect3"></div>
					<div class="rect4"></div>
					<div class="rect5"></div>
				</div>
			</div>
		<?php }?>
	<?php }?>
	<div id="page" class="site">
		<div class="wrap_figure text-md-start text-center">
			<div class="container">
				<div class="row">
					<div class="col-lg-5 col-md-5 col-sm-5 align-self-center py-2">	
						<div class="row">
							<div class="col-lg-5 col-md-5 col-sm-5 align-self-center">
								<?php if( get_theme_mod('forest_nature_call_text') != '' || get_theme_mod('forest_nature_call_phone_number') != ''){ ?>
									<div class="row">
										<div class="col-lg-3 col-md-3 align-self-center">
											<i class="<?php echo esc_attr(get_theme_mod('forest_nature_call_icon','')); ?>"></i>
										</div>
										<div class="col-lg-9 col-md-9 align-self-center">
											<h6 class="mb-0"><?php echo esc_html(get_theme_mod('forest_nature_call_text','')); ?></h6>
											<p class="mb-0"><a class="info-text" href="tel:<?php echo esc_attr(get_theme_mod('forest_nature_call_phone_number', '')); ?>"><?php echo esc_html(get_theme_mod('forest_nature_call_phone_number', '')); ?></a></p>
										</div>
									</div>
								<?php }?>
							</div>
							<div class="col-lg-7 col-md-7 col-sm-7 align-self-center">
								<?php if( get_theme_mod('forest_nature_mail_text') != '' || get_theme_mod('forest_nature_mail_email_address') != ''){ ?>
									<div class="row">
										<div class="col-lg-3 col-md-3 align-self-center">
											<i class="<?php echo esc_attr(get_theme_mod('forest_nature_mail_icon','')); ?> ms-2"></i>
										</div>
										<div class="col-lg-9 col-md-9 align-self-center">
											<h6 class="mb-0"><?php echo esc_html(get_theme_mod('forest_nature_mail_text','')); ?></h6>
											<p class="mb-0"><a class="info-text" href="mailto:<?php echo esc_attr(get_theme_mod('forest_nature_mail_email_address', '')); ?>"><?php echo esc_html(get_theme_mod('forest_nature_mail_email_address', '')); ?></a></p>
										</div>
									</div>
								<?php }?>
							</div>
						</div>
					</div>
					<div class="col-lg-2 col-md-2 col-sm-2 mb-2 mb-md-0 logo-upper">
						<div class="forest-nature-logo py-3 py-lg-0">
							<?php if ( has_custom_logo() ) : ?>
		            		<?php the_custom_logo(); ?>
				            <?php endif; ?>
			              	<?php $forest_nature_blog_info = get_bloginfo( 'name' ); ?>
				                <?php if ( ! empty( $forest_nature_blog_info ) ) : ?>
				                  	<?php if ( is_front_page() && is_home() ) : ?>
									<?php if( get_option('forest_nature_logo_title',false) != 'off'){ ?>
				                    	<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
															<?php }?>
				                  	<?php else : ?>
										<?php if( get_option('forest_nature_logo_title',false) != 'off'){ ?>
			                      		<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
																<?php }?>
			                  		<?php endif; ?>
				                <?php endif; ?>
				                <?php
			                  		$forest_nature_description = get_bloginfo( 'description', 'display' );
				                  	if ( $forest_nature_description || is_customize_preview() ) :
				                ?>
				                <?php if( get_option('forest_nature_logo_text',true) != 'off'){ ?>
			                  	<p class="site-description">
			                    	<?php echo esc_html($forest_nature_description); ?>
			                  	</p>
			                  <?php }?>
			              	<?php endif; ?>				        
					    </div>
					</div>
					<div class="col-lg-5 col-md-5 col-sm-5 align-self-center py-2">
						<div class="row">
							<div class="col-lg-7 col-md-7 col-sm-5 align-self-center">
								<?php if( get_theme_mod('forest_nature_location_text') != '' || get_theme_mod('forest_nature_location_address') != ''){ ?>
									<div class="row">
										<div class="col-lg-2 col-md-3 align-self-center">
											<i class="<?php echo esc_attr(get_theme_mod('forest_nature_location_icon','')); ?>"></i>
										</div>
										<div class="col-lg-10 col-md-9 align-self-center">
											<h6 class="mb-0"><?php echo esc_html(get_theme_mod('forest_nature_location_text','')); ?></h6>
											<p class="mb-0"><a class="info-text" href="<?php echo esc_html(get_theme_mod('forest_nature_address_url')); ?>">
											<?php echo esc_html(get_theme_mod('forest_nature_location_address','')); ?>
										</a></p>
										</div>
									</div>
								<?php }?>
							</div>
							<div class="col-lg-5 col-md-5 col-sm-5 align-self-center">
								<?php if( get_theme_mod('forest_nature_timing_text') != '' || get_theme_mod('forest_nature_timing_open_time') != ''){ ?>
									<div class="row">
										<div class="col-lg-3 col-md-3 align-self-center">
											<i class="<?php echo esc_attr(get_theme_mod('forest_nature_timimg_icon','')); ?>"></i>
										</div>
										<div class="col-lg-9 col-md-9 align-self-center">
											<h6 class="mb-0"><?php echo esc_html(get_theme_mod('forest_nature_timing_text','')); ?></h6>
											<p class="mb-0"><?php echo esc_html(get_theme_mod('forest_nature_timing_open_time','')); ?></p>
										</div>
									</div>
								<?php }?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="menu-header fixed-header">
			<div class="container">
				<div class="row">
					<div class="col-lg-5 col-md-5 col-sm-5 col-7 align-self-center">
						<?php if( get_theme_mod('forest_nature_top_heading') != ''){ ?>
                  			<p class="mb-0"><?php echo esc_html(get_theme_mod('forest_nature_top_heading','')); ?></p>
                		<?php }?>
					</div>
					<div class="col-lg-2 col-md-2 col-sm-2 col-2 align-self-center">
					</div>
					<div class="col-lg-5 col-md-5 col-sm-5 col-3 align-self-center">
						<div class="toggle-menu gb_menu">
							<button onclick="forest_nature_gb_Menu_open()" class="gb_toggle p-2"><i class="<?php echo esc_attr(get_theme_mod('forest_nature_menu_icon','fas fa-bars')); ?>"></i></button>
						</div>
						<?php get_template_part('template-parts/navigation/navigation'); ?>
					</div>
				</div>
			</div>
		</div>
	</div>
