/* =========================================================
   Local Pages Footer – styles
   Designed for a black/dark footer background.
   ========================================================= */

/* ── Outer wrapper (just horizontal padding/centering) ── */
.lpf-wrap {
    width: 100%;
    padding: 0 20px 24px;
    box-sizing: border-box;
}

/* ── Single bordered container ───────────────────────── */
.lpf-box {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Toggle button (no own border — sits inside .lpf-box) */
.lpf-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 20px;
    cursor: pointer;
    transition: color 0.2s;
    box-sizing: border-box;
}

.lpf-toggle:hover,
.lpf-toggle:focus-visible {
    color: #fff;
    outline: none;
}

/* Chevron rotation when open */
.lpf-toggle__chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.lpf-toggle[aria-expanded="true"] .lpf-toggle__chevron {
    transform: rotate(180deg);
}

/* ── Expandable panel (inside .lpf-box, below the button) */
.lpf-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    padding: 0 28px;
    box-sizing: border-box;
}

/* hidden attribute — keep in flow for CSS transition */
.lpf-panel[hidden] {
    display: block !important;
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

.lpf-panel.is-open {
    max-height: 800px;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 24px;
    pointer-events: auto;
    visibility: visible;
}

/* ── Links grid ──────────────────────────────────────── */
.lpf-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 16px;
}

.lpf-grid li {
    margin: 0;
    padding: 0;
}

.lpf-grid a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.15s;
    display: block;
}

.lpf-grid a:hover,
.lpf-grid a:focus-visible {
    color: #fff;
    text-decoration: underline;
    outline: none;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .lpf-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .lpf-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 540px) {
    .lpf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lpf-panel {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 360px) {
    .lpf-grid {
        grid-template-columns: 1fr;
    }
}
