/* ================= FOOTER ================= */

footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 36px 20px 22px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ---------- TOP AREA ---------- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

/* Brand section */
.footer-brand {
    display: flex;
    gap: 14px;
    max-width: 520px;
}

.footer-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #2c3e50;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ---------- SOCIAL ---------- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: #2c3e50;
    transition: fill 0.2s;
}

.social-links a:hover {
    background: #0073e6;
    transform: translateY(-2px);
}

.social-links a:hover svg {
    fill: #ffffff;
}

/* ---------- BOTTOM AREA ---------- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
}

.copyright strong {
    color: #0073e6;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #0073e6;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    footer {
        padding: 22px 14px 16px;
    }

    .footer-content {
        gap: 22px;
    }

    /* Stack brand + socials */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand img {
        width: 44px;
        height: 44px;
    }

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

    /* Bottom area stacked */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

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

    /* Smaller icons */
    .social-links a {
        width: 36px;
        height: 36px;
    }

    .social-links a svg {
        width: 18px;
        height: 18px;
    }
}
