/* Footer aligned with the AMartil site-footer__main layout. */
.site-footer {
    position: relative !important;
    bottom: auto !important;
    margin-top: 3rem;
    padding: 0 !important;
    background: transparent;
    color: #1f2937;
    text-align: start;
}

.site-footer__main {
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--ab-border-light, #ebebeb);
    border-bottom: 1px solid var(--ab-border-light, #ebebeb);
    background: transparent !important;
}

.site-footer__grid {
    row-gap: 2.5rem;
}

.site-footer__grid > [class*="col"] {
    min-width: 0;
}

.site-footer__brand {
    overflow: hidden;
}

.site-footer__logo {
    display: block;
    width: auto;
    max-width: 100%;
    margin-bottom: 1.25rem;
    text-align: start;
    min-inline-size: 0;
}

.site-footer__logo img {
    display: block;
    width: auto !important;
    max-width: min(160px, 100%) !important;
    height: auto !important;
    max-height: 46px !important;
    object-fit: contain;
    object-position: inline-start center;
    min-inline-size: 0 !important;
    opacity: 1;
    filter: none;
}

.site-footer__about {
    margin: 0 0 1rem;
    color: #4b5563;
    font-size: 1.35rem;
    font-weight: 400 !important;
    line-height: 1.85;
    text-align: start;
    white-space: normal;
}

.site-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: var(--ab-accent-soft, rgba(247, 154, 56, .14)) !important;
    color: var(--ab-accent, #dd5b0b) !important;
    font-size: 1.2rem;
    font-weight: 600;
}

.site-footer__title {
    display: inline-block;
    margin: 0 0 1.15rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--ab-border-light, #ebebeb) !important;
    color: var(--ab-accent, #dd5b0b) !important;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
}

.site-footer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav li {
    margin-bottom: .55rem;
}

.site-footer__nav a {
    display: inline-block;
    color: #374151;
    font-size: 1.35rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease, padding-inline-start .2s ease;
}

.site-footer__nav a:hover,
.site-footer__line a:hover,
.site-footer__legal a:hover {
    color: var(--ab-accent, #dd5b0b) !important;
}

.site-footer__nav a:hover {
    padding-inline-start: 4px;
}

.site-footer__address {
    margin: 0;
    font-style: normal;
}

.site-footer__line {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0 0 .75rem;
    color: #4b5563;
    font-size: 1.35rem;
    line-height: 1.65;
}

.site-footer__line i {
    min-width: 1.4rem;
    margin-top: .2rem;
    color: var(--ab-accent, #dd5b0b);
    text-align: center;
}

.site-footer__line a {
    overflow-wrap: anywhere;
    color: inherit;
    text-decoration: none;
}

.site-footer__cta {
    margin-top: 1rem;
    padding: .75rem 1.5rem !important;
    font-size: 1.3rem !important;
}

.site-footer__social {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(247, 154, 56, .15);
}

.site-footer__social-label {
    display: block;
    margin-bottom: .65rem;
    color: #6b7280;
    font-size: 1.2rem;
}

.site-footer__social-links {
    display: flex;
    gap: .65rem;
}

.site-footer__social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--ab-border, #e5e7eb) !important;
    border-radius: 50%;
    background: var(--ab-bg, #fff) !important;
    color: var(--ab-text, #222) !important;
    font-size: 1.5rem;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.site-footer__social-links a:hover {
    border-color: var(--ab-accent, #dd5b0b) !important;
    background: var(--ab-accent, #dd5b0b) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.site-footer__bottom {
    padding: 1.15rem 0;
    border-top: 1px solid var(--ab-border-light, #ebebeb);
    background: transparent !important;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}

.site-footer__copy {
    margin: 0;
    color: #6b7280;
    font-size: 1.2rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    font-size: 1.2rem;
}

.site-footer__legal a {
    color: #4b5563;
    text-decoration: none;
}

.site-footer__legal span {
    color: rgba(0, 0, 0, .2);
}

/* الهاتف: إخفاء روابط سريعة + خدمات الوكالة، مع إبقاء عنوان الشركة */
@media (max-width: 991px) {
    .site-footer .col-lg-2.site-footer__col,
    .site-footer .col-lg-3.site-footer__col:not(.site-footer__contact) {
        display: none !important;
    }
    .site-footer .site-footer__contact {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .site-footer__main {
        padding: 2.5rem 0 2rem;
    }

    .site-footer__logo img {
        max-width: min(140px, 100%) !important;
        max-height: 40px !important;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__legal {
        justify-content: center;
    }
}
