/* 
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 */


.h-w:hover .elementor-widget-text-editor {color: #fff} 
.h-b:hover .elementor-widget-text-editor {color: #000} 

/* Default: Center Center (Standard/Mobile/Portrait) */
/* Ensures the subject stays centered when sides are cropped */
.hero-section {
    background-position: center center !important;
}

/* Dynamic Rule: Wide Screens */
/* Triggers ONLY when the screen is wider than the image content */
/* Switches alignment to TOP to prevent head cropping */
@media (min-aspect-ratio: 1600/1067) {
    .hero-section {
        background-position: center top !important;
    }
}

/* Black Gradient Overlay (Bottom 20%) */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Limits height to lower 20% */
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none; /* Allows clicks to pass through */
}

/* Ensure ALL content sits above the overlay */
/* This forces text, buttons, and columns to the front */
.hero-section .elementor-widget,
.hero-section .elementor-column {
    position: relative;
    z-index: 5;
}

 
/* Mobile Navigation Panel */
#mobile-nav-panel.mobile-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 80% !important;
    max-width: 400px !important;
    height: 100vh !important;
    background: #000 !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 60px 20px 20px !important;
    /* Center content vertically and horizontally */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    /* Use transform for smooth iOS animations with GPU acceleration */
    transform: translateX(100%) !important;
    -webkit-transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    /* Enable hardware acceleration */
    will-change: transform !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-perspective: 1000px !important;
    perspective: 1000px !important;
}

body.mobile-nav-active #mobile-nav-panel.mobile-nav-panel {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
}

/* Mobile nav overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    pointer-events: none;
}

body.mobile-nav-active::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent body scroll when nav is open */
body.mobile-nav-active {
    overflow: hidden;
}

/* Close button */
.mobile-nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #fff !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mobile-nav-close:hover {
    opacity: 0.7 !important;
}

/* Mobile nav menu styling */
.mobile-nav-panel nav,
.mobile-nav-panel ul,
.mobile-nav-panel .mobile-nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.mobile-nav-panel li {
    border-bottom: none !important;
    list-style: none !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-nav-panel a {
    display: block !important;
    padding: 7px 10px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: MediaCondensedBlack, sans-serif !important;
    font-size: 40px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: opacity 0.2s ease !important;
    text-align: center !important;
}

.mobile-nav-panel a:hover {
    opacity: 0.7 !important;
    background: transparent !important;
}

/* Remove any Elementor specific styling that might interfere */
.mobile-nav-panel .elementor-nav-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
}

.mobile-nav-panel .elementor-nav-menu li {
    display: block !important;
    width: 100% !important;
}

/* Desktop: Hide mobile nav by default */
@media (min-width: 768px) {
    .mobile-nav-panel {
        display: none;
    }
}