﻿/* ── Site footer (compact, aligned, RTL-safe) ─────────────────────────── */
#site-footer.site-footer {
    --sf-bg: #111827;
    --sf-bg-2: #1f2937;
    --sf-bg-deep: #030712;
    --sf-ink: #f3f4f6;
    --sf-muted: #9ca3af;
    --sf-line: rgba(255, 255, 255, 0.1);
    --sf-accent: #6A5D8B;
    --sf-accent-soft: #8B7BAF;
    position: relative;
    overflow: hidden;
    color: var(--sf-ink);
    background: linear-gradient(to bottom right, #111827, #1f2937, #111827);
    font-family: "Tajawal", "Rubik", system-ui, sans-serif;
}

#site-footer.site-footer .site-footer__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
}

#site-footer.site-footer .site-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sf-accent), var(--sf-accent-soft), var(--sf-accent), transparent);
}

#site-footer.site-footer .site-footer__inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 80rem; /* matches site max-w-7xl */
    margin: 0 auto;
    padding: 1.75rem 1.25rem 1.15rem;
}

#site-footer.site-footer .site-footer__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.75rem 2.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

#site-footer.site-footer .site-footer__col {
    box-sizing: border-box;
    min-width: 0;
}

#site-footer.site-footer .site-footer__col--brand {
    flex: 1.2 1 300px;
    max-width: 420px;
}

#site-footer.site-footer .site-footer__col--links {
    flex: 1.1 1 320px;
    max-width: 480px;
}

#site-footer.site-footer .site-footer__col--contact {
    flex: 1 1 260px;
    max-width: 360px;
}

#site-footer.site-footer .site-footer__split {
    display: contents;
}

@media (max-width: 991px) {
    #site-footer.site-footer .site-footer__main {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: start;
        gap: 0.85rem 0.9rem;
        margin-bottom: 0.7rem;
    }

    #site-footer.site-footer .site-footer__split {
        display: contents !important;
    }

    #site-footer.site-footer .site-footer__col--brand,
    #site-footer.site-footer .site-footer__meta,
    #site-footer.site-footer .site-footer__trust {
        grid-column: 1 / -1 !important;
        width: 100%;
        max-width: none;
        text-align: center;
    }

    #site-footer.site-footer .site-footer__col--links {
        grid-column: 1 !important;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        text-align: start;
    }

    #site-footer.site-footer .site-footer__col--contact {
        grid-column: 2 !important;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        text-align: start;
    }
}

@media (min-width: 1024px) {
    #site-footer.site-footer .site-footer__inner {
        padding: 2rem 2rem 1.25rem;
    }
}

@media (min-width: 1280px) {
    #site-footer.site-footer .site-footer__inner {
        padding-inline: 2rem;
    }
}

#site-footer.site-footer .site-footer__heading {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.3;
}

#site-footer.site-footer .site-footer__logo {
    display: block;
    height: 4.75rem;
    width: auto;
    margin-bottom: 0.85rem;
    filter: brightness(0) invert(1);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    #site-footer.site-footer .site-footer__logo {
        height: 5.5rem;
    }
}

#site-footer.site-footer .site-footer__logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

#site-footer.site-footer .site-footer__desc {
    margin: 0 0 1rem;
    max-width: 28rem;
    color: var(--sf-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

#site-footer.site-footer .site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

#site-footer.site-footer .site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#site-footer.site-footer .site-footer__social:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--sf-accent), var(--sf-accent-soft));
    border-color: transparent;
    transform: translateY(-2px);
}

#site-footer.site-footer .site-footer__social svg {
    width: 1.35rem;
    height: 1.35rem;
}

#site-footer.site-footer .site-footer__made {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.4rem;
    color: var(--sf-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

#site-footer.site-footer .site-footer__meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    width: 100%;
    padding-top: 0.85rem;
    border-top: 1px solid var(--sf-line);
}

#site-footer.site-footer .site-footer__payments-wrap {
    display: flex;
    align-items: center;
    height: 56px;
    overflow: hidden;
    flex: 0 0 auto;
}

#site-footer.site-footer .site-footer__payments {
    display: block;
    width: auto;
    max-width: none;
    height: 130px;
    opacity: 0.92;
}

#site-footer.site-footer .site-footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.25rem;
}

#site-footer.site-footer .site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

#site-footer.site-footer .site-footer__list a {
    display: inline-block;
    color: var(--sf-muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease, transform 0.15s ease;
}

#site-footer.site-footer .site-footer__list a:hover {
    color: #fff;
}

[dir="rtl"] #site-footer.site-footer .site-footer__list a:hover {
    transform: translateX(-3px);
}

[dir="ltr"] #site-footer.site-footer .site-footer__list a:hover {
    transform: translateX(3px);
}

#site-footer.site-footer .site-footer__contact-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#site-footer.site-footer .site-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--sf-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

#site-footer.site-footer .site-footer__contact-list svg {
    flex: 0 0 auto;
    color: var(--sf-accent-soft);
    opacity: 0.9;
}

#site-footer.site-footer .site-footer__contact-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

#site-footer.site-footer .site-footer__contact-list a:hover,
#site-footer.site-footer .site-footer__contact-list li:hover {
    color: #fff;
}

#site-footer.site-footer .site-footer__trust {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding-top: 0;
    border-top: none;
    min-width: 0;
}

#site-footer.site-footer .site-footer__badge {
    height: 72px;
    width: auto;
    display: block;
    opacity: 0.92;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#site-footer.site-footer .site-footer__badge--nafath {
    height: 62px;
}

#site-footer.site-footer .site-footer__trust a:hover .site-footer__badge {
    opacity: 1;
    transform: translateY(-1px);
}

#site-footer.site-footer .site-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sf-line);
}

@media (min-width: 768px) {
    #site-footer.site-footer .site-footer__bar {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem 1.5rem;
    }
}

#site-footer.site-footer .site-footer__bar-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1.1rem;
    width: 100%;
}

@media (min-width: 768px) {
    #site-footer.site-footer .site-footer__bar-start {
        width: auto;
    }
}

#site-footer.site-footer .site-footer__copy {
    margin: 0;
    color: var(--sf-muted);
    font-size: 0.8rem;
}

#site-footer.site-footer .site-footer__powered {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #e5e7eb;
    font-size: 0.78rem;
    font-weight: 600;
}

#site-footer.site-footer .site-footer__powered--desktop {
    display: flex;
}

#site-footer.site-footer .site-footer__powered--mobile {
    display: none;
}

#site-footer.site-footer .site-footer__figates {
    height: 28px;
    width: auto;
    display: block;
    transition: opacity 0.15s ease;
}

#site-footer.site-footer .site-footer__powered a:hover .site-footer__figates {
    opacity: 0.85;
}

@media (max-width: 767px) {
    #site-footer.site-footer .site-footer__inner {
        padding: 1.1rem 1rem 0.75rem;
    }

    #site-footer.site-footer .site-footer__main {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: start;
        gap: 0.85rem 0.9rem;
        margin-bottom: 0.7rem;
    }

    #site-footer.site-footer .site-footer__split {
        display: contents !important;
    }

    #site-footer.site-footer .site-footer__col--brand,
    #site-footer.site-footer .site-footer__meta,
    #site-footer.site-footer .site-footer__trust {
        grid-column: 1 / -1 !important;
        text-align: center;
        width: 100%;
    }

    #site-footer.site-footer .site-footer__col--links {
        grid-column: 1 !important;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        text-align: start;
    }

    #site-footer.site-footer .site-footer__col--contact {
        grid-column: 2 !important;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        text-align: start;
    }

    #site-footer.site-footer .site-footer__logo {
        height: 3.35rem;
        margin-inline: auto;
        margin-bottom: 0.4rem;
    }

    #site-footer.site-footer .site-footer__desc {
        margin: 0 auto 0.55rem;
        max-width: 22rem;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    #site-footer.site-footer .site-footer__socials {
        justify-content: center;
        margin-bottom: 0;
        gap: 0.4rem;
    }

    #site-footer.site-footer .site-footer__social {
        width: 2.25rem;
        height: 2.25rem;
    }

    #site-footer.site-footer .site-footer__social svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    #site-footer.site-footer .site-footer__heading {
        text-align: start;
        margin: 0 0 0.45rem;
        font-size: 0.88rem;
    }

    #site-footer.site-footer .site-footer__links-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        gap: 0.28rem 0.7rem;
        text-align: start;
        justify-content: start;
        justify-items: start;
    }

    #site-footer.site-footer .site-footer__list {
        width: auto;
        min-width: 0;
        gap: 0.28rem;
    }

    #site-footer.site-footer .site-footer__list a {
        display: block;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    #site-footer.site-footer .site-footer__contact-list {
        margin: 0 0 0.15rem;
        gap: 0.3rem;
        width: 100%;
        max-width: 100%;
    }

    #site-footer.site-footer .site-footer__contact-list li {
        justify-content: flex-start;
    }

    #site-footer.site-footer .site-footer__contact-list a,
    #site-footer.site-footer .site-footer__contact-list span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #site-footer.site-footer .site-footer__meta {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem 0.65rem;
        padding-top: 0.55rem;
        width: 100%;
    }

    #site-footer.site-footer .site-footer__trust {
        justify-content: flex-start;
        gap: 0.35rem 0.5rem;
        padding-top: 0;
        border-top: none;
        flex: 1 1 auto;
        min-width: 0;
    }

    #site-footer.site-footer .site-footer__made {
        display: flex;
        flex-direction: row;
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.68rem;
        gap: 0.3rem;
    }

    #site-footer.site-footer .site-footer__payments-wrap {
        height: 52px;
    }

    #site-footer.site-footer .site-footer__payments {
        width: auto;
        max-width: none;
        height: 120px;
    }

    #site-footer.site-footer .site-footer__badge {
        height: 56px;
    }

    #site-footer.site-footer .site-footer__badge--nafath {
        height: 48px;
    }

    #site-footer.site-footer .site-footer__powered--mobile {
        margin-top: 0.45rem;
        padding-top: 0;
        border-top: none;
        justify-content: center;
    }

    #site-footer.site-footer .site-footer__bar {
        gap: 0.4rem;
        padding-top: 0.65rem;
    }

    #site-footer.site-footer .site-footer__bar-start {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem 0.7rem;
        width: 100%;
    }

    #site-footer.site-footer .site-footer__copy {
        min-width: 0;
        font-size: 0.7rem;
        line-height: 1.35;
    }

    #site-footer.site-footer .site-footer__powered--desktop {
        display: flex !important;
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.7rem;
    }

    #site-footer.site-footer .site-footer__figates {
        height: 20px;
    }

}

/* Footer RTL/LTR Support */
.Footer_ {
    direction: inherit;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: inline-flex
}


[dir="rtl"] .Footer .footer-Info {
    flex-direction: row-reverse;
}

.footer-text {
    text-align: inherit;
}

[dir="rtl"] .footer-text {
    text-align: right;
}

[dir="ltr"] .footer-text {
    text-align: left;
}

/* Section padding - Responsive */
.footer-padding {
    padding-left: 156px;
    padding-right: 156px;
}

/* Tablet */
@media (max-width: 1024px) {
    .footer-padding {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-padding {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-padding {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.image-360 {
    width: 69px;
    height: 48px;
    aspect-ratio: 23/16;
    border-radius: 8px;
    background: url(<path-to-image>) lightgray -86.692px -87.111px / 320.513% 462.963% no-repeat;
}

.text-360 {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-align: right;
    position: relative;
    z-index: 2;
}

/* Footer Info Container Responsive */
.footer-Info {
    width: 100%;
    /* max-width: 1128px; */
}

/* Fix Location container overflow */
.Location {
    max-width: 100%;
    overflow: hidden;
}

[dir="rtl"] .Location {
    justify-content: flex-start !important;
}

[dir="ltr"] .Location {
    justify-content: flex-start !important;
}

/* Legacy Figate helpers kept for any residual markup */
.figate-powered-text {
    white-space: nowrap;
}

/* Web & Tablet - Fix alignment for Contact Us and Links sections */
@media (min-width: 769px) {
    /* Only change container alignment, keep nested items as they are */
    .footer-Info > .Contact_Us {
        align-items: flex-start !important;
    }
    /* Ensure Contact_Us sections don't overflow */
    .footer-Info > .Contact_Us {
        max-width: 100%;
        min-width: 0;
    }
    /* Align Mail, Call, Location items properly for LTR/RTL */
    [dir="ltr"] .Mail,
    [dir="ltr"] .Call,
    [dir="ltr"] .Location {
        justify-content: flex-start !important;
        flex-direction: row !important;
        direction: ltr !important;
    }

    [dir="rtl"] .Mail,
    [dir="rtl"] .Call,
    [dir="rtl"] .Location {
        justify-content: flex-start !important;
    }
    /* Fix text alignment for LTR/RTL */
    [dir="ltr"] .Mail > div:last-child,
    [dir="ltr"] .Call > div:last-child,
    [dir="ltr"] .Location > div:last-child {
        text-align: left !important;
    }

    [dir="rtl"] .Mail > div:last-child,
    [dir="rtl"] .Call > div:last-child,
    [dir="rtl"] .Location > div:last-child {
        text-align: right !important;
    }
    /* Align Info_ container items to start */
    [dir="ltr"] .Contact_Us .Info_ {
        align-items: flex-start !important;
    }

    [dir="rtl"] .Contact_Us .Info_ {
        align-items: flex-start !important;
    }
}

/* Tablet - Adjust spacing and sizing */
@media (max-width: 1024px) {
    .footer-Info {
        gap: 32px;
        flex-wrap: wrap;
    }

    .FollowUs, .Contact_Us {
        flex: 1 1 45%;
        min-width: 250px;
    }

    .text-360 span {
        font-size: 20px !important;
    }

    .Info_ {
        align-self: auto !important;
    }
}

/* Mobile - Stack all vertically */
@media (max-width: 768px) {
    .footer-Info {
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px;
    }

    .FollowUs, .Contact_Us {
        width: 100%;
        align-items: center;
        text-align: center;
        max-width: 100%;
        min-width: 0;
    }

    .footer-text {
        text-align: center !important;
    }

    .text-360 {
        text-align: center !important;
    }

        .text-360 span {
            font-size: 18px !important;
        }

    .SocialMedia {
        justify-content: center;
    }

    .image-360 {
        margin: 0 auto;
    }

    .image-360-2 {
        margin: 0 auto;
    }

    .Licenses {
        flex-direction: column !important;
        gap: 20px;
    }

    .Info_ {
        align-self: auto !important;
        max-width: 100%;
        width: 100%;
        align-items: center !important;
    }
    /* Center Mail, Call, and Location items in mobile */
    .Mail, .Call, .Location {
        justify-content: center !important;
        align-self: center !important;
        width: auto !important;
        max-width: 100%;
    }
    /* Ensure English (LTR) icons before text in mobile */
    [dir="ltr"] .Mail,
    [dir="ltr"] .Call,
    [dir="ltr"] .Location {
        flex-direction: row !important;
        direction: ltr !important;
    }

    .Mail > div:last-child,
    .Call > div:last-child,
    .Location > div:last-child {
        text-align: center !important;
        flex: 0 1 auto !important;
    }

    .Location {
        width: auto !important;
        max-width: 100%;
    }
}

/* Small Mobile - Smaller text and icons */
@media (max-width: 480px) {
    .text-360 span {
        font-size: 16px !important;
    }

    .footer-text {
        font-size: 14px !important;
    }

    .Contact_Us .footer-text[style*="24px"] {
        font-size: 20px !important;
    }

    .FollowUs .footer-text[style*="24px"] {
        font-size: 20px !important;
    }

    .image-360 {
        width: 55px;
        height: 38px;
    }

    .Licenses > div {
        width: 100% !important;
        max-width: 200px;
    }

    .Info_ {
        align-self: auto !important;
    }
}

.image-360-2 {
    width: 120px;
    height: 96px;
    /*   aspect-ratio: 35/24; */
    background: url(<path-to-image>) lightgray -13.121px -22.715px / 134.394% 194.645% no-repeat;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    display: flex;
    object-fit: contain;
    background-color: #6a5c8b;
}

.foooter-style {
    align-self: stretch;
    padding-top: 65px;
    padding-bottom: 64px;
    background: var(--Primary-500, #6A5D8B);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    display: flex
}

/* Sticky footer: short pages (e.g. Cart) keep the footer at the bottom of the viewport — no empty band under it. */
#root > .client-site-shell.min-h-screen.bg-white {
    display: flex;
    flex-direction: column;
    min-height: var(--client-shell-min-height, 100dvh);
}

#root > .client-site-shell > .client-site-shell__main {
    flex: 1 0 auto;
}

#root > .client-site-shell > #site-footer.site-footer {
    margin-top: auto;
    flex-shrink: 0;
}
