/* =========================================
   FOOTER WRAPPER & BACKGROUND
========================================= */
.footer-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 0 20px 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    z-index: 0; 
}

/* =========================================
   SITE FOOTER (DESKTOP)
========================================= */
.site-footer {
    width: 87%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    border-left: 1px solid #555;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
}

/* --- Top Decorative Borders --- */
.top-border-row { 
    display: flex; 
    width: 100%; 
    height: 45px; 
}

.flat-top { 
    border-top: 1px solid #555; 
    background-color: #000; 
    height: 45px; 
}

.slant { 
    width: 45px; 
    height: 45px; 
}

.slant-down { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 45,45 0,45' fill='%23000' /%3E%3Cline x1='0' y1='0' x2='45' y2='45' stroke='%23555' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); 
}

.slant-up { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45' preserveAspectRatio='none'%3E%3Cpolygon points='0,45 45,45 45,0' fill='%23000' /%3E%3Cline x1='0' y1='45' x2='45' y2='0' stroke='%23555' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); 
}

.notch-flat { 
    border-bottom: 1px solid #555; 
    background-color: transparent; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    padding: 0 10px; 
}

.footer-socials { 
    display: flex; 
    
    gap: 15px; 
}

.footer-socials svg { 
    width: 22px; 
    height: 22px; 
    fill: #fff; 
    cursor: pointer; 
    transition: 0.3s; 
}

.footer-socials svg:hover { 
    fill: #f38a00; 
}

/* Hidden on Desktop */
.mobile-logo, .mobile-socials { 
    display: none; 
}

/* --- Footer Body Content --- */
.footer-main {
    background-color: #000;
    position: relative;
    padding-top: 50px;
    min-height: 300px;
    overflow: visible;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 20px;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.footer-col h4 { 
    color: #f38a00; 
    font-size: 0.85rem; 
    font-weight: 800; 
    margin: 0 0 6px 0; 
}

.footer-col p { 
    color: #ccc; 
    font-size: 0.75rem; 
    line-height: 1.5; 
    margin: 0; 
}

.footer-col .mt-4 { 
    margin-top: 20px; 
}

.footer-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-links li { 
    margin-bottom: 6px; 
}

.footer-links a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 0.75rem; 
    transition: 0.3s; 
}

.footer-links a:hover { 
    color: #f38a00; 
}

.footer-col-last h2 { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: #fff; 
    line-height: 1.3; 
    margin: 0; 
    text-align: right; 
}

/* --- Decorative Images --- */
.footer-extra-img {
    position: absolute;
    top: -50px;
    right: 50px;
    width: 180px;
    z-index: 1;
    pointer-events: none;
}

.footer-car {
    position: absolute;
    bottom: -20px; 
    right: 0;
    width: 360px; 
    max-width: 45%;
    z-index: 1;
    pointer-events: none;
}

/* --- Bottom Bar --- */
.footer-bottom {
    position: relative; 
    z-index: 1; 
    text-align: center;
    margin-top: 15px; 
    font-size: 0.75rem; 
    color: #aaa;
}

/* =========================================
   RESPONSIVE (MOBILE)
========================================= */
@media (max-width: 768px) {
    /* Reset Desktop Decorations */
    .top-border-row { 
        display: none; 
    }
    
    .site-footer { 
        width: 100%; 
        border: none; 
    }
    
    /* Show Mobile Specific Elements */
    .mobile-logo { 
        display: block; 
        margin: 0 auto 30px auto; 
        width: 150px; 
    }

    /* Stack Grid Columns */
    .footer-main { 
        padding-top: 30px; 
        padding-bottom: 0; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: center; 
        padding: 0 15px; 
    }
    
    .footer-col-last h2 { 
        text-align: center; 
        font-size: 1.5rem; 
        margin-top: 10px; 
        margin-bottom: 20px; 
    }

    /* Handle Mobile Graphics and Overlays */
    .footer-graphics {
        position: relative;
        width: 100%;
        height: 320px; 
        overflow: hidden;
        display: flex;
        justify-content: center;
    }
    
    .footer-extra-img {
        position: absolute;
        top: -30px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 160px;
        height: auto;
        object-fit: contain;
        z-index: 1;
    }
    
    .footer-car { 
        position: absolute;
        bottom: 65px; 
        left: 50%; 
        right: auto;
        transform: translateX(-50%);
        width: 90%; 
        max-width: 380px;
        z-index: 2;
    }

    /* Mobile Social Icons Alignment */
    .mobile-socials {
        display: flex;
        justify-content: center; 
        gap: 20px;
        position: absolute;
        bottom: 20px; 
        left: 50%; 
        transform: translateX(-50%);
        z-index: 3;
    }
    
    .mobile-socials svg { 
        width: 28px; 
        height: 28px; 
        fill: #fff; 
    }
    
    .footer-bottom { 
        font-size: 0.7rem; 
        padding: 10px; 
        margin-top: 0; 
    }
}


.stats-logo { max-width: 180px; height: auto; display: block; margin: 0 auto; }
