/* ========================================
   FIXED & POLISHED LUXURY FOOTER (v3.0)
   ======================================== */
.site-footer {
    position: relative;
    background-color: #050505;
    /* Deep black foundation */
    color: #fff;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
    direction: rtl;
    /* Arabic Default */
}

/* LTR Support */
html[dir="ltr"] .site-footer {
    direction: ltr;
}

/* Texture Pattern - Subtle Professional Dot Grid */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

/* === NEWSLETTER SECTION === */
.footer-newsletter {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 2rem;
    /* Increased size */
    color: var(--accent);
    /* Gold */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    /* Increased spacing */
    font-size: 1.2rem;
    /* Increased size */
}

.newsletter-form {
    display: flex;
    gap: 0;
    /* Connected input/button */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50px;
    padding: 5px;
    /* Slightly more padding around the pill */
    transition: 0.3s;
    max-width: 700px;
    /* Increased from 500px */
    width: 90%;
    /* Ensure it takes up space on smaller screens */
    margin: 0 auto;
}

.newsletter-form:hover,
.newsletter-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.newsletter-form input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 16px 25px !important;
    /* Larger touch target */
    font-size: 1.1rem;
    /* Larger text */
    outline: none !important;
    text-align: center;
}

.newsletter-form button {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0 40px;
    /* Wider button */
    font-weight: 800;
    font-size: 1.1rem;
    /* Larger text */
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #fff;
}

/* === MAIN FOOTER LAYOUT (THE FIX) === */
.footer-main {
    padding: 4rem 5%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: flex-start;
}

/* 1. Brand Section (Left Side) */
.footer-brand-section {
    flex: 1;
    max-width: 350px;
    /* Keep brand section distinct */
}

.footer-brand-section .logo {
    font-size: 2.2rem;
    font-family: var(--font-ui);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent);
    text-decoration: none;
}

.footer-brand-section .logo span:first-child {
    color: var(--accent);
}

.brand-desc {
    color: #999;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: #fff;
    transform: translateY(-3px);
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-3px);
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    transform: translateY(-3px);
    border: none;
    box-shadow: 0 5px 15px rgba(214, 36, 159, 0.3);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

/* 2. Links Grid (Right Side) */
.footer-links-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Equal Columns */
    gap: 2rem;
}

/* Link Columns */
.link-group h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 700;
}

.link-group h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 8px;
}

.link-group ul li {
    margin-bottom: 0.8rem;
}

.link-group ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    font-weight: 400;
}

.link-group ul li a:hover {
    color: var(--accent);
    padding-right: 5px;
    /* RTL Slide */
}

html[dir="ltr"] .link-group ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
    /* LTR Slide */
}

/* Contact Specifics */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-list li svg {
    color: var(--accent);
    min-width: 18px;
    margin-top: 2px;
}

/* === TRUST BADGES (Certification Row) === */
.footer-trust-badges {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: #020202;
    /* Slightly darker */
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 30px;
}

.badge-item:hover {
    border-color: var(--accent);
    color: #fff;
}

.badge-item svg {
    width: 20px;
    height: 20px;
}

/* === FOOTER BOTTOM === */
.footer-bottom {
    background: #000;
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #555;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === MOBILE RESPONSIVE (CRITICAL) === */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand-section {
        max-width: 100%;
        text-align: center;
    }

    .footer-brand-section .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Keep grid on tablets, stick to 1 col on mobile */
    .footer-links-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {

    /* Full Mobile Reset */
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
    }

    .newsletter-form input {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid #333 !important;
        border-radius: 5px;
        margin-bottom: 10px;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
        padding: 12px 0;
        border-radius: 5px;
    }

    /* Links become single column accordion-style visually */
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .link-group h4::after {
        margin: 8px auto 0;
        /* Center underline */
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-trust-badges {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .badge-item {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}