<header class="<?php if (get_theme_mod('film_studio_sticky_header', false) != '') { ?>main-header<?php } else { ?>close-sticky<?php } ?>">
    <div class="lower-header-area">  
            <?php 
                $film_studio_topheader_btn_text = get_theme_mod('film_studio_topheader_btn_text','Rent Now');
                $film_studio_topheader_btn_link = get_theme_mod('film_studio_topheader_btn_link','#');
            ?>          
            <div class="row m-0" style="align-items:center;">
                <div class="col-xl-6 col-lg-4 col-md-3">
                    <div class="container">
                        <div class="logo">
                            <?php if (has_custom_logo()) {   
                                the_custom_logo();
                            } else { 
                                $film_studio_site_title = get_theme_mod('film_studio_site_title_setting', '1');
                                if ($film_studio_site_title == '1') { ?>
                                    <a href="<?php echo esc_url(home_url('/')); ?>">
                                        <h4 class="site-title">
                                            <?php 
                                                echo esc_html(bloginfo('name'));
                                            ?>
                                        </h4>
                                    </a>
                                <?php }
                                $film_studio_tagline = get_theme_mod('film_studio_tagline_setting', '0');
                                if ($film_studio_tagline) { ?>   
                                    <?php 
                                        $film_studio_site_desc = get_bloginfo('description'); ?>
                                        <p class="site-description"><?php echo esc_html($film_studio_site_desc); ?></p>
                                <?php } ?>
                            <?php }?>
                        </div>
                    </div>
                </div>
                <div class="col-xl-4 col-lg-6 col-md-6">
                    <!-- Main menu -->
                    <div class="navbar-menubar responsive-menu navigation_header">
                        <div class="toggle-nav mobile-menu">
                            <button onclick="film_studio_openNav()">
                                <i class="fa fa-bars"></i> <!-- Initial hamburger icon -->
                            </button>
                        </div>
                        <div id="mySidenav" class="nav sidenav">
                            <nav id="site-navigation" class="main-navigation navbar navbar-expand-xl" aria-label="<?php esc_attr_e( 'Top Menu', 'film-studio' ); ?>">

                                <?php 
                                    wp_nav_menu(
                                        array(
                                            'theme_location' => 'primary-menu',
                                            'container_class' => 'main-menu clearfix',
                                            'menu_class' => 'clearfix menu',
                                            'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav">%3$s</ul>',
                                            'fallback_cb' => 'wp_page_menu',
                                        )
                                    );
                                ?>
                                <a href="javascript:void(0)" class="closebtn mobile-menu" onclick="film_studio_closeNav()">
                                    <i class="fa fa-times"></i> <!-- Close icon for the menu -->
                                </a>
                            </nav>
                        </div>
                    </div>
                </div>
                <div class="col-lg-2 col-md-3 pe-md-4 header-btn text-md-end text-center">
                    <?php if ($film_studio_topheader_btn_link != '' || $film_studio_topheader_btn_text != '') { ?>
                        <a href="<?php echo apply_filters('film_studio_topheader', $film_studio_topheader_btn_link); ?>" class="offer-text"><?php echo apply_filters('film_studio_topheader', $film_studio_topheader_btn_text); ?></a>
                    <?php }?>
                </div>
            </div>
    </div>
</header>
