/* Ajustes Dantas Transportes (2026) — carregado depois do main.css */

/* Botão flutuante do WhatsApp (canto inferior direito) */
.wa-float {
    position: fixed;
    right: 20px;
    /* --footer-offset: parte visível da barra de copyright (js/whatsapp.js) */
    bottom: calc(20px + var(--footer-offset, 0px));
    z-index: 2147483000;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.wa-float:focus-visible {
    outline: 3px solid #148F3A;
    outline-offset: 3px;
}

.wa-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

@media print {
    .wa-float {
        display: none;
    }
}

/* "Voltar ao topo" fica acima do WhatsApp e sobe junto com ele no rodapé
   (o HTML usa bottom: 5% inline) */
#scroll-top {
    right: 26px;
    bottom: calc(92px + var(--footer-offset, 0px)) !important;
}

/* Botão "Orçamento pelo WhatsApp" nas páginas de veículos (o template fixava 160px) */
.single-product .summary .price-review .cws-button {
    width: auto;
    background: #25D366;
    border-color: #25D366;
}

/* A fonte Font Awesome do template não tem o desenho do WhatsApp:
   todo .fa-whatsapp do site é desenhado com SVG (cor = currentColor). */
.fa.fa-whatsapp::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: url("../img/icon-whatsapp.svg") center / contain no-repeat;
    mask: url("../img/icon-whatsapp.svg") center / contain no-repeat;
}

/* ===== Rodapé compacto (marca | fale com a gente | onde estamos) ===== */
footer.footer.footer-compact {
    padding-top: 0;
    font-size: 14px;
    background: linear-gradient(rgba(20, 27, 34, 0.72), rgba(20, 27, 34, 0.72)),
        #1f2730 url("../pic/footer/BG-Footer-Site-Dantas-.webp") center / cover no-repeat;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px 48px;
    padding: 44px 0 36px;
}

.footer-logo-link img {
    display: block;
    width: 150px;
    height: auto;
}

.footer-brand p {
    margin: 14px 0 6px;
    max-width: 340px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

footer.footer .footer-more {
    font-size: 13px;
    font-weight: 600;
    color: #5FD47E;
}

footer.footer .footer-more:hover,
footer.footer .footer-more:focus-visible {
    color: #ffffff;
}

footer.footer.footer-compact h4 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.footer .footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.5;
}

.footer-list .fa {
    flex: none;
    width: 16px;
    margin-top: 3px;
    text-align: center;
    color: #2EB851;
}

footer.footer .footer-list a {
    color: rgba(255, 255, 255, 0.85);
    overflow-wrap: anywhere;
}

footer.footer .footer-list a:hover,
footer.footer .footer-list a:focus-visible {
    color: #5FD47E;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

footer.footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

footer.footer .footer-social a:hover,
footer.footer .footer-social a:focus-visible {
    background: #148F3A;
    border-color: #148F3A;
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0 24px;
    }

    footer.footer .footer-list li {
        margin-bottom: 4px;
    }

    footer.footer .footer-list a {
        padding: 4px 0;
    }
}

/* Barra de copyright: uma linha só, centralizada */
footer.footer .copyright {
    line-height: 1.5;
}

.copyright-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    padding: 14px 0;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-text,
.dev-credit {
    white-space: nowrap;
}

.copyright-sep {
    opacity: 0.5;
}

@media (max-width: 767px) {
    .copyright-bar {
        padding: 12px 0;
        font-size: 12px;
    }

    .copyright-rights {
        display: none;
    }
}

footer.footer .copyright .dev-credit {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dev-credit-brand {
    position: relative;
    padding-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
    transition: color 0.2s ease;
}

/* Faixa tracejada de estrada sob a marca; no hover ela "anda" */
.dev-credit-brand::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #2EB851 0 6px, transparent 6px) 0 0 / 10px 2px repeat-x;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

footer.footer .copyright .dev-credit:hover,
footer.footer .copyright .dev-credit:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}

.dev-credit:hover .dev-credit-brand,
.dev-credit:focus-visible .dev-credit-brand {
    color: #5FD47E;
}

.dev-credit:hover .dev-credit-brand::after,
.dev-credit:focus-visible .dev-credit-brand::after {
    opacity: 1;
    animation: dev-credit-road 0.5s linear infinite;
}

.dev-credit:focus-visible {
    outline: 2px solid #2EB851;
    outline-offset: 4px;
    border-radius: 2px;
}

@keyframes dev-credit-road {
    to {
        background-position: -10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dev-credit-brand::after {
        animation: none !important;
    }
}

/* Ícone do WhatsApp na chamada "Peça seu orçamento" da home */
.call-out-box.with-icon .call-out-wrap .call-out-icon.fa-whatsapp {
    color: #25D366;
    opacity: 0.35;
}
