/* ============================================================
   RDO LOGÍSTICA — PERFIS DE CARGA: MEDIA QUERIES RESPONSIVAS
   Estratégia: Desktop Down (1440px → Mobile)
   Breakpoints: 1367px | 1024px | 768px | 480px
   Fonte: Montserrat | Fundo: #e8ecee
   Header standalone (fora do .s1)
   ============================================================ */
 
/* Garantia global de imagens fluidas */

 
 
/* ============================================================
   BREAKPOINT 1: 1367px — Notebooks médios
   Layout row mantido. Ajustes proporcionais de
   tipografia e dimensões da imagem.
   ============================================================ */
@media screen and (max-width: 1367px) {
 
    /* --- HEADER --- */
    header {
        padding: 1.8vw 2vw;
    }
 
    header .logo-header {
        width: 105px;
    }
 
    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: LAYOUT ROW ---
       Espaçamento reduzido, proporções ajustadas */
    .s1 {
        margin-top: 4vh;
        padding: 0 6vw;
        gap: 4vw;
    }
 
    /* ESQUERDA — label + imagem */
    .s1 .esquerda h1 {
        font-size: clamp(16px, 1.8vw, 1.8vw);
        font-weight: 500;
        letter-spacing: 0.02em;
        margin-bottom: 1.5vh;
    }
 
    .s1 .esquerda img {
        width: 42vw;
        height: 24vw;
    }
 
    /* DIREITA — título e parágrafos */
    .s1 .direita h2 {
        font-size: clamp(28px, 2.8vw, 2.8vw);
        font-weight: 400;
        letter-spacing: -0.02em;
        line-height: 1.15;
    }
 
    .s1 .direita .sublinhado {
        margin-bottom: 3vh;
    }
 
    .s1 .direita p {
        font-size: clamp(14px, 1vw, 1vw);
        line-height: 1.85;
        width: 80%;
        margin-left: 0.8vw;
    }
}
 
 
/* ============================================================
   BREAKPOINT 2: 1024px — Tablets grandes / Laptops pequenos
   Layout empilha: esquerda (label + imagem) sobe,
   direita (texto) desce. Bloco centralizado.
   ============================================================ */
@media screen and (max-width: 1024px) {
 
    /* --- HEADER --- */
    header {
        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;
        margin-top: 4vh;
        padding: 0 6vw;
        gap: 5vh;
    }
 
    /* ESQUERDA — label alinhado à esquerda,
       imagem com mesma largura do bloco de texto */
    .s1 .esquerda {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 80%;
    }
 
    .s1 .esquerda h1 {
        font-size: clamp(14px, 2vw, 2vw);
        font-weight: 500;
        letter-spacing: 0.04em;
        margin-bottom: 2vh;
    }
 
    .s1 .esquerda img {
        width: 100%;
        height: 40vw;
        border-radius: 8px;
    }
 
    /* DIREITA — mesma largura da esquerda para alinhamento perfeito */
    .s1 .direita {
        width: 80%;
    }
 
    .s1 .direita h2 {
        font-size: clamp(28px, 4vw, 4vw);
        font-weight: 400;
        letter-spacing: -0.025em;
        line-height: 1.15;
    }
 
    .s1 .direita .sublinhado {
        margin-bottom: 3vh;
    }
 
    .s1 .direita p {
        font-size: clamp(14px, 1.5vw, 1.5vw);
        line-height: 1.85;
        width: 100%;
        margin-left: 0;
        text-indent: 0;
    }
}
 
 
/* ============================================================
   BREAKPOINT 3: 768px — Tablets / iPads
   Menu hambúrguer. Imagem mais compacta.
   Tipografia com mais impacto.
   ============================================================ */
@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;
    }
 
    /* 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 {
        margin-top: 4vh;
        padding: 0 5vw;
        gap: 4vh;
    }
 
    .s1 .esquerda {
        width: 88%;
    }
 
    .s1 .esquerda h1 {
        font-size: clamp(13px, 2.5vw, 2.5vw);
        font-weight: 500;
        letter-spacing: 0.06em;
        margin-bottom: 2vh;
    }
 
    .s1 .esquerda img {
        width: 100%;
        height: 45vw;
        border-radius: 8px;
    }
 
    .s1 .direita {
        width: 88%;
    }
 
    /* h2 principal — mais impacto no tablet */
    .s1 .direita h2 {
        font-size: clamp(30px, 6vw, 6vw);
        font-weight: 400;
        letter-spacing: -0.03em;
        line-height: 1.1;
    }
 
    .s1 .direita .sublinhado {
        margin-bottom: 2.5vh;
    }
 
    .s1 .direita p {
        font-size: clamp(13px, 1.9vw, 1.9vw);
        line-height: 1.85;
        width: 100%;
        margin-left: 0;
        text-indent: 0;
    }
 
    /* Desativa hover em touch */
    @media (hover: none) {
        header .btn-contato-vermelho:hover {
            transform: none;
        }
    }
}
 
 
/* ============================================================
   BREAKPOINT 4: 480px — Mobile
   Coluna única. Título dominante com tracking negativo.
   Imagem full-width. Texto leve e espaçado.
   ============================================================ */
@media screen and (max-width: 480px) {
 
    /* --- HEADER --- */
    header {
        padding: 3vw 4vw;
    }
 
    header .logo-header {
        width: 90px;
    }
 
    header .btn-contato-vermelho {
        display: none;
    }
 
    /* --- S1 --- */
    .s1 {
        margin-top: 3vh;
        padding: 0 4vw;
        gap: 3.5vh;
    }
 
    /* ESQUERDA */
    .s1 .esquerda {
        width: 92%;
    }
 
    /* h1 — label vermelho "Perfis de carga":
       pequeno e preciso, tracking largo cria
       hierarquia editorial sem competir com o h2 */
    .s1 .esquerda h1 {
        font-size: clamp(20px, 3.5vw, 3.5vw);
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 1.8vh;
    }
 
    .s1 .esquerda img {
        width: 100%;
        height: 52vw;
        border-radius: 8px;
        object-fit: cover;
    }
 
    /* DIREITA */
    .s1 .direita {
        width: 92%;
    }
 
    /* h2 — "Tipos de Cargas / Atendidas":
       peso 400, tracking negativo,
       tamanho grande para dominar a hierarquia */
    .s1 .direita h2 {
        font-size: clamp(28px, 8.5vw, 8.5vw);
        font-weight: 400;
        letter-spacing: -0.03em;
        line-height: 1.08;
    }
 
    .s1 .direita .sublinhado {
        margin-bottom: 2.5vh;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
 
    /* p — leve, line-height generoso,
       text-indent removido para mobile */
    .s1 .direita p {
        font-size: clamp(13px, 3.8vw, 3.8vw);
        line-height: 1.8;
        font-weight: 400;
        width: 100%;
        margin-left: 0;
        text-indent: 0;
        color: rgba(0, 0, 0, 0.8);
        margin-bottom: 1.5vh;
    }
}
 
 
/* ============================================================
   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;
    }
}