<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/accounting.js/0.4.1/accounting.min.js"></script>
    <?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
    <?php wp_body_open(); ?>
    
    <!-- Header -->
    <header class="main-header">
        <div class="container">
            <div class="header-content">
                <div class="logo">
                    <a href="<?php echo esc_url(home_url('/')); ?>">
                        <img src="<?php echo esc_url(get_theme_mod('header_logo', get_theme_file_uri('images/logo.png'))); ?>" alt="<?php bloginfo('name'); ?>">
                    </a>
                </div>
                <button class="mobile-menu-toggle" id="menuToggle">
                    <i class="fas fa-bars"></i>
                </button>
                <nav class="main-nav">
                    <?php
                    if (has_nav_menu('primary')) {
                        wp_nav_menu(array(
                            'theme_location' => 'primary',
                            'menu_class'     => 'menu',
                            'container'      => false,
                            'fallback_cb'    => false
                        ));
                    } else {
                        // Fallback menu, če meni ni določen v skrbniškem vmesniku
                        echo '<ul class="menu">';
                        echo '<li><a href="' . esc_url(home_url('/')) . '" ' . (is_front_page() ? 'class="active"' : '') . '>Home</a></li>';
                        echo '<li><a href="' . esc_url(home_url('/contact')) . '" ' . (is_page('contact') ? 'class="active"' : '') . '>Contact us</a></li>';
                        echo '<li><a href="' . esc_url(home_url('/blog')) . '" ' . (is_page('blog') ? 'class="active"' : '') . '>Blog</a></li>';
                        echo '</ul>';
                    }
                    ?>
                </nav>
            </div>
        </div>
    </header>
    
    <div class="main-content">
        <a href="<?php echo esc_url(home_url('/inquiry/')); ?>" class="floating-inquiry-btn">
            <i class="fas fa-paper-plane"></i>
            Custom Journey Inquiry
        </a>
    </div> 