.footer-main {
    --footer-bg: linear-gradient(145deg, #fdf8f5 0%, #f7efea 100%);
    --footer-surface: rgba(255, 255, 255, .62);
    --footer-border: rgba(112, 87, 82, .13);
    --footer-heading: #342d2c;
    --footer-text: #5f5553;
    --footer-muted: #817572;
    --footer-accent: #a66f73;
    --footer-accent-soft: rgba(183, 121, 125, .12);
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-main.footer-elegant {
    padding: 0;
}

.landing-elegant-page .landing-footer-elegant {
    --footer-bg: linear-gradient(145deg, #312c2a 0%, #3b3331 52%, #352e2c 100%);
    --footer-surface: rgba(255, 255, 255, .045);
    --footer-border: rgba(255, 244, 239, .105);
    --footer-heading: #fffaf7;
    --footer-text: rgba(255, 248, 244, .78);
    --footer-muted: rgba(255, 244, 239, .58);
    --footer-accent: #e2b9b8;
    --footer-accent-soft: rgba(226, 185, 184, .11);
    padding: 0 !important;
    background: var(--footer-bg) !important;
    color: var(--footer-text) !important;
}

.landing-elegant-page .landing-footer-elegant::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(226, 185, 184, .075), transparent 30%),
        radial-gradient(circle at 12% 90%, rgba(201, 184, 168, .055), transparent 28%);
    content: "";
    pointer-events: none;
}

.footer-main .footer-top-accent {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #c9989a 24%, #efd2cf 50%, #c9989a 76%, transparent 100%);
    opacity: .8;
}

.footer-main .footer-shell {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    padding-top: clamp(3.5rem, 5vw, 4.75rem);
    padding-bottom: 1.45rem;
}

.footer-main .footer-primary-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(155px, .68fr) minmax(245px, 1.05fr) minmax(240px, 1fr);
    gap: clamp(2rem, 3.4vw, 4rem);
    align-items: start;
}

.footer-main .footer-brand-panel,
.footer-main .footer-column {
    min-width: 0;
}

.footer-main .footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--footer-heading);
    text-decoration: none;
}

.footer-main .footer-brand-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: linear-gradient(145deg, #e3b7b8, #c68d91);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 10px 24px rgba(20, 12, 11, .12);
}

.footer-main .footer-brand-copy {
    display: grid;
    gap: .12rem;
}

.footer-main .footer-brand-copy strong {
    color: var(--footer-heading) !important;
    font-size: 1.13rem;
    font-weight: 800;
    letter-spacing: -.015em;
}

.footer-main .footer-brand-copy small {
    color: var(--footer-muted) !important;
    font-size: .73rem;
    font-weight: 500;
}

.footer-main .footer-body-text {
    max-width: 39ch;
    margin: 1.05rem 0 1rem;
    color: var(--footer-text) !important;
    font-size: .85rem;
    line-height: 1.95;
}

.footer-main .footer-brand-signals {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.05rem;
}

.footer-main .footer-brand-signals span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .58rem;
    border: 1px solid var(--footer-border);
    border-radius: 999px;
    background: var(--footer-surface);
    color: var(--footer-muted) !important;
    font-size: .67rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-main .footer-brand-signals i {
    color: var(--footer-accent);
    font-size: .75rem;
}

.footer-main .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .48rem;
}

.footer-main .footer-social-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    background: var(--footer-surface);
    color: var(--footer-text) !important;
    font-size: .9rem;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.footer-main .footer-social-icon:hover {
    border-color: rgba(226, 185, 184, .38);
    background: var(--footer-accent-soft);
    color: var(--footer-heading) !important;
    transform: translateY(-2px);
}

.footer-main .footer-col-heading {
    position: relative;
    margin: .15rem 0 1.35rem;
    padding-bottom: .72rem;
    color: var(--footer-heading) !important;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.footer-main .footer-col-heading::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--footer-accent), rgba(226, 185, 184, .35));
    content: "";
}

[dir="ltr"] .footer-main .footer-col-heading::after {
    right: auto;
    left: 0;
}

.footer-main .footer-links {
    display: grid;
    gap: .72rem;
    margin: 0;
    padding: 0;
}

.footer-main .footer-links li {
    margin: 0;
}

.footer-main .footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--footer-text) !important;
    font-size: .78rem;
    line-height: 1.55;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-main .footer-links a::before {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: var(--footer-accent);
    content: "";
    opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
}

.footer-main .footer-links a:hover {
    padding: 0;
    color: var(--footer-heading) !important;
    transform: translateX(-3px);
}

[dir="ltr"] .footer-main .footer-links a:hover {
    transform: translateX(3px);
}

.footer-main .footer-links a:hover::before {
    opacity: 1;
    transform: scale(1.45);
}

.footer-main .footer-contact {
    display: grid;
    gap: .68rem;
    margin: 0;
    font-style: normal;
}

.footer-main .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-width: 0;
    padding: .58rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--footer-text) !important;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.footer-main a.footer-contact-item:hover {
    border-color: var(--footer-border);
    background: var(--footer-surface);
}

.footer-main .footer-contact-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    background: var(--footer-accent-soft);
    color: var(--footer-accent) !important;
    font-size: .82rem;
}

.footer-main .footer-contact-copy {
    display: grid;
    min-width: 0;
    gap: .14rem;
}

.footer-main .footer-contact-copy small {
    color: var(--footer-muted) !important;
    font-size: .65rem;
}

.footer-main .footer-contact-copy strong {
    color: var(--footer-text) !important;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-align: start;
}

.footer-main .footer-contact-copy strong[dir="ltr"],
.footer-main .footer-company-facts dd[dir="ltr"] {
    unicode-bidi: isolate;
}

[dir="rtl"] .footer-main .footer-contact-copy strong[dir="ltr"],
[dir="rtl"] .footer-main .footer-company-facts dd[dir="ltr"] {
    text-align: right;
}

[dir="ltr"] .footer-main .footer-contact-copy strong[dir="ltr"],
[dir="ltr"] .footer-main .footer-company-facts dd[dir="ltr"] {
    text-align: left;
}

.footer-main .footer-company-facts {
    display: grid;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--footer-border);
    border-radius: 13px;
    background: var(--footer-surface);
}

.footer-main .footer-company-facts > div {
    display: grid;
    gap: .22rem;
    padding: .7rem .82rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-main .footer-company-facts > div:last-child {
    border-bottom: 0;
}

.footer-main .footer-company-facts dt {
    color: var(--footer-muted) !important;
    font-size: .63rem;
    font-weight: 500;
}

.footer-main .footer-company-facts dd {
    margin: 0;
    color: var(--footer-heading) !important;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-align: start;
}

.footer-main .footer-divider {
    height: 1px;
    margin: clamp(2.25rem, 4vw, 3.25rem) 0 1.3rem;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--footer-border) 12%, var(--footer-border) 88%, transparent);
}

.footer-main .footer-bottom-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.2rem;
}

.footer-main .footer-copyright {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .28rem .7rem;
}

.footer-main .footer-copyright p {
    margin: 0;
    color: var(--footer-muted) !important;
    font-size: .68rem;
    line-height: 1.7;
}

.footer-main .footer-development {
    position: relative;
    padding-inline-start: .8rem;
}

.footer-main .footer-development::before {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--footer-muted);
    content: "";
}

.footer-main .footer-dev-link {
    color: var(--footer-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.footer-main .footer-dev-link:hover {
    color: var(--footer-heading) !important;
}

.footer-main .footer-zatca-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .45rem .75rem;
    border: 1px solid var(--footer-border);
    border-radius: 999px;
    background: var(--footer-surface);
    color: var(--footer-text) !important;
    font-size: .66rem;
    font-weight: 700;
    white-space: nowrap;
}

.footer-main .footer-zatca-badge span {
    color: var(--footer-text) !important;
}

.footer-main .footer-zatca-icon {
    color: var(--footer-accent);
    font-size: .82rem;
}

.footer-main .footer-policy-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem 1rem;
}

.footer-main .footer-policy-links a {
    color: var(--footer-muted) !important;
    font-size: .66rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.footer-main .footer-policy-links a:hover {
    color: var(--footer-heading) !important;
}

.footer-main a:focus-visible {
    border-radius: 6px;
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}

@media (max-width: 1199.98px) {
    .footer-main .footer-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 3rem;
    }
}

@media (max-width: 991.98px) {
    .footer-main .footer-bottom-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-main .footer-copyright,
    .footer-main .footer-policy-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .footer-main .footer-shell {
        padding-top: 3rem;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .footer-main .footer-primary-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .footer-main .footer-body-text {
        max-width: none;
    }

    .footer-main .footer-product-column .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .72rem 1rem;
    }

    .footer-main .footer-policy-links {
        gap: .55rem .85rem;
    }

    .footer-main .footer-development {
        padding-inline-start: 0;
    }

    .footer-main .footer-development::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-main *,
    .footer-main *::before,
    .footer-main *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
