/* Footer */
.footer {
    margin-top: 0;
    background: var(--white);
    color: var(--dark);
    padding: 4rem 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(140px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 52, 54, 0.1);
}

.social-links a:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.footer-links ul {
    list-style: none;
    display: block;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--orange);
}

/* Footer Dot Matrix */
.footer-matrix-wrapper {
    background: var(--cream);
    margin: 0 -2rem;
    padding: 0 2rem;
}

.footer-matrix {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.dot-matrix-canvas {
    width: 100%;
    height: 280px;
    position: relative;
}

#dotCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .dot-matrix-canvas {
        height: 180px;
    }
}

.footer-bottom {
    background: var(--white);
    margin: 0 -2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(45, 52, 54, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--orange);
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

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

    .footer-bottom-links {
        gap: 1.5rem;
    }
}
