<?php $bauen_options = get_option('bauen'); ?>
    <!-- header start -->
	<?php if (!is_search()) { ?>
		<?php if (is_page()||is_single()||!is_404()) { ?>
			
			<?php if(get_post_meta($post->ID,'bauen_page_header_color_style_opt',true)=='st2'){ ?> 
				<?php $bauen_header_color = '-white';?>
			<?php } 
			else { ?>  
				<?php $bauen_header_color = '-black';?>		
			<?php } ;?>				
			
			<?php if(get_post_meta($post->ID,'bauen_page_header_logo_color_style_opt',true)=='st2'){ ?> 
				<?php $bauen_header_logo_sub_color = 'custom-logo-sub-white';?>
			<?php } 
			else { ?>  
				<?php $bauen_header_logo_sub_color = 'custom-logo-sub-gray';?>	
			<?php } ;?>			

		<?php } 
		else { ?> 	
		
			<?php if (Bauen_AfterSetupTheme::return_thme_option('header_logo_sub_color_style')=='yes'){ ?>  
				<?php $bauen_header_logo_sub_color = 'custom-logo-sub-white';?>
			<?php } 
			else { ?> 
				<?php $bauen_header_logo_sub_color = 'custom-logo-sub-gray';?>
			<?php } ;?>	
			
			<?php if (Bauen_AfterSetupTheme::return_thme_option('header_color_style')=='yes'){ ?>  
				<?php $bauen_header_color = '-white';?>
			<?php } 
			else { ?> 
				<?php $bauen_header_color = '-black ';?>
			<?php } ;?>			
			
		<?php } ;?>
	<?php } 
	else { ?> 	
	
		<?php if (Bauen_AfterSetupTheme::return_thme_option('header_logo_sub_color_style')=='yes'){ ?>  
			<?php $bauen_header_logo_sub_color = 'custom-logo-sub-white';?>
		<?php } 
		else { ?> 
			<?php $bauen_header_logo_sub_color = 'custom-logo-sub-gray';?>
		<?php } ;?>	
		
		<?php if (Bauen_AfterSetupTheme::return_thme_option('header_color_style')=='yes'){ ?>  
			<?php $bauen_header_color = '-white';?>
		<?php } 
		else { ?> 
			<?php $bauen_header_color = '-black ';?>
		<?php } ;?>			
		
	<?php } ;?>	
    <!-- Menu -->
    <div class="bauen-wrap">
        <div class="bauen-wrap-inner">
            <nav class="bauen-menu">
                <ul class="<?php echo esc_attr($bauen_header_color);?>">
					<?php
						$defaults = array(
						'theme_location'  => 'top-menu',
						'menu'            => 'nav',
						'container'       => '',
						'container_class' => '',
						'menu_class'      => '',
						'menu_id'         => '',
						'echo'            => true,
						'fallback_cb'     => 'show_top_menu',
						'before'          => '',
						'after'           => '',
						'link_before'     => '',
						'link_after'      => '',
						'items_wrap'      => '%3$s',
						'depth'           => 0,
						'walker'          => new Bauen_Click_Walker
						);
						if(has_nav_menu('top-menu')) {
						   wp_nav_menu( $defaults );
						}
						else {
						};
					?>	
                </ul>
            </nav>
			<?php if (Bauen_AfterSetupTheme::return_thme_option('menu_contact_info')!='no'){ ?>
            <div class="bauen-menu-footer">
                <div class="separator"></div>
                <?php if(!empty($bauen_options['hd_phn_number1'])):?>
                <p><i class="ti-mobile"></i> <a href="tel:<?php echo esc_attr(Bauen_AfterSetupTheme::return_thme_option('hd_phn_number1',''));?>"><?php echo esc_html(Bauen_AfterSetupTheme::return_thme_option('hd_phn_number1',''));?></a></p>
				<?php endif;?>
                <?php if(!empty($bauen_options['hd_phn_number2'])):?>
                <p><i class="ti-mobile"></i> <a href="tel:<?php echo esc_attr(Bauen_AfterSetupTheme::return_thme_option('hd_phn_number2',''));?>"><?php echo esc_html(Bauen_AfterSetupTheme::return_thme_option('hd_phn_number2',''));?></a></p>
				<?php endif;?>	
				<?php if(!empty($bauen_options['hd_email_address1'])):?>
                <p><i class="ti-email"></i> <a href="mailto:<?php echo esc_attr(Bauen_AfterSetupTheme::return_thme_option('hd_email_address1',''));?>"><?php echo esc_html(Bauen_AfterSetupTheme::return_thme_option('hd_email_address1',''));?></a></p>
				<?php endif;?>
				<?php if(!empty($bauen_options['hd_email_address2'])):?>
                <p><i class="ti-email"></i> <a href="mailto:<?php echo esc_attr(Bauen_AfterSetupTheme::return_thme_option('hd_email_address2',''));?>"><?php echo esc_html(Bauen_AfterSetupTheme::return_thme_option('hd_email_address2',''));?></a></p>
				<?php endif;?>				
            </div>
			<?php } ?>
        </div>
    </div>
    <!-- Header -->
    <header class="bauen-header custom-full-slider bauen-menu-click">
        <div class="container">
            <div class="row align-items-center">
                <!-- Logo -->
                <div class="col-6 col-md-6 bauen-logo-wrap">
					<div class="logo-wrapper valign custom-logo-bg">
						<div class="logo <?php echo esc_attr($bauen_header_logo_sub_color);?>">
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
								<?php if (Bauen_AfterSetupTheme::return_thme_option('image_logo')=='st2'){ ?>
									<?php if (Bauen_AfterSetupTheme::return_thme_option('nav_scroll_logo')=='st2'){ ?>
										<?php if (is_page()||is_single()) { ?>
											<?php if(get_post_meta($post->ID,'bauen_page_header_sticky_logo_visiablity_opt',true)=='st2'){ ?>
											<img class="logo-img" src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic_dark','url'));?>" alt="<?php  bloginfo('name'); ?>">
											<?php } else { ?>
											<img class="logo-img if-regular" src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic','url'));?>" alt="<?php  bloginfo('name'); ?>">
											<img class="logo-img if-scroll" src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic_dark','url'));?>" alt="<?php  bloginfo('name'); ?>">
											<?php } ;?>
										<?php } else { ?>
											<?php if (Bauen_AfterSetupTheme::return_thme_option('nav_scroll_logo_visiabilty')=='st2'){ ?>
												<img class="logo-img" src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic_dark','url'));?>" alt="<?php  bloginfo('name'); ?>">
											<?php } else { ?>
												<img class="logo-img if-regular" src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic','url'));?>" alt="<?php  bloginfo('name'); ?>">
												<img class="logo-img if-scroll" src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic_dark','url'));?>" alt="<?php  bloginfo('name'); ?>">
											<?php } ;?>
										<?php } ;?>
									<?php } else { ?>
										<img class="logo-img " src="<?php echo esc_url(Bauen_AfterSetupTheme::return_thme_option('logopic','url'));?>" alt="<?php  bloginfo('name'); ?>">
									<?php } ;?>
								<?php } ?>
								<?php if (Bauen_AfterSetupTheme::return_thme_option('text_logo')!='st1'){ ?>
								<h2>	
									<?php if(!empty($bauen_options['logo_text_title'])): ?>
										<?php echo esc_html(Bauen_AfterSetupTheme::return_thme_option('logo_text_title',''));?>
									<?php else:?>
										<?php  bloginfo('name'); ?>	
									<?php endif;?>
									<?php if(!empty($bauen_options['logo_text_sub'])):?>
									<span><?php echo esc_html(Bauen_AfterSetupTheme::return_thme_option('logo_text_sub',''));?></span>
									<?php endif;?>
								</h2>
								<?php } ?>
							</a>			
						</div>
					</div>				
                </div>
                <!-- Menu Burger -->
                <div class="col-6 col-md-6 text-right bauen-wrap-burger-wrap"> <a href="#" class="bauen-nav-toggle bauen-js-bauen-nav-toggle"><i></i></a> </div>
            </div>
        </div>
    </header>
	

	<?php if (Bauen_AfterSetupTheme::return_thme_option('theme_color_style')=='st2'){ ?>
		<?php wp_enqueue_style('bauen-style-fullscreen-toggle-menu-multipage-dark');?>
	<?php } 
	else { ?> 	
		<?php wp_enqueue_style('bauen-style-fullscreen-toggle-menu-multipage-light');?>
	<?php } ?>		
	
	<?php wp_enqueue_script('bauen-custom-toggle-full');?>

	
	

