﻿/* ── Footer grid ──────────────────────────────────────────── */
.footer-grid {
    width: 100%;
    margin-bottom: 2rem;
}

.footer-grid-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 1rem;
    max-width: 60rem;
    margin: 0 auto;
    text-align: left;
}

/* Each column: grows equally, min 22% forces 4 across on wide screens.
Below ~600px effective width all 4 won't fit → flex-wrap kicks in */
.footer-col {
    flex: 1 1 22%;
    min-width: 0;
}

/* Title row: text + toggle arrow */
.footer-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3f3f3f !important;
    margin-bottom: 0.4rem;
    cursor: default;
    user-select: none;
    margin-left: 10px;
    box-sizing: border-box;
    width: 100%;
}

    /* Arrow — hidden on desktop */
    .footer-col-title .footer-arrow {
        display: none;
        font-style: normal;
        font-size: 0.7rem;
        color: #bfbfbf !important; /* visible on dark footer background */
        line-height: 1;
        flex-shrink: 0;
        padding-left: 0.25rem;
        transition: transform 0.25s ease;
    }

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-col ul li {
        line-height: 1.3;
        margin-bottom: 0.1rem;
    }

        .footer-col ul li a {
            font-size: 0.82rem;
            color: #3f3f3f !important;
            text-decoration: none;
            border: none;
            transition: color 0.2s;
        }

            .footer-col ul li a:hover {
                color: #000000;
                text-decoration: underline !important;
            }

/* Divider between grid and social row */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 0 auto;
    max-width: 60rem;
    width: 100%;
}

/* ── Tablet + high-zoom: 2-column accordion ───────────────── */
@media screen and (max-width: 736px) {
    .footer-grid-inner {
        justify-content: flex-start;
        gap: 0;
    }

    .footer-col {
        flex: 1 1 calc(50% - 0.5rem);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

        .footer-col:nth-last-child(-n+2):nth-child(odd),
        .footer-col:last-child {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

    .footer-col-title {
        cursor: pointer;
        padding: 0.85rem 0.25rem 0.85rem 0;
        margin-bottom: 0;
        margin-left: 8px;
    }

        .footer-col-title .footer-arrow {
            display: inline-block;
        }

    .footer-col.open .footer-col-title .footer-arrow {
        transform: rotate(180deg);
    }

    .footer-col ul {
        display: none;
        padding-bottom: 0.75rem;
    }

    .footer-col.open ul {
        display: block;
    }
}

/* ── Mobile: single column ────────────────────────────────── */
@media screen and (max-width: 480px) {
    .footer-grid-inner {
        flex-direction: column;
    }

    .footer-col {
        flex: 1 1 100%;
        width: 90%;
    }
}
