/* Footer Widget */
.w-footer {
    width: 100%;
    padding: var(--s-12) 0 var(--s-8) 0;
    background: color-mix(in srgb, var(--c-bg-secondary), transparent 10%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid color-mix(in srgb, var(--c-text), transparent 95%);
    z-index: var(--z-footer);
}

.w-footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Sections */
.w-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-8);
    padding-bottom: var(--s-10);
}

.w-footer-bottom {
    border-top: 1px solid color-mix(in srgb, var(--c-text), transparent 95%);
    padding-top: var(--s-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
}

/* Brand Section */
.w-footer-brand {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.w-footer-slogan {
    max-width: 250px;
}

/* Legal Links */
.w-footer-links {
    display: flex;
    gap: var(--s-6);
    justify-content: flex-end;
    flex: 1 1 auto;
}

.w-footer-link {
    color: var(--c-text-ghost);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color 0.3s ease;
}

.w-footer-link:hover {
    color: var(--c-primary);
}

/* Social Section */
.w-footer-social {
    display: flex;
    gap: var(--s-4);
    justify-content: flex-end;
    flex: 1 1 200px;
}

.w-social-icon {
    width: var(--s-10);
    height: var(--s-10);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--s-2);
    background: color-mix(in srgb, var(--c-text), transparent 95%);
    color: var(--c-text-ghost);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.w-social-icon i {
    width: 20px;
    height: 20px;
}

.w-social-icon:hover {
    background: color-mix(in srgb, var(--c-primary), transparent 90%);
    color: var(--c-primary);
    border-color: color-mix(in srgb, var(--c-primary), transparent 80%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .w-footer-top {
        flex-direction: column;
        text-align: center;
        gap: var(--s-10);
    }

    .w-footer-brand {
        align-items: center;
        flex: 1 1 100%;
    }

    .w-footer-links {
        flex-direction: column;
        gap: var(--s-3);
        flex: 1 1 100%;
        align-items: center;
        /* Ensure horizontal center in column mode */
        justify-content: center;
    }

    .w-footer-social {
        justify-content: center;
        flex: 1 1 100%;
    }

    .w-footer-bottom {
        flex-direction: column;
        gap: var(--s-4);
        text-align: center;
        align-items: center;
    }
}