/* Site footer (_Footer.cshtml). "The Home of Microsoft Lovers": dark surface with the four Microsoft colors. Prefixed with ft- */

.ft {
    --ft-red: #F25022;
    --ft-green: #7FBA00;
    --ft-blue: #00A4EF;
    --ft-yellow: #FFB900;
    --ft-bg: #0E1117;
    --ft-bg-2: #151A23;
    --ft-line: rgba(255, 255, 255, 0.09);
    --ft-text: #F3F4F6;
    --ft-muted: #A3AAB8;
    margin-top: 60px;
    color: var(--ft-text);
    background: var(--ft-bg);
    direction: rtl;
    position: relative;
    overflow: hidden;
    clear: both;
}

    /* Four-color stripe on top */
    .ft::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, var(--ft-red) 0 25%, var(--ft-green) 25% 50%, var(--ft-blue) 50% 75%, var(--ft-yellow) 75% 100%);
    }

    .ft *, .ft *::before, .ft *::after {
        box-sizing: border-box;
    }

    .ft a {
        color: inherit;
        text-decoration: none;
    }

.ft-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Promises ---------- */

.ft-promises {
    background: var(--ft-bg-2);
    border-bottom: 1px solid var(--ft-line);
    padding: 26px 0;
}

    .ft-promises .ft-wrap {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

.ft-promise {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .ft-promise b {
        display: block;
        font-size: 14px;
        font-weight: 600;
    }

    .ft-promise small {
        display: block;
        font-size: 12px;
        color: var(--ft-muted);
        margin-top: 2px;
    }

.ft-tile {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #fff;
}

    .ft-tile.is-red { background: var(--ft-red); }
    .ft-tile.is-green { background: var(--ft-green); }
    .ft-tile.is-blue { background: var(--ft-blue); }
    .ft-tile.is-yellow { background: var(--ft-yellow); color: #1A1A1A; }

/* ---------- Slogan ---------- */

/* Soft glow of the four colors behind the slogan */
.ft-main {
    position: relative;
    padding: 48px 0 28px;
    background:
        radial-gradient(420px 200px at 30% 0%, rgba(242, 80, 34, 0.13), transparent 70%),
        radial-gradient(420px 200px at 45% 10%, rgba(127, 186, 0, 0.10), transparent 70%),
        radial-gradient(420px 200px at 60% 0%, rgba(0, 164, 239, 0.13), transparent 70%),
        radial-gradient(420px 200px at 72% 12%, rgba(255, 185, 0, 0.09), transparent 70%);
}

/* English slogan reads left to right, with the logo squares on its left */
.ft-hero {
    direction: ltr;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--ft-line);
    text-align: left;
}

.ft-squares {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    gap: 5px;
    flex: none;
}

    .ft-squares span {
        width: 30px;
        height: 30px;
        transition: transform 0.25s;
    }

        .ft-squares span:nth-child(1) { background: var(--ft-red); }
        .ft-squares span:nth-child(2) { background: var(--ft-green); }
        .ft-squares span:nth-child(3) { background: var(--ft-blue); }
        .ft-squares span:nth-child(4) { background: var(--ft-yellow); }

.ft-hero:hover .ft-squares span:nth-child(1) { transform: translate(-3px, -3px); }
.ft-hero:hover .ft-squares span:nth-child(2) { transform: translate(3px, -3px); }
.ft-hero:hover .ft-squares span:nth-child(3) { transform: translate(-3px, 3px); }
.ft-hero:hover .ft-squares span:nth-child(4) { transform: translate(3px, 3px); }

.ft-slogan {
    margin: 0;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

    .ft-slogan span {
        background: linear-gradient(90deg, var(--ft-red), var(--ft-yellow) 35%, var(--ft-green) 65%, var(--ft-blue));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.ft-slogan-fa {
    margin: 6px 0 0;
    color: var(--ft-muted);
    font-size: 15px;
    text-align: right;
    direction: rtl;
}

/* ---------- Columns ---------- */

.ft-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 32px;
}

.ft-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.ft-about p {
    color: var(--ft-muted);
    font-size: 13px;
    line-height: 2;
    margin: 16px 0 18px;
    text-align: justify;
}

.ft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .ft-social a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid var(--ft-line);
        background: rgba(255, 255, 255, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--ft-text);
        transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }

        .ft-social a:hover {
            transform: translateY(-2px);
            background: var(--ft-blue);
            border-color: var(--ft-blue);
            color: #fff;
        }

        .ft-social a:nth-child(4n+1):hover { background: var(--ft-red); border-color: var(--ft-red); }
        .ft-social a:nth-child(4n+2):hover { background: var(--ft-green); border-color: var(--ft-green); }
        .ft-social a:nth-child(4n+4):hover { background: var(--ft-yellow); border-color: var(--ft-yellow); color: #1A1A1A; }

        .ft-social img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }

.ft-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
}

    .ft-col h3 {
        font-size: 15px;
        font-weight: 600;
        margin: 6px 0 6px;
        color: var(--ft-text);
    }

    .ft-col > a:not(.ft-line):not(.ft-contact-btn) {
        color: var(--ft-muted);
        font-size: 13px;
        width: fit-content;
        position: relative;
        transition: color 0.2s;
    }

        .ft-col > a:not(.ft-line):not(.ft-contact-btn):hover {
            color: var(--ft-text);
        }

        .ft-col > a:not(.ft-line):not(.ft-contact-btn)::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -3px;
            height: 2px;
            width: 0;
            background: var(--ft-blue);
            transition: width 0.2s;
        }

        .ft-col > a:not(.ft-line):not(.ft-contact-btn):hover::after {
            width: 100%;
        }

.ft-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ft-muted);
    font-size: 13px;
    line-height: 1.9;
}

a.ft-line:hover {
    color: var(--ft-text);
}

.ft-line i {
    width: 18px;
    flex: none;
    margin-top: 5px;
    text-align: center;
    color: var(--ft-blue);
}

.ft-contact-btn {
    margin-top: 4px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--ft-line);
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
}

    .ft-contact-btn:hover {
        border-color: var(--ft-blue);
        background: rgba(0, 164, 239, 0.1);
    }

/* ---------- Trust badges ---------- */

.ft-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.ft-badge {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    min-width: 96px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ft-badge img {
        max-height: 88px;
        width: auto;
        display: block;
    }

    .ft-badge a {
        display: block;
    }

/* ---------- Bottom bar ---------- */

.ft-bottom {
    border-top: 1px solid var(--ft-line);
    padding: 16px 0;
}

    .ft-bottom .ft-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ft-bottom p {
        margin: 0;
        font-size: 12px;
        color: var(--ft-muted);
    }

        .ft-bottom p a {
            color: var(--ft-text);
        }

            .ft-bottom p a:hover {
                color: var(--ft-blue);
            }

.ft-heart {
    color: var(--ft-red);
}

.ft-top {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ft-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ft-text);
    cursor: pointer;
    transition: background 0.2s;
}

    .ft-top:hover {
        background: var(--ft-blue);
        border-color: var(--ft-blue);
    }

.ft a:focus-visible, .ft button:focus-visible {
    outline: 2px solid var(--ft-blue);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
    .ft-promises .ft-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-slogan {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .ft {
        margin-top: 40px;
    }

    .ft-promises .ft-wrap {
        gap: 14px 10px;
    }

    .ft-tile {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .ft-promise b {
        font-size: 13px;
    }

    .ft-hero {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .ft-slogan {
        font-size: 26px;
    }

    .ft-slogan-fa {
        text-align: center;
    }

    .ft-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ft-bottom .ft-wrap {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft *, .ft *::before, .ft *::after {
        transition: none !important;
    }
}
