﻿/* ========== Optimized Footer ========== */
.footer {
    background-color: #13294B;
    color: #fff;
    padding: 70px 0 30px;
    border-top: 3px solid #F2AA4C;
    width: 100%;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col {
    flex: 1 1 160px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
}

    .footer-col h4 {
        font-size: 1.1rem;
        color: #f0eee6;
        margin-bottom: 6px;
        position: relative;
        display: inline-block;
        padding-bottom: 8px;
        transition: color .3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .footer-col h4 .footer-title-text {
            display: inline-block;
            position: relative;
            padding-bottom: 8px;
        }

            .footer-col h4 .footer-title-text::after {
                content: '';
                position: absolute;
                left: 0;
                bottom: 0;
                height: 2px;
                width: 100%;
                background-color: #feb47b;
                transform: scaleX(0);
                transform-origin: left;
                transition: transform .28s ease;
            }

            .footer-col h4 .footer-title-text:hover::after {
                transform: scaleX(1);
            }

    .footer-col ul {
        list-style: none;
        padding: 0;
        margin-top: auto;
    }

        .footer-col ul li {
            margin-bottom: 8px;
        }

            .footer-col ul li a {
                color: #aaa;
                text-decoration: none;
                font-size: .8rem;
                display: block;
                transition: color .3s ease, transform .3s ease;
                font-weight: 300;
                letter-spacing: .5px;
            }

                .footer-col ul li a:hover {
                    color: #00a86b;
                    transform: translateX(8px);
                }

/* Social */
.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        background: #222;
        color: #fff;
        border-radius: 50%;
        transition: all .3s ease;
    }

        .social-links a:hover {
            background: #ff7e5f;
            transform: translateY(-3px);
        }

/* Newsletter */
.newsletter-form-inline {
    display: flex;
    max-width: 400px;
}

    .newsletter-form-inline input {
        flex: 1;
        padding: 12px;
        border: none;
        outline: none;
        border-radius: 4px 0 0 4px;
        font-size: 1rem;
    }

    .newsletter-form-inline button {
        background: #ff7e5f;
        color: #fff;
        border: none;
        padding: 0 20px;
        border-radius: 0 4px 4px 0;
        font-weight: 600;
        cursor: pointer;
        transition: background .3s;
    }

        .newsletter-form-inline button:hover {
            background: #feb47b;
        }

.footer-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 5px 20px;
    text-align: center;
}

.footer-bottom {
    background: #13294B;
    padding: 20px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border-top: .5px solid #aaa;
}

    .footer-bottom p {
        color: #aaa;
        font-size: .9rem;
        margin: 0;
    }

/* Mobile */
@media(max-width:768px) {
    .footer-col {
        flex: 1 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

        .footer-col ul li a {
            justify-content: center;
        }

    .footer-container {
        justify-content: center;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form-inline {
        width: 100%;
        flex-direction: column;
    }

        .newsletter-form-inline input,
        .newsletter-form-inline button {
            width: 100%;
            border-radius: 4px;
            margin-top: 10px;
        }

        .newsletter-form-inline input {
            margin-top: 0;
        }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
}

/* Lazy Fade-In (Optional) */
.footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

    .footer.visible {
        opacity: 1;
        transform: translateY(0);
    }
