/*!
 * CSEC Design System v2.0
 * Copyright (c) 2026 Civil and Structural Engineering Consultants (Pvt) Ltd.
 * All Rights Reserved.
 */

/* --- CSEC FOOTER --- */
.csec-footer {
    position: relative;
    width: 100%;
    background-color: var(--fern-darkest-forest);
    color: var(--text-warm-white);
    padding: 2.5rem 3rem 2rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 20;
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Social Icon Circles with ONLY Icon Vector Lighting Up Lime-Green */
.social-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-warm-white);
    cursor: pointer;
    text-decoration: none;
    font-size: 1.15rem;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), 
                border-color 0.35s ease, 
                color 0.35s ease,
                filter 0.35s ease;
}

/* Hover Behavior: Zoom + Only Icon Vector Glows Lime Green */
.social-icon-circle:hover {
    transform: scale(1.15);
    border-color: var(--lime-green);
    color: var(--lime-green);
    filter: drop-shadow(0 0 8px var(--lime-neon-glow));
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-warm-white);
    text-decoration: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    position: relative;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--lime-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.footer-links a:hover {
    color: var(--lime-green);
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.88rem;
    color: var(--text-warm-taupe);
    font-weight: 300;
}

.credit-text {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.credit-text:hover {
    color: var(--lime-green);
    text-decoration-color: var(--lime-green);
}

/* --- FOOTER RESPONSIVE MEDIA QUERIES (PURE CSS REORDERING) --- */
@media (max-width: 900px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Unwraps top row container so flex order can rearrange its children */
    .footer-top-row {
        display: contents;
    }

    .footer-brand {
        order: 1;
    }

    .footer-logo {
        width: 200px;
        max-width: 75vw;
    }

    .footer-bottom-row {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    /* Social Media Badges Placed At Bottom in a New Line */
    .footer-socials {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-credits {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}