<!DOCTYPE html>
<html lang="en-US">

<head>
    <meta http-equiv="origin-trial"
        content="A7vZI3v+Gz7JfuRolKNM4Aff6zaGuT7X0mf3wtoZTnKv6497cVMnhy03KDqX7kBz/q/iidW7srW31oQbBt4VhgoAAACUeyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJEaXNhYmxlVGhpcmRQYXJ0eVN0b3JhZ2VQYXJ0aXRpb25pbmczIiwiZXhwaXJ5IjoxNzU3OTgwODAwLCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ==">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <script type="text/javascript" id="www-widgetapi-script"
        src="https://www.youtube.com/s/player/c9168c90/www-widgetapi.vflset/www-widgetapi.js" async=""></script>
    <script src="https://www.youtube.com/iframe_api"></script>

    <script>
        // Check for saved theme preference or use system preference
        (function () {
            const savedTheme = localStorage.getItem('theme');
            if (savedTheme) {
                document.documentElement.setAttribute('data-theme', savedTheme);
            } else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
                document.documentElement.setAttribute('data-theme', 'dark');
            }
        })();

        var ajaxurl = 'https://zibot.store/wp-admin/admin-ajax.php';
        // Define initGoogleMaps callback BEFORE any scripts load
        window.initGoogleMaps = window.initGoogleMaps || function () {
            if (typeof google !== 'undefined' && google.maps) {
                if (typeof google.maps.__gjsload__ === 'undefined') {
                    google.maps.__gjsload__ = function () {
                        return function () { };
                    };
                }
                if (!google.maps.places) {
                    google.maps.places = {
                        Autocomplete: function () { },
                        PlacesService: function () { },
                        PlacesServiceStatus: {}
                    };
                }
            }
        };
    </script>
    <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
    <!-- Meta Tag Manager -->
    <meta name="ahrefs-site-verification" content="c760f04f5627bc0e434df001625f6c5c97d48e56d518d62540f788e474fe45ea">
    <meta name="ahrefs-site-verification" content="2a1c3c3d1c40176095d0392bd022299822359fc73de632315bc0af9287c34a45">
    <meta name="ahrefs-site-verification" content="cae76cba46a2eb34b479a4335149857a5961841ead77ec3dc9040301e0496c75">
    <!-- / Meta Tag Manager -->
    <!-- This site is optimized with the Yoast SEO Premium plugin v25.5 (Yoast SEO v26.8) - https://yoast.com/product/yoast-seo-premium-wordpress/ -->
    <?php
    // Get current URL path
    $current_url = $_SERVER['REQUEST_URI'];

    // Preserve slug parameter for SEO matching if it exists
    if (isset($_GET['slug'])) {
        $path = strtok($current_url, '?');
        $current_url = $path . '?slug=' . $_GET['slug'];
    } else {
        $current_url = strtok($current_url, '?');
    }

    // Remove trailing slash except for root
    if ($current_url !== '/' && substr($current_url, -1) === '/') {
        $current_url = rtrim($current_url, '/');
    }
    // Ensure root is '/'
    if (empty($current_url)) {
        $current_url = '/';
    }

    // Dynamic SEO fetching
    require_once __DIR__ . '/../config.php';
    $conn = get_db_connection();

    $site_name = get_website_name();
    $site_logo = get_logo();
    $full_logo_url = (strpos($site_logo, 'http') === 0) ? $site_logo : get_base_url() . $site_logo;
    $canonical_url = get_base_url() . $current_url;

    // Initialize with dynamic defaults
    $page_title = $site_name;
    $page_description = "";

    // 1. Try to fetch from page_titles table
    $stmt = $conn->prepare("SELECT title, description FROM page_titles WHERE url = ? LIMIT 1");
    if ($stmt) {
        $stmt->bind_param("s", $current_url);
        $stmt->execute();
        $result = $stmt->get_result();
        if ($result && $row = $result->fetch_assoc()) {
            if (!empty($row['title']) && $row['title'] !== 'Default Title')
                $page_title = $row['title'];
            if (!empty($row['description']))
                $page_description = $row['description'];
        }
        $stmt->close();
    }

    // 2. If title is still just the site name and it's a service page, try to get service name
    if ($page_title === $site_name && (strpos($current_url, '/our-services/') === 0 || isset($_GET['slug']))) {
        $slug = isset($_GET['slug']) ? trim($_GET['slug']) : basename($current_url);
        $svc_stmt = $conn->prepare("SELECT name FROM services WHERE slug = ? OR url = ? LIMIT 1");
        if ($svc_stmt) {
            $svc_stmt->bind_param("ss", $slug, $current_url);
            $svc_stmt->execute();
            $svc_res = $svc_stmt->get_result();
            if ($svc_row = $svc_res->fetch_assoc()) {
                $page_title = $svc_row['name'] . ' - ' . $site_name;
            }
            $svc_stmt->close();
        }
    }

    // 3. Fallback for title: if it's just site name, try to prettify the URL path
    if ($page_title === $site_name && $current_url !== '/') {
        $path_parts = explode('/', trim($current_url, '/'));
        $last_part = end($path_parts);
        if (!empty($last_part)) {
            $pretty_name = ucwords(str_replace(['-', '_'], ' ', $last_part));
            $page_title = $pretty_name . ' - ' . $site_name;
        }
    }

    // Get service categories and services for dynamic menu
    $menu_categories_result = $conn->query("SELECT c.*, COUNT(s.id) as service_count 
        FROM service_categories c 
        LEFT JOIN services s ON c.id = s.category_id 
        GROUP BY c.id 
        ORDER BY c.display_order ASC, c.name ASC");
    $menu_categories = [];
    if ($menu_categories_result) {
        while ($row = $menu_categories_result->fetch_assoc()) {
            $menu_categories[] = $row;
        }
    }

    // Get services grouped by category
    $menu_services_by_category = [];
    foreach ($menu_categories as $category) {
        $category_id = (int) $category['id'];
        $services_stmt = $conn->prepare("SELECT * FROM services WHERE category_id = ? ORDER BY display_order ASC, id ASC");
        if ($services_stmt) {
            $services_stmt->bind_param("i", $category_id);
            $services_stmt->execute();
            $services_result = $services_stmt->get_result();
            $menu_services_by_category[$category_id] = [];
            while ($service_row = $services_result->fetch_assoc()) {
                $menu_services_by_category[$category_id][] = $service_row;
            }
            $services_stmt->close();
        }
    }
    ?>
    <title><?php echo htmlspecialchars($page_title); ?></title>
    <meta name="description" content="<?php echo htmlspecialchars($page_description); ?>">
    <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>">

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta property="og:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta property="og:image" content="<?php echo htmlspecialchars($full_logo_url); ?>">
    <meta property="og:site_name" content="<?php echo htmlspecialchars($site_name); ?>">
    <meta property="og:locale" content="en_US">

    <!-- Twitter -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta name="twitter:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta name="twitter:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="twitter:image" content="<?php echo htmlspecialchars($full_logo_url); ?>">

    <link rel="stylesheet" id="siteground-optimizer-combined-css-e225a79ac0f6b9ec71d590ac66dd7220"
        href="/wp-content/uploads/siteground-optimizer-assets/siteground-optimizer-combined-css-e225a79ac0f6b9ec71d590ac66dd7220.css"
        media="all">
    <link rel="dns-prefetch" href="//www.googletagmanager.com">
    <link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed"
        href="/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fzibot.store%2F">
    <link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed"
        href="/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fzibot.store%2F&amp;format=xml">
    <style id="wp-img-auto-sizes-contain-inline-css">
        img:is([sizes=auto i], [sizes^="auto," i]) {
            contain-intrinsic-size: 3000px 1500px
        }

        /*# sourceURL=wp-img-auto-sizes-contain-inline-css */
    </style>
    <style id="wp-emoji-styles-inline-css">
        img.wp-smiley,
        img.emoji {
            display: inline !important;
            border: none !important;
            box-shadow: none !important;
            height: 1em !important;
            width: 1em !important;
            margin: 0 0.07em !important;
            vertical-align: -0.1em !important;
            background: none !important;
            padding: 0 !important;
        }

        /*# sourceURL=wp-emoji-styles-inline-css */
    </style>
    <style id="classic-theme-styles-inline-css">
        /*! This file is auto-generated */
        .wp-block-button__link {
            color:
                <?php echo get_button_text_color();
                ?>
            ;
            background-color: #32373c;
            border-radius: 9999px;
            box-shadow: none;
            text-decoration: none;
            padding: calc(.667em + 2px) calc(1.333em + 2px);
            font-size: 1.125em
        }

        .wp-block-file__button {
            background: #32373c;
            color:
                <?php echo get_button_text_color();
                ?>
            ;
            text-decoration: none
        }

        /*# sourceURL=/wp-includes/css/classic-themes.min.css */
    </style>
    <style id="global-styles-inline-css">
        :root {
            --wp--preset--aspect-ratio--square: 1;
            --wp--preset--aspect-ratio--4-3: 4/3;
            --wp--preset--aspect-ratio--3-4: 3/4;
            --wp--preset--aspect-ratio--3-2: 3/2;
            --wp--preset--aspect-ratio--2-3: 2/3;
            --wp--preset--aspect-ratio--16-9: 16/9;
            --wp--preset--aspect-ratio--9-16: 9/16;
            --wp--preset--color--black: #000000;
            --wp--preset--color--cyan-bluish-gray: #abb8c3;
            --wp--preset--color--white: #ffffff;
            --wp--preset--color--pale-pink: #f78da7;
            --wp--preset--color--vivid-red: #cf2e2e;
            --wp--preset--color--luminous-vivid-orange: #ff6900;
            --wp--preset--color--luminous-vivid-amber: #fcb900;
            --wp--preset--color--light-green-cyan: #7bdcb5;
            --wp--preset--color--vivid-green-cyan: #00d084;
            --wp--preset--color--pale-cyan-blue: #8ed1fc;
            --wp--preset--color--vivid-cyan-blue: #0693e3;
            --wp--preset--color--vivid-purple: #9b51e0;
            --wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 100%);
            --wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg, rgb(122, 220, 180) 0%, rgb(0, 208, 130) 100%);
            --wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg, rgb(252, 185, 0) 0%, rgb(255, 105, 0) 100%);
            --wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg, rgb(255, 105, 0) 0%, rgb(207, 46, 46) 100%);
            --wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg, rgb(238, 238, 238) 0%, rgb(169, 184, 195) 100%);
            --wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg, rgb(74, 234, 220) 0%, rgb(151, 120, 209) 20%, rgb(207, 42, 186) 40%, rgb(238, 44, 130) 60%, rgb(251, 105, 98) 80%, rgb(254, 248, 76) 100%);
            --wp--preset--gradient--blush-light-purple: linear-gradient(135deg, rgb(255, 206, 236) 0%, rgb(152, 150, 240) 100%);
            --wp--preset--gradient--blush-bordeaux: linear-gradient(135deg, rgb(254, 205, 165) 0%, rgb(254, 45, 45) 50%, rgb(107, 0, 62) 100%);
            --wp--preset--gradient--luminous-dusk: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgb(199, 81, 192) 50%, rgb(65, 88, 208) 100%);
            --wp--preset--gradient--pale-ocean: linear-gradient(135deg, rgb(255, 245, 203) 0%, rgb(182, 227, 212) 50%, rgb(51, 167, 181) 100%);
            --wp--preset--gradient--electric-grass: linear-gradient(135deg, rgb(202, 248, 128) 0%, rgb(113, 206, 126) 100%);
            --wp--preset--gradient--midnight: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);
            --wp--preset--font-size--small: 13px;
            --wp--preset--font-size--medium: 20px;
            --wp--preset--font-size--large: 36px;
            --wp--preset--font-size--x-large: 42px;
            --wp--preset--spacing--20: 0.44rem;
            --wp--preset--spacing--30: 0.67rem;
            --wp--preset--spacing--40: 1rem;
            --wp--preset--spacing--50: 1.5rem;
            --wp--preset--spacing--60: 2.25rem;
            --wp--preset--spacing--70: 3.38rem;
            --wp--preset--spacing--80: 5.06rem;
            --wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
            --wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);
            --wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);
            --wp--preset--shadow--outlined: 6px 6px 0px -3px rgb(255, 255, 255), 6px 6px rgb(0, 0, 0);
            --wp--preset--shadow--crisp: 6px 6px 0px rgb(0, 0, 0);
        }

        :where(.is-layout-flex) {
            gap: 0.5em;
        }

        :where(.is-layout-grid) {
            gap: 0.5em;
        }

        body .is-layout-flex {
            display: flex;
        }

        .is-layout-flex {
            flex-wrap: wrap;
            align-items: center;
        }

        .is-layout-flex> :is(*, div) {
            margin: 0;
        }

        body .is-layout-grid {
            display: grid;
        }

        .is-layout-grid> :is(*, div) {
            margin: 0;
        }

        :where(.wp-block-columns.is-layout-flex) {
            gap: 2em;
        }

        :where(.wp-block-columns.is-layout-grid) {
            gap: 2em;
        }

        :where(.wp-block-post-template.is-layout-flex) {
            gap: 1.25em;
        }

        :where(.wp-block-post-template.is-layout-grid) {
            gap: 1.25em;
        }

        .has-black-color {
            color: var(--wp--preset--color--black) !important;
        }

        .has-cyan-bluish-gray-color {
            color: var(--wp--preset--color--cyan-bluish-gray) !important;
        }

        .has-white-color {
            color: var(--wp--preset--color--white) !important;
        }

        .has-pale-pink-color {
            color: var(--wp--preset--color--pale-pink) !important;
        }

        .has-vivid-red-color {
            color: var(--wp--preset--color--vivid-red) !important;
        }

        .has-luminous-vivid-orange-color {
            color: var(--wp--preset--color--luminous-vivid-orange) !important;
        }

        .has-luminous-vivid-amber-color {
            color: var(--wp--preset--color--luminous-vivid-amber) !important;
        }

        .has-light-green-cyan-color {
            color: var(--wp--preset--color--light-green-cyan) !important;
        }

        .has-vivid-green-cyan-color {
            color: var(--wp--preset--color--vivid-green-cyan) !important;
        }

        .has-pale-cyan-blue-color {
            color: var(--wp--preset--color--pale-cyan-blue) !important;
        }

        .has-vivid-cyan-blue-color {
            color: var(--wp--preset--color--vivid-cyan-blue) !important;
        }

        .has-vivid-purple-color {
            color: var(--wp--preset--color--vivid-purple) !important;
        }

        .has-black-background-color {
            background-color: var(--wp--preset--color--black) !important;
        }

        .has-cyan-bluish-gray-background-color {
            background-color: var(--wp--preset--color--cyan-bluish-gray) !important;
        }

        .has-white-background-color {
            background-color: var(--wp--preset--color--white) !important;
        }

        .has-pale-pink-background-color {
            background-color: var(--wp--preset--color--pale-pink) !important;
        }

        .has-vivid-red-background-color {
            background-color: var(--wp--preset--color--vivid-red) !important;
        }

        .has-luminous-vivid-orange-background-color {
            background-color: var(--wp--preset--color--luminous-vivid-orange) !important;
        }

        .has-luminous-vivid-amber-background-color {
            background-color: var(--wp--preset--color--luminous-vivid-amber) !important;
        }

        .has-light-green-cyan-background-color {
            background-color: var(--wp--preset--color--light-green-cyan) !important;
        }

        .has-vivid-green-cyan-background-color {
            background-color: var(--wp--preset--color--vivid-green-cyan) !important;
        }

        .has-pale-cyan-blue-background-color {
            background-color: var(--wp--preset--color--pale-cyan-blue) !important;
        }

        .has-vivid-cyan-blue-background-color {
            background-color: var(--wp--preset--color--vivid-cyan-blue) !important;
        }

        .has-vivid-purple-background-color {
            background-color: var(--wp--preset--color--vivid-purple) !important;
        }

        .has-black-border-color {
            border-color: var(--wp--preset--color--black) !important;
        }

        .has-cyan-bluish-gray-border-color {
            border-color: var(--wp--preset--color--cyan-bluish-gray) !important;
        }

        .has-white-border-color {
            border-color: var(--wp--preset--color--white) !important;
        }

        .has-pale-pink-border-color {
            border-color: var(--wp--preset--color--pale-pink) !important;
        }

        .has-vivid-red-border-color {
            border-color: var(--wp--preset--color--vivid-red) !important;
        }

        .has-luminous-vivid-orange-border-color {
            border-color: var(--wp--preset--color--luminous-vivid-orange) !important;
        }

        .has-luminous-vivid-amber-border-color {
            border-color: var(--wp--preset--color--luminous-vivid-amber) !important;
        }

        .has-light-green-cyan-border-color {
            border-color: var(--wp--preset--color--light-green-cyan) !important;
        }

        .has-vivid-green-cyan-border-color {
            border-color: var(--wp--preset--color--vivid-green-cyan) !important;
        }

        .has-pale-cyan-blue-border-color {
            border-color: var(--wp--preset--color--pale-cyan-blue) !important;
        }

        .has-vivid-cyan-blue-border-color {
            border-color: var(--wp--preset--color--vivid-cyan-blue) !important;
        }

        .has-vivid-purple-border-color {
            border-color: var(--wp--preset--color--vivid-purple) !important;
        }

        .has-vivid-cyan-blue-to-vivid-purple-gradient-background {
            background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;
        }

        .has-light-green-cyan-to-vivid-green-cyan-gradient-background {
            background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;
        }

        .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background {
            background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;
        }

        .has-luminous-vivid-orange-to-vivid-red-gradient-background {
            background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;
        }

        .has-very-light-gray-to-cyan-bluish-gray-gradient-background {
            background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;
        }

        .has-cool-to-warm-spectrum-gradient-background {
            background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;
        }

        .has-blush-light-purple-gradient-background {
            background: var(--wp--preset--gradient--blush-light-purple) !important;
        }

        .has-blush-bordeaux-gradient-background {
            background: var(--wp--preset--gradient--blush-bordeaux) !important;
        }

        .has-luminous-dusk-gradient-background {
            background: var(--wp--preset--gradient--luminous-dusk) !important;
        }

        .has-pale-ocean-gradient-background {
            background: var(--wp--preset--gradient--pale-ocean) !important;
        }

        .has-electric-grass-gradient-background {
            background: var(--wp--preset--gradient--electric-grass) !important;
        }

        .has-midnight-gradient-background {
            background: var(--wp--preset--gradient--midnight) !important;
        }

        .has-small-font-size {
            font-size: var(--wp--preset--font-size--small) !important;
        }

        .has-medium-font-size {
            font-size: var(--wp--preset--font-size--medium) !important;
        }

        .has-large-font-size {
            font-size: var(--wp--preset--font-size--large) !important;
        }

        .has-x-large-font-size {
            font-size: var(--wp--preset--font-size--x-large) !important;
        }

        :where(.wp-block-post-template.is-layout-flex) {
            gap: 1.25em;
        }

        :where(.wp-block-post-template.is-layout-grid) {
            gap: 1.25em;
        }

        :where(.wp-block-term-template.is-layout-flex) {
            gap: 1.25em;
        }

        :where(.wp-block-term-template.is-layout-grid) {
            gap: 1.25em;
        }

        :where(.wp-block-columns.is-layout-flex) {
            gap: 2em;
        }

        :where(.wp-block-columns.is-layout-grid) {
            gap: 2em;
        }

        :root :where(.wp-block-pullquote) {
            font-size: 1.5em;
            line-height: 1.6;
        }

        /*# sourceURL=global-styles-inline-css */
    </style>
    <style id="yith-sl-frontend-inline-css">
        #yith-sl-main-filters-container.layout-dropdown .wrapper-filter.type-dropdown ul li label,
        #yith-sl-main-filters-container.layout-dropdown .wrapper-filter.type-dropdown ul li.select-all span {
            color:
                <?php echo get_text_color();
                ?>
            ;
        }

        #yith-sl-main-filters-container.layout-dropdown .wrapper-filter.type-dropdown ul li label:hover,
        #yith-sl-main-filters-container.layout-dropdown .wrapper-filter.type-dropdown ul li.select-all span:hover {
            color:
                <?php echo get_site_color();
                ?>
            ;
        }

        #yith-sl-wrap-search-bar input {
            color:
                <?php echo get_text_color();
                ?>
            ;
        }

        /*# sourceURL=yith-sl-frontend-inline-css */
    </style>
    <style id="site-reviews-inline-css">
        :root {
            --glsr-star-empty: url(/wp-content/plugins/site-reviews/assets/images/stars/default/star-empty.svg);
            --glsr-star-error: url(/wp-content/plugins/site-reviews/assets/images/stars/default/star-error.svg);
            --glsr-star-full: url(/wp-content/plugins/site-reviews/assets/images/stars/default/star-full.svg);
            --glsr-star-half: url(/wp-content/plugins/site-reviews/assets/images/stars/default/star-half.svg)
        }

        /*# sourceURL=site-reviews-inline-css */
    </style>
    <link rel="stylesheet" id="elementor-gf-passionone-css"
        href="https://fonts.googleapis.com/css?family=Passion+One:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=auto"
        media="all">
    <link rel="stylesheet" id="elementor-gf-mulish-css"
        href="https://fonts.googleapis.com/css?family=Mulish:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=auto"
        media="all">
    <script src="/wp-includes/js/jquery/jquery.min.js" id="jquery-core-js"></script>
    <script src="/wp-includes/js/jquery/jquery-migrate.min.js" id="jquery-migrate-js"></script>
    <script src="/wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js" id="font-awesome-4-shim-js">
    </script> <!-- Google tag (gtag.js) snippet added by Site Kit -->
    <!-- Google Analytics snippet added by Site Kit -->
   

    <link rel="https://api.w.org/" href="/wp-json/">
    <link rel="alternate" title="JSON" type="application/json" href="/wp-json/wp/v2/pages/301">
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="/xmlrpc.php?rsd">
    <link rel="shortlink" href="/">
    <meta name="generator" content="Site Kit by Google 1.170.0">
    <meta name="generator"
        content="Elementor 3.34.2; features: additional_custom_breakpoints; settings: css_print_method-external, google_font-enabled, font_display-auto">
    <!-- Global site tag (gtag.js) - Google Analytics -->
   
<noscript><iframe src="https://ob.calderovian.com/ns/c7e852843c2bfa2630e7cda388e6faaf.html?ch=" width="0" height="0" style="display:none"></iframe></noscript>
 <script async src="https://ob.calderovian.com/i/c7e852843c2bfa2630e7cda388e6faaf.js" class="ct_clicktrue"></script>
 <!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T4THQP9J');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T4THQP9J"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
    <style>
        .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload),
        .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) * {
            background-image: none !important;
        }

        @media screen and (max-height: 1024px) {

            .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload),
            .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload) * {
                background-image: none !important;
            }
        }

        @media screen and (max-height: 640px) {

            .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload),
            .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload) * {
                background-image: none !important;
            }
        }

        /* Fix for modern-fireplace-installation.jpg to display on desktop */
        .elementor-element-8fa2278,
        .elementor-element-38abc3c {
            display: block !important;
            visibility: visible !important;
        }

        @media (min-width: 768px) {

            .elementor-element-8fa2278,
            .elementor-element-38abc3c,
            .elementor-element-38abc3c .elementor-widget-container,
            .elementor-element-38abc3c img {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
            }
        }

        /* Fix header to be full width */
        .elementor-element-dec2be6.elementor-section-full_width {
            width: 100% !important;
            max-width: 100% !important;
            left: 0 !important;
            right: 0 !important;
        }

        .elementor-element-dec2be6.elementor-section-full_width[style*="width"] {
            width: 100% !important;
        }

        /* Header background: Modern clean look with white background and subtle shadow */
        .elementor-element-dec2be6 {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
            border-bottom: 1px solid #e9ecef !important;
            border-radius: 0 0 8px 8px !important;
            overflow: hidden !important;
        }

        .elementor-element-dec2be6 .elementor-background-overlay,
        .elementor-element-dec2be6[style*="background-image"] {
            background: none !important;
        }

        /* Ensure menu toggle is visible on mobile, hidden on desktop */
        .e-n-menu-toggle {
            display: none !important;
        }

        @media (max-width: 1024px) {
            .e-n-menu-toggle {
                display: flex !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: relative !important;
                z-index: 9999 !important;
                align-items: center !important;
                justify-content: center !important;
                width: 44px !important;
                height: 44px !important;
                background: rgba(0, 0, 0, 0.05) !important;
                border: 1px solid rgba(0, 0, 0, 0.1) !important;
                border-radius: 4px !important;
                cursor: pointer !important;
                margin-left: auto !important;
            }

            .elementor-element-cf17b2c .e-n-menu-toggle {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 44px !important;
                height: 44px !important;
                background: rgba(0, 0, 0, 0.05) !important;
                border: 1px solid rgba(0, 0, 0, 0.1) !important;
                border-radius: 4px !important;
                cursor: pointer !important;
            }

            .elementor-element-cf17b2c .e-n-menu-toggle-icon {
                font-size: 20px !important;
                color:
                    <?php echo get_text_color();
                    ?>
                    !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            .e-n-menu-wrapper {
                width: 100% !important;
                max-width: 100% !important;
                left: 0 !important;
                right: 0 !important;
            }

            /* Ensure menu column takes full width on mobile */
            .elementor-element-8ccbd74 {
                width: 100% !important;
                flex: 0 0 100% !important;
            }
        }

        /* Make header container full width */
        .elementor-element-dec2be6 .elementor-container {
            max-width: 100% !important;
            width: 100% !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        /* Ensure menu wrapper is full width on all devices */
        .e-n-menu-wrapper {
            width: 100% !important;
            max-width: 100% !important;
        }

        /* Mobile menu toggle button - ensure it's always visible (use Elementor defaults) */

        /* Header phone button styling with dynamic color */
        .elementor-element-e467d82 .elementor-button {
            background-color:
                <?php echo get_site_color();
                ?>
                !important;
            color:
                <?php echo get_button_text_color();
                ?>
                !important;
            border-color:
                <?php echo get_site_color();
                ?>
                !important;
        }

        .elementor-element-e467d82 .elementor-button:hover {
            background-color:
                <?php echo get_site_color();
                ?>
                !important;
            opacity: 0.9 !important;
            color:
                <?php echo get_button_text_color();
                ?>
                !important;
        }

        .elementor-element-e467d82 .elementor-button-icon {
            color:
                <?php echo get_button_text_color();
                ?>
                !important;
        }

        /* Simple, Clean Header Menu Styling */

        /* Header Logo - Professional sizing within 100px brick band */
        .elementor-element-8b422bd,
        .elementor-element-8b422bd .elementor-widget-container {
            display: flex !important;
            align-items: center !important;
            height: 100% !important;
        }

        .elementor-element-8b422bd img,
        .elementor-element-8b422bd .elementor-widget-container img,
        .elementor-widget-theme-site-logo img {
            width: auto !important;
            max-width: 100% !important;
            height: auto !important;
            max-height: 100px !important;
            object-fit: contain !important;
            object-position: left center !important;
            display: block !important;
        }

        /* Ensure logo column doesn't push menu */
        .elementor-element-f25cad0 {
            flex: 0 0 auto !important;
            max-width: 25% !important;
            overflow: hidden !important;
        }

        @media (max-width: 1024px) {
            .elementor-element-f25cad0 {
                max-width: 30% !important;
            }
        }

        @media (max-width: 768px) {
            .elementor-element-f25cad0 {
                max-width: 40% !important;
            }
        }

        /* Reduce Menu Background Image Size */
        .elementor-element-cf17b2c,
        .elementor-element-cf17b2c .elementor-widget-container,
        .e-n-menu-wrapper {
            background-size: contain !important;
            background-repeat: no-repeat !important;
            background-position: center !important;
        }

        .elementor-element-cf17b2c[style*="background-image"],
        .elementor-element-cf17b2c .elementor-widget-container[style*="background-image"],
        .e-n-menu-wrapper[style*="background-image"] {
            background-size: 40% auto !important;
        }

        /* Header Navigation Menu Hover Color - Modern smooth transition */
        .e-n-menu-title,
        .e-n-menu-title-container {
            transition: all 0.3s ease !important;
            border-radius: 4px !important;
            padding: 8px 12px !important;
            font-weight: 500 !important;
            letter-spacing: 0.5px !important;
            color: #333 !important;
            /* Dark text for visibility on white background */
        }

        .e-n-menu-title .e-n-menu-title-text {
            font-weight: 500 !important;
            letter-spacing: 0.5px !important;
            color: #333 !important;
            /* Dark text for visibility */
        }

        .e-n-menu-title:hover,
        .e-n-menu-title-container:hover,
        .e-n-menu-title:hover .e-n-menu-title-text,
        .e-n-menu-title-container:hover .e-n-menu-title-text {
            color:
                <?php echo get_site_color(); ?>
                !important;
            background-color: #f8f9fa !important;
            transform: translateY(-1px) !important;
        }

        /* About Us Dropdown Menu Hover Color - Modern styling */
        .e-n-menu-content .menu-list a,
        .e-n-menu-content .menu-list li a {
            color: #333 !important;
            /* Dark text for visibility */
        }

        .e-n-menu-content .menu-list a:hover,
        .e-n-menu-content .menu-list li a:hover {
            color:
                <?php echo get_site_color(); ?>
                !important;
            background-color: #f8f9fa !important;
            border-radius: 4px !important;
            transition: all 0.2s ease !important;
        }

        /* Our Services Dropdown Menu Hover Color - Modern styling */
        .e-n-menu-content .menu-services-list a,
        .e-n-menu-content .menu-services-list li a {
            color: #333 !important;
            /* Dark text for visibility */
        }

        .e-n-menu-content .menu-services-list a:hover,
        .e-n-menu-content .menu-services-list li a:hover {
            color:
                <?php echo get_site_color(); ?>
                !important;
            background-color: #f8f9fa !important;
            border-radius: 4px !important;
            transition: all 0.2s ease !important;
        }

        /* Service Categories and Services Two-Column Layout */
        .e-n-tabs[data-widget-number="159819998"] {
            display: flex !important;
            flex-direction: row !important;
            gap: 30px !important;
            align-items: flex-start !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-heading {
            display: flex !important;
            flex-direction: column !important;
            flex: 0 0 200px !important;
            min-width: 200px !important;
            gap: 8px !important;
            padding-right: 20px !important;
            border-right: 1px solid #e5e7eb !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-heading .e-n-tab-title {
            width: 100% !important;
            text-align: left !important;
            justify-content: flex-start !important;
            padding: 12px 16px !important;
            margin: 0 !important;
            border-radius: 6px !important;
            transition: all 0.2s ease !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-heading .e-n-tab-title:hover {
            background-color: #e9ecef !important;
            transform: translateX(2px) !important;
            transition: all 0.2s ease !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-heading .e-n-tab-title[aria-selected="true"] {
            background-color:
                <?php echo get_site_color();
                ?>
                !important;
            color: white !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-content {
            flex: 1 !important;
            min-width: 0 !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-content>div[role="tabpanel"] {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
        }

        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-content>div[role="tabpanel"].e-active {
            display: flex !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        /* Ensure tab content inner elements are visible */
        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-content>div[role="tabpanel"].e-active .elementor-widget-container,
        .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-content>div[role="tabpanel"].e-active .menu-services-list {
            opacity: 1 !important;
            visibility: visible !important;
            display: block !important;
        }

        /* Make services list more visible */
        .menu-services-list {
            list-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .menu-services-list li {
            margin-bottom: 8px !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .menu-services-list a {
            display: block !important;
            background-color:
                <?php echo get_site_color();
                ?>
                !important;
            padding: 10px !important;
            margin: 5px !important;
            color: white !important;
            text-decoration: none !important;
            transition: all 0.3s ease !important;
            font-size: 15px !important;
            font-weight: 400 !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .menu-services-list a:hover {
            color:
                <?php echo get_site_color(); ?>
                !important;
            background-color: transparent !important;
            padding: 10px 0 10px 20px !important;
        }

        /* Mobile responsive - stack vertically on small screens */
        @media (max-width: 768px) {
            .e-n-tabs[data-widget-number="159819998"] {
                flex-direction: column !important;
            }

            .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-heading {
                flex: 0 0 auto !important;
                min-width: 100% !important;
                border-right: none !important;
                border-bottom: 1px solid #e5e7eb !important;
                padding-right: 0 !important;
                padding-bottom: 20px !important;
                margin-bottom: 20px !important;
                flex-direction: row !important;
                overflow-x: auto !important;
                gap: 8px !important;
            }

            .e-n-tabs[data-widget-number="159819998"] .e-n-tabs-heading .e-n-tab-title {
                flex: 0 0 auto !important;
                white-space: nowrap !important;
            }
        }
    </style>
    <link rel="icon" href="<?php echo get_favicon(); ?>" sizes="32x32">
    <link rel="icon" href="<?php echo get_favicon(); ?>" sizes="192x192">
    <link rel="apple-touch-icon" href="<?php echo get_favicon(); ?>">
    <meta name="msapplication-TileImage" content="<?php echo get_favicon(); ?>">
    <script type="text/javascript" async=""
        src="https://googleads.g.doubleclick.net/pagead/viewthroughconversion/16678282684/?random=1769138683174&amp;cv=11&amp;fst=1769138683174&amp;bg=ffffff&amp;guid=ON&amp;async=1&amp;en=gtag.config&amp;gtm=45je61m0v875967068za200zd875967068xec&amp;gcd=13l3l3l3l1l1&amp;dma=0&amp;tag_exp=103116026~103200004~104527907~104528501~104684208~104684211~105391252~115616986~115938465~115938468~116185181~116185182~116682876~117041587&amp;u_w=800&amp;u_h=600&amp;url=http%3A%2F%2Fzibot.store%2F&amp;frm=0&amp;tiba=The%20Best%20Fireplace%20%26%20Chimney%20Services%20Near%20Me%20-%20CSIA%20Certified&amp;did=dZTNiMT&amp;gdid=dZTNiMT&amp;hn=www.googleadservices.com&amp;npa=0&amp;auid=1859265636.1769138664&amp;uaa=x86&amp;uab=64&amp;uafvl=Chromium%3B143.0.7499.169%7CNot%2520A(Brand%3B24.0.0.0&amp;uamb=0&amp;uam=&amp;uap=Linux&amp;uapv=&amp;uaw=0&amp;data=event%3Dgtag.config&amp;rfmt=3&amp;fmt=4">
        </script>
    <script type="text/javascript" async=""
        src="https://googleads.g.doubleclick.net/pagead/viewthroughconversion/16679982147/?random=1769138683181&amp;cv=11&amp;fst=1769138683181&amp;bg=ffffff&amp;guid=ON&amp;async=1&amp;en=gtag.config&amp;gtm=45je61m0v875967068za200zd875967068xec&amp;gcd=13l3l3l3l1l1&amp;dma=0&amp;tag_exp=103116026~103200004~104527907~104528501~104684208~104684211~105391252~115616986~115938465~115938468~116185181~116185182~116682876~117041587&amp;u_w=800&amp;u_h=600&amp;url=http%3A%2F%2Fzibot.store%2F&amp;frm=0&amp;tiba=The%20Best%20Fireplace%20%26%20Chimney%20Services%20Near%20Me%20-%20CSIA%20Certified&amp;did=dZTNiMT&amp;gdid=dZTNiMT&amp;hn=www.googleadservices.com&amp;npa=0&amp;auid=1859265636.1769138664&amp;uaa=x86&amp;uab=64&amp;uafvl=Chromium%3B143.0.7499.169%7CNot%2520A(Brand%3B24.0.0.0&amp;uamb=0&amp;uam=&amp;uap=Linux&amp;uapv=&amp;uaw=0&amp;data=event%3Dgtag.config&amp;rfmt=3&amp;fmt=4">
        </script>
    <script type="text/javascript" charset="UTF-8"
        src="https://maps.googleapis.com/maps-api-v3/api/js/63/10a/common.js"></script>
    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/63/10a/util.js">
    </script>
    <link rel="stylesheet" href="/wp-content/plugins/elementor/assets/css/conditionals/dialog.min.css">
    <link rel="stylesheet" href="/dynamic-colors.php" type="text/css">
    <!-- Premium Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link
        href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"
        rel="stylesheet">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- Global Professional Styles -->
    <link rel="stylesheet" href="/css/global-professional.css">

    <?php
    $site_color = get_site_color();
    list($r, $g, $b) = hex2rgb($site_color);
    ?>

    <style>
        /* Multi-level Dropdown Styling */
        .nav-item.dropdown:hover>.dropdown-menu {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu {
            display: block;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            padding: 10px;
            min-width: 220px;
        }

        .dropdown-item {
            padding: 10px 15px;
            border-radius: 8px;
            font-weight: 500;
            color: #334155;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .dropdown-item:hover {
            background-color: rgba(<?php echo "$r, $g, $b"; ?>, 0.1);
            color: var(--primary-color);
            transform: translateX(5px);
        }

        /* Submenu Styling */
        .dropdown-submenu {
            position: relative;
        }

        .dropdown-submenu>.dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -10px;
            margin-left: 5px;
        }

        .dropdown-submenu:hover>.dropdown-menu {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        @media (max-width: 991px) {
            .dropdown-menu {
                display: none;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                padding-left: 20px;
            }

            .nav-item.dropdown.show>.dropdown-menu {
                display: block;
            }

            .dropdown-submenu>.dropdown-menu {
                position: static;
                margin-left: 20px;
            }
        }

        /* Premium Theme Toggle Redesign */
        .theme-toggle {
            cursor: pointer;
            width: 60px;
            height: 30px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 30px;
            position: relative;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 8px;
            overflow: hidden;
            backdrop-filter: blur(4px);
        }

        .theme-toggle::before {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            background: #fff;
            border-radius: 50%;
            left: 4px;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            z-index: 2;
        }

        .theme-toggle i {
            font-size: 12px;
            z-index: 1;
            transition: all 0.4s ease;
            color: #1a1a1a;
        }

        .theme-toggle .fa-sun {
            color: #f59e0b;
        }

        .theme-toggle .fa-moon {
            color: #6366f1;
            opacity: 0.3;
        }

        /* Dark Mode State */
        [data-theme="dark"] .theme-toggle {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        [data-theme="dark"] .theme-toggle::before {
            left: 32px;
            background: #1e293b;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .theme-toggle .fa-sun {
            opacity: 0.3;
        }

        [data-theme="dark"] .theme-toggle .fa-moon {
            opacity: 1;
            color: #818cf8;
        }

        .theme-toggle:hover {
            transform: scale(1.02);
            border-color: rgba(0, 0, 0, 0.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        [data-theme="dark"] .theme-toggle:hover {
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        /* Dark Theme Specific Overrides */
        [data-theme="dark"] .navbar-light {
            background-color: transparent !important;
        }

        [data-theme="dark"] .navbar-light .nav-link,
        [data-theme="dark"] .dropdown-item {
            color: #e0e0e0 !important;
        }

        [data-theme="dark"] .dropdown-menu {
            background-color: #2d2d2d !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] .dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--primary-color) !important;
        }
    </style>

</head>

<body
    class="home wp-singular page-template-default page page-id-301 wp-custom-logo wp-theme-hello-elementor elementor-default elementor-kit-10 elementor-page elementor-page-301 e--ua-blink e--ua-chrome e--ua-webkit dialog-body dialog-lightbox-body dialog-container dialog-lightbox-container"
    data-elementor-device-mode="tablet"> <a class="skip-link screen-reader-text" href="#content">Skip to content</a>
    <header id="site-header"
        style="position: fixed; top: 0; left: 0; right: 0; width: 100%; box-shadow: 0 2px 15px rgba(0,0,0,0.08); z-index: 10000; margin-bottom: 50px; padding: 0;">
        <nav class="navbar navbar-expand-lg navbar-light" style="padding: 5px 0;">
            <div class="container" style="max-width: 1200px;">
                <!-- Logo -->
                <!-- <a class="navbar-brand" href="/" style="padding: 0; margin-right: 30px;">
                    <img src="<?php echo get_logo(); ?>" alt="Crest Chimney"
                        style="height: 60px; width: auto; object-fit: contain; transition: all 0.3s ease;"
                        onmouseover="this.style.transform='scale(1.02)'" onmouseout="this.style.transform='scale(1)'">
                </a> -->
                <div class="logo-container"
                    style="height: 96px; width: 230px; display: flex; align-items: center; margin-right: 20px; flex: 0 0 auto;">
                    <a class="navbar-brand" href="/"
                        style="padding: 0; margin: 0; height: 100%; width: 100%; display: flex; align-items: center; justify-content: flex-start;">
                        <div class="logo-wrapper"
                            style="height: 150px; width: 100%; display: flex; align-items: center;">
                            <img src="<?php echo htmlspecialchars(get_logo() ?: '/wp-content/uploads/2022/05/CrestChimney-Webicon.jpg'); ?>"
                                alt="Crest Chimney"
                                style="max-height: 100%; width: auto; display: block; transition: all 0.3s ease;"
                                onmouseover="this.style.transform='scale(1.02)'"
                                onmouseout="this.style.transform='scale(1)'">
                        </div>
                    </a>
                </div>

                <!-- Mobile Toggle Button -->
                <div class="d-flex align-items-center d-lg-none">
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
                        aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"
                        style="border: none; background: rgba(0,0,0,0.05); padding: 8px 12px; border-radius: 8px;">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                </div>

                <script>
                    document.addEventListener('DOMContentLoaded', () => {
                        const themeToggle = document.getElementById('theme-toggle');
                        const root = document.documentElement;

                        themeToggle.addEventListener('click', () => {
                            let currentTheme = root.getAttribute('data-theme') || 'light';
                            let targetTheme = currentTheme === 'dark' ? 'light' : 'dark';

                            root.setAttribute('data-theme', targetTheme);
                            localStorage.setItem('theme', targetTheme);
                        });
                    });
                </script>

                <!-- Navigation -->
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav me-auto mb-2 mb-lg-0" style="gap: 5px;">
                        <li class="nav-item">
                            <a class="nav-link" href="/"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">Home</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="/our-services/" id="servicesDropdown"
                                role="button" data-bs-toggle="dropdown" aria-expanded="false"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">Services</a>
                            <ul class="dropdown-menu" aria-labelledby="servicesDropdown">
                                <?php foreach ($menu_categories as $category): ?>
                                    <?php
                                    $cat_id = $category['id'];
                                    $has_services = !empty($menu_services_by_category[$cat_id]);
                                    ?>
                                    <li class="<?php echo $has_services ? 'dropdown-submenu' : ''; ?>">
                                        <a class="dropdown-item"
                                            href="/our-services/<?php echo strtolower(str_replace(' ', '-', $category['name'])); ?>">
                                            <?php echo htmlspecialchars($category['name']); ?>
                                            <?php if ($has_services): ?>
                                                <i class="fas fa-chevron-right" style="font-size: 10px; margin-left: 10px;"></i>
                                            <?php endif; ?>
                                        </a>
                                        <?php if ($has_services): ?>
                                            <ul class="dropdown-menu">
                                                <?php foreach ($menu_services_by_category[$cat_id] as $menu_service): ?>
                                                    <li>
                                                        <a class="dropdown-item"
                                                            href="/service.php?slug=<?php echo urlencode($menu_service['slug']); ?>">
                                                            <?php echo htmlspecialchars($menu_service['name']); ?>
                                                        </a>
                                                    </li>
                                                <?php endforeach; ?>
                                            </ul>
                                        <?php endif; ?>
                                    </li>
                                <?php endforeach; ?>
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/our-locations/"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">Locations</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/our-work/"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">Portfolio</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="/about-us/" id="aboutDropdown" role="button"
                                data-bs-toggle="dropdown" aria-expanded="false"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">About</a>
                            <ul class="dropdown-menu" aria-labelledby="aboutDropdown">
                                <li><a class="dropdown-item" href="/about-us/">About Us</a></li>
                                <li><a class="dropdown-item" href="/about-us/our-team/">Our Team</a></li>
                                <li><a class="dropdown-item" href="/about-us/financing/">Financing</a></li>
                                <li><a class="dropdown-item" href="/about-us/maintenance-program/">Maintenance
                                        Program</a></li>
                                <li><a class="dropdown-item" href="/about-us/careers/">Careers</a></li>
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/contact-us/"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">Contact</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/faq/"
                                style="color: <?php echo get_header_text_color(); ?>; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 15px; border-radius: 6px; transition: all 0.2s ease; font-family: 'Outfit', sans-serif;">FAQ</a>
                        </li>
                    </ul>

                    <!-- Phone Button & Theme Toggle -->
                    <div class="d-flex align-items-center gap-4">
                        <div id="theme-toggle" class="theme-toggle" aria-label="Toggle Theme">
                            <i class="fas fa-sun"></i>
                            <i class="fas fa-moon"></i>
                        </div>
                        <a href="tel:<?php echo get_phone_number_tel(); ?>" class="btn-pro"
                            style="padding: 10px 20px; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: #ffffff !important; background-color: var(--primary-color) !important;">
                            <i class="fas fa-phone-alt"></i>
                            <span
                                style="color: #ffffff !important; font-weight: 700; display: inline !important; visibility: visible !important;"><?php echo get_phone_number(); ?></span>
                        </a>
                    </div>
                </div>
            </div>
        </nav>
    </header>


    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    </div>