/* Footer — estilo Adventor */
.site-footer {
    position: relative;
    width: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-family: "DM Sans", system-ui, sans-serif;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Newsletter */
.site-footer__newsletter {
    position: relative;
    padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(5rem, 10vw, 7rem);
    text-align: center;
    overflow: hidden;
}

.site-footer__newsletter-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(11, 19, 15, 0.92) 72%, #0b130f 100%),
        url("../assets/img/core-img/footer-forest.jpg") center / cover no-repeat;
    pointer-events: none;
}

.site-footer__newsletter-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.site-footer__script {
    font-family: "Dancing Script", cursive;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 0.35rem;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.site-footer__newsletter-title {
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: clamp(1.85rem, 3.8vw, 2.75rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 clamp(1.75rem, 3vw, 2.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.site-footer__newsletter-form {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.site-footer__newsletter-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: #fff;
    color: #1e293b;
    font-size: 0.95rem;
    padding: 1rem 1.15rem;
    outline: none;
}

.site-footer__newsletter-form input::placeholder {
    color: #94a3b8;
}

.site-footer__newsletter-form button {
    flex-shrink: 0;
    width: 56px;
    border: none;
    background: #fff;
    color: #1e293b;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.site-footer__newsletter-form button:hover {
    color: #0d9488;
}

/* Main */
.site-footer__main {
    background: #0b130f;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
    margin-top: -1px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.site-footer__logo img {
    max-height: 52px;
    height: auto;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.site-footer__brand-text {
    margin: 0 0 1.35rem;
    max-width: 340px;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer__social {
    display: flex;
    gap: 0.65rem;
}

.site-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.site-footer__social a:hover {
    border-color: #0d9488;
    color: #fff;
    background: rgba(13, 148, 136, 0.2);
}

.site-footer__heading {
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 1.15rem !important;
    line-height: 1.3 !important;
}

.site-footer__links,
.site-footer__contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li + li,
.site-footer__contact li + li {
    margin-top: 0.65rem;
}

.site-footer__links a {
    font-size: 0.9rem;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__contact i {
    width: 16px;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* Bottom bar */
.site-footer__bottom {
    background: #0b130f;
    padding: 0 0 1.25rem;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.35rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.site-footer__copy {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__legal a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal a:hover {
    color: #fff;
}

/* Esconder botão antigo do tema Roberto */
#scrollUp {
    display: none !important;
}

/* Back to top */
.site-footer__back-top {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #f59e0b;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.site-footer__back-top svg {
    display: block;
    flex-shrink: 0;
}

.site-footer__back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-footer__back-top:hover {
    background: #d97706;
}

@media (max-width: 991px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
