﻿/* ── 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: #6B5B95;
    --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;
}

@media (max-width: 767px) {
    #site-footer.site-footer .site-footer__col--brand,
    #site-footer.site-footer .site-footer__col--links,
    #site-footer.site-footer .site-footer__col--contact {
        flex: 1 1 100%;
        max-width: none;
    }
}

@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.45rem;
    margin-bottom: 0.9rem;
}

#site-footer.site-footer .site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    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__made {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sf-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

#site-footer.site-footer .site-footer__made--desktop {
    display: none;
    margin-bottom: 0.45rem;
}

#site-footer.site-footer .site-footer__made--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

#site-footer.site-footer .site-footer__payments {
    display: block;
    width: min(200px, 100%);
    height: auto;
    opacity: 0.92;
}

#site-footer.site-footer .site-footer__payments--desktop {
    display: none;
}

@media (min-width: 768px) {
    #site-footer.site-footer .site-footer__made--desktop,
    #site-footer.site-footer .site-footer__payments--desktop {
        display: flex;
    }

    #site-footer.site-footer .site-footer__payments--desktop {
        display: block;
    }

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

#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: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--sf-line);
}

#site-footer.site-footer .site-footer__badge {
    height: 40px;
    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: 32px;
}

#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: none;
}

#site-footer.site-footer .site-footer__powered--mobile {
    display: flex;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--sf-line);
}

@media (min-width: 1024px) {
    #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__col--brand,
    #site-footer.site-footer .site-footer__col--links,
    #site-footer.site-footer .site-footer__col--contact {
        text-align: center;
    }

    #site-footer.site-footer .site-footer__logo {
        margin-inline: auto;
    }

    #site-footer.site-footer .site-footer__desc {
        margin-inline: auto;
    }

    #site-footer.site-footer .site-footer__socials,
    #site-footer.site-footer .site-footer__made--desktop,
    #site-footer.site-footer .site-footer__trust,
    #site-footer.site-footer .site-footer__powered--mobile,
    #site-footer.site-footer .site-footer__contact-list li {
        justify-content: center;
    }

    #site-footer.site-footer .site-footer__links-grid {
        max-width: 22rem;
        margin-inline: auto;
        text-align: start;
    }

    #site-footer.site-footer .site-footer__payments--desktop {
        margin-inline: auto;
    }
}

/* 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;
}
