/* ==========================================================
   FOOTER - PROJECT COLORS
========================================================== */

.site-footer {
    --footer-primary: #477CDB;
    --footer-primary-hover: #3568c7;

    --footer-bg: #f7f9fc;
    --footer-card: #ffffff;

    --footer-title: #272f3d;
    --footer-text: #58647a;
    --footer-muted: #788395;

    --footer-border: #e5e9f0;

    position: relative;

    width: 100%;

    padding: 70px 0 22px;

    background: var(--footer-bg);
    color: var(--footer-text);

    border-top: 1px solid var(--footer-border);
}


/* ==========================================================
   CONTAINER
========================================================== */

.site-footer .container {
    max-width: 1510px;
}


/* ==========================================================
   GRID
========================================================== */

.site-footer-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.1fr) minmax(170px, .7fr) minmax(210px, .8fr) minmax(300px, 1.2fr);

    gap: 55px;

    align-items: start;
}


/* ==========================================================
   ABOUT / LOGO
========================================================== */

.site-footer-about {
    min-width: 0;
}


.site-footer-logo {
    display: inline-block;

    margin-bottom: 20px;
}


.site-footer-logo img {
    display: block;

    width: 250px;
    max-width: 100%;

    height: auto;

    object-fit: contain;
}


.site-footer-description {
    max-width: 350px;

    margin: 0 0 25px;

    color: var(--footer-text);

    font-size: 15px;
    line-height: 1.9;

    white-space: pre-line;
}


/* ==========================================================
   SOCIAL ICONS
========================================================== */

.site-footer-social {
    display: flex;
    align-items: center;

    gap: 10px;
}


.site-footer-social a {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    color: var(--footer-primary);

    border: 1px solid #dce4f2;
    border-radius: 50%;

    font-size: 16px;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.site-footer-social a:hover {
    background: var(--footer-primary);
    color: #fff;

    border-color: var(--footer-primary);

    transform: translateY(-2px);
}


/* ==========================================================
   TITLES
========================================================== */

.site-footer-heading {
    position: relative;

    margin: 12px 0 26px;
    padding-bottom: 13px;

    color: var(--footer-title);

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}


.site-footer-heading::after {
    content: "";

    position: absolute;
    bottom: 0;
    inset-inline-start: 0;

    width: 45px;
    height: 3px;

    background: var(--footer-primary);

    border-radius: 10px;
}


/* ==========================================================
   QUICK LINKS
========================================================== */

.site-footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}


.site-footer-links li {
    margin-bottom: 15px;
}


.site-footer-links a {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--footer-text);

    font-size: 15px;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.site-footer-links a i {
    color: var(--footer-primary);

    font-size: 16px;

    flex: 0 0 auto;
}


.site-footer-links a:hover {
    color: var(--footer-primary);

    transform: translateX(4px);
}


/* ==========================================================
   CONTACT
========================================================== */

.site-footer-contact {
    display: flex;
    flex-direction: column;

    gap: 22px;
}


.site-footer-contact-item {
    display: grid;

    grid-template-columns: 45px minmax(0, 1fr);

    gap: 15px;

    align-items: start;
}


.site-footer-contact-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(71, 124, 219, .1);

    color: var(--footer-primary);

    border-radius: 10px;

    font-size: 18px;
}


.site-footer-contact-content {
    min-width: 0;
}


.site-footer-contact-content h4 {
    margin: 0 0 5px;

    color: var(--footer-title);

    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}


.site-footer-contact-content a,
.site-footer-contact-content p {
    display: block;

    margin: 0 0 4px;

    color: var(--footer-text);

    font-size: 14px;
    line-height: 1.6;

    text-decoration: none;

    overflow-wrap: anywhere;
}


.site-footer-contact-content a:hover {
    color: var(--footer-primary);
}


/* ==========================================================
   BOTTOM
========================================================== */

.site-footer-bottom {
    margin-top: 65px;
    padding-top: 22px;

    border-top: 1px solid var(--footer-border);

    text-align: center;
}


.site-footer-bottom p {
    margin: 0;

    color: var(--footer-muted);

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


.site-footer-bottom p::first-letter {
    color: var(--footer-primary);
}


/* ==========================================================
   RTL
========================================================== */

html[dir="rtl"] .site-footer {
    direction: rtl;
}


html[dir="rtl"] .site-footer-about,
html[dir="rtl"] .site-footer-links-column,
html[dir="rtl"] .site-footer-contact {
    text-align: right;
}


html[dir="rtl"] .site-footer-links a:hover {
    transform: translateX(-4px);
}


html[dir="rtl"] .site-footer-links a i {
    transform: rotate(180deg);
}


html[dir="rtl"] .site-footer-contact-content a[dir="ltr"] {
    text-align: right;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {

    .site-footer {
        padding-top: 55px;
    }


    .site-footer-grid {
        grid-template-columns:
            minmax(240px, 1fr) minmax(180px, .7fr) minmax(280px, 1fr);

        gap: 45px;
    }


    .site-footer-logo img {
        width: 220px;
    }

}


/* ==========================================================
   SMALL TABLET
========================================================== */

@media (max-width: 991px) {

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 45px 60px;
    }


    .site-footer-about {
        grid-column: 1 / -1;
    }


    .site-footer-description {
        max-width: 650px;
    }


    .site-footer-bottom {
        margin-top: 50px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .site-footer {
        padding: 45px 0 20px;
    }


    .site-footer-grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }


    .site-footer-about {
        grid-column: auto;
    }


    .site-footer-logo img {
        width: 200px;
    }


    .site-footer-description {
        max-width: 100%;
    }


    .site-footer-heading {
        margin-top: 0;

        font-size: 21px;
    }


    .site-footer-bottom {
        margin-top: 40px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .site-footer {
        padding-top: 35px;
    }


    .site-footer-logo img {
        width: 185px;
    }


    .site-footer-heading {
        font-size: 19px;
    }


    .site-footer-links a {
        font-size: 14px;
    }


    .site-footer-contact-item {
        grid-template-columns: 40px minmax(0, 1fr);

        gap: 11px;
    }


    .site-footer-contact-icon {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }


    .site-footer-contact-content h4 {
        font-size: 15px;
    }


    .site-footer-contact-content a,
    .site-footer-contact-content p {
        font-size: 13px;
    }

}

.site-footer-apps {
    min-width: 0;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    width: 100%;
    max-width: 220px;
    min-height: 64px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;

    background: #fff;

    border: 1px solid #e5e9f0;
    border-radius: 10px;

    color: #272f3d;
    text-decoration: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.app-card:hover {
    border-color: #477CDB;

    box-shadow: 0 8px 20px rgba(71, 124, 219, .12);

    transform: translateY(-2px);
}

.app-card img {
    width: 30px;
    height: 30px;

    flex: 0 0 auto;

    object-fit: contain;
}

.app-card-text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.app-card-text small {
    margin-bottom: 2px;

    color: #788395;

    font-size: 10px;
    line-height: 1.2;
}

.app-card-text span {
    color: #272f3d;

    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

/* ==========================================================
   FOOTER FINAL SIZE FIX
========================================================== */

.site-footer {
    padding-top: 55px;
}

.site-footer .container {
    max-width: 1320px;
}

.site-footer-grid {
    gap: 40px;
}

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

    margin-bottom: 18px;
}

.site-footer-logo img {
    display: block;

    width: 185px !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 125px !important;

    object-fit: contain;
}

.site-footer-description {
    max-width: 340px;

    margin-bottom: 22px;
}

.site-footer-bottom {
    margin-top: 45px;
}


@media (max-width: 1199px) {

    .site-footer-logo img {
        width: 175px !important;
        max-height: 120px !important;
    }
}


@media (max-width: 767px) {

    .site-footer-logo img {
        width: 165px !important;
        max-height: 110px !important;
    }
}


@media (max-width: 480px) {

    .site-footer-logo img {
        width: 150px !important;
        max-height: 100px !important;
    }
}

.footer-split {
    display: flex;
    justify-content: space-between;
    /* pushes left and right apart */
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    /* optional: wraps on small screens */
    width: 100%;
}

.footer-left,
.footer-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* spacing inside each group */
}


@media (max-width: 767px) {
    .footer-backtop {
        width: 42px;
        height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-backtop .ui-icon {
        width: 18px;
        height: 18px;
    }
}
.footer-bottom {
    position: relative;
}

.footer-backtop {
    position: absolute;

    top: -23px;
    left: 50%;
    transform: translateX(-50%);

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    color: #477cdb;

    border: 6px solid #edf3ff;
    border-radius: 50%;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    text-decoration: none;
    z-index: 5;

    transition: 0.2s ease;
}

.footer-backtop:hover {
    background: #477cdb;
    color: #ffffff;

    transform: translateX(-50%) translateY(-2px);
}

.footer-backtop .ui-icon,
.footer-backtop-icon {
    width: 18px;
    height: 18px;

    display: block;

    color: currentColor;
}
/* ==========================================================
   FOOTER BOTTOM
========================================================== */

.footer-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-left,
.footer-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ==========================================================
   BACK TO TOP
========================================================== */

.footer-bottom {
    position: relative;
}

.footer-bottom .footer-backtop {
    position: absolute;

    top: -23px;
    left: 50%;
    right: auto;

    transform: translateX(-50%);

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: #ffffff;
    color: #477cdb;

    border: 5px solid #edf3ff;
    border-radius: 50%;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    text-decoration: none;

    z-index: 20;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-bottom .footer-backtop:hover {
    background: #477cdb;
    color: #ffffff;

    transform: translateX(-50%) translateY(-2px);
}

.footer-bottom .footer-backtop .ui-icon {
    width: 18px;
    height: 18px;

    display: block;
    flex-shrink: 0;

    color: currentColor;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .footer-bottom .footer-backtop {
        top: -20px;

        width: 42px;
        height: 42px;

        border-width: 4px;
    }

    .footer-bottom .footer-backtop .ui-icon {
        width: 16px;
        height: 16px;
    }

    .footer-split {
        justify-content: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }
}