/* ═══════════════════════════════════════
   FOOTER SECTION
═══════════════════════════════════════ */
.main-footer {
    background: #050b1d;
    /* Very dark navy base */
    color: #ffffff;
    padding: 80px 0 0;
    font-family: 'Cairo', sans-serif;
    position: relative;
    direction: ltr;
    /* Layout follows LTR visual flow per design */
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col {
    direction: rtl;
    /* Keep Arabic text right-aligned */
}

/* Common Header */
.footer-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Col 1: Contact Detail */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.footer-hours-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-hours-item i {
    color: #F80000;
    margin-top: 5px;
    font-size: 1.1rem;
}

/* Col 2: Services Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #F80000;
    transform: translateX(-5px);
}

/* Col 3: Cairo Office */
.footer-office-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #b0b0b0;
}

.footer-info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F80000;
    transition: all 0.3s ease;
}

.footer-info-item:hover i {
    background: #F80000;
    color: #fff;
    transform: rotate(15deg);
}

.footer-info-item span {
    font-size: 0.95rem;
}

/* Col 4: Map Graphic */
.footer-map-wrapper {
    position: relative;
    width: 100%;
}

.footer-map-img {
    width: 100%;
    height: auto;
    filter: brightness(0.6) opacity(0.5);
    transition: all 0.5s ease;
}

.footer-map-wrapper:hover .footer-map-img {
    filter: brightness(0.9) opacity(0.8);
}

/* Dot indicators (visual only mockup per design) */
.map-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #F80000;
    border-radius: 50%;
    box-shadow: 0 0 10px #F80000;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ─── BOTTOM BAR ───────────────────── */
.footer-bottom {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: stretch;
    min-height: 80px;
}

/* Left Brand Box (Position 1 in LTR) */
.footer-brand-box {
    background: #F80000;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    order: -1;
    /* Ensure it stays far left in flex */
}

.footer-brand-logo {
    width: 40px;
}

/* Copyright Center */
.footer-copyright {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    padding: 20px;
}

/* Scroll Top Button (Position End in LTR) */
.scroll-top-btn {
    background: #F80000;
    width: 80px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    order: 2;
    /* Far right in flex */
}

.scroll-top-btn:hover {
    background: #cc0000;
}

.scroll-top-btn:hover i {
    transform: translateY(-5px);
}

/* ─── FLOATING CONTACT ───────────────────── */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Positioned on the left per design image */
    right: auto;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    direction: ltr;
}

.floating-contact:hover {
    transform: scale(1.05);
}

.floating-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    /* Avatar on the left */
}

.floating-avatar img {
    width: 85%;
    object-fit: contain;
}

.floating-label {
    background: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
    /* Label on the right */
}

/* Tooltip arrow pointing right now */
.floating-label::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

.floating-label i {
    color: #F80000;
}

/* Responsive Footer */
@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand-box {
        justify-content: center;
        padding: 20px;
    }

    .scroll-top-btn {
        width: 100%;
        padding: 20px;
    }

    .floating-label {
        display: none;
        /* Hide label on mobile to save space */
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-hours-item,
    .footer-info-item {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: scale(1.1);
    }
}