/* ==========================================================================
   AlMohamy Theme - Footer
   ========================================================================== */

/* ── Footer Container ── */
.al-footer {
    background: var(--al-gradient-midnight);
    color: var(--al-color-white);
    position: relative;
    overflow: hidden;
}

.al-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ── CTA Banner Above Footer ── */
.al-footer__cta {
    background: var(--al-gradient-navy-blue);
    padding-block: var(--al-space-2xl);
    text-align: center;
    position: relative;
}

.al-footer__cta h2 {
    color: var(--al-color-white);
    margin-bottom: var(--al-space-sm);
}

.al-footer__cta p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--al-space-lg);
}

.al-footer__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--al-space-sm);
}

/* ── Footer Main ── */
.al-footer__main {
    padding-block: var(--al-space-2xl);
    position: relative;
    z-index: 1;
}

.al-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--al-space-xl);
}

/* ── Footer Brand Column ── */
.al-footer__brand {
    padding-inline-end: var(--al-space-lg);
}

.al-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: var(--al-space-md);
}

.al-footer__logo img {
    height: 44px;
    width: auto;
}

.al-footer__logo-text {
    font-size: 1.5rem;
    font-weight: var(--al-font-weight-extrabold);
    color: var(--al-color-white);
}

.al-footer__logo-text span {
    color: var(--al-color-gold);
}

.al-footer__desc {
    color: rgba(255,255,255,0.6);
    font-size: var(--al-text-sm);
    line-height: var(--al-leading-relaxed);
    margin-bottom: var(--al-space-lg);
}

.al-footer__social {
    display: flex;
    gap: var(--al-space-sm);
}

.al-footer__social a {
    width: 42px;
    height: 42px;
    border-radius: var(--al-radius-md);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    transition: all var(--al-transition-base);
    text-decoration: none;
}

.al-footer__social a:hover {
    background: var(--al-color-electric-blue);
    color: var(--al-color-white);
    transform: translateY(-3px);
}

/* ── Footer Links Column ── */
.al-footer__column h4 {
    color: var(--al-color-white);
    font-size: var(--al-text-base);
    font-weight: var(--al-font-weight-bold);
    margin-bottom: var(--al-space-md);
    position: relative;
    padding-bottom: var(--al-space-sm);
}

.al-footer__column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--al-gradient-gold);
    border-radius: var(--al-radius-full);
}

[dir="rtl"] .al-footer__column h4::after {
    right: 0;
    left: auto;
}

.al-footer__column ul {
    list-style: none;
    padding: 0;
}

.al-footer__column ul li {
    margin-bottom: 10px;
}

.al-footer__column ul li a {
    color: rgba(255,255,255,0.6);
    font-size: var(--al-text-sm);
    text-decoration: none;
    transition: all var(--al-transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.al-footer__column ul li a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--al-color-gold);
    transition: width var(--al-transition-base);
}

.al-footer__column ul li a:hover {
    color: var(--al-color-white);
    padding-inline-start: 4px;
}

.al-footer__column ul li a:hover::before {
    width: 12px;
}

/* ── Contact Info in Footer ── */
.al-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--al-space-md);
    color: rgba(255,255,255,0.6);
    font-size: var(--al-text-sm);
}

.al-footer__contact-item i {
    color: var(--al-color-gold);
    font-size: 1rem;
    margin-top: 4px;
    min-width: 20px;
}

.al-footer__contact-item a {
    color: rgba(255,255,255,0.6);
    transition: color var(--al-transition-fast);
}

.al-footer__contact-item a:hover {
    color: var(--al-color-white);
}

/* ── Footer Bottom Bar ── */
.al-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-block: var(--al-space-md);
    position: relative;
    z-index: 1;
}

.al-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--al-space-sm);
}

.al-footer__copyright {
    color: rgba(255,255,255,0.4);
    font-size: var(--al-text-xs);
}

.al-footer__copyright a {
    color: var(--al-color-gold);
    text-decoration: none;
}

.al-footer__bottom-links {
    display: flex;
    gap: var(--al-space-md);
}

.al-footer__bottom-links a {
    color: rgba(255,255,255,0.4);
    font-size: var(--al-text-xs);
    text-decoration: none;
    transition: color var(--al-transition-fast);
}

.al-footer__bottom-links a:hover {
    color: var(--al-color-white);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .al-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .al-footer__brand {
        grid-column: 1 / -1;
        padding-inline-end: 0;
        text-align: center;
    }
    .al-footer__social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .al-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .al-footer__column h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .al-footer__column ul li a {
        justify-content: center;
    }
    .al-footer__column ul li a:hover {
        padding-inline-start: 0;
    }
    .al-footer__contact-item {
        justify-content: center;
    }
    .al-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .al-footer__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}