/* =========================================================
   FAYADH WEBSITE — FOOTER
   Same on every page: brand, quick links, contact, legal
   links, and the copyright line.
========================================================= */


/* =========================================================
   1. FOOTER
========================================================= */

.site-footer {
    background: var(--heading);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    padding-block: 40px 32px;

    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 0.8fr);

    gap: 32px;
}


/* =========================================================
   2. BRAND
========================================================= */

.footer-logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--white);

    font-size: 22px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

html[dir="rtl"] .footer-logo {
    letter-spacing: 0;
}

.footer-logo img {
    width: auto;
    height: 32px;
}

.footer-tagline {
    max-width: 320px;

    margin-top: 12px;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   3. COLUMNS & LINKS
========================================================= */

.footer-title {
    color: var(--white);

    font-size: 15px;
    font-weight: 800;
}

.footer-list {
    margin-top: 14px;

    display: grid;

    gap: 10px;

    list-style: none;
}

/* Quick links: two columns of three, filled top to bottom. */

.footer-list-columns {
    grid-template-columns: repeat(2, max-content);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;

    column-gap: 32px;
}

.footer-list li:has(> [hidden]) {
    display: none;
}

.footer-link {
    font-size: 14px;

    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-link[hidden],
.footer-contact[hidden] {
    display: none;
}

/* Contact rows: icon + text. */

.footer-contact {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;

    overflow-wrap: anywhere;
}

.footer-icon {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    color: var(--secondary);
}

.site-footer a:focus-visible {
    outline-color: rgba(255, 255, 255, 0.6);
}


/* =========================================================
   4. COPYRIGHT
========================================================= */

.footer-bottom {
    padding-block: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   5. RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

@media (max-width: 520px) {

    .footer-grid {
        padding-block: 32px 28px;

        grid-template-columns: 1fr;

        gap: 24px;
    }

}
