/* =========================================================
   Site footer — loaded from Views/Shared/_Layout (all pages)
   ========================================================= */

.sf-footer {
    --sf-bg: #0f1d33;
    --sf-bg-2: #0a1424;
    --sf-text: #b8c2d3;
    --sf-muted: #7f8ba0;
    --sf-white: #ffffff;
    --sf-primary: #64b5f6;
    --sf-accent: #fb9017;
    --sf-line: rgba(255, 255, 255, .08);
    position: relative;
    margin-top: 110px;
    padding-top: 40px;
    background: linear-gradient(180deg, var(--sf-bg) 0%, var(--sf-bg-2) 100%);
    color: var(--sf-text);
    font-size: 14px;
    line-height: 2;
    overflow: visible;
    isolation: isolate;
}

    .sf-footer a {
        color: var(--sf-text);
        text-decoration: none;
        transition: color .25s ease;
    }

        .sf-footer a:hover {
            color: var(--sf-accent);
            text-decoration: none;
        }

/* curved top edge */
.sf-wave {
    position: absolute;
    top: -89px;
    right: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: block;
    pointer-events: none;
}

    .sf-wave path {
        fill: var(--sf-bg);
    }

/* soft color glows, clipped to the footer so they never widen the page */
.sf-glows {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.sf-footer .sf-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .22;
    pointer-events: none;
}

.sf-footer .sf-glow-1 {
    top: 10%;
    right: -120px;
    background: var(--sf-primary);
}

.sf-footer .sf-glow-2 {
    bottom: 5%;
    left: -120px;
    background: var(--sf-accent);
    opacity: .14;
}

.sf-main {
    position: relative;
    padding-bottom: 10px;
}

/* brand column */
.sf-logo {
    display: inline-block;
    margin-bottom: 18px;
}

    .sf-logo img {
        max-height: 64px;
        max-width: 220px;
        transition: transform .4s ease;
    }

    .sf-logo:hover img {
        transform: scale(1.04);
    }

.sf-about {
    margin: 0 0 22px;
    color: var(--sf-text);
    text-align: justify;
}

.sf-support-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 22px;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

    .sf-support-card small {
        display: block;
        color: var(--sf-muted);
        font-size: 12px;
        line-height: 1.6;
    }

    .sf-support-card strong {
        color: var(--sf-white);
        font-size: 15px;
        line-height: 1.6;
    }

.sf-support-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sf-accent), #ff6a3d);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px -6px rgba(251, 144, 23, .6);
}

/* column titles */
.sf-title {
    position: relative;
    margin: 6px 0 22px;
    padding-bottom: 12px;
    color: var(--sf-white);
    font-size: 16px;
    font-weight: 700;
}

    .sf-title::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 36px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--sf-accent), var(--sf-primary));
    }

/* quick links */
.sf-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sf-links li {
        margin-bottom: 6px;
    }

    .sf-links a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: color .25s ease, transform .3s ease;
    }

        .sf-links a::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--sf-muted);
            transition: background .25s ease, transform .25s ease;
        }

        .sf-links a:hover {
            transform: translateX(-5px);
        }

            .sf-links a:hover::before {
                background: var(--sf-accent);
                transform: scale(1.4);
            }

/* contact */
.sf-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sf-contact li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        line-height: 1.9;
    }

.sf-contact-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(100, 181, 246, .12);
    color: var(--sf-primary);
    font-size: 14px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.sf-contact li:hover .sf-contact-icon {
    background: var(--sf-primary);
    color: #fff;
    transform: rotate(-8deg);
}

.sf-ltr {
    direction: ltr;
    unicode-bidi: plaintext;
    word-break: break-word;
    padding-top: 4px;
}

/* trust badges */
.sf-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sf-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .sf-badge:empty {
        display: none;
    }

    .sf-badge:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .6);
    }

    .sf-badge a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .sf-badge img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        cursor: pointer;
    }

/* bottom bar */
.sf-bottom {
    position: relative;
    border-top: 1px solid var(--sf-line);
    background: rgba(0, 0, 0, .18);
}

.sf-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 18px 0;
    color: var(--sf-muted);
    font-size: 13px;
}

.sf-powered {
    direction: ltr;
    font-size: 12px;
}

    .sf-powered a {
        color: var(--sf-white);
        font-weight: 700;
    }

@media (max-width: 767.98px) {
    .sf-footer {
        margin-top: 70px;
        padding-top: 20px;
    }

    .sf-wave {
        top: -49px;
        height: 50px;
    }

    .sf-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .sf-footer .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-footer * {
        transition: none !important;
    }
}

/* =========================================================
   Back-to-top button with scroll progress ring
   ========================================================= */
.sf-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1040;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #1e88e5 !important;
    font-size: 17px;
    box-shadow: 0 12px 28px -8px rgba(15, 35, 70, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.85);
    transition: opacity .35s ease, visibility .35s, transform .35s cubic-bezier(.22, .61, .36, 1), background .25s ease, color .25s ease;
    text-decoration: none !important;
}

    .sf-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .sf-to-top i {
        position: relative;
        z-index: 1;
        transition: transform .3s ease;
    }

    .sf-to-top:hover {
        background: linear-gradient(135deg, #42a5f5, #1e88e5);
        color: #fff !important;
    }

        .sf-to-top:hover i {
            transform: translateY(-3px);
            animation: sfBounce .9s ease-in-out infinite;
        }

    .sf-to-top:focus-visible {
        outline: 3px solid rgba(100, 181, 246, .6);
        outline-offset: 3px;
    }

.sf-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

    .sf-to-top-ring circle {
        fill: none;
        stroke-width: 3;
    }

.sf-to-top-track {
    stroke: rgba(30, 136, 229, .12);
}

.sf-to-top-progress {
    stroke: #fb9017;
    stroke-linecap: round;
    transition: stroke-dashoffset .1s linear;
}

.sf-to-top:hover .sf-to-top-track {
    stroke: rgba(255, 255, 255, .25);
}

.sf-to-top:hover .sf-to-top-progress {
    stroke: #fff;
}

@keyframes sfBounce {
    0%, 100% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(1px);
    }
}

@media (max-width: 575.98px) {
    .sf-to-top {
        left: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
        font-size: 15px;
    }
}
