/* Footer Custom Styling — Unified Premium Design & Specificity Overrides */
:root {
    --chemoil-navy: #031B33;
    --chemoil-blue: #0A355C;
    --chemoil-accent: #e11d48;
    --chemoil-light-blue: #edf4fc;
    --chemoil-text-dark: #1e293b;
    --chemoil-text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Base Footer Wrapper - Theme Global (#footer) and Homepage (.chemoil-footer) */
body .chemoil-footer,
body #footer,
body .footer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--chemoil-text-dark) !important;
    padding: 70px 0 50px !important;
    position: relative !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -10px 30px rgba(3, 27, 51, 0.02) !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Center and box the content containers to match the main layout width (1200px) */
body .chemoil-footer .container,
body #footer .wf-container,
body .footer .wf-container,
body #footer .wf-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 2. Top Accent Gradient Line for Footers */
body .chemoil-footer::before,
body #footer::before,
body .footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--chemoil-blue), var(--chemoil-accent)) !important;
    z-index: 10 !important;
}

/* 3. Footer Columns Layout - Grid alignment (with spacious gap) */
body .chemoil-footer .container,
body .footer-custom-builder-wrap {
    display: grid !important;
    grid-template-columns: 1.3fr 0.9fr 1.1fr 1.4fr !important;
    gap: 60px !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    body .chemoil-footer .container,
    body .footer-custom-builder-wrap {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 576px) {
    body .chemoil-footer .container,
    body .footer-custom-builder-wrap {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* 4. Column Content Spacing overrides */
body #footer .wf-container .footer-col,
body .footer-col {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

@media (max-width: 768px) {
    body .footer-col {
        margin-bottom: 30px !important;
    }
}

/* 5. Brand Column (Column 1) Logo and Socials */
body .footer-brand,
body .footer-company-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

body .footer-logo-img,
body .footer-logo {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    margin-bottom: 20px !important;
    display: block !important;
    transition: var(--transition) !important;
}

body .footer-logo-img:hover,
body .footer-logo:hover {
    transform: scale(1.03) !important;
}

body .footer-brand p,
body .footer-company-info p {
    color: var(--chemoil-text-muted) !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Premium Floating Social Icons */
body .footer-socials {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

body .footer-socials a {
    color: var(--chemoil-blue) !important;
    background: var(--chemoil-light-blue) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    border: 1px solid #d0e1f5 !important;
    text-decoration: none !important;
}

body .footer-socials a:hover {
    background: var(--chemoil-blue) !important;
    color: #ffffff !important;
    border-color: var(--chemoil-blue) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(10, 53, 92, 0.25) !important;
}

body .footer-socials a svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    width: 18px !important;
    height: 18px !important;
}

/* 6. Column Headers with Bottom Gradient Accent Bar */
body .footer-col h4,
body #footer h4,
body #footer .widget-title,
body .footer-links-wrap h4,
body .footer-contact-wrap h4,
body .footer-col h4.custom-widget-title {
    color: var(--chemoil-navy) !important;
    font-size: 16px !important;
    font-family: 'Outfit', sans-serif !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 12px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: block !important;
    border: none !important;
}

body .footer-col h4::after,
body #footer h4::after,
body #footer .widget-title::after,
body .footer-links-wrap h4::after,
body .footer-contact-wrap h4::after,
body .footer-col h4.custom-widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 32px !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--chemoil-blue), var(--chemoil-accent)) !important;
    border-radius: 2px !important;
}

/* 7. Menu / Navigation Links styling & hover animations */
body .footer-col ul,
body #footer ul,
body .footer-links-wrap ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .footer-col ul li,
body #footer ul li,
body .footer-links-wrap ul li {
    margin-bottom: 12px !important;
    list-style-type: none !important;
}

body .footer-col ul li a,
body #footer ul li a,
body .footer-links-wrap ul li a {
    color: var(--chemoil-text-muted) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: 0 !important;
}

body .footer-col ul li a::before,
body #footer ul li a::before,
body .footer-links-wrap ul li a::before {
    content: '›' !important;
    color: var(--chemoil-accent) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    opacity: 0 !important;
    transition: var(--transition) !important;
    margin-right: -4px !important;
    display: inline-block !important;
}

body .footer-col ul li a:hover,
body #footer ul li a:hover,
body .footer-links-wrap ul li a:hover {
    color: var(--chemoil-blue) !important;
    padding-left: 6px !important;
}

body .footer-col ul li a:hover::before,
body #footer ul li a:hover::before,
body .footer-links-wrap ul li a:hover::before {
    opacity: 1 !important;
}

/* 8. Contact Section circle badges and morphing interaction */
body .footer-contact,
body #footer .footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .footer-contact li,
body #footer .footer-contact li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    color: var(--chemoil-text-muted) !important;
    font-size: 13.5px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

body .footer-contact li svg,
body #footer .footer-contact li svg {
    flex-shrink: 0 !important;
    background: var(--chemoil-light-blue) !important;
    color: var(--chemoil-blue) !important;
    width: 32px !important;
    height: 32px !important;
    padding: 8px !important;
    border-radius: 50% !important;
    border: 1px solid #dbeafe !important;
    box-sizing: border-box !important;
    transition: var(--transition) !important;
}

body .footer-contact li svg *,
body #footer .footer-contact li svg * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
}

body .footer-contact li a,
body #footer .footer-contact li a {
    color: var(--chemoil-text-muted) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
}

body .footer-contact li a:hover,
body #footer .footer-contact li a:hover {
    color: var(--chemoil-blue) !important;
    text-decoration: underline !important;
}

/* Contact Hover Interactions */
body .footer-contact li:hover svg,
body #footer .footer-contact li:hover svg {
    background: var(--chemoil-blue) !important;
    color: #ffffff !important;
    border-color: var(--chemoil-blue) !important;
    transform: scale(1.1) !important;
}

/* 9. Copyright Bar — Grounded Dark Visual Anchor */
body .footer-divider {
    display: none !important; /* Hide old divider in favor of background contrast */
}

/* Force dark navy background on bottom-bar wrappers */
body .footer-bottom,
body #bottom-bar,
body .bottom-bar,
body .custom-bottom-bar {
    background-color: var(--chemoil-navy) !important;
    background: var(--chemoil-navy) !important;
    color: #94a3b8 !important;
    padding: 22px 0 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    border: none !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}

/* Force transparent background on inner containers to remove light-grey box */
body .custom-bottom-bar .wf-wrap,
body .custom-bottom-bar .wf-container-bottom,
body #bottom-bar .wf-wrap,
body #bottom-bar .wf-container-bottom,
body .bottom-bar .wf-wrap {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Align and space footer bottom elements */
body .footer-bottom .container,
body #bottom-bar .wf-container,
body .bottom-bar .container,
body .custom-bottom-bar-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    body .footer-bottom .container,
    body #bottom-bar .wf-container,
    body .bottom-bar .container,
    body .custom-bottom-bar-inner {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

body .footer-bottom strong,
body #bottom-bar strong,
body .custom-bottom-bar strong,
body .custom-bottom-bar-inner {
    color: #ffffff !important;
}

body .footer-bottom-links,
body #bottom-bar .footer-bottom-links,
body .bottom-bar-right,
body .bottom-bar-left {
    color: #94a3b8 !important;
}

body .footer-bottom-links a,
body #bottom-bar a,
body .bottom-bar a,
body .custom-bottom-bar a {
    color: #ffffff !important;
    text-decoration: none !important;
    margin-left: 0 !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

body .footer-bottom-links a:hover,
body #bottom-bar a:hover,
body .bottom-bar a:hover,
body .custom-bottom-bar a:hover {
    color: var(--chemoil-accent) !important;
}

/* Mobile Alignment Tweaks */
@media screen and (max-width: 991px) {
    body .footer-col,
    body #footer .wf-cell {
        align-items: flex-start !important;
    }
    body .footer-socials {
        justify-content: flex-start !important;
    }
}
