/* ==================================================
   RESET
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #222;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================================================
   CONTAINER PADRÃO (EIXO VISUAL ÚNICO)
================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================================
   HEADER / TOPO
================================================== */
.topo {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
}

.header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 56px;
}

/* MENU DESKTOP */
#menuNav {
    display: flex;
    align-items: center;
    gap: 36px;
}

#menuNav a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 6px;
}

#menuNav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #1f6fb2;
    transition: width .25s ease;
}

#menuNav a:hover::after,
#menuNav a.ativo::after {
    width: 100%;
}

/* BOTÃO CONTATO */
#menuNav .btn-contato {
    background: #1f6fb2;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 30px;
}

#menuNav .btn-contato::after {
    display: none;
}

/* =========================
   MENU MOBILE – CORREÇÃO DEFINITIVA
========================= */

.header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* FUNDAMENTAL */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0b4f8a;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    #menuNav {
        position: absolute;
        top: 100%;           /* ABRE LOGO ABAIXO DO HEADER */
        left: 0;
        right: 0;
        background: #ffffff;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #e6e6e6;
        z-index: 9999;
    }

    #menuNav.ativo {
        display: flex;
    }

    #menuNav a {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    #menuNav a::after {
        display: none;
    }

    #menuNav .btn-contato {
        margin: 15px 0 5px;
    }
}




/* DESKTOP */
@media (min-width: 769px) {

    #menuNav {
        position: static;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 36px;
        background: none;
        padding: 0;
    }

    .menu-toggle {
        display: none;
    }
}


@media (max-width: 768px) {
  /* Mantém todas as linhas em coluna (como já está) */
  .frete-card .linha {
    flex-direction: column;
    gap: 4px;
  }

  /* EXCEÇÃO: Equipamento fica no padrão "lado a lado" */
  .frete-card .linha.equipamento {
    flex-direction: row;
    align-items: flex-start;
  }

  .frete-card .linha.equipamento strong {
    width: 45%;
  }

  .frete-card .linha.equipamento span {
    width: 55%;
    text-align: right;
  }
}

/* ==================================================
   TÍTULO
================================================== */
.titulo {
    background: #0b4f8a;
    color: #fff;
    padding: 25px 0;
    text-align: center;
}

.titulo h1 {
    font-size: 24px;
    font-weight: bold;
}

/* ==================================================
   FILTROS (ALINHADOS AO CONTAINER)
================================================== */
.filtros {
    background: #1e6fae;
    padding: 30px 0 35px;
    color: #fff;
}

.filtros .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filtros p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

/* GRID DOS FILTROS */
.filtro-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.filtro-grid select {
    height: 48px;
    border-radius: 12px;
    border: none;
    padding: 0 16px;
    font-size: 15px;
}

/* ==================================================
   LISTA DE FRETES
================================================== */
.lista-fretes {
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==================================================
   CARD DE FRETE
================================================== */
.frete-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.frete-card h3 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 12px;
}

.frete-card .linha {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.frete-card .linha:last-of-type {
    border-bottom: none;
}

.frete-card strong {
    font-weight: 600;
}



/* BOTÃO WHATSAPP */
.btn-whatsapp {
    margin-top: 16px;
    background: #25d366;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
}


/* Modal WHATSAPP */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);align-items:center;justify-content:center;z-index:9999;padding:20px}
.modal.ativo{display:flex}
.modal-box{background:#fff;border-radius:14px;padding:22px;max-width:420px;width:100%}
.modal-box h4{margin-bottom:14px}
.modal-lista{display:flex;flex-direction:column;gap:10px}
.modal-item{background:#25d366;color:#fff;text-align:center;padding:12px;border-radius:10px;font-weight:600;text-decoration:none}
.modal-fechar{margin-top:14px;width:100%}
    
/* Card - Tipo de Equipamento
   - Desktop: sempre 2 linhas e alinhado à direita
   - Mobile: mantém o padrão atual (sem clamp forçado)
*/
/*@media (min-width: 769px){
    .frete-card .linha.equipamento span{
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        line-height:1.35;
        /*min-height:calc(1.35em * 2);*/
        white-space:normal;
        word-break:break-word;
        text-align:right;
    }
}*/

@media (max-width: 768px){
    .frete-card .linha.equipamento span{
        display:block;
        overflow:visible;
        -webkit-line-clamp:unset;
        -webkit-box-orient:initial;
        min-height:0;
    }
}


/* ==================================================
   RESPONSIVO
================================================== */
@media (max-width: 1024px) {

    .filtro-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lista-fretes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .menu-toggle {
        display: block;
    }

    #menuNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-top: 1px solid #eee;
        z-index: 1000;
    }

    #menuNav.ativo {
        display: flex;
    }

    #menuNav a {
        padding: 14px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .filtro-grid {
        grid-template-columns: 1fr;
    }

    .lista-fretes {
        grid-template-columns: 1fr;
    }

    .frete-card .linha {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==================================================
   RODAPÉ
================================================== */
.rodape {
    background: #1f3356;
    color: #fff;
    margin-top: 80px;
}

.rodape-copy {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 16px;
    font-size: 13px;
    text-align: center;
}

.rodape-copy {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 20px;
    font-size: 14px;
    color: #cfd8e3;
    text-align: center;
}

.rodape-copy a.rodape-dev {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.rodape-copy a.rodape-dev:hover {
    text-decoration: underline;
}

.rodape-copy .separador {
    opacity: 0.6;
}

/* ==================================================
   MODAL CONTATOS INDEX CARD
================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    width: 320px;
    text-align: center;
}


    /* ... SEU CSS ATUAL DO MODAL (NÃO REMOVER) ... */

    /* Ações do card (WhatsApp + Detalhes) */
    .card-acoes{display:flex;gap:10px;margin-top:14px}
    .card-acoes .btn-whatsapp{flex:1} /* mantém estilo do botão, só divide espaço */
    .btn-detalhes{
        flex:1;
        display:flex;
        align-items:center;
        justify-content:center;
        text-decoration:none;
        border-radius:10px;
        padding:12px;
        font-weight:600;
        border:2px solid #0b3a66; /* azul do projeto */
        color:#0b3a66;
        background:#fff;
        cursor:pointer;
    }
    .btn-detalhes:hover{filter:brightness(0.98)}

    @media (max-width: 520px){
        .card-acoes{flex-direction:column}
        .btn-detalhes{width:100%}
        .card-acoes .btn-whatsapp{width:100%}
    }

    /* Modal Detalhes (usa mesma classe .modal/.modal-box) */
    .modal-box.modal-detalhes{max-width:520px}
    .detalhes-linhas{margin-top:10px}
    .detalhes-linhas .linha{margin:0} /* reutiliza padrão do card */
    .detalhes-obs{
        margin-top:10px;
        padding-top:10px;
        border-top:1px solid #eee;
        font-size:14px;
        line-height:1.35;
        color:#222;
        white-space:pre-wrap;
        word-break:break-word;
    }
    .detalhes-obs strong{display:block;margin-bottom:6px}



/* ==================================================
   FIX MOBILE: Tipo de Equipamento igual aos demais (label acima, valor abaixo)
================================================== */
@media (max-width: 768px){

  /* Remove a exceção que deixava o equipamento lado a lado */
  .frete-card .linha.equipamento{
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .frete-card .linha.equipamento strong,
  .frete-card .linha.equipamento span{
    width: auto;
  }

  .frete-card .linha.equipamento span{
    text-align: left;      /* igual aos demais no mobile */
    white-space: normal;
    word-break: break-word;
  }
}

/* ==================================================
   DESKTOP – Tipo de Equipamento com quebra de linha
================================================== */
@media (min-width: 992px){

  /* garante comportamento só no campo de equipamento */
  .frete-card .linha.equipamento span{
    display: block;
    padding-top: 2px;          /* “respiro” como no exemplo */
    white-space: normal;       /* permite quebrar */
    overflow-wrap: anywhere;   /* quebra melhor quando tem lista/itens */
    word-break: normal;
    line-height: 1.25;
    text-align: right;         /* mantém alinhado à direita */
  }
}

/* ==================================================
   DESKTOP – Tipo de Equipamento
   Sempre 2 linhas fixas (padrão visual)
================================================== */
@media (min-width: 769px){

  .frete-card .linha.equipamento span{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;          /* SEMPRE 2 LINHAS */
    overflow: hidden;

    line-height: 1.35;
    min-height: calc(1.35em * 2);   /* reserva exatamente 2 linhas */

    white-space: normal;
    word-break: break-word;
    text-align: right;              /* mantém alinhamento atual */
  }

}




