/* ========================================
   CORRECTIVE FIXES - LOGO & FOOTER
   Proper Logo Sizing | Footer Alignment
   Corporate Standards | Visual Balance
   ======================================== */

/* Footer logo fixes */
footer .logo img,
footer img[alt*="ROLLEN"],
footer .footer-logo,
.footer-grid img,
.footer-content img {
    max-width: 160px !important;
    width: 160px !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 1rem !important;
    object-fit: contain !important;
}

/* Trust section logo fixes (if oversized) */
.trust-logo,
.logo-showcase img,
.visual-overlay img,
section img[src*="logo-white"] {
    max-width: 140px !important;
    width: 140px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Footer structure fixes */
footer {
    background: linear-gradient(135deg, #272147 0%, #3a316a 100%) !important;
    color: #ffffff !important;
    padding: 3.5rem 0 1.5rem !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 3rem !important;
    margin-bottom: 2.5rem !important;
    align-items: start !important;
}

.footer-col {
    display: block !important;
}

.footer-col h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 1.25rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

.footer-col p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 1rem !important;
}

/* Footer links styling */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
    font-family: 'Montserrat', sans-serif !important;
}

.footer-links a:hover {
    color: #96a9d5 !important;
}

/* Footer contact styling */
.footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-contact li {
    margin-bottom: 0.75rem !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Montserrat', sans-serif !important;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-contact a:hover {
    color: #96a9d5 !important;
}

.footer-contact strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Footer bottom */
.footer-bottom {
    text-align: center !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.footer-bottom p {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Navbar logo fix */
.navbar .logo img,
.navbar img[alt*="ROLLEN"] {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
    transition: height 0.3s ease !important;
}

.navbar.scrolled .logo img {
    height: 40px !important;
    max-height: 40px !important;
}

/* Hero logo fix (if present) */
.hero-logo img,
.hero img[src*="logo"] {
    max-width: 140px !important;
    width: 140px !important;
    height: auto !important;
    margin: 0 auto 1.5rem !important;
    display: block !important;
    object-fit: contain !important;
}

/* Responsive footer fixes */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem !important;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
    
    footer .logo img,
    footer img[alt*="ROLLEN"] {
        margin: 0 auto 1rem !important;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-col {
        text-align: center !important;
    }
    
    footer .logo img,
    footer img[alt*="ROLLEN"] {
        max-width: 140px !important;
        width: 140px !important;
    }
    
    footer {
        padding: 3rem 0 1.5rem !important;
    }
}

/* Additional logo constraints for edge cases */
img[src*="logo-white.png"],
img[src*="logo-primary.png"] {
    max-width: 160px !important;
}

/* Ensure no logo stretching */
footer img,
.logo img {
    object-fit: contain !important;
    object-position: center !important;
}
