<header id="masthead" class="site-header header-fourteen">
	<div class="top-header">
		<?php if( !get_theme_mod( 'bosa_media_marketing_disable_top_header_section', false ) ){ ?>
			<?php if( ( !get_theme_mod( 'bosa_media_marketing_disable_header_social_links', false ) && bosa_media_marketing_has_social() ) || ( !get_theme_mod( 'bosa_media_marketing_disable_contact_detail', false ) && ( get_theme_mod( 'bosa_media_marketing_contact_phone', '' )  || get_theme_mod( 'bosa_media_marketing_contact_email', '' )  || get_theme_mod( 'bosa_media_marketing_contact_address', '' ) ) ) || !get_theme_mod( 'bosa_media_marketing_disable_search_icon', false ) || ( !get_theme_mod( 'bosa_media_marketing_disable_hamburger_menu_icon', false ) && is_active_sidebar( 'menu-sidebar' ) ) ){ ?>
				<div class="top-header-inner">
					<div class="container">
						<div class="row align-items-center">
							<div class="col-lg-6 d-none d-lg-block">
								<?php if( !get_theme_mod( 'bosa_media_marketing_disable_contact_detail', false ) ){ ?>
									<div class="header-contact">
										<ul>
											<li>
												<?php if( get_theme_mod( 'bosa_media_marketing_contact_email', '' ) ){ ?>
													<a href="<?php echo esc_url( 'mailto:' . get_theme_mod( 'bosa_media_marketing_contact_email', '' ) ); ?>">
														<i class="fas fa-envelope"></i>
														<?php echo esc_html( get_theme_mod( 'bosa_media_marketing_contact_email', '' ) ); ?>
													</a>
												<?php } ?>
											</li>
											<li>
												<?php if( get_theme_mod( 'bosa_media_marketing_contact_address', '' ) ){ ?>
													<i class="fas fa-map-marker-alt"></i>
													<?php echo esc_html( get_theme_mod( 'bosa_media_marketing_contact_address', '' ) ); ?>
												<?php } ?>
											</li>
										</ul>
									</div>
								<?php } ?>
							</div>
							<div class="col-lg-6 d-none d-lg-flex justify-content-end align-items-center">
								<div class="header-icons">
									<?php if( !get_theme_mod( 'bosa_media_marketing_disable_header_social_links', false ) && bosa_media_marketing_has_social() ){
										echo '<div class="social-profile">';
											bosa_media_marketing_social();
										echo '</div>'; 
									} ?>
									<!-- Search form structure -->
									<?php if( !get_theme_mod( 'bosa_media_marketing_disable_search_icon', false ) ): ?>
										<div id="search-form" class="header-search-wrap">
											<button class="search-icon">
												<span class="fas fa-search"></span>
											</button>
										</div>
									<?php endif; ?>
									<?php if( !get_theme_mod( 'bosa_media_marketing_disable_hamburger_menu_icon', false ) && is_active_sidebar( 'menu-sidebar' ) ){ ?>
										<div class="alt-menu-icon">
											<a class="offcanvas-menu-toggler" href="#">
												<span class="icon-bar-wrap">
													<span class="icon-bar"></span>
												</span>

											</a>
										</div>
									<?php } ?>
								</div>
								<?php if( !get_theme_mod( 'bosa_media_marketing_disable_header_button', false ) && bosa_media_marketing_has_header_buttons() ){
									echo '<div class="header-btn">';
										bosa_media_marketing_header_buttons();
									echo '</div>';
								} ?>
							</div>
						</div>
					</div>
				</div>
			<?php } ?>
		<?php } ?>
		<?php if( !get_theme_mod( 'bosa_media_marketing_disable_mobile_top_header', false ) ){ ?>
			<?php if( ( !get_theme_mod( 'bosa_media_marketing_disable_header_social_links', false ) && bosa_media_marketing_has_social() ) || ( !get_theme_mod( 'bosa_media_marketing_disable_contact_detail', false ) && ( get_theme_mod( 'bosa_media_marketing_contact_phone', '' )  || get_theme_mod( 'bosa_media_marketing_contact_email', '' )  || get_theme_mod( 'bosa_media_marketing_contact_address', '' ) ) ) || !get_theme_mod( 'bosa_media_marketing_disable_search_icon', false ) || ( !get_theme_mod( 'bosa_media_marketing_disable_header_button', false ) && bosa_media_marketing_has_header_buttons() ) || is_active_sidebar( 'menu-sidebar' ) ){ ?>
				<div class="alt-menu-icon d-lg-none">
					<a class="offcanvas-menu-toggler" href="#">
						<span class="icon-bar-wrap">
							<span class="icon-bar"></span>
						</span>
						<span class="iconbar-label d-lg-none"><?php echo esc_html( get_theme_mod( 'bosa_media_marketing_top_bar_name', 'TOP MENU' ) ); ?></span>
					</a>
				</div>
			<?php } ?>
		<?php } ?>
		<!-- header search form -->
		<div class="header-search">
			<div class="container">
				<?php get_search_form(); ?>
				<button class="close-button">
					<span class="fas fa-times"></span>
				</button>
			</div>
		</div>
		<!-- header search form end-->
	</div>
	<?php get_template_part( 'template-parts/offcanvas', 'menu' ); ?>
	<div class="bottom-header header-image-wrap fixed-header">
		<?php if( bosa_media_marketing_has_header_media() ){ bosa_media_marketing_header_media(); } ?>
		<div class="container">
			<div class="row align-items-center">
				<div class="col-lg-3">
					<?php get_template_part( 'template-parts/site', 'branding' ); ?>
				</div>
				<div class="col-lg-9 d-none d-lg-block">
					<div class="main-navigation-wrap">
						<nav id="site-navigation" class="main-navigation">
							<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'bosa-media-marketing' ); ?></button>
							<?php if ( has_nav_menu( 'menu-1' ) ) :
								wp_nav_menu( 
									array(
										'container'      => '',
										'theme_location' => 'menu-1',
										'menu_id'        => 'primary-menu',
										'menu_class'     => 'menu nav-menu',
									)
								);
							?>
							<?php else :
								wp_page_menu(
									array(
										'menu_class' => 'menu-wrap',
										'before'     => '<ul id="primary-menu" class="menu nav-menu">',
										'after'      => '</ul>',
									)
								);
							?>
							<?php endif; ?>
						</nav><!-- #site-navigation -->	
						<?php if( get_theme_mod( 'bosa_media_marketing_contact_phone', '' ) && !get_theme_mod( 'bosa_media_marketing_disable_contact_detail', false ) ){ ?>
							<div class="bottom-contact">
								<a href="<?php echo esc_url( 'tel:' . get_theme_mod( 'bosa_media_marketing_contact_phone', '' ) ); ?>">
									<i class="fa-solid fa-phone"></i>
									<span><?php echo esc_html( get_theme_mod( 'bosa_media_marketing_header_phone_label', '' ) ); ?></span>
									<?php echo esc_html( get_theme_mod( 'bosa_media_marketing_contact_phone', '' ) ); ?>
								</a>
							</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
		<div class="overlay"></div>
	</div>
	<div class="mobile-menu-container"></div>
</header><!-- #masthead -->