.text-justify {
    text-align: justify;
}

/* =========================
           HERO (cards "flutuando" sem cortar + clique OK no mobile)
           - .hero: overflow visible (permite o card sair pra fora)
           - .hero-media: overflow hidden (corta só o vídeo)
           ========================= */
.hero {
    position: relative;
    height: 500px;
    overflow: visible; /* <- NÃO CORTA os cards */
    background: transparent;
}

.hero-media {
    position: relative;
    height: 500px;
    overflow: hidden; /* <- corta só o vídeo */
    background: #000;
}

    .hero-media video,
    .hero-media .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        pointer-events: none !important; /* <- vídeo nunca captura toque */
    }

.hero::before,
.hero::after {
    pointer-events: none !important;
}

/* Cards sobre o vídeo (flutuando pra fora) */
.card-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -70px; /* <- flutua pra fora */
    display: flex;
    gap: 20px;
    z-index: 9999;
    pointer-events: auto;
    touch-action: manipulation;
}

    .card-wrapper * {
        pointer-events: auto;
    }

.card-custom {
    min-width: 220px;
    min-height: 200px;
    max-width: 220px;
    max-height: 200px;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 10000;
}

.btn-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.card-featured {
    background-color: rgba(255, 0, 0, 0.85) !important;
    color: #fff;
}

    .card-featured .btn-card {
        background-color: #fff;
        color: red;
        border-color: #fff;
    }

/* Espaço abaixo do hero para o card flutuante não “comer” a seção seguinte */
.hero-spacer {
    height: 120px;
}

/* Mobile: card não estoura a tela */
@media (max-width: 575.98px) {
    .card-wrapper {
        bottom: -55px;
        gap: 12px;
    }

    .card-custom {
        width: min(360px, 92vw);
        max-width: 92vw;
        min-width: unset;
    }
}

/* Sessão de métricas (mantida) */
.metrics-section {
    background: rgba(44, 43, 43, 0.92);
    color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.counter-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(158, 158, 158, 0.35);
    border-radius: 16px;
    padding: clamp(14px, 3.2vw, 26px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: clamp(120px, 26vw, 190px);
}

.counter-value {
    font-weight: 800;
    line-height: 1;
    font-size: clamp(22px, 6.2vw, 44px);
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

    .counter-value.counter-long {
        font-size: clamp(18px, 5.1vw, 34px);
        letter-spacing: -0.03em;
    }

.counter-label {
    margin-top: 8px;
    font-size: clamp(12px, 3vw, 16px);
    opacity: 0.92;
    text-align: center;
    max-width: 92%;
}

@supports (backdrop-filter: blur(4px)) {
    .counter-box {
        backdrop-filter: blur(4px);
    }
}

.maintenance {
    background: url('https://jjac.com.br/images/manutencao.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
}

footer {
    background-color: #f8f9fa;
    padding: 40px 0;
}

    footer li {
        font-size: 16px;
    }

/* Animacao */
[data-anime] {
    opacity: 0;
    transition: 1s;
}

[data-anime="down"] {
    transform: translate3d(0, -100%, 0);
}

[data-anime="up"] {
    transform: translate3d(0, 100%, 0);
}

[data-anime="left"] {
    transform: translate3d(-100%, 0, 0);
}

[data-anime="right"] {
    transform: translate3d(100%, 0, 0);
}

[data-anime].animate {
    opacity: 1;
    transform: translate3d(0,0,0);
}

[data-anime="move"] {
    transform: translate3d(0%, 0, 0);
}

/* ====== QR Codes no rodapé (Serviços) ====== */
.footer-qr-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    /* quebra no mobile */
    align-items: flex-start;
}

.footer-qr-item {
    width: clamp(110px, 45%, 140px);
    /* lado a lado e responsivo */
    text-align: center;
}

    .footer-qr-item img {
        width: 100%;
        height: auto;
        display: block;
        background: #fff;
        padding: 6px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, .12);
    }

.footer-qr-label {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
}



/* WhatsApp */

/* =========================
        WHATSAPP FLOAT (FIX ANTI-BLOQUEIO)
        - Container com área ZERO (não tapa a página)
        - Botão e painel posicionados ABSOLUTAMENTE
        - Painel fechado não recebe foco/clique (visibility:hidden)
        ========================= */

.wa-float {
    position: fixed;
    right: 10px;
    bottom: 18px;
    z-index: 9999;
    /* ✅ CRÍTICO: área de toque do container = zero */
    width: 0;
    height: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Botão sempre clicável */
.wa-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #25D366;
    box-shadow: 0 10px 25px rgba(0,0,0,.28);
    display: grid;
    place-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
    animation: waWiggle 4.8s infinite;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .wa-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0,0,0,.34);
    }

    .wa-btn:active {
        transform: translateY(0) scale(.98);
    }

    .wa-btn svg {
        width: 30px;
        height: 30px;
        fill: #fff;
    }

@keyframes waWiggle {
    0%,86% {
        transform: translateY(0) rotate(0deg);
    }

    88% {
        transform: translateY(-2px) rotate(-8deg);
    }

    90% {
        transform: translateY(0) rotate(8deg);
    }

    92% {
        transform: translateY(-2px) rotate(-6deg);
    }

    94% {
        transform: translateY(0) rotate(6deg);
    }

    96% {
        transform: translateY(-1px) rotate(-4deg);
    }

    98% {
        transform: translateY(0) rotate(4deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Painel: fica ao lado do botão (não cria área gigante) */
.wa-panel {
    position: absolute;
    right: 70px; /* distância do botão */
    bottom: 0;
    width: min(320px, calc(100vw - 110px));
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    overflow: hidden;
    opacity: 0;
    transform: translateX(18px);
    /* ✅ CRÍTICO: fechado = não existe pra clique/foco */
    pointer-events: none;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

    .wa-panel.is-open {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
        transition: opacity .22s ease, transform .22s ease, visibility 0s;
    }

.wa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(44,43,43,0.94);
    color: #fff;
}

.wa-panel-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
}

.wa-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .9;
}

    .wa-close:hover {
        opacity: 1;
    }

.wa-form {
    padding: 12px 14px 14px;
}

.wa-label {
    display: block;
    font-size: 12px;
    margin: 8px 0 6px;
    color: #222;
}

.wa-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

    .wa-input:focus {
        border-color: rgba(0,0,0,0.25);
        box-shadow: 0 0 0 3px rgba(0,0,0,.08);
    }

.wa-send {
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    padding: 11px 12px;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}

    .wa-send:hover {
        filter: brightness(.98);
        transform: translateY(-1px);
    }

    .wa-send:active {
        transform: translateY(0) scale(.99);
    }

.wa-hint {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(0,0,0,.65);
    line-height: 1.35;
}

@media (max-width: 420px) {
    .wa-float {
        right: 8px;
        bottom: 12px;
    }

    /* no mobile, sobe o painel pra cima do botão (sem invadir a tela toda) */
    .wa-panel {
        right: 0;
        bottom: 70px;
        transform: translateY(10px);
    }

        .wa-panel.is-open {
            transform: translateY(0);
        }

    /* evita painel enorme */
    .wa-panel {
        max-height: 60vh;
        overflow: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-btn {
        animation: none;
    }

    .wa-panel {
        transition: none;
    }
}