/* ============================================================
   PILAR ONLINE | Rodapé público configurável pelo Admin Master
   Desktop: 4 colunas | Celular: acordeão recolhido
   ============================================================ */
.po-footer {
    --po-footer-bg: #252A32;
    --po-footer-heading: #FFFFFF;
    --po-footer-text: #C5CBD3;
    --po-footer-accent: #F47016;
    --po-footer-border: #414851;
    width: 100%;
    margin: 0;
    border-top: 4px solid var(--po-footer-accent);
    background: var(--po-footer-bg);
    color: var(--po-footer-text);
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}
.po-footer, .po-footer * { box-sizing: border-box; }
.po-footer__container { max-width: 1380px; margin: 0 auto; padding: 51px 24px 22px; }
.po-footer__grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3.4vw, 58px);
    padding-bottom: 47px;
}
.po-footer__brand { min-width: 0; max-width: 360px; }
.po-footer__brand-link { display: inline-flex; align-items: center; min-height: 43px; text-decoration: none; color: #fff; }
.po-footer__logo { display: block; width: auto; max-width: 200px; max-height: 55px; object-fit: contain; object-position: left center; }
.po-footer__wordmark { font-size: 25px; font-weight: 750; line-height: 1.2; letter-spacing: -.8px; color: #fff; }
.po-footer__wordmark span { color: var(--po-footer-accent); }
.po-footer__description { font-size: 13px; line-height: 1.85; color: var(--po-footer-text); margin: 16px 0 0; max-width: 330px; }
.po-footer__column { min-width: 0; }
.po-footer__title {
    position: relative;
    margin: 4px 0 23px;
    padding: 0 0 13px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--po-footer-heading);
    letter-spacing: .1px;
}
.po-footer__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 4px;
    background: var(--po-footer-accent);
}
.po-footer__links, .po-footer__social, .po-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    gap: 11px;
    padding: 0;
    margin: 0;
}
.po-footer__links li, .po-footer__social li, .po-footer__legal li { margin: 0; padding: 0; max-width: 100%; }
.po-footer__links a, .po-footer__legal a, .po-footer__social a {
    color: var(--po-footer-text);
    font-weight: 400;
    text-decoration: none;
    transition: color .18s ease;
    overflow-wrap: anywhere;
}
.po-footer__links a:hover, .po-footer__links a:focus-visible,
.po-footer__legal a:hover, .po-footer__legal a:focus-visible,
.po-footer__social a:hover, .po-footer__social a:focus-visible { color: var(--po-footer-accent); }
.po-footer__links a:focus-visible, .po-footer__legal a:focus-visible,
.po-footer__social a:focus-visible, .po-footer__brand-link:focus-visible,
.po-footer__toggle:focus-visible {
    outline: 2px solid var(--po-footer-accent);
    outline-offset: 4px;
    border-radius: 3px;
}
.po-footer__unconfigured { color: var(--po-footer-text); opacity: .72; cursor: default; }
.po-footer__social { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.po-footer__social-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid var(--po-footer-border);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500 !important;
}
.po-footer__social-link:hover { border-color: var(--po-footer-accent); }
.po-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 19px;
    border-top: 1px solid var(--po-footer-border);
}
.po-footer__bottom p { margin: 0; font-size: 11px; color: var(--po-footer-text); opacity: .85; }
.po-footer__legal { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.po-footer__legal a { font-size: 11px; }

/* O JS instala um botão real dentro de cada título. No computador,
   o botão fica visualmente igual ao título e é desabilitado. */
.po-footer__toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    letter-spacing: inherit;
    cursor: default;
    -webkit-appearance: none;
    appearance: none;
}
.po-footer__toggle:disabled { opacity: 1; color: inherit; -webkit-text-fill-color: currentColor; }
.po-footer__content[hidden] { display: none !important; }

@media (max-width: 950px) {
    .po-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
    .po-footer__brand { grid-column: 1 / -1; max-width: 550px; }
    .po-footer__description { max-width: 510px; }
}

/* Celular: marca sempre visível e seções de links inicialmente fechadas. */
@media (max-width: 600px) {
    .po-footer__container { padding: 27px 19px 20px; }
    .po-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 13px; }
    .po-footer__brand { grid-column: auto; max-width: none; padding-bottom: 21px; }
    .po-footer__logo { max-width: 170px; max-height: 48px; }
    .po-footer__wordmark { font-size: 23px; }
    .po-footer__description { margin-top: 11px; max-width: none; font-size: 12px; line-height: 1.7; }
    .po-footer__column { border-top: 1px solid var(--po-footer-border); }
    .po-footer__title { margin: 0; padding: 0; font-size: 13px; font-weight: 650; }
    .po-footer__title::after { display: none; }
    .po-footer__toggle {
        position: relative;
        width: 100%;
        min-height: 51px;
        padding: 15px 38px 15px 0;
        cursor: pointer;
        touch-action: manipulation;
    }
    .po-footer[data-accordion-ready="1"] .po-footer__toggle::after {
        content: "";
        position: absolute;
        right: 6px;
        top: calc(50% - 5px);
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--po-footer-accent);
        border-bottom: 2px solid var(--po-footer-accent);
        transform: rotate(45deg);
        transition: transform .2s ease;
    }
    .po-footer[data-accordion-ready="1"] .po-footer__column--open .po-footer__toggle::after {
        transform: rotate(225deg);
        top: calc(50% - 1px);
    }
    .po-footer__content { padding: 0 0 18px; }
    .po-footer__links { gap: 10px; }
    .po-footer__links a, .po-footer__unconfigured { font-size: 12px; }
    .po-footer__social { margin-top: 15px; }
    .po-footer__bottom { flex-direction: column; align-items: flex-start; gap: 13px; padding-top: 16px; }
    .po-footer__bottom p, .po-footer__legal a { font-size: 10.5px; }
    .po-footer__legal { gap: 8px 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .po-footer a, .po-footer__toggle::after { transition: none !important; }
}
