/* ===== OVAKIL CUSTOM FOOTER STYLES ===== */

/* HIDE ODOO DEFAULT FOOTER COMPLETELY */
footer#bottom,
footer[data-name="Footer"],
.o_footer:not(.ovakil-footer),
.s_footer:not(.ovakil-footer),
footer.o_colored_level:not(.ovakil-footer),
footer.o_cc:not(.ovakil-footer) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Force all footer selectors to use Ovakil styling */
footer.ovakil-footer,
.ovakil-footer {
    color: #ffffff !important;
    padding: 80px 0 30px !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    border-top: 4px solid hsl(250, 60%, 60%) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4) !important;
    z-index: 1000 !important;
}

/* Fix row alignment */
.ovakil-footer .row {
    align-items: flex-start !important;
}

/* Force all footer content to be white */
footer *,
.footer *,
#footer *,
.o_footer *,
.s_footer *,
footer.bg-light *,
footer.o_footer *,
.website_footer *,
.ovakil-footer * {
    color: #ffffff !important;
}

.ovakil-footer::before,
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Footer sections */
.ovakil-footer-section,
footer .col-md-3,
footer .col-md-4,
footer .col-md-6,
footer .col-lg-2,
footer .col-lg-3,
footer .col-lg-4 {
    margin-bottom: 30px !important;
}

/* Ensure proper column spacing and vertical alignment */
footer .col-lg-2,
footer .col-lg-4 {
    display: flex;
    flex-direction: column;
}

/* Footer Logo */
.ovakil-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

/* Footer headings - Force all heading selectors */
.ovakil-footer-title,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid hsl(250, 60%, 60%) !important;
    padding-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: 'Noto Sans Gujarati', sans-serif !important;
}

.ovakil-footer-text {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Footer Headings */
.ovakil-footer-heading {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid hsl(250, 60%, 60%);
    padding-bottom: 8px;
    display: inline-block;
}

/* Footer Links */
.ovakil-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ovakil-footer-links li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.ovakil-footer-links a {
    color: #cccccc;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.ovakil-footer-links a:hover {
    color: hsl(250, 60%, 60%);
    text-decoration: none !important;
}

.ovakil-footer-links li {
    margin-bottom: 0.5rem;
}

.ovakil-footer-links a {
    color: #cccccc;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.ovakil-footer-links a:hover {
    color: hsl(250, 60%, 60%);
    text-decoration: none !important;
}

/* Social Links */
.ovakil-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ovakil-social-link {
    width: 40px;
    height: 40px;
    background: hsl(250, 60%, 60%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ovakil-social-link:hover {
    background: hsl(250, 60%, 70%);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none !important;
}

.ovakil-social-link i {
    font-size: 1rem;
}

/* Contact Information */
.ovakil-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ovakil-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cccccc;
    font-size: 0.9rem;
}

.ovakil-contact-item i {
    width: 18px;
    color: hsl(250, 60%, 60%);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Footer Bottom */
.ovakil-footer-bottom {
    background: #0f0f0f;
    padding: 20px 0;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.ovakil-copyright {
    margin: 0;
    color: #cccccc;
    font-size: 0.9rem;
    text-align: center;
}

.ovakil-footer-legal {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.ovakil-footer-legal a {
    color: #cccccc;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.ovakil-footer-legal a:hover {
    color: hsl(250, 60%, 60%);
    text-decoration: none !important;
}

/* Desktop Layout (>991px) */
@media (min-width: 992px) {
    .ovakil-footer .row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    .ovakil-footer .col-lg-4 {
        flex: 0 0 33% !important;
        max-width: 33% !important;
    }
    .ovakil-footer .col-lg-2 {
        flex: 0 0 16% !important;
        max-width: 16% !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    footer.ovakil-footer,
    .ovakil-footer {
        padding: 40px 0 20px !important;
    }

    .ovakil-footer-content {
        padding: 0 !important;
    }

    .ovakil-footer-logo {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .ovakil-footer-heading {
        text-align: left !important;
        display: inline-block !important;
        margin-bottom: 14px !important;
        font-size: 0.95rem !important;
    }

    .ovakil-footer-heading::after {
        left: 0 !important;
        transform: none !important;
    }

    .ovakil-footer-links {
        text-align: left !important;
        padding-left: 0 !important;
    }

    .ovakil-footer-links li {
        margin-bottom: 8px !important;
    }

    .ovakil-footer-links a {
        padding-left: 0 !important;
        font-size: 0.88rem !important;
    }

    .ovakil-footer-links a::before {
        display: none !important;
    }

    .ovakil-footer-social {
        justify-content: flex-start !important;
    }

    .ovakil-footer-contact {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .ovakil-contact-item {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
        font-size: 0.88rem !important;
        gap: 10px !important;
    }

    .ovakil-contact-item i {
        margin-top: 3px !important;
        flex-shrink: 0 !important;
    }

    .ovakil-footer-bottom {
        margin-top: 20px !important;
        padding: 16px 0 !important;
    }

    .ovakil-copyright {
        text-align: center !important;
        margin-bottom: 10px !important;
        font-size: 0.82rem !important;
    }

    .ovakil-footer-legal {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin-top: 0 !important;
    }

    .ovakil-footer-legal a {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 480px) {
    .ovakil-footer-legal {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    .ovakil-footer-social {
        gap: 0.5rem !important;
    }

    .ovakil-social-link {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Override any existing footer styles - Enhanced Gradient */
footer.ovakil-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 20%, #0f3460 40%, #533483 60%, #6a4c93 80%, #8b5cf6 100%) !important;
    color: #ffffff !important;
}

/* Ensure footer is always visible */
.ovakil-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove any default Odoo footer margins */
#wrapwrap .ovakil-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}