/* Site footer (templates/partials/info_footer.html): four columns on a white
 * top (brand, quick links, contact, trust seal), a soft red band with the app
 * download buttons and the social links, then the copyright line. Kept on the
 * old .info-footer class too, which other pages hide or pad around. */

.site-footer {
    --sf-red: #e8251c;
    --sf-ink: #1f2430;
    --sf-text: #5b6170;
    --sf-muted: #8a909c;
    --sf-line: rgba(31, 36, 48, 0.09);
    --sf-card: #fff;
    --sf-band: #fbeeed;
    position: relative;
    margin: auto 0 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--sf-line);
    background: #fff;
    color: var(--sf-text);
    direction: rtl;
    text-align: right;
    font-family: 'Estedad', sans-serif;
}

#mainAppContainer > .site-footer {
    margin: auto 0 0;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

/* ---------- top: four columns ---------- */
.site-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 1.25fr) auto;
    gap: 36px 48px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 32px 40px;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-footer-logo-mark {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--sf-line);
    box-shadow: 0 6px 16px rgba(232, 37, 28, 0.10);
}

.site-footer-logo-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-footer-logo-text strong {
    color: var(--sf-ink);
    font-size: 16px;
    font-weight: 800;
}

.site-footer-logo-text strong a:hover,
.site-footer-logo-text strong a:focus-visible {
    color: var(--sf-red);
    outline: none;
}

.site-footer-logo-text small {
    color: var(--sf-muted);
    font-size: 12px;
    font-weight: 500;
}

.site-footer-desc {
    margin: 16px 0 0;
    max-width: 380px;
    font-size: 13px;
    line-height: 2;
    color: var(--sf-text);
}

.site-footer-title {
    margin: 4px 0 16px;
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 800;
}

.site-footer-col,
.site-footer-about {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.site-footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links li {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer-links a {
    font-size: 13px;
    color: var(--sf-text);
    transition: color 0.2s ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible,
.site-footer-contact-row[href]:hover .site-footer-contact-text,
.site-footer-contact-row[href]:focus-visible .site-footer-contact-text {
    color: var(--sf-red);
    outline: none;
}

.site-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer-contact .site-footer-title {
    margin-bottom: 4px;
}

.site-footer-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--sf-text);
}

.site-footer-contact-text[dir="ltr"] {
    text-align: right;
    unicode-bidi: isolate;
}

.site-footer-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--sf-line);
    background: var(--sf-card);
    color: var(--sf-red);
}

.site-footer-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer-trust-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 14px;
    border: 1px solid var(--sf-line);
    background: #fff;
}

.site-footer-trust-card .enamad-image {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: contain;
}

/* ---------- band: app downloads + socials ---------- */
.site-footer-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    flex-wrap: wrap;
    padding: 20px max(32px, calc((100% - 1180px) / 2 + 32px));
    background: var(--sf-band);
}

.site-footer-apps {
    display: flex;
    align-items: center;
    gap: 16px 18px;
    flex-wrap: wrap;
}

.site-footer .site-footer-band-title {
    color: var(--sf-ink);
    font-size: 13px;
    font-weight: 800;
}

.site-footer-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer-badge {
    display: inline-flex;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-badge img {
    display: block;
    width: auto;
    height: 42px;
}

.site-footer-badge.is-soon {
    position: relative;
}

.site-footer-badge.is-soon img {
    opacity: 0.45;
    filter: grayscale(1);
}

.site-footer-badge.is-soon em {
    position: absolute;
    top: -9px;
    left: 8px;
    padding: 0 8px 2px;
    border-radius: 999px;
    background: var(--sf-ink);
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
}

a.site-footer-band-title:hover,
a.site-footer-band-title:focus-visible {
    color: var(--sf-red);
    outline: none;
}

a.site-footer-badge:hover,
a.site-footer-badge:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31, 36, 48, 0.12);
    outline: none;
}

.site-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.site-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(31, 36, 48, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.site-footer-social:hover,
.site-footer-social:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(232, 37, 28, 0.16);
    outline: none;
}

.site-footer-copy {
    margin: 0;
    padding: 14px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--sf-muted);
    background: var(--sf-band);
    border-top: 1px solid rgba(232, 37, 28, 0.08);
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
    .site-footer-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px 40px;
    }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
    .site-footer-top {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "about about"
            "links trust"
            "contact contact";
        gap: 28px 20px;
        padding: 30px 20px 28px;
    }

    .site-footer-about { grid-area: about; }
    .site-footer-links { grid-area: links; }
    .site-footer-trust { grid-area: trust; }
    .site-footer-contact { grid-area: contact; }

    .site-footer-desc {
        max-width: none;
    }

    .site-footer-links ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        gap: 12px 28px;
    }

    .site-footer-title {
        margin-bottom: 12px;
    }

    .site-footer-trust-card {
        width: 92px;
        height: 92px;
    }

    .site-footer-trust-card .enamad-image {
        width: 72px;
        height: 72px;
    }

    .site-footer-band {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
    }

    .site-footer-apps {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .site-footer-band-title {
        text-align: center;
    }

    .site-footer-badges {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .site-footer-badge img {
        width: 100%;
        height: auto;
    }

    .site-footer-socials {
        justify-content: center;
        margin: 0;
    }
}

/* ---------- dark theme (and the black /info page) ---------- */
body.theme-dark .site-footer,
.site-footer--dark {
    --sf-ink: #f1f2f5;
    --sf-text: #b8bcc6;
    --sf-muted: #8d93a0;
    --sf-line: rgba(255, 255, 255, 0.10);
    --sf-card: rgba(255, 255, 255, 0.04);
    --sf-band: #1d1718;
    background: #121317;
}

.site-footer--dark {
    background: transparent;
    --sf-band: #141012;
}

/* The brand icons are drawn for a light ground (Bale's is black): keep their squares white. */
body.theme-dark .site-footer-social,
.site-footer--dark .site-footer-social {
    background: #fff;
    box-shadow: none;
}

body.theme-dark .site-footer-copy,
.site-footer--dark .site-footer-copy {
    border-top-color: rgba(255, 255, 255, 0.05);
}
