/* --- Modern Footer Styles --- */
.site-footer {
    background-color: #2d3748; /* A deep, modern blue-grey */
    color: #a0aec0; /* A light, readable grey for text */
    padding: 60px 40px 20px 40px;
    font-family: 'Rubik', sans-serif;
    line-height: 1.7;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Top Section: Title & Core Principles --- */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #4a5568;
}

.footer-title-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.footer-title-section p {
    font-size: 1.25rem;
    color: #ED8C00; /* LIXI Orange */
    margin: 0;
}

.footer-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.principle-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.principle-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* --- Middle Section: Proprietary Statement --- */
.footer-proprietary {
    font-size: 0.8rem;
    color: #718096; /* Even lighter grey for less important text */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-proprietary strong {
    color: #a0aec0;
}

.footer-proprietary a {
    color: #a0aec0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-proprietary a:hover {
    color: #ED8C00;
}

/* --- Sitemap Section from menu.js (Compact & Clean) --- */
.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* More flexible columns */
    gap: 20px 40px; /* Adjust vertical and horizontal gap */
    padding: 40px 0; /* Use gap and padding for spacing */
    border-bottom: 1px solid #4a5568;
    padding-left: 13%;
}

.sitemap-column h4 {
    font-size: 1rem; /* Slightly smaller heading */
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 12px 0;
    padding-bottom: 0;
    border-bottom: none; /* Remove the underline for a cleaner look */
}

.sitemap-column h4 a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-header-icon {
    height: 48px;
    width: 48px;
}

.sitemap-column h4 a:hover .sitemap-header-icon {
    /* Optional: Add a filter or effect on hover if desired */
    /* Example: filter: brightness(1.2); */
}

.sitemap-column h4 a:hover {
    color: #ED8C00;
}

.sitemap-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Tighter spacing between links */
}

.sitemap-links a {
    color: #a0aec0; /* Set link color to match footer text */
    text-decoration: none;
    font-size: 0.9rem; /* Slightly smaller link font */
    transition: color 0.2s ease;
}

/* --- Bottom Section: Links & Copyright --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px; /* This padding is below the new border */
    border-top: 1px solid #4a5568;
}

.sitemap-links a:hover {
    color: #ffffff; /* Brighten on hover */
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #718096;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-principles {
        grid-template-columns: 1fr;
    }

    .footer-sitemap {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom-links {
        justify-content: center;
        order: 2;
    }

    .footer-copyright {
        order: 1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px 20px;
    }

    .footer-sitemap {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}