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

.footer {
    background: var(--accent);
    padding: 3rem 5%;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 2rem 3rem;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.footer .brand-logo {
    margin: 0 0 1rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex: none;
    max-width: 100%;
}

.footer .brand-logo-img {
    height: 36px;
    max-width: 100%;
    width: auto;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 350px;
}

.footer-heading {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-link a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

.footer-credit {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.footer-version {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0;
}

.footer-bottom-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
}

.footer-bottom-meta .footer-version::before {
    content: "·";
    margin-right: 0.85rem;
    opacity: 0.5;
}

/* ============================ */
/* ===========MOBILE=========== */
/* ============================ */

@media (max-width: 850px) {
    .footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.65rem;
    }

    .footer-bottom-meta {
        width: 100%;
    }

    .footer .brand-logo {
        font-size: 18px;
    }

    .footer-text {
        max-width: 100%;
    }
}

