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

.site-footer {
    position: relative;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(172, 5, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #1c1c2e 0%, #16162a 60%, #121226 100%);
    color: rgba(255, 255, 255, 0.85);
}

/* Wave SVG — animated color shift */
.footer__wave {
    color: #1c1c2e;
    margin-top: -1px;
}

.footer__wave svg {
    display: block;
    width: 100%;
    height: 60px;
    filter: drop-shadow(0 -2px 8px rgba(28, 28, 46, 0.3));
    animation: waveColorShift 8s ease-in-out infinite alternate;
}

@keyframes waveColorShift {
    0% {
        filter: drop-shadow(0 -2px 8px rgba(28, 28, 46, 0.3));
        color: #1c1c2e;
    }
    50% {
        filter: drop-shadow(0 -3px 12px rgba(172, 5, 64, 0.15));
        color: #1e1c30;
    }
    100% {
        filter: drop-shadow(0 -2px 10px rgba(212, 168, 67, 0.12));
        color: #1c1c2e;
    }
}

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

/* Footer grid — improved column gaps */
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-2xl) var(--space-xl);
    align-items: start;
}


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

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

/* Logo glow on hover */
.footer__brand img {
    border-radius: var(--radius-circle);
    flex-shrink: 0;
    transition: filter var(--transition-base), transform var(--transition-base);
}

.footer__brand:hover img {
    filter: drop-shadow(0 0 12px rgba(212, 168, 67, 0.5)) drop-shadow(0 0 24px rgba(172, 5, 64, 0.3));
    transform: scale(1.05);
}

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

.footer__tagline {
    display: inline-block;
    background: rgba(212, 168, 67, 0.2);
    color: var(--flow-accent-light);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 4px;
}

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

/* Social icons — colored hover states */
.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 {
    transform: translateY(-3px);
}

/* Twitter / X */
.footer__social a[href*="twitter.com"]:hover,
.footer__social a[href*="x.com"]:hover {
    background: #1da1f2;
    color: #fff;
    box-shadow: 0 0 16px rgba(29, 161, 242, 0.4), 0 4px 12px rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.3);
}

/* Instagram */
.footer__social a[href*="instagram.com"]:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    color: #fff;
    box-shadow: 0 0 16px rgba(221, 42, 123, 0.4), 0 4px 12px rgba(221, 42, 123, 0.2);
    border-color: rgba(221, 42, 123, 0.3);
}

/* Facebook */
.footer__social a[href*="facebook.com"]:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 0 16px rgba(24, 119, 242, 0.4), 0 4px 12px rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.3);
}

/* LinkedIn */
.footer__social a[href*="linkedin.com"]:hover {
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 0 16px rgba(10, 102, 194, 0.4), 0 4px 12px rgba(10, 102, 194, 0.2);
    border-color: rgba(10, 102, 194, 0.3);
}

/* Fallback for unmatched social links */
.footer__social a:not([href*="twitter.com"]):not([href*="x.com"]):not([href*="instagram.com"]):not([href*="facebook.com"]):not([href*="linkedin.com"]):hover {
    background: var(--flow-primary-light);
    color: #fff;
    box-shadow: 0 0 14px rgba(172, 5, 64, 0.4), 0 4px 12px rgba(172, 5, 64, 0.2);
}


/* ==========================================================
   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(--flow-accent);
    border-radius: 1px;
}

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

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

/* Footer links — underline slide-in animation on hover */
.footer__links a {
    position: relative;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease, padding-inline-start 0.3s ease;
    display: inline-block;
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--flow-accent-light), transparent);
    transition: width 0.3s ease;
}

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

.footer__links a:hover::after {
    width: 100%;
}

/* Contact items — icon colored circles with hover scale */
.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(--flow-accent-light);
}

.footer__contact i {
    font-size: var(--text-sm);
    color: var(--flow-accent);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    background: rgba(212, 168, 67, 0.12);
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.footer__contact a:hover i {
    transform: scale(1.15);
    background: rgba(212, 168, 67, 0.2);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.25);
}


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

.footer__regions {
    text-align: center;
}

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

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

/* Pulsing map dots — city dots pulse on hover */
.footer__ksa-map svg circle {
    animation: mapDotPulse 3s ease-in-out infinite;
    transition: r 0.3s ease, fill-opacity 0.3s ease;
}

.footer__ksa-map svg circle:nth-child(even) {
    animation-delay: -1.5s;
}

.footer__ksa-map:hover svg circle {
    animation: mapDotPulseActive 1.5s ease-in-out infinite;
}

.footer__ksa-map:hover svg circle:nth-child(2) { animation-delay: 0.15s; }
.footer__ksa-map:hover svg circle:nth-child(3) { animation-delay: 0.3s; }
.footer__ksa-map:hover svg circle:nth-child(4) { animation-delay: 0.45s; }
.footer__ksa-map:hover svg circle:nth-child(5) { animation-delay: 0.6s; }

@keyframes mapDotPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes mapDotPulseActive {
    0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 0 transparent); }
    50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.6)); }
}

/* Regions text — subtle fade in */
.footer__regions-text {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    animation: regionsFadeIn 1s ease-out 0.5s both;
}

@keyframes regionsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(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(--flow-accent-light);
}

/* Divider dot pulse */
.footer__policies-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: dotPulse 2.5s ease-in-out infinite;
}

.footer__policies-dot:nth-child(2) { animation-delay: 0.3s; }
.footer__policies-dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    50% { background: rgba(212, 168, 67, 0.5); transform: scale(1.3); }
}


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

/* Copyright — fade text */
.footer__bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Credit — brighter "ABN" link */
.footer__credit {
    font-size: var(--text-xs) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    letter-spacing: 0;
}

.footer__credit a {
    color: var(--flow-gold-light);
    font-weight: 700;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    text-shadow: 0 0 0 transparent;
}

.footer__credit a:hover {
    color: var(--flow-gold);
    text-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
}


/* ==========================================================
   Floating Buttons — stronger shadows, bounce entrance
   ========================================================== */

.floating-btn {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 0 16px rgba(172, 5, 64, 0.2);
    animation: floatingBounceIn 0.6s var(--ease-out) both;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.15s;
}

.floating-btn:hover {
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(172, 5, 64, 0.3);
}

@keyframes floatingBounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.05);
    }
    80% {
        transform: translateY(2px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


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

@media (max-width: 991px) {
    /* Improved column gaps and alignment on tablet */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl) var(--space-lg);
    }

    .footer__col:first-child {
        grid-column: 1 / -1;
    }
}

@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); }

    .footer__contact i {
        width: 24px;
        height: 24px;
        font-size: var(--text-xs);
    }

    .footer__social a {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer__wave svg { animation: none; }
    .footer__ksa-map svg circle { animation: none; }
    .footer__regions-text { animation: none; opacity: 1; transform: none; }
    .footer__policies-dot { animation: none; }
    .floating-btn { animation: none; opacity: 1; transform: none; }
}