
/* =========================================
   FOOTER MODERN STYLES
   ========================================= */

.main-footer {
    background-color: #152922; /* Darker Forest Green for footer distinction */
    color: var(--color-white);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Connect to previous section */
}

/* Footer Content Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Brand wider, others equal */
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Column 1: Brand */
.footer-brand img {
    width: auto; /* Fix for "schiacciato" look */
    height: 50px; /* Keep consistent height */
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Keep white logo */
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.footer-brand .tagline {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* Muted white */
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-icons-footer {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-accent); /* Changed from primary to accent */
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Columns: Links & Contacts */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white); /* Changed from primary to visible white */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-accent); /* Changed from primary (invisible) to accent */
    padding-left: 5px; /* Slight movement on hover */
}

/* Contact Info Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--color-accent); /* Changed from primary (invisible) to accent */
    margin-top: 2px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--color-accent); /* Changed from primary to accent */
}

/* Responsive */

/* Desktop Credit Styling */
.desktop-separator {
    margin: 0 10px;
    opacity: 0.5;
}

.developer-credit {
    display: inline;
    font-size: 0.95rem; /* Slightly larger as requested */
}
/* Responsive - Compact Mobile */
@media (max-width: 768px) {
    .main-footer {
        padding-top: var(--spacing-lg); /* Reduced from xl */
        padding-bottom: var(--spacing-sm); /* Reduced from md */
        margin-top: var(--spacing-lg); /* Reduced separation */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Tighter gap */
        text-align: center;
        margin-bottom: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }

    .footer-brand img {
        margin: 0 auto 1rem auto;
        display: block;
    }

    .footer-brand h3 {
        font-size: 1.25rem; /* Smaller brand */
        margin-bottom: 0.25rem;
    }
    
    .footer-brand .tagline {
        margin-bottom: 0.5rem;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .footer-col h4 {
        margin-bottom: 0.75rem; /* Tighter headers */
        font-size: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .contact-item {
        justify-content: center; 
        text-align: center;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-top: 0;
    }

    .footer-legal {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center;
        gap: 0.5rem;
    }

    .desktop-separator {
        display: none; /* Hide separator on mobile */
    }

    .developer-credit { 
        width: 100%; /* Force new line */
        margin-top: 0.25rem;
        display: block;
    }

    .footer-legal a {
        display: inline-block;
        margin: 0 0.5rem;
    }
}
