/* ========================================= */
/* Footer Styles                             */
/* ========================================= */

.site-footer {
    background-color: var(--clr-dark);
    color: var(--clr-bg);
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 4px solid var(--clr-accent); /* Bright yellow top border */
    direction: rtl;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand Section */
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-accent); /* Yellow Logo */
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    width: fit-content;
}
.footer-logo img {
    width: 90px;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.footer-desc {
    color: rgba(248, 244, 237, 0.7); /* Muted Cream */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(248, 244, 237, 0.1);
    color: var(--clr-bg);
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.social-links a:hover {
    background: var(--clr-accent);
    color: var(--clr-dark);
    transform: translateY(-3px);
}

/* Titles */
.footer-title {
    font-size: 1.2rem;
    color: var(--clr-bg);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--clr-accent);
    border-radius: 2px;
}

/* Links List */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(248, 244, 237, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-right 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-right: 8px; /* Cute slide effect on hover */
}

/* Contact Info */
.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(248, 244, 237, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    stroke: var(--clr-accent); /* Yellow icons */
    flex-shrink: 0;
    margin-top: 3px;
}

/* Licenses */
.license-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.license-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.license-box:hover {
    transform: scale(1.05);
}

.license-box img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

/* Bottom Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem;
    color: rgba(248, 244, 237, 0.5);
    font-size: 0.9rem;
}

/* ========================================= */
/* Responsive Footer                         */
/* ========================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Switch to 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack into 1 column on phones */
        gap: 2.5rem;
    }
    .footer-container {
        padding: 0px 1rem;
    }
}
@media (max-width: 768px) {
    /* 1. Shrink Fonts & Elements */
    .footer-logo {
        font-size: 1.5rem; /* Down from 2rem */
    }
    
    .footer-logo img {
        width: 70px; /* Down from 90px */
    }

    .footer-title {
        font-size: 1.1rem; /* Down from 1.2rem */
    }

    .footer-desc, 
    .contact-info li, 
    .footer-links a {
        font-size: 0.85rem; /* Down from 0.95rem */
    }

    .footer-bottom {
        font-size: 0.8rem; /* Down from 0.9rem */
    }

    /* 2. Center Alignment for Footer */
    .footer-col {
        text-align: center;
        align-items: center; /* Centers flex children like the logo and social links */
    }

    /* Center the flexbox lists */
    .social-links,
    .license-images {
        justify-content: center;
    }

    /* Center contact info items */
    .contact-info li {
        justify-content: center;
    }

    /* 3. Fix the yellow decorative line under titles */
    .footer-title::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%); /* Pulls the line exactly to the center */
    }

    /* Remove the hover slide effect on mobile so it doesn't jump off-center */
    .footer-links a:hover {
        padding-right: 0; 
    }
}