/**
 * BrightAster Website
 *
 * @file footer.css
 * @description Styles for the site-wide footer component.
 * @version 2.22 (Background Image footer_bg.svg at Bottom Center with Intrinsic Size)
 */
.site-footer {
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--divider-color);
    overflow: visible; /* Ensure no clipping of background image */
    background-image: url('/assets/images/footer-bg.svg'); /* Background image */
    background-size: auto; /* Maintains intrinsic image size */
    background-position: center bottom; /* Centers image horizontally, aligns to bottom */
    background-repeat: no-repeat; /* Prevents tiling */
    background-color: var(--bg-color); /* Fallback color for debugging */
}
.footer-container {
    width: 85%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative; /* Maintain for content positioning */
    min-height: 600px; /* Ensure enough height for content and image */
}
/* --- Footer Top --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-text { max-width: 700px; }
.footer-text h1 { font-size: 44px; font-weight: 800; color: var(--primary-color); margin: 0 0 20px 0; line-height: 1.2; }
.gradient-text { background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%); background-size: 200% 100%; background-position: 0% 0%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: background-position 0.5s ease-in-out; }
.footer-text h1:hover .gradient-text { background-position: 100% 0%; }
.footer-text p { font-size: 16px; color: var(--text-color); margin: 0; line-height: 1.6; }
/* --- Footer Branding Section --- */
.footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-about { flex: 1; max-width: 300px; }
.footer-logo { display: block; margin-bottom: 20px; }
.footer-logo img { height: 60px; }
.footer-greeting { font-size: 15px; color: var(--text-color); line-height: 1.7; }
.social-section { flex: 1; text-align: right; }
.social-title { font-size: 22px; color: var(--primary-color); margin: 0 0 10px 0; font-weight: 600; }
.social-subtitle { font-size: 14px; color: var(--text-color); margin: 0 0 20px 0; line-height: 1.6; }
.social-icons { display: flex; justify-content: flex-end; gap: 15px; }
.social-icons a { color: var(--primary-color); background-color: var(--divider-color); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; transition: all 0.3s ease; }
.social-icons a:hover { background-color: var(--accent-color); transform: translateY(-5px); }
/* --- Divider --- */
.footer-divider {
    border: none;
    height: 1px;
    background-color: var(--divider-color);
    margin: 60px auto;
    width: 85%; /* Matches content width on desktop */
}
/* --- Footer Main (Links) --- */
.footer-main {
    display: flex;
    gap: 60px;
}
.footer-links-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-links-col h4 { font-size: 18px; color: var(--primary-color); margin: 0 0 20px 0; font-weight: 600; }
.footer-links-col ul { list-style: none; padding: 0; margin: 0; }
.footer-links-col ul li { margin-bottom: 15px; }
.footer-links-col ul li a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-links-col ul li a:hover { color: var(--accent-color); padding-left: 5px; }
/* --- Info Cards --- */
.footer-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.info-card { background: var(--secondary-color); padding: 30px; border-radius: 15px; border: 1px solid var(--divider-color); transition: transform 0.3s ease, border-color 0.3s ease; box-sizing: border-box; }
.info-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.info-card h3 { font-size: 22px; color: var(--primary-color); margin: 0 0 15px 0; }
.info-card p { font-size: 15px; color: var(--text-color); margin: 0 0 20px 0; line-height: 1.6; }
.info-link { display: block; color: var(--primary-color); text-decoration: none; margin-top: 10px; transition: color 0.3s ease; }
.info-link:hover { color: var(--accent-color); }
.location-card { display: flex; flex-direction: column; gap: 20px; }
.location-sub-card { background: var(--bg-color); padding: 20px; border-radius: 10px; }
.location-sub-card h4 { font-size: 16px; color: var(--primary-color); margin: 0 0 10px 0; }
.location-sub-card p { font-size: 14px; margin: 0; }
.newsletter-form { display: flex; }
.newsletter-form input { flex-grow: 1; background: var(--bg-color); border: 1px solid var(--divider-color); border-radius: 8px 0 0 8px; padding: 12px; color: var(--primary-color); outline: none; transition: border-color 0.3s ease; }
.newsletter-form input:focus { border-color: var(--accent-color); }
.newsletter-form button { background: var(--accent-color); color: var(--primary-color); border: none; padding: 0 20px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600; transition: background-color 0.3s ease; }
.newsletter-form button:hover { background: var(--accent-secondary-color); }
/* --- Footer Bottom --- */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.copyright { font-size: 14px; color: var(--text-color); }
/* --- Animation Styles --- */
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-element.is-visible { opacity: 1; transform: translateY(0); }
.footer-text.fade-in-element.is-visible { transition-delay: 0.2s; }
.footer-cta.fade-in-element.is-visible { transition-delay: 0.4s; }
/* --- Responsive Styles --- */
@media (max-width: 1200px) { 
    .footer-container { 
        width: 90%; 
        min-height: 500px; /* Adjusted for smaller screens */
    }
}
@media (max-width: 1024px) {
    .footer-container {
        width: 100%;
        padding: 0 25px;
        box-sizing: border-box;
        min-height: 450px; /* Adjusted for tablet */
    }
    .footer-divider {
        width: 100%; /* Full width on tablet and mobile */
    }
    .footer-cta .btn-secondary a { white-space: nowrap; }
    .footer-main { flex-direction: column; }
    .footer-links-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-info-cards {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .info-card, .location-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .newsletter-form input {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .newsletter-form button {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
    }
    .footer-branding {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    .social-section { text-align: left; }
    .social-icons { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .footer-top { flex-direction: column; align-items: flex-start; text-align: left; gap: 25px; }
    .footer-text h1 { font-size: 28px; }
    .footer-text p { font-size: 15px; }
    .footer-text { max-width: 100%; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 20px; }
    .footer-info-cards {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .info-card, .location-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .newsletter-form input {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .newsletter-form button {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
    }
    .footer-branding {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    .social-section { text-align: left; }
    .social-icons { justify-content: flex-start; }
    .footer-container {
        min-height: 400px; /* Adjusted for mobile */
    }
}
@media (max-width: 480px) {
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-info-cards {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .info-card, .location-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .newsletter-form input {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .newsletter-form button {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        padding: 12px;
        box-sizing: border-box;
    }
    .footer-branding {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    .social-section { text-align: left; }
    .social-icons { justify-content: flex-start; }
    .footer-container {
        min-height: 350px; /* Adjusted for small mobile */
    }
}