/*
Theme Name: King and Queen Car Care
Version: 12.0.0
*/

/* ============================================
   GLOBAL RESET (v29 Stable)
   ============================================ */
* { box-sizing: border-box; }
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: sans-serif;
    background: #fff;
}

/* ============================================
   HEADER & HERO (STABLE)
   ============================================ */
header#main-header {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

#home {
    width: 100% !important;
    height: 80vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    background: #111 !important; /* Dark fallback */
    overflow: hidden !important;
}

#home .container {
    position: relative !important;
    z-index: 10 !important;
    color: white !important;
}

/* ============================================
   HARD FIX: Hero Image Visibility
   ============================================ */

.hero-direct-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Force all other images */
img, .bg-cover, [style*="background-image"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #home { 
        height: 65vh !important; 
        min-height: 400px !important;
    }
    #home h1 { 
        font-size: 1.8rem !important; 
        text-shadow: 2px 2px 5px rgba(0,0,0,0.7) !important;
    }
    #home p { 
        font-size: 0.95rem !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
    }
    
    /* Stats row fix */
    .grid.md\:grid-cols-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0f172a !important;
    color: #fff !important;
}

/* RTL Support */
html[dir="rtl"] { 
    direction: rtl; 
    text-align: right; 
}
