/* Footer Variables (optional, but good practice if you want to reuse specific footer colors) */
:root {
    /* ... existing variables ... */
    --footer-bg: #222E3C; /* A dark blue-grey for the footer background */
    --footer-text-color: #B0B5BB; /* Light grey for general text */
    --footer-link-color: #B0B5BB; /* Light grey for links */
    --footer-link-hover-color: #d32f2f; /* Lighter on hover */
    --footer-border-color: rgba(255, 255, 255, 0.1); /* Subtle line color */
}

/* Main Footer Section */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 30px 0 15px 0; /* Reduced padding for compactness */
    font-size: 0.9em;
    line-height: 1.5;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    /* Adjusted to a 3-column layout */
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* Gives Company Info slightly more space */
    /* If you want them strictly equal: grid-template-columns: repeat(3, 1fr); */
    gap: 30px; /* Space between columns */
    margin-bottom: 25px; /* Space above the bottom section */
    justify-content: space-between; /* Distributes columns with space between */
}

.footer-column {
    /* Base style for columns */
}

/* Company Info Column */
.company-info .footer-logo {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary); /* Red color for logo */
    margin-bottom: 8px;
}

.company-info p {
    margin-bottom: 15px;
}

.company-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-info ul li {
    display: flex; /* Use flexbox for image and text alignment */
    align-items: center; /* Vertically align image and text */
    margin-bottom: 8px;
    font-size: 0.9em;
    /* Added `flex-wrap: wrap;` in case text is very long on small screens */
    flex-wrap: wrap; 
}

.company-info ul li img {
    width: 18px; 
    height: 18px; 
    margin-right: 10px; 
    object-fit: contain; 
    filter: brightness(0) saturate(100%) invert(27%) sepia(87%) saturate(5427%) hue-rotate(352deg) brightness(98%) contrast(124%); 
}

.footer-heading {
    font-size: 1.1em;
    color: var(--primary); /* Red color for headings */
    margin-bottom: 15px;
    font-weight: 600;
}

/* Quick Links & Services Lists (now just Quick Links) */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer-column ul li a:hover {
    color: var(--footer-link-hover-color);
}

.social-icons-wrapper {
    display: flex;
    gap: 12px; 
    margin-bottom: 10px;
}

.social-icon {
    background-color: var(--primary);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icon white if it's monochrome */
}

.social-icon:hover {
    background-color: #b71c1c;
}

.social-icon a {
    color: #fff; /* White icon */
    font-size: 1.2em;
    line-height: 1;
}

.footer-column .social-icon + p {
    font-size: 0.85em;
    line-height: 1.4;
    color: var(--footer-text-color);
}

@media (max-width: 768px) {
    .social-icons-wrapper {
        justify-content: center;
    }
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--footer-border-color);
    margin: 0 auto 15px auto;
    max-width: 95%;
}

.copyright {
    font-size: 0.8em;
    color: var(--footer-text-color);
}

/* Responsive Adjustments for Footer */
@media (max-width: 992px) { /* Adjust breakpoint for 3 columns on larger tablets */
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Allow flexibility if screens get narrower */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on tablets/mobile */
        text-align: center; /* Center content within stacked columns */
        gap: 20px;
    }

    .company-info ul li {
        justify-content: center; /* Center list items for company info */
    }

    .social-icon {
        margin: 0 auto 10px auto; /* Center social icon on smaller screens */
    }

    .main-footer {
        padding: 25px 0 10px 0;
    }

    /* Adjust specific elements for stacked layout */
    .footer-column .footer-logo,
    .footer-column p,
    .footer-column ul {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-heading {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 20px 0 10px 0;
    }
    .footer-grid {
        gap: 15px;
    }
    .footer-heading {
        margin-bottom: 10px;
    }
}