/* ============================================================
   RDO LOGÍSTICA — ROTAS: MEDIA QUERIES RESPONSIVAS
   Estratégia: Desktop Down (1440px → Mobile)
   Breakpoints: 1367px | 1024px | 768px | 480px
   Fonte: Montserrat | Fundo: #e8ecee
   ============================================================ */
 
/* Garantia global de imagens fluidas */
img {
    max-width: 100%;
    height: auto;
}
 
 
/* ============================================================
   BREAKPOINT 1: 1367px — Notebooks médios
   Layout lado a lado mantido.
   Ajuste fino de proporções e tipografia.
   ============================================================ */
@media screen and (max-width: 1367px) {
 
    /* --- HEADER ---
       Largura aumenta levemente pois o viewport encolheu */
    header {
        width: 85%;
        padding: 1.8vw 2vw;
    }
 
    header .abas {
        gap: 2vw;
        padding: 16px 1.8vw;
    }
 
    header .abas a {
        font-size: 0.82rem;
        letter-spacing: 0.03em;
    }
 
    header .btn-contato-vermelho {
        font-size: 0.85rem;
        padding: 3px 8px 3px 14px;
    }
 
    header .btn-contato-vermelho img {
        height: 44px;
        width: 44px;
    }
 
    /* --- S1: MALHA LOGÍSTICA ---
       Permanece em row, ajustes de espaçamento */
    .s1 {
        padding: 0 8vw;
        gap: 3vw;
    }
 
    /* DIREITA — título e imagem do mapa */
    .s1 .direita h1 {
        font-size: clamp(20px, 2.2vw, 2.2vw);
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }
 
    .s1 .direita img {
        width: 32vw;
    }
 
    /* ESQUERDA — cards de regiões */
    .s1 .esquerda {
        width: 42%;
    }
 
    .s1 .esquerda .card h2 {
        font-size: clamp(14px, 1.6vw, 1.6vw);
        font-weight: 500;
        letter-spacing: -0.01em;
    }
 
    .s1 .esquerda .card p {
        font-size: clamp(12px, 0.95vw, 0.95vw);
        line-height: 1.7;
        margin-left: 0.3vw;
    }
}
 
 
/* ============================================================
   BREAKPOINT 2: 1024px — Tablets grandes / Laptops pequenos
   Layout empilha: direita (título + mapa) sobe,
   esquerda (cards) desce. Bloco centralizado.
   ============================================================ */
@media screen and (max-width: 1024px) {
 
    /* --- HEADER --- */
    header {
        width: 100%;
        padding: 2vw 3vw;
    }
 
    header .logo-header {
        width: 100px;
    }
 
    header .abas {
        gap: 1.8vw;
        padding: 14px 1.5vw;
    }
 
    header .abas a {
        font-size: 0.78rem;
    }
 
    header .btn-contato-vermelho {
        font-size: 0.82rem;
        padding: 3px 8px 3px 12px;
        gap: 8px;
    }
 
    header .btn-contato-vermelho img {
        height: 40px;
        width: 40px;
    }
 
    /* --- S1: empilha verticalmente, bloco centralizado --- */
    .s1 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4vh 8vw;
        gap: 5vh;
    }
 
    /* DIREITA — título centralizado, mapa ocupa mais espaço */
    .s1 .direita {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80%;
        text-align: center;
    }
 
    .s1 .direita h1 {
        font-size: clamp(22px, 3.5vw, 3.5vw);
        font-weight: 400;
        line-height: 1.25;
        letter-spacing: -0.015em;
        margin-bottom: 3vh;
        text-align: start;
    }
 
    .s1 .direita img {
        width: 75%;
    }
 
    /* ESQUERDA — cards em largura igual ao bloco acima */
    .s1 .esquerda {
        width: 80%;
        gap: 3vh;
    }
 
    .s1 .esquerda .card {
        padding-bottom: 3vh;
        border-bottom: 1px solid rgba(141, 8, 1, 0.15);
    }
 
    .s1 .esquerda .card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
 
    .s1 .esquerda .card h2 {
        font-size: clamp(16px, 2.2vw, 2.2vw);
        font-weight: 500;
        letter-spacing: -0.01em;
        margin-bottom: 1vh;
    }
 
    .s1 .esquerda .card p {
        font-size: clamp(13px, 1.4vw, 1.4vw);
        line-height: 1.75;
        margin-left: 0;
    }
}
 
 
/* ============================================================
   BREAKPOINT 3: 768px — Tablets / iPads
   Menu hambúrguer. Cards em largura generosa.
   ============================================================ */
@media screen and (max-width: 768px) {
 
    /* --- HEADER: Menu Hambúrguer --- */
    header {
        position: relative;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 2.5vw 4vw;
        width: 100%;
    }
 
    /* Menu horizontal → oculto; exibido via JS com .menu-aberto */
    header .abas {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.96);
        backdrop-filter: saturate(180%) blur(20px);
        border-radius: 12px;
        padding: 1.5rem 2rem;
        gap: 1rem;
        z-index: 100;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
 
    header .abas.menu-aberto {
        display: flex;
    }
 
    header .abas a {
        font-size: 0.95rem;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        letter-spacing: 0.05em;
        color: white;
    }
 
    header .abas a:last-child {
        border-bottom: none;
    }
 
    /* Botão hambúrguer — inserido via JS */
    .btn-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        padding: 10px 12px;
        z-index: 101;
    }
 
    .btn-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
 
    .btn-hamburger.ativo span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
 
    .btn-hamburger.ativo span:nth-child(2) {
        opacity: 0;
    }
 
    .btn-hamburger.ativo span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
 
    header .btn-contato-vermelho {
        display: none;
    }
 
    /* --- S1 --- */
    .s1 {
        padding: 4vh 5vw;
        gap: 4vh;
    }
 
    .s1 .direita {
        width: 88%;
    }
 
    .s1 .direita h1 {
        font-size: clamp(24px, 4.5vw, 4.5vw);
        font-weight: 400;
        letter-spacing: -0.02em;
        line-height: 1.2;
        margin-bottom: 2.5vh;
    }
 
    .s1 .direita img {
        width: 85%;
    }
 
    .s1 .esquerda {
        width: 88%;
        gap: 2.5vh;
    }
 
    .s1 .esquerda .card h2 {
        font-size: clamp(16px, 2.8vw, 2.8vw);
        font-weight: 500;
        margin-bottom: 1vh;
    }
 
    .s1 .esquerda .card p {
        font-size: clamp(13px, 1.8vw, 1.8vw);
        line-height: 1.75;
        margin-left: 0;
    }
 
    /* Desativa hover em touch */
    @media (hover: none) {
        header .btn-contato-vermelho:hover {
            transform: none;
        }
    }
}
 
 
/* ============================================================
   BREAKPOINT 4: 480px — Mobile
   Coluna única. Tipografia leve e legível.
   Cards com separadores sutis.
   ============================================================ */
@media screen and (max-width: 480px) {
 
    /* --- HEADER --- */
    header {
        padding: 3vw 4vw;
        width: 100%;
    }
 
    header .logo-header {
        width: 90px;
    }
 
    header .btn-contato-vermelho {
        display: none;
    }
 
    /* --- S1 --- */
    .s1 {
        padding: 3vh 4vw 6vh 4vw;
        gap: 3.5vh;
    }
 
    /* DIREITA — título à esquerda, mapa full width */
    .s1 .direita {
        width: 92%;
        align-items: flex-start;
    }
 
    .s1 .direita h1 {
        font-size: clamp(22px, 7vw, 7vw);
        font-weight: 400;
        letter-spacing: -0.025em;
        line-height: 1.15;
        margin-bottom: 2vh;
        text-align: start;
    }
 
    .s1 .direita img {
        width: 100%;
        border-radius: 8px;
    }
 
    /* ESQUERDA — cards ocupam mesma largura que o bloco acima */
    .s1 .esquerda {
        width: 92%;
        gap: 0;
    }
 
    .s1 .esquerda .card {
        padding: 2.5vh 0;
        border-bottom: 1px solid rgba(141, 8, 1, 0.15);
    }
 
    .s1 .esquerda .card:first-child {
        padding-top: 0;
    }
 
    .s1 .esquerda .card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
 
    /* h2 — nome da região:
       peso 500 mantido como elemento de navegação visual */
    .s1 .esquerda .card h2 {
        font-size: clamp(16px, 5vw, 5vw);
        font-weight: 500;
        letter-spacing: -0.015em;
        margin-bottom: 1.2vh;
    }
 
    /* p — descrição leve, espaçamento generoso */
    .s1 .esquerda .card p {
        font-size: clamp(13px, 3.8vw, 3.8vw);
        line-height: 1.75;
        font-weight: 400;
        margin-left: 0;
        color: rgba(0, 0, 0, 0.8);
    }
}
 
 
/* ============================================================
   UTILITÁRIO: Desativa hover em dispositivos touch
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
 
    header .btn-contato-vermelho:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}