/* ============================================================
   SITE FOOTER — mobile-first, collapsible columns
   ============================================================ */

.site-footer {
    background: var(--pe-ink);
    color: var(--pe-white);
    padding-top: var(--pe-sp-8);
    padding-bottom: 1.5rem;
}

.site-footer .container { width: var(--pe-container); }

/* Brand block ------------------------------------------------ */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,.72);
    font-size: 0.9375rem;
    max-width: 34ch;
}

/* Collapsible columns (mobile) ------------------------------- */

.footer-columns {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col {
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-col:first-child { border-top: none; }

.footer-col__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.15rem 0;
    text-align: left;
    font-family: var(--pe-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pe-white);
    cursor: pointer;
}

.footer-col__toggle::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--pe-gold);
    transition: transform 240ms var(--pe-ease);
}

.footer-col.is-open .footer-col__toggle::after {
    transform: rotate(45deg);
}

.footer-col__body {
    display: none;
    padding-bottom: 1.25rem;
}

.footer-col.is-open .footer-col__body {
    display: block;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a,
.footer-col li {
    color: rgba(255,255,255,.72);
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: color 180ms ease;
}

.footer-col a:hover { color: var(--pe-gold-soft); }

.footer-col address {
    font-style: normal;
    color: rgba(255,255,255,.72);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Footer bottom ---------------------------------------------- */

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,.55);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255,255,255,.7);
    transition: color 180ms ease;
}

.footer-legal a:hover { color: var(--pe-gold-soft); }

/* Desktop: collapse the accordions into columns -------------- */

@media (min-width: 768px) {

    .footer-columns {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 2rem;
        border-bottom: none;
        padding-top: 2rem;
    }

    .footer-col {
        border-top: none;
    }

    .footer-col__toggle {
        pointer-events: none;
        padding-bottom: 1rem;
    }

    .footer-col__toggle::after { display: none; }

    .footer-col__body {
        display: block !important;
        padding-bottom: 0;
    }
}

@media (min-width: 1024px) {

    .site-footer { padding-top: 5rem; }

    .footer-columns {
        grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
        gap: 3rem;
    }

    /* Brand column becomes the first grid cell */
    .footer-brand {
        border-bottom: none;
        padding-bottom: 0;
        grid-column: 1;
        grid-row: 1 / span 1;
        border-right: 1px solid rgba(255,255,255,.08);
        padding-right: 2rem;
    }

    /* Rework the layout into a single row */
    .site-footer .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
        gap: 3rem;
        align-items: start;
        padding-bottom: 3rem;
    }

    .footer-columns {
        display: contents;
    }

    .footer-col { border-top: none; }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255,255,255,.08);
        padding-top: 1.5rem;
    }
}
