/*==================================================
                    FOOTER
==================================================*/

.footer {
    position: relative;
    margin-top: 60px;
    background: #07121d;
    border-top: 1px solid rgba(0,221,255,.12);
    overflow: hidden;
    padding: 60px 70px 45px;
}

    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at top right, rgba(0,217,255,.06), transparent 45% );
        pointer-events: none;
    }


/*==================================================
                    GRID
==================================================*/

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
    gap: 55px;
    align-items: flex-start;
}


/*==================================================
                   COLUMNS
==================================================*/

.footer-company,
.footer-links,
.footer-contact,
.footer-social {
    position: relative;
    min-width: 0;
    text-align: right;
}

.footer-links,
.footer-contact,
.footer-social {
    padding-right: 30px;
}

    .footer-links::before,
    .footer-contact::before,
    .footer-social::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient( to bottom, transparent, rgba(0,221,255,.18), transparent );
    }


/*==================================================
                     LOGO
==================================================*/

.footer-logo {
    display: block;
    width:fit-content;
    margin: 0 auto 28px;
}

    .footer-logo img {
        width: 190px;
        height: auto;
        display: block;
    }


/*==================================================
                  DESCRIPTION
==================================================*/

.footer-description {
    color: #b4c4d3;
    line-height: 2.15;
    text-align: justify;

    margin-bottom: 28px;
    font-size: .97rem;
}


/*==================================================
                     SLOGAN
==================================================*/

.footer-slogan {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    padding: 12px 22px;
    margin-inline: auto;
    border-radius: 30px;
    background: rgba(0,221,255,.08);
    border: 1px solid rgba(0,221,255,.20);
    color: #00d9ff;
    font-weight: 700;
    font-size: .92rem;
    overflow: hidden;
    cursor: default;
    transition: color .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

    .footer-slogan::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 110deg, transparent, rgba(255,255,255,.20), transparent );
        transform: skewX(-20deg);
        transition: left .65s ease;
        pointer-events: none;
    }

    .footer-slogan:hover {
        color: #ffffff;
        background: rgba(0,221,255,.14);
        border-color: #00d9ff;
        box-shadow: 0 0 12px rgba(0,221,255,.20), 0 0 28px rgba(0,221,255,.14), inset 0 0 14px rgba(0,221,255,.06);
        transform: translateY(-3px);
    }

        .footer-slogan:hover::before {
            left: 140%;
        }



/*==================================================
                     TITLES
==================================================*/

.footer h3 {
    position: relative;
    display: block;
    margin: 0 0 34px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
}

    .footer h3::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -12px;
        width: 58px;
        height: 3px;
        border-radius: 3px;
        background: #00d9ff;
        box-shadow: 0 0 10px rgba(0,221,255,.45);
    }


/*==================================================
                  LIST RESET
==================================================*/

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 16px;
}


/*==================================================
                   QUICK LINKS
==================================================*/

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    direction: rtl;
    text-align: right;
    color: #b7c6d5;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
}

    .footer-links a::before {
        content: "›";
        color: #00d9ff;
        font-size: 18px;
        line-height: 1;
        transition: .3s;
    }

    .footer-links a:hover {
        color: #00d9ff;
        transform: translateX(-5px);
    }

        .footer-links a:hover::before {
            transform: translateX(-6px);
        }


/*==================================================
                  CONTACT INFO
==================================================*/

.footer-contact li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    direction: rtl;
    text-align: right;
    color: #b7c6d5;
    line-height: 2;
}

.footer-contact i {
    width: 18px;
    min-width: 18px;
    margin-top: 7px;
    text-align: center;
    color: #00d9ff;
    flex: 0 0 18px;
    font-size: 16px;
}

.footer-contact span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

/* آدرس می‌تواند در عرض کم چند خط شود */
.footer-contact li:first-child span {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* تلفن، فکس، ایمیل و سایت از وسط شکسته نشوند */
.footer-contact li:not(:first-child) span {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}


/*==================================================
                  SOCIAL CARDS
==================================================*/

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* آیکون سمت راست و متن سمت چپ آن */
    direction: rtl;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    padding: 16px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(0,221,255,.10);
    text-decoration: none;
    color: #d8e5ef;
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

    .social-card img {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        object-fit: contain;
        transition: transform .35s ease;
    }

    .social-card span {
        flex: 1 1 auto;
        min-width: 0;
        font-weight: 600;
        font-size: 14px;
        line-height: 1.5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        text-align: right;
    }


    /*==================================================
                     HOVER
==================================================*/

    .social-card:hover {
        transform: translateY(-4px);
        border-color: #00d9ff;
        background: rgba(0,221,255,.06);
        box-shadow: 0 0 20px rgba(0,221,255,.12), 0 10px 25px rgba(0,0,0,.25);
    }

        .social-card:hover img {
            transform: rotate(-15deg) scale(1.15);
        }

.footer-links a,
.footer-contact li {
    transition: color .15s ease, transform .15s ease;
}

    .footer-links a:hover,
    .footer-contact li:hover {
        color: #00d9ff;
        transform: translateX(-5px);
    }


/*==================================================
                  FOOTER BOTTOM
==================================================*/

.footer-bottom {
    margin-top: 70px;
    padding-top: 40px;
    text-align: center;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 28px;
}

.divider-line {
    width: 180px;
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(0,221,255,.45), transparent );
}

.footer-divider img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,221,255,.45));
}

.footer-bottom p {
    margin: 0;
    color: #9fb0c1;
    font-size: .92rem;
    line-height: 2;
}

.footer-bottom strong {
    color: #ffffff;
    font-weight: 700;
}


/*==================================================
                  LARGE DESKTOP
==================================================*/

@media(max-width:1400px) {

    .footer-grid {
        gap: 40px;
    }
}


/*==================================================
                     LAPTOP
==================================================*/

@media(max-width:1200px) {

    .footer {
        padding-left: 50px;
        padding-right: 50px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
        gap: 30px;
    }

    .footer-logo img {
        width: 170px;
    }
}


/*==================================================
                     TABLET
==================================================*/

@media(max-width:992px) {

    .footer {
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 45px;
    }

    .footer-links,
    .footer-contact,
    .footer-social {
        padding-right: 0;
    }

        .footer-links::before,
        .footer-contact::before,
        .footer-social::before {
            display: none;
        }
}


/*==================================================
                  MOBILE LARGE
==================================================*/

@media(max-width:768px) {

    .footer {
        margin-top: 90px;
        padding: 50px 25px 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .footer-company,
    .footer-links,
    .footer-contact,
    .footer-social {
        padding: 0;
    }

        .footer-company::before,
        .footer-links::before,
        .footer-contact::before,
        .footer-social::before {
            display: none;
        }

    /* عنوان‌ها همچنان وسط‌چین */
    .footer h3 {
        display: block;
        text-align: center;
    }

        .footer h3::after {
            right: 50%;
            transform: translateX(50%);
        }

    .footer-description {
        text-align: center;
    }


    /*----------------------------------------------
                   QUICK LINKS
      عنوان وسط، آیتم‌ها راست‌چین
    ----------------------------------------------*/

    .footer-links {
        width: 100%;
        text-align: right;
    }

        .footer-links ul {
            width: 100%;
        }

        .footer-links li {
            width: 100%;
        }

        .footer-links a {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            direction: rtl;
            text-align: right;
            gap: 10px;
            padding-right: 28px;
            box-sizing: border-box;
        }


    /*----------------------------------------------
                    CONTACT
    ----------------------------------------------*/

    .footer-contact {
        width: 100%;
        padding-right: 28px;
        box-sizing: border-box;
    }

        .footer-contact li {
            width: 100%;
            justify-content: flex-start;
            text-align: right;
            box-sizing: border-box;
        }

            .footer-contact li:not(:first-child) span {
                white-space: nowrap;
            }


    /*----------------------------------------------
                  SOCIAL CARDS
      ستون وسط، آیکون راست، متن چسبیده به آیکون
    ----------------------------------------------*/

    .footer-social {
        width: 100%;
        align-items: center;
    }

    .social-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        gap: 10px;
        padding: 14px 12px;
        box-sizing: border-box;
    }

        .social-card img {
            width: 32px;
            height: 32px;
            flex: 0 0 32px;
        }

        .social-card span {
            flex: 1 1 auto;
            min-width: 0;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: clip;
            text-align: right;
        }

    .divider-line {
        width: 100px;
    }
}


/*==================================================
                     MOBILE
==================================================*/

@media(max-width:576px) {

    .footer {
        padding: 45px 18px 30px;
    }

    .footer-logo img {
        width: 145px;
    }

    .footer-description {
        font-size: .92rem;
    }

    .footer-bottom {
        margin-top: 50px;
    }

    .divider-line {
        width: 60px;
    }

    .footer-divider img {
        width: 34px;
        height: 34px;
    }

    .footer-bottom p {
        font-size: .85rem;
    }

    .footer-slogan:hover {
        transform: translateY(-2px);
    }

    .social-card {
        width: 100%;
        max-width: 320px;
        padding: 13px 11px;
        gap: 9px;
    }

        .social-card span {
            font-size: 13px;
        }
}


/*==================================================
                   SMALL MOBILE
==================================================*/

@media(max-width:400px) {

    .footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer-links a {
        padding-right: 22px;
    }

    .footer-contact {
        padding-right: 22px;
    }

        .footer-contact li {
            gap: 10px;
        }

        .footer-contact i {
            width: 18px;
            min-width: 18px;
            flex-basis: 18px;
        }

    .social-card {
        width: 100%;
        max-width: 300px;
        padding: 12px 10px;
        gap: 8px;
    }

        .social-card img {
            width: 30px;
            height: 30px;
            flex: 0 0 30px;
        }

        .social-card span {
            font-size: 12px;
            line-height: 1.7;
        }

    .footer h3 {
        font-size: 1rem;
    }

    .footer-description {
        line-height: 2;
    }
}
