/**
 * Rodapé moderno — páginas estáticas e PHP (footer.php)
 * Tamanhos em px (o body do site usa 14px; rem ficava pequeno demais).
 */

.site-footer-seo,
.footer-area.site-footer,
.footer-bottom-area.site-footer-bottom {
    font-size: 18px;
    line-height: 1.6;
}

/* Faixa SEO recolhível */
.site-footer-seo {
    background: linear-gradient(180deg, #f8fbf9 0%, #eef4f0 100%);
    border-top: 1px solid #d4e4da;
    padding: 0;
}
.site-footer-seo__details {
    margin: 0;
}
.site-footer-seo__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.site-footer-seo__summary::-webkit-details-marker {
    display: none;
}
.site-footer-seo__summary::marker {
    content: '';
}
.site-footer-seo__title {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 700;
    color: #1a2e24;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.site-footer-seo__title span {
    color: #0d6b32;
}
.site-footer-seo__toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(13, 107, 50, 0.1);
    color: #0d6b32;
    font-size: 0.85rem;
    transition: transform 0.25s ease, background 0.2s ease;
}
.site-footer-seo__details[open] .site-footer-seo__toggle {
    transform: rotate(180deg);
    background: rgba(13, 107, 50, 0.18);
}
.site-footer-seo__summary:hover .site-footer-seo__toggle {
    background: rgba(13, 107, 50, 0.16);
}
.site-footer-seo__body {
    padding: 0 0 1.5rem;
    max-width: 960px;
}
.site-footer-seo__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: #3d5248 !important;
    text-align: left;
}
.site-footer-seo__text a {
    color: #0d6b32;
    font-weight: 600;
    font-size: 17px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer-seo__text a:hover {
    color: #095028;
}

/* Área principal */
.footer-area.site-footer {
    background: linear-gradient(165deg, #0b1016 0%, #121a24 48%, #0e141c 100%);
    padding: 3rem 0 2.5rem;
    border-top: 3px solid #23a513;
    position: relative;
    overflow: hidden;
}
.footer-area.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 165, 19, 0.35), transparent);
    pointer-events: none;
}
.site-footer-cta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.site-footer-cta__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1.15rem 1.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #eef2f6;
    text-decoration: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.site-footer-cta__item:hover,
.site-footer-cta__item:focus-visible {
    background: rgba(35, 165, 19, 0.14);
    border-color: rgba(35, 165, 19, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
}
.site-footer-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: rgba(35, 165, 19, 0.22);
    color: #4ade4a;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.site-footer-cta__label {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}
.site-footer-cta__hint {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.45;
}
.site-footer-cta__item:hover .site-footer-cta__hint {
    color: #cbd5e1;
}

.site-footer-grid {
    row-gap: 2rem;
}
.site-footer .single-footer-widget .title {
    padding-bottom: 1.25rem;
    padding-top: 0;
    position: relative;
}
.site-footer .single-footer-widget .title::after {
    content: '';
    position: absolute;
    bottom: 0.65rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: #23a513;
    border-radius: 1px;
}
.site-footer .single-footer-widget .title h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f1f5f9;
    margin: 0;
}
.site-footer .single-footer-widget .footer-logo {
    padding: 0 0 1.25rem;
}
.site-footer-brand__text {
    margin: 0 0 1.25rem;
    font-size: 18px;
    line-height: 1.75;
    color: #94a3b8;
}
.site-footer-brand__text strong {
    color: #23a513;
    font-weight: 600;
}

/* Contato */
.site-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer-contact__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.site-footer-contact__icon {
    flex-shrink: 0;
    width: 1.35rem;
    color: #23a513;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}
.site-footer-contact__text {
    font-size: 18px;
    line-height: 1.6;
    color: #cbd5e1;
}
.site-footer-contact__text a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}
.site-footer-contact__text a:hover {
    color: #23a513 !important;
}

/* Navegação */
.site-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer-nav li {
    margin: 0;
    padding: 0;
    border: none;
}
.site-footer-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    color: #94a3b8 !important;
    font-size: 18px;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.site-footer-nav a::before {
    content: '\f105';
    font-family: FontAwesome;
    font-size: 15px;
    color: #23a513;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
    color: #e2e8f0 !important;
    padding-left: 0.25rem;
    text-decoration: none !important;
}
.site-footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}
.site-footer-nav .linkrodapeM {
    color: inherit;
    font-size: inherit;
}

.site-footer-actions__lead {
    margin: 0 0 1.25rem;
    font-size: 18px;
    line-height: 1.7;
    color: #94a3b8;
}
.site-footer-actions__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.site-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #28b818 0%, #1f9a11 100%);
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(35, 165, 19, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.site-footer-btn:hover,
.site-footer-btn:focus-visible {
    background: linear-gradient(180deg, #23a513 0%, #1a8510 100%);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(35, 165, 19, 0.45);
}
.site-footer-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #e2e8f0 !important;
    box-shadow: none;
}
.site-footer-btn--outline:hover,
.site-footer-btn--outline:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: #23a513;
    color: #fff !important;
    box-shadow: none;
}

/* Barra inferior */
.footer-bottom-area.site-footer-bottom {
    background: #060a0e;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer-bottom__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.site-footer-bottom .copyright-text p {
    margin: 0;
    font-size: 16px;
    color: #64748b;
    text-align: left;
}
.site-footer-bottom__social {
    float: none !important;
    top: 0;
    text-align: right;
}
.site-footer-bottom__social ul {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer-bottom__social ul li {
    display: inline-block;
    margin: 0 !important;
}
.site-footer-bottom__social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    font-size: 20px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.site-footer-bottom__social ul li a:hover {
    background: #23a513;
    border-color: #23a513;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Overrides legado — garante tamanho mesmo com style.css (body 14px) */
.site-footer .footer-contact-info li {
    border-bottom: none;
    padding-left: 0;
}
.site-footer .site-footer-nav a,
.site-footer .site-footer-nav a .linkrodapeM,
.site-footer .site-footer-contact__text,
.site-footer .site-footer-contact__text a,
.site-footer .site-footer-brand__text,
.site-footer .site-footer-actions__lead,
.site-footer .site-footer-btn {
    font-size: 18px !important;
}
.site-footer .site-footer-cta__label {
    font-size: 20px !important;
}
.site-footer .site-footer-cta__hint {
    font-size: 16px !important;
}
.site-footer .single-footer-widget .title h3 {
    font-size: 20px !important;
}
.site-footer-bottom.site-footer-bottom .copyright-text p {
    font-size: 16px !important;
}
.site-footer-seo__text,
.site-footer-seo__text a {
    font-size: 17px !important;
}

/* Guias estáticos */
.guide-page .site-footer-seo__text {
    color: #3d5248 !important;
}
.guide-page .footer-area.site-footer a {
    text-decoration: none !important;
}
.guide-page .site-footer-nav a {
    color: #94a3b8 !important;
}
.guide-page .site-footer-nav a:hover {
    color: #e2e8f0 !important;
}
.guide-page .site-footer-contact__text a {
    color: #cbd5e1 !important;
}

@media (max-width: 991px) {
    .site-footer-cta {
        grid-template-columns: 1fr;
    }
    .site-footer-bottom__social {
        text-align: left;
        margin-top: 0.75rem;
    }
    .site-footer-bottom__social ul {
        justify-content: flex-start;
    }
    .site-footer-bottom .copyright-text p {
        text-align: center;
    }
    .guide-page .footer-area.site-footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 767px) {
    .site-footer-seo__summary {
        padding: 1rem 0;
    }
    .footer-area.site-footer {
        padding: 2rem 0 1.75rem;
    }
    .site-footer-cta__item {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1rem;
    }
    .site-footer-cta__icon {
        margin-bottom: 0;
    }
    .site-footer-cta__label {
        flex: 1 1 auto;
    }
    .site-footer-cta__hint {
        flex: 1 1 100%;
        padding-left: calc(2.35rem + 1rem);
    }
    .site-footer-bottom .copyright-text p,
    .site-footer-bottom__social {
        text-align: center;
    }
    .site-footer-bottom__social ul {
        justify-content: center;
    }
}
