/* =========================================
   Xivotec Footer Styles
   Black, minimal design matching header format
   ========================================= */

/* --- Footer Container --- */
#xivotec-master-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
    font-family: var(--xv-sans, 'DM Sans', system-ui, sans-serif);
}

/* --- Inner Wrapper --- */
.xivotec-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Top Row: Logo | Nav | Social --- */
.xivotec-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* --- Logo --- */
.xivotec-footer-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.xivotec-footer-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.xivotec-footer-logo a:hover img {
    opacity: 0.8;
}

/* --- Footer Navigation --- */
.xivotec-footer-nav .xivotec-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.xivotec-footer-nav .xivotec-footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.xivotec-footer-nav .xivotec-footer-menu li a:hover {
    color: #ffffff;
}

.xivotec-footer-nav .xivotec-footer-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--xv-accent, #0cbcdb);
    transition: width 0.3s ease;
}

.xivotec-footer-nav .xivotec-footer-menu li a:hover::after {
    width: 100%;
}

/* --- Social Links --- */
.xivotec-footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: #000000;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Divider --- */
.xivotec-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0 24px;
}

/* --- Bottom Row: Copyright + Legal --- */
.xivotec-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.xivotec-footer-copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* --- Legal Navigation --- */
.xivotec-footer-legal .xivotec-legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.xivotec-footer-legal .xivotec-legal-menu li a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.xivotec-footer-legal .xivotec-legal-menu li a:hover {
    color: #ffffff;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 980px) {
    #xivotec-master-footer {
        padding: 48px 0 24px;
    }

    .xivotec-footer-inner {
        padding: 0 24px;
    }

    .xivotec-footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .xivotec-footer-nav .xivotec-footer-menu {
        justify-content: center;
        gap: 20px;
    }

    .xivotec-footer-social {
        justify-content: center;
    }

    .xivotec-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .xivotec-footer-legal .xivotec-legal-menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .xivotec-footer-nav .xivotec-footer-menu {
        flex-direction: column;
        gap: 14px;
    }

    .xivotec-footer-legal .xivotec-legal-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* =========================================
   Divi Override: Hide parent footer
   ========================================= */
#main-footer {
    display: none !important;
}
