/* ===================================
   AFCAF SHARED FOOTER
=================================== */

.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-cream);

    border-top: 4px solid var(--color-teal);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;

    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 60px 45px;
}

/* Footer brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 180px;
    height: 84px;

    padding: 8px 12px;

    background-color: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.footer-logo img {
    width: 155px;
    height: 58px;

    object-fit: contain;
}

.footer-brand p {
    max-width: 310px;
    margin: 0;

    color: var(--color-cream-light);

    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

/* Contact sections */
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-contact h2 {
    margin: 0 0 8px;

    color: var(--color-cream-light);

    font-size: 21px;
    font-weight: 700;
}

.footer-contact a {
    display: flex;
    flex-direction: column;
    gap: 2px;

    color: var(--color-cream);

    font-size: 16px;
    line-height: 1.5;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-contact a:hover {
    color: #a8c6c2;
    transform: translateX(4px);
}

.contact-label {
    color: #94b4b0;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

/* Persian footer alignment */
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-contact {
    align-items: flex-start;
}

html[dir="rtl"] .footer-contact a:hover {
    transform: translateX(-4px);
}

html[dir="rtl"] .contact-label {
    letter-spacing: 0;
}

/* Bottom footer strip */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 18px max(45px, calc((100% - 1310px) / 2));

    background-color: #141719;

    border-top: 1px solid rgba(232, 223, 201, 0.18);
}

.footer-bottom p {
    margin: 0;

    color: #cfc6b3;

    font-size: 14px;
}

.footer-bottom a {
    color: #a8c6c2;

    font-size: 15px;
    font-weight: 700;

    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-cream-light);
}

/* Tablet */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px;

        padding: 50px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;

        align-items: center;

        text-align: center;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 38px;

        padding: 45px 22px;
    }

    .footer-brand,
    .footer-contact,
    html[dir="rtl"] .footer-brand,
    html[dir="rtl"] .footer-contact {
        align-items: center;

        text-align: center;
    }

    .footer-contact a:hover,
    html[dir="rtl"] .footer-contact a:hover {
        transform: none;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 10px;

        padding: 18px 22px;

        text-align: center;
    }
}