/* 
   Project: Organic Minimalist
*/

/* --- Footer Band --- */
footer {
    background-color: var(--slate-earth); /* Contrast band at bottom */
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between; /* Laptop: Left and Right */
    align-items: center;
    max-width: 1300px;
    margin: 0 auto 0 auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(242, 240, 235, 0.1); /* Subtle divider */
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--cloud-dancer);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links::before {
    content: "";
    flex: 1;
}

.footer-links .center-group {
    flex: 1; /* Takes 1/3 of the space */
    display: flex;
    justify-content: center;
    gap: 2rem; /* Gap between the two text links */
}

.footer-links .right-group {
    flex: 1; /* Takes 1/3 of the space */
    display: flex;
    justify-content: flex-end; /* Pushes icons to the far right edge */
}

/* --- Footer Link Styling --- */
.footer-links a {
    text-decoration: none;
    color: var(--cloud-dancer);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;      /* Ensures consistent spacing and hover behavior */
}

.footer-links a:hover {
    opacity: 1;
    color: var(--amber);
    transform: translateY(-2px); /* Subtle interactive elevation */
}

.social-stack {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    list-style: none;
    margin: 0;
}

.social-stack a {
    display: flex;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px; /* PREVENTS 0px COLLAPSE */
    min-width: 24px;
    min-height: 24px;
    
    fill: var(--cloud-dancer);

    display: block;
    visibility: visible;
    opacity: 1;
    
    /* Prevents clipping on transparent containers */
    overflow: visible;
    transition: all 0.3s ease;
}

.social-stack a:hover .social-icon {
    fill: var(--amber);
    transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
    }
    .footer-links::before { display: none; }
    .footer-links .center-group, 
    .footer-links .right-group {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    footer .social-stack {
        float: none;
        display: flex;
        justify-content: center;
        margin: 0 auto 2rem auto;
        width: fit-content;
    }

    .social-stack {
        padding: 0.6rem 1.2rem;
        gap: 0.5rem;
    }
}