/* ============================================
   ROBEL PROFESSIONAL FOOTER - VERSION 2.0
   Date: February 2026
   Designer: George Gamal Helmy
   ============================================ */

/* ===== COLOR PALETTE ===== */
:root {
    --footer-bg-dark: #1a2332;
    --footer-bg-charcoal: #0f1419;
    --footer-gold: #d4af37;
    --footer-orange: #f7931e;
    --footer-text-light: #b8b8b8;
    --footer-text-muted: #888888;
    --footer-text-white: #ffffff;
}

/* ===== MAIN FOOTER CONTAINER ===== */
.robel-footer {
    position: relative;
    background: linear-gradient(135deg, var(--footer-bg-dark) 0%, var(--footer-bg-charcoal) 100%);
    color: var(--footer-text-light);
    font-family: 'Cairo', 'Poppins', sans-serif;
    border-top: 3px solid transparent;
    overflow: hidden;
}

/* Top Border Gradient */
.robel-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-gold) 0%, var(--footer-orange) 50%, var(--footer-gold) 100%);
    z-index: 10;
}

/* Container */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px 30px;
}

/* ===== FOOTER GRID LAYOUT ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* ===== SECTION HEADINGS ===== */
.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--footer-gold);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--footer-orange);
}

/* RTL Support */
[dir="rtl"] .footer-section h3::after {
    right: 0;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
}

/* ===== SECTION 1: COMPANY SNAPSHOT ===== */
.footer-company {
    grid-column: span 1;
}

.footer-company p {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--footer-text-light);
}

.footer-company .highlight {
    color: var(--footer-gold);
    font-weight: 600;
}

/* ===== SECTION 2 & 3: LINKS LIST ===== */
.footer-links,
.footer-projects {
    grid-column: span 1;
}

.footer-links ul,
.footer-projects ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-projects li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-projects a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a i,
.footer-projects a i {
    color: var(--footer-orange);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-projects a:hover {
    color: var(--footer-gold);
}

[dir="rtl"] .footer-links a:hover,
[dir="rtl"] .footer-projects a:hover {
    transform: translateX(-5px);
}

[dir="ltr"] .footer-links a:hover,
[dir="ltr"] .footer-projects a:hover {
    transform: translateX(5px);
}

/* ===== SECTION 4: CONTACT INFORMATION ===== */
.footer-contact {
    grid-column: span 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--footer-gold);
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
}

.contact-item a {
    color: var(--footer-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--footer-gold);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--footer-gold);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--footer-gold);
    color: var(--footer-bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ===== SECTION 5: DESIGNER INFORMATION ===== */
.footer-designer {
    grid-column: span 1;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.footer-designer .designer-info {
    margin-bottom: 15px;
}

.footer-designer .contact-item {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.designer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.designer-actions a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--footer-gold);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.designer-actions a:hover {
    background: var(--footer-gold);
    color: var(--footer-bg-dark);
    transform: translateY(-2px);
}

/* ===== FOOTER BOTTOM SECTION ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

/* Trust Tagline */
.trust-tagline {
    font-size: 1.1rem;
    color: var(--footer-gold);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Copyright Notice */
.copyright {
    font-size: 0.9rem;
    color: var(--footer-text-muted);
    margin-bottom: 20px;
}

/* Statistics Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--footer-text-light);
}

.stat-item i {
    color: var(--footer-orange);
    font-size: 1rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Tablet (992px - 1200px) */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .footer-company {
        grid-column: 1 / -1;
    }

    .footer-container {
        padding: 50px 25px 25px;
    }
}

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-company {
        grid-column: 1 / -1;
    }

    .footer-designer {
        grid-column: 1 / -1;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-company,
    .footer-links,
    .footer-projects,
    .footer-contact,
    .footer-designer {
        grid-column: 1;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .footer-section h3::after,
    [dir="ltr"] .footer-section h3::after {
        left: 50%;
        right: auto;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-company p {
        text-align: center;
    }

    .footer-links ul,
    .footer-projects ul {
        text-align: center;
    }

    .footer-links a,
    .footer-projects a {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        justify-content: center;
    }

    .footer-container {
        padding: 40px 20px 20px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .footer-container {
        padding: 30px 15px 15px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .designer-actions {
        flex-direction: column;
    }

    .designer-actions a {
        width: 100%;
    }

    .trust-tagline {
        font-size: 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus States */
.footer-links a:focus,
.footer-projects a:focus,
.contact-item a:focus,
.social-links a:focus,
.designer-actions a:focus {
    outline: 2px solid var(--footer-gold);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .robel-footer {
        background: #000;
    }

    .footer-section h3,
    .trust-tagline {
        color: #ffd700;
    }

    .footer-links a,
    .footer-projects a,
    .contact-item a {
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .robel-footer {
        display: none !important;
    }
}