/* RODAPÉ GERAL */
.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--rodape-fundo, var(--cor-primaria, #0a2342));
    border-top: 4px solid var(--cor-borda-glow, #00aaff);
    color: #ffffff;
    min-height: 80px;
    column-gap: 1.5rem;
    row-gap: 0;
}

/* LATERAL DIREITA */
.footer-right {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: flex-end;
}

.footer-label {
    font-size: 11px;
    opacity: 0.8;
    white-space: nowrap;
}

.logo-romeutech {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-romeutech:hover {
    transform: scale(1.08);
}

/* NOSSOS CLIENTES */
.footer-clientes {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-clientes-titulo {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.6;
}

.footer-clientes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-cliente-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 10px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-cliente-item:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.footer-cliente-logo {
    height: 36px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* CENTRO */
.footer-center {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}

.footer-center p {
    font-size: 13px;
    margin-bottom: 0.5rem;
}

/* BLOCO DE INFORMAÇÕES (horário · dias · endereço) */
.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.footer-info-item {
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-info-sep {
    opacity: 0.4;
    font-size: 12px;
}

/* Badge "✕ fecha às Quartas" */
.footer-fechado {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.35);
    border-radius: 20px;
    padding: 1px 7px;
    white-space: nowrap;
    vertical-align: middle;
}

/* REDES SOCIAIS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* WHATSAPP FLUTUANTE */
.btn-ajuda-flutuante {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    border: none;
    padding: 0;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    cursor: grab;
    touch-action: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ajuda-flutuante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ===== Menu de ajuda do botão flutuante ===== */
.ajuda-oculto { display: none !important; }

.ajuda-menu {
    position: fixed;
    z-index: 10000;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.ajuda-menu-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f4f6f8;
    border-bottom: 1px solid #e4e8ed;
}

.ajuda-menu-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.ajuda-menu-fechar {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
}

.ajuda-menu-fechar:hover { color: #111827; }

.ajuda-opcao {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #eef1f4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s;
}

.ajuda-opcao:last-child { border-bottom: none; }
.ajuda-opcao:hover      { background: #f6f8fa; }

.ajuda-opcao-icone { font-size: 20px; line-height: 1.2; }

.ajuda-opcao-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ajuda-opcao-texto strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

.ajuda-opcao-texto small {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* ===== Modal de relato técnico ===== */
.ajuda-modal-fundo {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ajuda-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    padding: 20px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.ajuda-modal-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ajuda-modal-topo h3 {
    margin: 0;
    font-size: 17px;
    color: #1f2937;
}

.ajuda-modal-texto {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
}

.ajuda-textarea {
    width: 100%;
    border: 1px solid #d5dae0;
    border-radius: 8px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    resize: vertical;
    outline: none;
}

.ajuda-textarea:focus { border-color: #25d366; }

.ajuda-modal-retorno {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 8px;
}

.ajuda-retorno-ok   { background: #e6f4ec; color: #1f6d3f; }
.ajuda-retorno-erro { background: #fdecee; color: #b3202f; }

.ajuda-modal-acoes {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.ajuda-btn-principal,
.ajuda-btn-secundario {
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ajuda-btn-principal { background: #25d366; color: #ffffff; }
.ajuda-btn-principal:hover { background: #1fb855; }
.ajuda-btn-principal:disabled { opacity: 0.6; cursor: not-allowed; }

.ajuda-btn-secundario { background: #eef1f4; color: #4b5563; }
.ajuda-btn-secundario:hover { background: #e2e6eb; }

@media (max-width: 480px) {
    .ajuda-modal-acoes { flex-direction: column-reverse; }
    .ajuda-btn-principal,
    .ajuda-btn-secundario { width: 100%; }
}

.btn-ajuda-flutuante svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* BREAKPOINT 1366px (foco: 125%/150% zoom Windows) */
@media (max-width: 1366px) {
    .site-footer {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        column-gap: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .site-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        padding: 1rem;
        gap: 1rem;
    }

    /* Clientes ocupa linha inteira no topo */
    .footer-clientes {
        grid-column: span 2;
        grid-row: auto;
        order: 1;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.75rem;
    }

    .footer-clientes-grid {
        justify-content: center;
    }

    .footer-cliente-logo {
        height: 28px;
    }

    /* Centro ocupa as duas colunas */
    .footer-center {
        grid-column: span 2;
        grid-row: auto;
        order: 2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.75rem;
    }

    .footer-right {
        order: 3;
        grid-column: span 2;
        grid-row: auto;
        justify-content: center;
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-label {
        font-size: 10px;
    }

    .logo-footer-lateral,
    .logo-romeutech {
        height: 35px;
    }

    /* Empilha as infos em coluna no mobile */
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    /* Esconde os separadores · no mobile */
    .footer-info-sep {
        display: none;
    }

    /* Badge de fechado fica um pouco menor */
    .footer-fechado {
        font-size: 9px;
        padding: 1px 6px;
    }

    .btn-ajuda-flutuante {
        width: 50px;
        height: 50px;
    }

    .btn-ajuda-flutuante svg {
        width: 26px;
        height: 26px;
    }
}

/* BLOCO DE SELOS — segurança e credibilidade */
.footer-selos {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

.footer-selo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-selo:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.selo-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.selo-texto {
    display: flex;
    flex-direction: column;
}

.selo-texto small {
    font-size: 9px;
    opacity: 0.65;
}

/* Mobile: 3 selos por linha, 2 linhas */
@media (max-width: 768px) {
    .footer-selos {
        grid-column: span 2;
        grid-row: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 12px 0 0;
        gap: 8px;
        margin-top: 0;
    }

    .footer-selo {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
        padding: 12px 8px;
        font-size: 11px;
        white-space: normal;
        width: 100%;
        border-radius: 10px;
    }

    .selo-icon {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

    .selo-texto small {
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .footer-selos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Link de termos de uso no footer */
.footer-link-termo {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    transition: all 0.2s;
}

.footer-link-termo:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.4);
}
.footer-termo-wrap {
    margin-bottom: 15px;
}

