<?php
/**
 * Displays main header
 *
 * @package Interior Decor Studio
 */
?>
<?php
$interior_decor_studio_sticky_header = get_theme_mod('interior_decor_studio_sticky_header');
    $interior_decor_studio_data_sticky = "false";
    if ($interior_decor_studio_sticky_header) {
    $interior_decor_studio_data_sticky = "true";
    }
?>
<div class="header-bg text-center text-md-start">
    <div class="container">
        <div class="main-header" data-sticky="<?php echo esc_attr($interior_decor_studio_data_sticky); ?>">
            <div class="row nav-box">
                <div class="col-lg-3 col-md-3 col-sm-5 col-12 pr-0 logo-box">
                    <div class="navbar-brand text-center text-md-start">
                        <?php if ( has_custom_logo() ) : ?>
                            <div class="site-logo"><?php the_custom_logo(); ?></div>
                        <?php endif; ?>
                        <?php $interior_decor_studio_blog_info = get_bloginfo( 'name' ); ?>
                            <?php if ( ! empty( $interior_decor_studio_blog_info ) ) : ?>
                                <?php if ( is_front_page() && is_home() ) : ?>
                                    <?php if( get_theme_mod('interior_decor_studio_logo_title_text',true) != ''){ ?>
                                        <h1 class="site-title pt-2"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                                    <?php } ?>
                                <?php else : ?>
                                    <?php if( get_theme_mod('interior_decor_studio_logo_title_text',true) != ''){ ?>
                                        <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
                                $interior_decor_studio_description = get_bloginfo( 'description', 'display' );
                                if ( $interior_decor_studio_description || is_customize_preview() ) :
                            ?>
                            <?php if( get_theme_mod('interior_decor_studio_theme_description',false) != ''){ ?>
                                <p class="site-description pb-2"><?php echo esc_html($interior_decor_studio_description); ?></p>
                            <?php } ?>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-lg-9 col-md-9 col-sm-2 col-12 pl-0 align-self-center header-box">
                    <div class="header-right">
                        <?php get_template_part('template-parts/navigation/nav'); ?>
                        <hr>
                        <?php get_template_part('template-parts/topheader/topheader'); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
