/* 11. Footer ========================= */
/* Footer with quick links, legal info, and copyright. */
.footer {
    background: #1a202c;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* More compact footer columns */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: #f9fafb;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

/* Ensure footer links (including hash links like #services, #about) do not show default blue/underline */
/* Ensure consistent styling for all footer list links (including hash links) */
.footer-section ul li a:link,
.footer-section ul li a:visited {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #a0aec0;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #a0aec0;
}

.footer-contact {
    margin-top: 0.5rem;
}

.footer-contact a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #a0aec0;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 0.75rem;
    text-align: center;
}

.footer-bottom p {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: #f9fafb;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0;
    }
    
    .footer-section ul li a {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        white-space: nowrap;
    }
    
    .footer-section ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .footer-contact {
        margin-top: 0.5rem;
    }
    
    .footer-contact a {
        display: inline-block;
        margin: 0 0.5rem 0.25rem 0;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        font-size: 0.75rem;
    }
    
    .footer-contact a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .footer-bottom {
        padding-top: 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
    .footer {
        padding: 0.75rem 0 0.5rem;
    }
    
    .footer-content {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section {
        padding: 0.25rem 0;
    }
    
    .footer-section h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-section p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-section ul {
        gap: 0.75rem;
    }
    
    .footer-section ul li a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Ultra-compact footer for very small screens */
@media (max-width: 360px) {
    .footer {
        padding: 0.5rem 0 0.25rem;
    }
    
    .footer-content {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section {
        padding: 0.15rem 0;
    }
    
    .footer-section h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-section p {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-section ul {
        gap: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
    
    .footer-contact a {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-bottom {
        padding-top: 0.4rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}