.site-footer {
    position: relative;
    background-color: var(--lp-white);
    overflow: hidden;
}

.footer-stars {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: 175px;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(-50%);
    background-image: url("../images/style/stars-from-logo.svg");
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 175px;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 48%,
        rgba(0, 0, 0, 0.65) 72%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 48%,
        rgba(0, 0, 0, 0.65) 72%,
        rgba(0, 0, 0, 0) 100%
    );
}

.footer-container {
    position: relative;
    z-index: 1;
    padding-top: 44px;
    padding-bottom: 38px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 42px;
    margin-bottom: 12px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-top: 14px;
}

.footer-brand img {
    width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 265px;
}

.footer-contact-card {
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid var(--lp-secondary);
    border-radius: var(--lp-radius-sm);
    background-color: var(--lp-secondary);
    color: var(--lp-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    direction: rtl;
    transition:
        background-color var(--lp-transition),
        color var(--lp-transition),
        border-color var(--lp-transition),
        box-shadow var(--lp-transition);
}

.footer-contact-card:hover {
    background-color: var(--lp-white);
    color: var(--lp-secondary);
    border-color: var(--lp-secondary);
    box-shadow: 0 10px 22px rgba(63, 132, 157, 0.12);
}

.footer-contact-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.footer-contact-email {
    font-family: var(--lp-font-ar);
    font-size: 14px;
    font-weight: 900;
    direction: ltr;
    unicode-bidi: isolate;
}

.footer-contact-icon {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: currentColor;
    transition: background-color var(--lp-transition);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.footer-contact-icon-whatsapp {
    -webkit-mask-image: url("../images/style/whatsapp.svg");
    mask-image: url("../images/style/whatsapp.svg");
}

.footer-contact-icon-phone {
    -webkit-mask-image: url("../images/style/phone.svg");
    mask-image: url("../images/style/phone.svg");
}

.footer-contact-icon-email {
    -webkit-mask-image: url("../images/style/email.svg");
    mask-image: url("../images/style/email.svg");
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #DCDCE0;
    margin: 8px 0 18px;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 34px;
}

.footer-nav-link {
    position: relative;
    color: var(--lp-black);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding-bottom: 8px;
    transition: color var(--lp-transition);
}

.footer-nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background-color: var(--lp-primary);
    transition: width var(--lp-transition);
}

.footer-nav-link:hover::after,
.footer-nav-link.active::after {
    width: 100%;
}

.footer-middle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.footer-news,
.footer-social {
    width: max-content;
}

.footer-news {
    text-align: right;
}

.footer-social {
    text-align: right;
}

.footer-heading {
    margin: 0;
    color: var(--lp-black);
    font-size: clamp(16px, 1.3vw, 22px);
    font-weight: 600;
    line-height: 1.45;
}

.footer-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    direction: ltr;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    border: 1px solid #DCDCE0;
    background-color: var(--lp-white);
    color: var(--lp-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color var(--lp-transition),
        border-color var(--lp-transition),
        color var(--lp-transition);
}

.footer-social-link:hover {
    background-color: var(--lp-secondary);
    border-color: var(--lp-secondary);
    color: var(--lp-white);
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.footer-social-icon-whatsapp {
    -webkit-mask-image: url("../images/style/whatsapp-fill.svg");
    mask-image: url("../images/style/whatsapp-fill.svg");
}

.footer-social-icon-email-fill {
    -webkit-mask-image: url("../images/style/email-fill.svg");
    mask-image: url("../images/style/email-fill.svg");
}

.footer-social-icon-facebook {
    -webkit-mask-image: url("../images/style/facebook-fill.svg");
    mask-image: url("../images/style/facebook-fill.svg");
}

.footer-social-icon-x {
    -webkit-mask-image: url("../images/style/x-fill.svg");
    mask-image: url("../images/style/x-fill.svg");
}

.footer-social-icon-instagram {
    -webkit-mask-image: url("../images/style/instagram-fill.svg");
    mask-image: url("../images/style/instagram-fill.svg");
}

.footer-bottom {
    position: relative;
    z-index: 1;
    background-color: var(--lp-white);
    padding: 10px 0 14px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    direction: rtl;
}

.footer-bottom p {
    margin: 0;
    color: var(--lp-black);
    font-family: var(--lp-font-ar);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

.footer-copyright {
    direction: rtl;
    text-align: right;
}

.footer-credit {
    direction: rtl;
    text-align: left;
}

.footer-credit-link {
    color: var(--lp-black);
    text-decoration: none;
    transition: color var(--lp-transition);
}

.footer-credit-link:hover {
    color: var(--lp-secondary);
}

@media (prefers-reduced-motion: reduce) {
    .footer-credit-link {
        transition: none;
    }
}

@media (max-width: 1200px) {
    .footer-stars {
        height: 160px;
        background-size: auto 160px;
    }
}

@media (max-width: 992px) {
    .footer-stars {
        height: 145px;
        background-size: auto 145px;
    }

    .footer-container {
        padding-top: 38px;
        padding-bottom: 34px;
    }

    .footer-top {
        gap: 28px;
        align-items: center;
    }

    .footer-brand img {
        width: 185px;
    }

    .footer-nav {
        gap: 22px;
    }

    .footer-middle {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .footer-stars {
        height: 125px;
        background-size: auto 125px;
    }

    .footer-container {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 14px;
    }

    .footer-brand {
        margin-top: 0;
    }

    .footer-contact-list {
        max-width: 320px;
    }

    .footer-divider {
        margin: 10px 0 16px;
    }

    .footer-nav {
        gap: 18px 22px;
        margin-bottom: 28px;
    }

    .footer-middle {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-news,
    .footer-social {
        width: 100%;
        text-align: center;
    }

    .footer-social-list {
        justify-content: center;
        margin-top: 14px;
    }

    .footer-bottom-inner {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
        text-align: center;
    }

    .footer-copyright,
    .footer-credit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-stars {
        height: 105px;
        background-size: auto 105px;
    }

    .footer-brand img {
        width: 160px;
    }

    .footer-contact-card {
        min-height: 38px;
        padding: 8px 12px;
    }

    .footer-contact-text {
        font-size: 13px;
    }

    .footer-contact-email {
        font-size: 13px;
    }

    .footer-contact-icon {
        width: 21px;
        height: 21px;
    }

    .footer-nav {
        gap: 14px 18px;
    }

    .footer-nav-link {
        font-size: 14px;
        white-space: nowrap;
    }

    .footer-social-link {
        width: 34px;
        height: 34px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}