/* ============================================================
   RAHPEYMAN FOOTER
   طراحی اختصاصی رهپیمان - RTL
   ============================================================ */

.rp-footer {
    position: relative;
    overflow: hidden;

    margin-top: 0;
    padding: 56px 0 0;

    background: #0B1422;
    color: #FFFFFF;

    direction: rtl;
}


.rp-footer::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            #00BFA5 35%,
            #1976D2 65%,
            transparent 100%
        );
}


/* ============================================================
   MAIN GRID
   ============================================================ */

.rp-footer-main {
    display: grid;

    grid-template-columns:
        minmax(250px, 1.45fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(245px, 1.2fr);

    gap: 38px;

    align-items: start;
}


/* ============================================================
   BRAND
   ============================================================ */

.rp-footer-brand {
    min-width: 0;
}


.rp-footer-brand-link {
    display: inline-block;

    text-decoration: none;
}


.rp-footer-brand .brand-text {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    line-height: 1;
}


.rp-footer-brand .brand-persian {
    color: #FFFFFF;

    font-size: 34px;

    line-height: 1.1;
}


.rp-footer-brand .brand-english {
    margin-top: 7px;

    color: rgba(255,255,255,.66);

    font-size: 14px;

    letter-spacing: 2px;
}


.rp-footer-brand p {
    max-width: 390px;

    margin: 18px 0 0;

    color: rgba(255,255,255,.57);

    font-family: var(--font-regular);

    font-size: 13px;

    line-height: 2.15;
}


/* ============================================================
   FOOTER COLUMNS
   ============================================================ */

.rp-footer-column,
.rp-footer-contact {
    min-width: 0;
}


.rp-footer-column h3,
.rp-footer-contact h3 {
    margin: 0 0 17px;

    color: #FFFFFF;

    font-family: var(--font-bold);

    font-size: 16px;

    font-weight: bold;

    line-height: 1.6;
}


.rp-footer-column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.rp-footer-column a {
    width: fit-content;

    color: rgba(255,255,255,.57);

    font-family: var(--font-regular);

    font-size: 13px;

    line-height: 1.8;

    transition:
        color .2s ease,
        transform .2s ease;
}


.rp-footer-column a:hover {
    color: #FFFFFF;

    transform: translateX(-3px);
}


/* ============================================================
   CONTACT
   دو ستون
   ============================================================ */

.rp-footer-contact-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 16px;

    row-gap: 8px;

    width: 100%;
}


.rp-footer-contact-item {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 5px 3px;

    border-radius: 9px;

    text-decoration: none;

    transition:
        background .2s ease,
        opacity .2s ease,
        transform .2s ease;
}


.rp-footer-contact-item:hover {
    background: rgba(255,255,255,.045);

    opacity: .95;

    transform: translateY(-1px);
}


/* ============================================================
   ICON SYSTEM
   ============================================================ */

.rp-footer-contact-icon {
    width: 32px;
    height: 32px;

    min-width: 32px;
    max-width: 32px;

    flex: 0 0 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 9px;

    background:
        rgba(255,255,255,.045);

    color: #67E3D2;
}


.rp-footer-contact-icon svg {
    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;
    max-width: 16px !important;

    min-height: 16px !important;
    max-height: 16px !important;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.rp-footer-contact-icon svg path[fill="currentColor"] {
    fill: currentColor;

    stroke: none;
}


/* ============================================================
   TEXT ICON
   ============================================================ */

.rp-footer-text-icon {
    width: 16px;
    height: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: currentColor;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: bold;

    line-height: 1;
}


.rp-footer-persian-icon {
    font-family: var(--font-bold);

    font-size: 14px;
}


/* ============================================================
   CONTACT TEXT
   ============================================================ */

.rp-footer-contact-text {
    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 1px;

    overflow: hidden;
}


.rp-footer-contact-text strong {
    display: block;

    overflow: hidden;

    color: rgba(255,255,255,.86);

    font-family: var(--font-regular);

    font-size: 11px;

    font-weight: normal;

    line-height: 1.6;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.rp-footer-contact-text small {
    display: block;

    overflow: hidden;

    color: rgba(255,255,255,.40);

    font-family: var(--font-regular);

    font-size: 9px;

    line-height: 1.5;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ============================================================
   EMPTY CONTACT
   ============================================================ */

.rp-footer-empty {
    margin: 0;

    color: rgba(255,255,255,.4);

    font-family: var(--font-regular);

    font-size: 12px;
}


/* ============================================================
   MESSAGE
   ============================================================ */

.rp-footer-message {
    margin-top: 38px;

    padding: 20px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    border-top: 1px solid rgba(255,255,255,.08);

    border-bottom: 1px solid rgba(255,255,255,.08);
}


.rp-footer-message strong {
    color: rgba(255,255,255,.93);

    font-family: var(--font-bold);

    font-size: 16px;

    font-weight: bold;
}


.rp-footer-message span {
    color: rgba(255,255,255,.42);

    font-family: var(--font-regular);

    font-size: 11px;
}


/* ============================================================
   LOWER AREA
   ============================================================ */

.rp-footer-lower {
    min-height: 96px;

    padding: 22px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    direction: rtl;
}


/* ============================================================
   COPYRIGHT
   ============================================================ */

.rp-footer-copyright {
    order: 2;

    color: rgba(255,255,255,.38);

    font-family: var(--font-regular);

    font-size: 10px;

    white-space: nowrap;
}


/* ============================================================
   TRUST BADGES
   سمت چپ
   ============================================================ */

.rp-footer-trust {
    order: 1;

    margin-right: auto;

    display: flex;

    align-items: center;

    gap: 10px;

    direction: rtl;
}


.rp-footer-trust-title {
    color: rgba(255,255,255,.35);

    font-family: var(--font-regular);

    font-size: 9px;

    white-space: nowrap;
}


.rp-footer-trust-list {
    display: flex;

    align-items: center;

    gap: 7px;

    direction: ltr;
}


.rp-footer-trust-card {
    width: 66px;
    height: 56px;

    flex: 0 0 66px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 5px;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 9px;

    background: #FFFFFF;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.rp-footer-trust-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(0,0,0,.18);
}


.rp-footer-trust-card img {
    display: block;

    max-width: 100%;
    max-height: 44px;

    object-fit: contain;
}


.rp-footer-trust-fallback {
    color: #5D6878;

    font-family: var(--font-bold);

    font-size: 9px;

    text-align: center;
}


/* ============================================================
   BOTTOM
   ============================================================ */

.rp-footer-bottom {
    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.06);

    color: rgba(255,255,255,.30);

    font-family: var(--font-regular);

    font-size: 10px;
}


.rp-footer-bottom a {
    color: rgba(255,255,255,.38);

    text-decoration: none;

    transition: color .2s ease;
}


.rp-footer-bottom a:hover {
    color: #FFFFFF;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .rp-footer-main {
        grid-template-columns:
            1.3fr
            1fr
            1fr;
    }

    .rp-footer-contact {
        grid-column: 1 / -1;
    }

    .rp-footer-contact-list {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        column-gap: 18px;
    }
}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 820px) {

    .rp-footer-main {
        grid-template-columns:
            1fr 1fr;
    }

    .rp-footer-brand {
        grid-column: 1 / -1;
    }

    .rp-footer-contact {
        grid-column: 1 / -1;
    }

    .rp-footer-contact-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 14px;
    }

    .rp-footer-message {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .rp-footer {
        padding-top: 46px;
    }


    .rp-footer-main {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .rp-footer-brand {
        grid-column: auto;
    }


    .rp-footer-contact {
        grid-column: auto;
    }


    .rp-footer-contact-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 12px;

        row-gap: 8px;
    }


    .rp-footer-contact-item {
        padding: 5px 1px;
    }


    .rp-footer-contact-icon {
        width: 31px;
        height: 31px;

        min-width: 31px;
        max-width: 31px;

        flex-basis: 31px;
    }


    .rp-footer-contact-icon svg {
        width: 15px !important;
        height: 15px !important;

        min-width: 15px !important;
        max-width: 15px !important;

        min-height: 15px !important;
        max-height: 15px !important;
    }


    .rp-footer-contact-text strong {
        font-size: 10px;
    }


    .rp-footer-contact-text small {
        font-size: 8px;
    }


    .rp-footer-lower {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px 0;
    }


    .rp-footer-trust {
        width: 100%;

        margin-right: 0;

        align-items: flex-start;

        flex-direction: column;
    }


    .rp-footer-trust-list {
        width: 100%;

        flex-wrap: wrap;

        justify-content: flex-start;
    }


    .rp-footer-copyright {
        order: 2;

        white-space: normal;
    }


    .rp-footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        padding: 17px 0;
    }
}