/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
    position: relative;
    background: var(--jemira-primary-dark);
    color: rgba(255, 255, 255, 0.85);
}

.footer__wave {
    color: var(--jemira-primary-dark);
    margin-top: -1px;
}

.footer__wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer__main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-2xl);
}


/* ==========================================================
   Footer Brand
   ========================================================== */

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer__brand img {
    border-radius: var(--radius-circle);
    flex-shrink: 0;
}

.footer__brand-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.footer__tagline {
    display: inline-block;
    background: rgba(76, 175, 80, 0.2);
    color: var(--jemira-accent-light);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.footer__desc {
    font-size: var(--text-sm);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-base);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__social a:hover {
    background: var(--jemira-primary-light);
    color: #fff;
    transform: translateY(-2px);
}


/* ==========================================================
   Footer Columns
   ========================================================== */

.footer__heading {
    font-size: var(--text-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--jemira-accent);
    border-radius: 1px;
}

[dir="ltr"] .footer__heading::after {
    right: auto;
    left: 0;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast), padding-inline-start var(--transition-fast);
    display: inline-block;
}

.footer__links a:hover {
    color: var(--jemira-accent-light);
    padding-inline-start: var(--space-sm);
}

.footer__contact li {
    margin-bottom: var(--space-sm);
}

.footer__contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}

.footer__contact a:hover {
    color: var(--jemira-accent-light);
}

.footer__contact i {
    font-size: var(--text-base);
    color: var(--jemira-accent);
    flex-shrink: 0;
}


/* ==========================================================
   Footer Regions (KSA Map)
   ========================================================== */

.footer__regions {
    text-align: center;
}

.footer__ksa-map {
    max-width: 340px;
    margin: 0 auto var(--space-sm);
}

.footer__ksa-map svg {
    width: 100%;
    height: auto;
}

.footer__regions-text {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}


/* ==========================================================
   Footer Policies Row
   ========================================================== */

.footer__policies {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-md) 0;
}

.footer__policies-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.footer__policies a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition-fast);
}

.footer__policies a:hover {
    color: var(--jemira-accent-light);
}

.footer__policies-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}


/* ==========================================================
   Footer Bottom (Copyright + Credit)
   ========================================================== */

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-lg) 0;
}

.footer__bottom-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.footer__credit {
    font-size: var(--text-xs) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 0.05em;
}

.footer__credit a {
    color: var(--jemira-gold-light);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer__credit a:hover {
    color: var(--jemira-gold);
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 991px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* Brand col: full width centered */
    .footer__col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    /* Links + Contact: side by side (natural 2-col) */

    /* Map col: full width centered */
    .footer__col:last-child {
        grid-column: 1 / -1;
    }

    .footer__main {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .footer__brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__brand img { width: 48px; height: 48px; }
    .footer__brand-name { font-size: var(--text-base); }
    .footer__desc { font-size: var(--text-xs); text-align: center; }

    .footer__col:first-child .footer__heading::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer__heading { font-size: var(--text-sm); margin-bottom: var(--space-md); }
    .footer__links a, .footer__contact a { font-size: var(--text-xs); }
}
