/* =========================================================
   FOOTER — Premium Redesign with Background Pattern
   Logo colors only: Navy #021226, Blue #0a355c, White
   ========================================================= */

:root {
    --chemoil-navy: #021226;
    --chemoil-blue: #0a355c;
    --chemoil-accent: #0a355c;
    --chemoil-light-blue: #edf4fc;
    --chemoil-text-dark: #1e293b;
    --chemoil-text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── MAIN FOOTER WRAPPER ────────────────────────────────── */
html body .chemoil-footer,
html body #footer,
html body .footer {
    background: #021226 !important;
    color: rgba(255,255,255,0.85) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    border-top: none !important;
    box-shadow: none !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ── BACKGROUND PATTERN (SVG circuit / geometric dots) ─── */
body .chemoil-footer::before,
body #footer::before,
body .footer::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 1 !important;
}

/* Extra layered glow circles for depth */
body .chemoil-footer::after,
body #footer::after,
body .footer::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: -120px !important;
    right: -80px !important;
    width: 480px !important;
    height: 480px !important;
    background: radial-gradient(circle, rgba(10,53,92,0.55) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* ── CONTENT CONTAINER ──────────────────────────────────── */
body .chemoil-footer .container,
body #footer .wf-wrap,
body #bottom-bar .wf-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

body #footer .wf-container-footer,
body #footer .wf-container,
body #bottom-bar .wf-container-bottom {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ── GRID LAYOUT ─────────────────────────────────────────── */
html body .chemoil-footer .container,
html body .footer-custom-builder-wrap {
    display: grid !important;
    grid-template-columns: 1.4fr 0.9fr 1.1fr 1.3fr !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !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: 32px !important;
    }
}

/* ── COLUMN BASE ─────────────────────────────────────────── */
body #footer .wf-container .footer-col,
body .footer-col {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ── BRAND COLUMN ────────────────────────────────────────── */
html body .footer-brand,
html body .footer-company-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

html body .footer-logo-img,
html body .footer-logo,
html body #footer .footer-logo-img,
html body #footer .footer-brand img,
html body .footer-brand img {
    height: auto !important;
    max-height: 72px !important;
    width: auto !important;
    max-width: 220px !important;
    margin-bottom: 18px !important;
    display: block !important;
    /* Pure white logo on dark background */
    filter: brightness(0) invert(1) !important;
    transition: var(--transition) !important;
}

html body .footer-logo-img:hover,
html body .footer-logo:hover,
html body #footer .footer-logo-img:hover,
html body #footer .footer-brand img:hover,
html body .footer-brand img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.4)) !important;
    transform: scale(1.03) !important;
}

/* Thin navy-blue divider under logo */
html body .footer-brand::after {
    display: none !important;
}

html body .footer-brand p,
html body .footer-company-info p {
    color: rgba(255,255,255,0.55) !important;
    line-height: 1.75 !important;
    margin-bottom: 24px !important;
    font-size: 13.5px !important;
    font-family: 'Inter', sans-serif !important;
    max-width: 260px !important;
}

/* ── SOCIAL ICONS ────────────────────────────────────────── */
html body .footer-socials {
    display: flex !important;
    gap: 10px !important;
    margin-top: 4px !important;
}

html body .footer-socials a {
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.08) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    text-decoration: none !important;
}

html body .footer-socials a:hover {
    background: rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.28) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3) !important;
}

html body .footer-socials a svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    width: 16px !important;
    height: 16px !important;
}

/* ── COLUMN HEADINGS (QUICK LINKS, PRODUCTS, CONTACT US) ─── */
html body .footer-col h4,
html body #footer h4,
html body .footer h4,
html body #footer .widget-title,
html body .footer .widget-title,
html body .footer-links-wrap h4,
html body .footer-contact-wrap h4,
html body .footer-col h4.custom-widget-title,
html body .custom-widget-title,
html body h4.custom-widget-title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: block !important;
    border: none !important;
}

/* Accent underline bar */
html body .footer-col h4::after,
html body #footer h4::after,
html body .footer h4::after,
html body #footer .widget-title::after,
html body .footer .widget-title::after,
html body .footer-links-wrap h4::after,
html body .footer-contact-wrap h4::after,
html body .footer-col h4.custom-widget-title::after,
html body .custom-widget-title::after,
html body h4.custom-widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 34px !important;
    height: 3px !important;
    background: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6) !important;
    border-radius: 2px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── NAVIGATION LINKS ────────────────────────────────────── */
html body .footer-col ul,
html body #footer ul,
html body .footer-links-wrap ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .footer-col ul li,
html body #footer ul li,
html body .footer-links-wrap ul li {
    margin-bottom: 10px !important;
    list-style-type: none !important;
}

/* Navigation Links in Footer (Quick Links & Products) */
html body .footer-col .footer-links-wrap ul li a,
html body .footer-links-wrap ul li a,
html body .footer-col ul:not(.footer-contact):not(.custom-contact-info-list) li a,
html body #footer ul:not(.footer-contact):not(.custom-contact-info-list) li a,
html body .footer-col ul li a,
html body #footer ul li a,
html body .custom-footer-links li a,
html body .custom-footer-links a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    position: relative !important;
    transition: color 0.2s ease !important;
    transform: none !important;
}

/* Footer menu icon (›) */
html body .footer-col .footer-links-wrap ul li a::before,
html body .footer-links-wrap ul li a::before,
html body .footer-col ul:not(.footer-contact):not(.custom-contact-info-list) li a::before,
html body #footer ul:not(.footer-contact):not(.custom-contact-info-list) li a::before,
html body .custom-footer-links li a::before,
html body .custom-footer-links a::before {
    content: '›' !important;
    display: inline-block !important;
    color: #38bdf8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-right: 8px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

/* Hover font color #fff with subtle chevron slide */
html body .footer-col .footer-links-wrap ul li a:hover,
html body .footer-links-wrap ul li a:hover,
html body .footer-col ul:not(.footer-contact):not(.custom-contact-info-list) li a:hover,
html body #footer ul:not(.footer-contact):not(.custom-contact-info-list) li a:hover,
html body .footer-col ul li a:hover,
html body #footer ul li a:hover,
html body .custom-footer-links li a:hover,
html body .custom-footer-links a:hover {
    color: #ffffff !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
    text-decoration: none !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
}

html body .footer-col .footer-links-wrap ul li a:hover::before,
html body .footer-links-wrap ul li a:hover::before,
html body .footer-col ul:not(.footer-contact):not(.custom-contact-info-list) li a:hover::before,
html body #footer ul:not(.footer-contact):not(.custom-contact-info-list) li a:hover::before,
html body .custom-footer-links li a:hover::before,
html body .custom-footer-links a:hover::before {
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

/* Strictly suppress ::before & ::after arrows for all footer links */
body .footer-contact li a::before,
body #footer .footer-contact li a::before,
body .footer-contact a::before,
body #footer .footer-contact a::before,
body .custom-contact-info-list li a::before,
body .custom-contact-info li a::before,
body .footer-col .footer-contact li a::before,
body .footer-col ul.footer-contact li a::before,
body .footer-col .footer-contact a::before,
body .footer-contact *::before,
body .custom-contact-info *::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
    font-size: 0 !important;
}

/* ── CONTACT LIST ────────────────────────────────────────── */
body .footer-contact,
body #footer .footer-contact,
body .custom-contact-info {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .footer-contact li,
body #footer .footer-contact li,
body .custom-contact-info li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

body .footer-contact li:last-child,
body #footer .footer-contact li:last-child {
    align-items: flex-start !important;
    margin-bottom: 0 !important;
}

body .footer-contact li svg,
body .footer-contact li i,
body .footer-contact li .svg-icon,
body #footer .footer-contact li svg,
body #footer .footer-contact li i,
body #footer .footer-contact li .svg-icon,
body .custom-contact-info li svg,
body .custom-contact-info li i {
    flex-shrink: 0 !important;
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.85) !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 7px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    margin-top: 0 !important;
    text-align: center !important;
}

body .footer-contact li:last-child svg,
body #footer .footer-contact li:last-child svg {
    margin-top: 3px !important;
}

body .footer-contact li:hover svg,
body .footer-contact li:hover i,
body #footer .footer-contact li:hover svg,
body #footer .footer-contact li:hover i,
body .custom-contact-info li:hover svg,
body .custom-contact-info li:hover i {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
}

body .footer-contact li svg *,
body #footer .footer-contact li svg *,
body .custom-contact-info li svg * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
}

/* Contact text & Phone number stacked container */
body .footer-contact-details {
    flex: 1 !important;
    line-height: 1.5 !important;
}

body .footer-phone-stack,
body .footer-phone-inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    justify-content: center !important;
    width: 100% !important;
}

body .footer-phone-stack a,
body .footer-phone-inline a {
    display: inline-flex !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

body .footer-phone-stack a:hover,
body .footer-phone-inline a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
    transform: translateX(3px) !important;
}

body .footer-contact li a,
body #footer .footer-contact li a,
body .footer-col .footer-contact li a,
body .footer-col ul.footer-contact li a,
body .custom-contact-info li a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    letter-spacing: 0.2px !important;
    transform: none !important;
}

/* Contact Links Hover Font Color #fff */
body .footer-contact li a:hover,
body #footer .footer-contact li a:hover,
body .footer-col .footer-contact li a:hover,
body .footer-col ul.footer-contact li a:hover,
body .custom-contact-info li a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* SVG icon hover interaction */
body .footer-contact li:hover svg,
body #footer .footer-contact li:hover svg,
body .custom-contact-info li:hover svg {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
body .footer-divider {
    display: none !important;
}

/* ── BOTTOM BAR (COMPACT) ────────────────────────────────── */
body .footer-bottom,
body #bottom-bar,
body .bottom-bar,
body .custom-bottom-bar {
    background: #010e1d !important;  /* slightly darker than footer */
    color: rgba(255,255,255,0.45) !important;
    padding: 10px 0 !important;
    font-size: 12px !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;
    position: relative !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}

body .custom-bottom-bar .wf-wrap,
body #bottom-bar .wf-wrap,
body .bottom-bar .wf-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: transparent !important;
}

body .custom-bottom-bar .wf-container-bottom,
body #bottom-bar .wf-container-bottom {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body .footer-bottom .container,
body #bottom-bar .wf-container,
body .bottom-bar .container,
body .custom-bottom-bar-inner {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: transparent !important;
    line-height: 1.4 !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 {
    color: rgba(255,255,255,0.65) !important;
    font-weight: 600 !important;
}

body .footer-bottom-links,
body #bottom-bar .footer-bottom-links,
body .bottom-bar-right,
body .bottom-bar-left {
    color: rgba(255,255,255,0.4) !important;
}

body .footer-bottom-links a,
body #bottom-bar a,
body .bottom-bar a,
body .custom-bottom-bar a {
    color: rgba(255,255,255,0.75) !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: #ffffff !important;
}

/* ── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-to-top {
    position: fixed !important;
    bottom: 32px !important;
    right: 32px !important;
    width: 42px !important;
    height: 42px !important;
    background: #0a355c !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    text-decoration: none !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 16px rgba(2,18,38,0.3) !important;
    line-height: 1 !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.scroll-to-top:hover {
    background: #021226 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(2,18,38,0.45) !important;
}

/* ── RESPONSIVE 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;
    }
    body .chemoil-footer,
    body #footer,
    body .footer {
        padding: 52px 0 40px !important;
    }
}

@media (max-width: 768px) {
    body .footer-col {
        margin-bottom: 24px !important;
    }
    body .chemoil-footer,
    body #footer,
    body .footer {
        padding: 40px 0 32px !important;
    }
}
