<?php
/**
 * Header One Style Template
 *
 * @package Stygian
 */

$stygian_phone      = stygian_gtm( 'stygian_header_phone' );
$stygian_email      = stygian_gtm( 'stygian_header_email' );
$stygian_address    = stygian_gtm( 'stygian_header_address' );
$stygian_open_hours = stygian_gtm( 'stygian_header_open_hours' );
?>
<div class="header-wrapper main-header-one">
	<div id="top-header" class="main-top-header-one dark-top-header <?php echo esc_attr( stygian_gtm( 'stygian_header_top_color_scheme' ) ); ?>">
		<div class="site-top-header-mobile">
			<div class="container">
				<button id="header-top-toggle" class="header-top-toggle" aria-controls="header-top" aria-expanded="false">
					<i class="fas fa-bars"></i><span class="menu-label"> <?php esc_html_e( 'Top Bar', 'stygian' ); ?></span>
				</button><!-- #header-top-toggle -->
				
				<div id="site-top-header-mobile-container">
					<?php if ( $stygian_phone || $stygian_email || $stygian_address || $stygian_open_hours ) : ?>
						<div id="quick-contact">
							<?php get_template_part( 'template-parts/header/quick-contact' ); ?>
						</div>
						<?php endif; ?>

						<?php if ( has_nav_menu( 'social' ) ): ?>
						<div id="top-social">
							<div class="social-nav no-border circle-icon">
								<nav id="social-primary-navigation" class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'stygian' ); ?>">
									<?php
										wp_nav_menu( array(
											'theme_location' => 'social',
											'menu_class'     => 'social-links-menu',
											'depth'          => 1,
											'link_before'    => '<span class="screen-reader-text">',
										) );
									?>
								</nav><!-- .social-navigation -->
							</div>
						</div><!-- #top-social -->
					<?php endif; ?>
				</div><!-- #site-top-header-mobile-container-->
			</div><!-- .container -->
		</div><!-- .site-top-header-mobile -->
		
		<div class="site-top-header">
			<div class="container">
				<?php if ( $stygian_phone || $stygian_email || $stygian_address || $stygian_open_hours ) : ?>
				<div id="quick-contact" class="text-aligncenter">
					<?php get_template_part( 'template-parts/header/quick-contact' ); ?>
				</div>
				<?php endif; ?>
			</div><!-- .container -->
		</div><!-- .site-top-header -->
	</div><!-- #top-header -->

	<header id="masthead" class="site-header clear-fix">
		<div class="container">
			<div class="site-header-main">
				<div class="row">
					<div class="ff-grid-3 mobile-off">
						<?php if ( has_nav_menu( 'social' ) ): ?>
						<div id="top-social" class="pull-left">
							<div class="social-nav no-border">
								<nav id="social-primary-navigation" class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'stygian' ); ?>">
									<?php
										wp_nav_menu( array(
											'theme_location' => 'social',
											'menu_class'     => 'social-links-menu',
											'depth'          => 1,
											'link_before'    => '<span class="screen-reader-text">',
										) );
									?>
								</nav><!-- .social-navigation -->
							</div>
						</div><!-- #top-social -->
						<?php endif; ?>
					</div><!-- .ff-grid-4.mobile-off -->
					
					<div class="ff-grid-6 site-branding center-site-branding">
						<?php get_template_part( 'template-parts/header/site-branding' ); ?>
					</div><!-- .site-branding -->
					
					<div class="ff-grid-3 header-one-cart-search">
						<div class="head-search-cart-wrap pull-right">
							<?php if ( function_exists( 'stygian_woocommerce_header_cart' ) ) : ?>
							<div class="cart-contents pull-left">
								<?php stygian_woocommerce_header_cart(); ?>
							</div>
							<?php endif; ?>
							<div class="header-search pull-right">
								<?php get_template_part( 'template-parts/header/header-search' ); ?>
							</div><!-- .header-search -->
						</div><!-- .head-search-cart-wrap -->
					</div><!-- .ff-grid-4.mobile-off -->
				</div><!-- .row -->
			</div><!-- .site-header-main -->
		</div><!-- .container -->
	</header><!-- #masthead -->

	<div id="main-nav">
		<div class="nav-inner-wrapper site-border site-header clear-fix <?php echo stygian_gtm( 'stygian_header_sticky' ) ? ' sticky-enabled' : ''; ?>">
			<div class="container">
				<div class="text-aligncenter">
					<?php get_template_part( 'template-parts/navigation/navigation-primary' ); ?>
				</div><!-- .text-aligncenter -->
			</div><!-- .container -->
		</div><!-- .nav-inner-wrapper -->
	</div><!-- .main-nav -->
</div><!-- .header-wrapper -->
