/* styles/footer.css */
:root {
    /* Ensure these color variables are defined globally or redeclare here */
    /* Example values if not global: */
    /* --primary-blue: #007bff; */
    /* --primary-blue-hover: #0056b3; */

    --footer-bg-color: #242424; /* Dark Slate Blue - adjust to match your theme */
    --footer-text-color: #cbd5e1; /* Light Slate Grey for general text */
    --footer-heading-color: #f8fafc; /* Off-white for headings */
    --footer-link-color: #94a3b8;   /* Slightly darker grey for links initially */
    --footer-link-hover-color: var(--primary-blue, #3b82f6); /* Use global primary blue or a fallback */
    --footer-border-color: #334155; /* Border between content and bottom */
    --footer-logo-text-color: #e2e8f0;
}

.site-footer-main {

    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 30px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer-main .container {

       max-width: 1200px;
       margin-left: auto;
       margin-right: auto;
       padding-left: 20px;
       padding-right: 20px;

}

.footer-content-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--footer-border-color);
}

.footer-column h5.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-heading-color);
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* Column 1: Company Info */
.company-info .footer-logo-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.company-info .footer-logo {
    width: 30px;
    height: auto;
    margin-right: 15px;
}
.company-info .footer-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--footer-logo-text-color);
}
.company-info .footer-tagline {
    font-size: 0.9rem;
    color: var(--footer-text-color);
    max-width: 300px; /* Limit width of tagline if desired on desktop */
}

/* Columns 2 & Legal (ul styling) */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--footer-link-hover-color);
}

/* Column 3: Contact Info */
.contact-info address {
    font-style: normal;
    margin-bottom: 10px;
    color: var(--footer-text-color);
}
.contact-info p {
    margin-bottom: 8px;
}
.contact-info p a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info p a:hover {
    color: var(--footer-link-hover-color);
}

/* Column 4: Follow Us & Legal */
.follow-legal .follow-us {
    margin-bottom: 25px;
}
.social-icons-footer {
    display: flex;
    gap: 15px; /* Spacing between social icons */
}
.social-icons-footer a {
    color: var(--footer-link-color);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons-footer a:hover {
    color: var(--footer-link-hover-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--footer-text-color);
}

/* Responsive Adjustments for Footer */
@media (max-width: 991.98px) { /* Tablet */
    .footer-content-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px; 
    }
}

@media (max-width: 768px) { /* Mobile */
    .site-footer-main {
        padding: 40px 0 20px 0; 
    }
    .footer-content-grid {
        grid-template-columns: 1fr 1fr; /* Two columns layout */
        gap: 25px;
    }
    .footer-column {
        margin-bottom: 20px; 
        /* Text align will be inherited (left) or default unless specified */
    }
    /* For this two-column mobile layout, text aligns left naturally within columns */
    .company-info .footer-logo-wrapper {
        justify-content: flex-start; /* Ensures logo group aligns left in its column space */
    }
    .social-icons-footer {
        justify-content: flex-start; /* Ensure icons align left if this column has extra space */
    }

    .footer-bottom {
        padding-top: 25px;
    }
}

@media (max-width: 520px) { /* Smaller Mobile - where all columns stack */
    .footer-content-grid {
        grid-template-columns: 1fr; /* All columns stack vertically */
    }
    .footer-column {
        text-align: left; /* Ensure all stacked columns align text to the left */
        margin-bottom: 25px; /* Uniform bottom margin when stacked */
    }
    .company-info {
        text-align: left; /* Override if any parent style tries to center it */
    }
    .company-info .footer-logo-wrapper {
        justify-content: flex-start; /* Explicitly align logo+name to the left */
    }
    .company-info .footer-tagline {
        margin-left: 0; /* Remove auto margins for left alignment */
        margin-right: 0;
        max-width: none; /* Allow tagline to use full width of its container */
    }
     .social-icons-footer {
        justify-content: flex-start; /* Align social icons left */
    }
}