
/* ==============================
   FOOTER
============================== */

#footer {
    padding: 4rem var(--gutter) 1.5rem;
    background: linear-gradient(
        135deg,
        var(--bg),
        var(--bg-deep)
    );
    color: var(--text-strong);
    border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Main container */

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

/* Brand */

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo:hover {
    color: var(--primary);
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* Column headings */

.footer-heading {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* Navigation */

.footer-navigation nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-navigation a,
.footer-social a {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-navigation a:hover,
.footer-social a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Social links */

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-social .footer-heading {
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 150px;
}

.footer-social a span {
    color: var(--primary);
}

/* Bottom bar */

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.15);
}

.footer-bottom > span {
    color: var(--text-subtle);
    font-size: 0.75rem;
}

.footer-back-top {
    padding: 0.5rem 0;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-back-top:hover {
    color: var(--secondary);
}

/* Tablet */

@media (max-width: 750px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */

@media (max-width: 500px) {
    #footer {
        padding: 3rem var(--gutter) 1.5rem;
    }

    .footer-container {
        gap: 2rem 1rem;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (hover: none) {
    .footer-navigation a:hover,
    .footer-social a:hover {
        transform: none;
    }
}
