/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ===================================================
   Custom Fonts - Loaded with multiple variations
   to ensure compatibility with all CSS declarations
   ================================================== */

/* Grift Variable Font */
@font-face {
    font-family: 'Grift';
    src: url('/wp-content/uploads/2025/08/Grift-Variable-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: Grift;
    src: url('/wp-content/uploads/2025/08/Grift-Variable-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

/* Boyrun Font - Multiple declarations for compatibility */
@font-face {
    font-family: 'Boyrun';
    src: url('/wp-content/uploads/2025/08/Boyrun.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: Boyrun;
    src: url('/wp-content/uploads/2025/08/Boyrun.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

/* Force font rendering for elements using these fonts */
[style*="font-family: Boyrun"],
[style*="font-family: 'Boyrun'"],
[style*='font-family: "Boyrun"'],
[style*="font-family:Boyrun"] {
    font-family: Boyrun, sans-serif !important;
}

[style*="font-family: Grift"],
[style*="font-family: 'Grift'"],
[style*='font-family: "Grift"'],
[style*="font-family:Grift"] {
    font-family: Grift, sans-serif !important;
}

/* ===================================================
   Mega Menu Dropdown Hover Fix
   ================================================== */

/* Disable pointer events on full-width dropdown container */
.uc-mega_menu_section.uc-active_item {
    pointer-events: none !important;
}

/* Re-enable pointer events on the actual visible dropdown content */
.uc-mega_menu_section.uc-active_item .m-nav {
    pointer-events: auto !important;
}

/* Re-enable pointer events on ALL child elements inside .m-nav */
.uc-mega_menu_section.uc-active_item .m-nav * {
    pointer-events: auto !important;
}

/* Ensure the menu title stays interactive */
.uc-mega_menu_title {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ===================================================
   Move WordPress Admin Bar to Bottom
   ================================================== */

#wpadminbar {
    top: auto !important;
    bottom: 0 !important;
}

/* Remove WordPress's default top margin on html element */
html,
html.admin-bar,
body.admin-bar html {
    margin-top: 0 !important;
}

/* Adjust body margin when admin bar is present */
body.admin-bar {
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

/* Adjust for mobile admin bar */
@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-bottom: 46px !important;
    }
}

/* Fix admin bar menu dropups */
#wpadminbar .ab-sub-wrapper {
    bottom: 32px !important;
    top: auto !important;
}

#wpadminbar .menupop .ab-sub-wrapper {
    bottom: 100% !important;
    top: auto !important;
}
