/* Fonte canônica do CSS: edite esta parcial. NÃO é gerado de main.css (legado). Ver docs/SKILLS_CLAUDE.md, "Fonte canônica do CSS". */

/* ============================================================================
   17. FOOTER
   ============================================================================ */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

footer img {
    width: auto;
    height: 40px;
}

footer .conteudo {
    display: flex;
    align-items: center;
    width: 100%;
}

.footer-paginas,
.footer-logomarca,
.footer-sociais {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    min-width: 0;
}

.footer-paginas {
    display: flex;
    justify-content: flex-start;
}

.footer-logomarca {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logomarca img,
.prestige-logo-footer img {
    height: var(--logo-footer-h);
    max-height: var(--logo-footer-h);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.prestige-logo-footer {
    padding: var(--logo-footer-m, 0px);
    box-sizing: content-box;
    max-width: 100%;
}

.footer-sociais {
    display: flex;
    justify-content: flex-end;
}

.footer-linha {
    border-bottom: 2px solid var(--footer-linha);
}

.footer-paginas ul li a:hover,
.footer-paginas .navbar-nav li a:hover,
.footer-paginas .flex-column li a:hover,
.footer-paginas a:hover {
    color: var(--footer-link-hover);
    text-decoration: none !important;
}

.page_item a {
    color: var(--footer-link) !important;
    text-decoration: none;
}

.page_item a:hover {
    color: var(--footer-link-hover) !important;
    text-decoration: none;
}

/* Redes sociais do footer */
.footer-sociais .btn,
.redes-sociais-footer li a,
.redes-btn-footer {
    background-color: var(--footer-social-bg) !important;
    border-color: var(--footer-social-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    border: none;
}

.footer-sociais .btn i,
.redes-sociais-footer li a,
.redes-btn-footer a {
    color: var(--footer-social-icon) !important;
}

.footer-sociais .btn-primary:hover,
.redes-sociais-footer li a:hover,
.redes-btn-footer:hover,
.footer-sociais li a:hover {
    background-color: var(--footer-social-bg-hover) !important;
    border-color: var(--footer-social-bg-hover);
}

.footer-sociais .btn-primary:hover i,
.redes-btn-footer:hover a {
    color: var(--footer-social-icon-hover) !important;
}

.redes-btn-footer {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: transform .2s ease;
}

.redes-btn-footer:hover {
    transform: scale(1.2);
}

/* Creditos: linha e faixa Prestige (full-width, sem inline nos footers) */
.credito,
.creditos-footer,
.copyright-wrapper {
    background-color: var(--creditos-bg);
    border-top: 2px solid var(--footer-linha);
    width: 100%;
}

.credito,
.creditos-footer {
    padding: 5px 0;
    text-align: center;
}

.copyright-container {
    background-color: transparent; /* a cor é a da faixa (.copyright-wrapper): evita duas cores na faixa de créditos */
    padding: 5px 0;
    text-align: center;
    border-top: none;
}

body.prestige-footer-linha-conteudo .copyright-wrapper {
    border-top: none;
}

body.prestige-footer-linha-conteudo .copyright-container {
    border-top: 2px solid var(--footer-linha);
}

.copyright-container img {
    height: 15px;
    width: auto;
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--creditos-text);
}

.copyright a {
    margin-left: 5px;
    color: var(--creditos-text);
    font-weight: 800;
    text-decoration: none;
}

/* Botoes flutuantes */
#btnUp {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 18px;
    background-color: var(--btnup-bg);
    color: var(--btnup-icon);
    fill: currentColor;
    z-index: 9998;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 6px 12px 0 var(--btnup-shadow);
    cursor: pointer;
    margin: 0;
}

#btnUp:hover {
    transform: scale(1.1);
}

#whatsapp {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 20px;
}

.whatsbutton {
    position: fixed;
    bottom: 70px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    z-index: 10000;
    margin: 8px;
    opacity: .8;
    transition: opacity .3s ease, transform .3s ease;
    animation: pulse 1.5s infinite;
    text-decoration: none;
}

.whatsbutton:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #fff;
}

.whatsbutton__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.whatsbutton i {
    font-size: 40px;
    line-height: 1;
}

.whatsbutton img {
    width: 40px;
    height: 40px;
}

.whatsbutton--com-texto {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    opacity: 1;
    animation: none;
}

.whatsbutton--com-texto:hover {
    transform: none;
    opacity: 1;
}

.whatsbutton--com-texto .whatsbutton__icone {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .35);
    animation: pulse 1.5s infinite;
    transition: transform .3s ease;
}

.whatsbutton--com-texto:hover .whatsbutton__icone {
    transform: scale(1.06);
}

.whatsbutton__texto {
    display: inline-block;
    max-width: min(16rem, calc(100vw - 2rem));
    padding: .4em .95em;
    background: #0b6b4f;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(37, 211, 102, .5);
    }

    50% {
        box-shadow: 0 0 25px rgba(37, 211, 102, 1), 0 0 30px rgba(37, 211, 102, .7);
        transform: scale(1.1);
    }

    100% {
        box-shadow: 0 0 10px rgba(37, 211, 102, .5);
    }
}




/* Ícones do rodapé: a fonte de ícones só tem o peso 400 (os links do rodapé herdam 300). */
footer .bi,
footer .redes-sociais-footer i {
    font-weight: 400;
}
