/* =========================================================
   FOOTER.CSS — Luxurious footer for all pages
   Requires: variables.css
========================================================= */

.site-footer {
    position: relative;
    padding: 70px 0 30px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98) 0%, rgba(8, 15, 32, 0.99) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

.site-footer::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.footer-logo span {
    color: var(--accent-light);
}

.footer-logo picture,
.footer-logo img {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 600px) {
    .footer-logo img {
        width: 140px;
    }
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col p,
.footer-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-light);
    font-weight: 500;
    word-break: break-all;
}

.footer-email svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

.footer-contact-text {
    margin-top: 12px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-light);
}

/* Collapsible category / model menu in footer */
.footer-categories {
    width: 100%;
}

.footer-categories summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 0 12px;
    user-select: none;
}

.footer-categories summary::-webkit-details-marker {
    display: none;
}

.footer-categories summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: var(--accent-light);
    transition: transform 0.3s ease;
}

.footer-categories[open] summary::after {
    content: "−";
}

.footer-categories > div,
.footer-categories-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 4px;
}

.footer-categories > div a,
.footer-categories-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 6px 0;
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        gap: 16px;
    }
}

/* ================= MOBILE LUXURY FOOTER ================= */

@media (max-width: 640px) {
    .site-footer {
        padding: 42px 0 24px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        margin-bottom: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-logo img {
        width: 150px;
        margin: 0 auto;
    }

    .footer-desc {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.65);
    }

    .footer-social {
        justify-content: center;
        margin-top: 8px;
        gap: 14px;
    }

    .social-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .social-icon svg {
        width: 21px;
        height: 21px;
    }

    .social-icon:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3 {
        font-size: 13px;
        margin-bottom: 14px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: inline-block;
        width: 100%;
    }

    .footer-col a {
        justify-content: center;
        font-size: 13px;
        padding: 5px 0;
        margin-bottom: 2px;
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-col a:hover {
        transform: translateY(-2px);
    }

    .footer-bottom {
        padding-top: 22px;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .copyright {
        font-size: 12px;
        text-align: center;
        color: rgba(255, 255, 255, 0.5);
    }

    .footer-legal {
        justify-content: center;
        gap: 18px;
    }

    .footer-legal a {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 400px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-col h3 {
        margin-bottom: 10px;
    }
}

/* ================= RTL FOOTER ================= */

[dir="rtl"] .footer-main {
    direction: rtl;
}

[dir="rtl"] .footer-col a:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .footer-legal {
    direction: rtl;
}
