/* ============================================================
   PREMIUM FOOTER - Code Xenix
   ============================================================ */

/* Footer Wrapper */
.site-footer {
    position: relative;
    background: var(--bg-body);
    padding: 80px 0 0;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.3), transparent);
}

/* Subtle Glow Effect */
.footer-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(148, 207, 20, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Footer Grid */
.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 48px;
    padding-bottom: 60px;
}

/* Footer Column */
.footer-col {
    min-width: 0;
}

/* Brand Column */
.footer-col--brand {
    padding-right: 24px;
}

/* Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Description */
.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 320px;
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--brand-primary);
}

.footer-contact-item i {
    font-size: 14px;
    color: var(--brand-primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--text-primary-rgb), 0.04);
    border: 1px solid rgba(var(--text-primary-rgb), 0.06);
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(148, 207, 20, 0.1);
    border-color: rgba(148, 207, 20, 0.3);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Column Title */
.footer-col-title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 24px;
    position: relative;
    padding-bottom: 12px;
}

/* .footer-col-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 1px;
    transition: width 0.3s ease;
} */

.footer-col:hover .footer-col-title::after {
    width: 40px;
}

/* Links List */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links li a::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.footer-links li a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-links li a:hover::before {
    width: 100%;
}

/* Bottom Bar */
.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(var(--text-primary-rgb), 0.06);
}

.footer-copyright {
    color: #5a6570;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal a {
    color: #5a6570;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--brand-primary);
}

.footer-divider {
    width: 1px;
    height: 12px;
    background: rgba(var(--text-primary-rgb), 0.1);
}

/* ============================================================
   FOOTER FADE-IN ANIMATION
   ============================================================ */

.site-footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.site-footer.footer-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE - Tablet
   ============================================================ */

@media (max-width: 1024px) {
    .site-footer {
        padding: 60px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding-bottom: 48px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .footer-desc {
        max-width: 100%;
    }
}

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */

@media (max-width: 640px) {
    .site-footer {
        padding: 48px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
        text-align: center;
    }

    .footer-col--brand {
        grid-column: auto;
    }

    .footer-logo {
        display: inline-block;
    }

    .footer-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col-title {
        font-size: 14px;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li a {
        font-size: 14px;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 0;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-divider {
        display: none;
    }

    .footer-legal a {
        padding: 4px 8px;
    }
}