/* ============================================================
   RDO LOGÍSTICA — SOBRE NÓS: 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
   Ajuste fino de proporções sem quebrar o layout lado a lado
   ============================================================ */
@media screen and (max-width: 1367px) {
 
    /* --- HEADER --- */
    .s1 {
        padding: 1vw 2.5vw;
    }
 
    .s1 header .abas {
        gap: 2vw;
        padding: 16px 1.8vw;
    }
 
    .s1 header .abas a {
        font-size: 0.82rem;
        letter-spacing: 0.03em;
    }
 
    .s1 header .btn-contato-vermelho {
        font-size: 0.85rem;
        padding: 3px 8px 3px 16px;
    }
 
    .s1 header .btn-contato-vermelho img {
        height: 44px;
        width: 44px;
    }
 
    /* --- CONTEÚDO HERO (.flex-s1) ---
       Layout permanece lado a lado (row).
       Ajustes de proporção e tipografia calibrados. */
    .s1 .flex-s1 {
        margin-top: 8vh;
        gap: 3vw;
    }
 
    /* h2 — subtítulo vermelho "sobre nós":
       mantém leveza com tamanho levemente maior
       para manter o peso visual relativo ao h1 */
    .s1 .flex-s1 .content-s1 h2 {
        font-size: clamp(14px, 1.8vw, 1.8vw);
        font-weight: 400;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 16px;
    }
 
    /* h1 — trio de destaque:
       peso máximo, tracking negativo para densidade editorial */
    .s1 .flex-s1 .content-s1 h1 {
        font-size: clamp(36px, 4.6vw, 4.6vw);
        font-weight: 400;
        letter-spacing: -0.03em;
        line-height: 1.08;
    }
 
    /* p — parágrafo descritivo:
       mínimo de 15px garantido, linha generosa para leitura */
    .s1 .flex-s1 .content-s1 p {
        font-size: clamp(15px, 1.2vw, 1.2vw);
        line-height: 1.75;
        font-weight: 400;
        margin-top: 1.5vh;
    }
 
    /* Imagem — reduz levemente para dar mais respiro ao texto */
    .s1 .flex-s1 > img {
        width: 42vw;
        height: 27vw;
        border-radius: 10px;
    }
}
 
 
/* ============================================================
   BREAKPOINT 2: 1024px — Tablets grandes / Laptops pequenos
   Layout passa de row para column. Texto centralizado,
   imagem vai para baixo do conteúdo.
   ============================================================ */
@media screen and (max-width: 1024px) {
 
    /* --- HEADER --- */
    .s1 {
        padding: 1.5vw 3vw;
    }
 
    .s1 header .logo-header {
        width: 100px;
    }
 
    .s1 header .abas {
        gap: 1.8vw;
        padding: 14px 1.5vw;
    }
 
    .s1 header .abas a {
        font-size: 0.78rem;
    }
 
    .s1 header .btn-contato-vermelho {
        font-size: 0.82rem;
        padding: 3px 8px 3px 14px;
        gap: 8px;
    }
 
    .s1 header .btn-contato-vermelho img {
        height: 40px;
        width: 40px;
    }
 
    /* --- FLEX-S1: empilha verticalmente, bloco centralizado na tela ---
       justify-content: center garante que texto + imagem
       fiquem sempre perfeitamente centrados no eixo horizontal */
    .s1 .flex-s1 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 7vh;
        gap: 4vh;
    }
 
    .s1 .flex-s1 .content-s1 {
        margin-left: 0;
        text-align: start; /* texto alinhado à esquerda */
        width: 80%;        /* largura controlada para centralizar o bloco */
    }
 
    /* h2 — subtítulo "sobre nós" */
    .s1 .flex-s1 .content-s1 h2 {
        font-size: clamp(14px, 2vw, 2vw);
        font-weight: 400;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 14px;
    }
 
    /* h1 — trio de destaque */
    .s1 .flex-s1 .content-s1 h1 {
        font-size: clamp(38px, 5.5vw, 5.5vw);
        font-weight: 400;
        letter-spacing: -0.035em;
        line-height: 1.06;
    }
 
    /* p — alinhado à esquerda, largura natural do bloco pai */
    .s1 .flex-s1 .content-s1 p {
        font-size: clamp(15px, 1.6vw, 1.6vw);
        line-height: 1.75;
        font-weight: 400;
        width: 100%;
        margin: 1.5vh 0 0 0;
    }
 
    /* Imagem — mesma largura do bloco de texto para alinhamento perfeito */
    .s1 .flex-s1 > img {
        width: 80%;
        height: 40vw;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}
 
 
/* ============================================================
   BREAKPOINT 3: 768px — Tablets / iPads
   Menu hambúrguer. Tipografia mais agressiva.
   Imagem compacta.
   ============================================================ */
@media screen and (max-width: 768px) {
 
    /* --- HEADER: Menu Hambúrguer --- */
    .s1 header {
       display: flex; /* <-- ESSA É A CHAVE QUE ESTAVA FALTANDO */
        flex-direction: row; /* Garante que fiquem na mesma linha horizontal */
        position: relative;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        width: 100%; /* Garante que ocupe a tela toda para jogar um pra cada lado */
    }
 
    /* Menu horizontal → oculto; exibido via JS com .menu-aberto */
    .s1 header .abas {
    display: none !important;
    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: 9999999999999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
    .a-contato{
        display: none;
    }
 
    .s1 header .abas.menu-aberto {
    display: flex !important;
     backdrop-filter: none; 
}
 
    .s1 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;
    }
 
    .s1 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);
    }
 
    /* Oculta botão contato no header para dar espaço ao hambúrguer */
    .s1 header .btn-contato-vermelho {
        display: none;
    }
 
    /* --- HERO (.flex-s1) --- */
    .s1 {
        padding: 1.5vw 4vw;
    }
 
    .s1 .flex-s1 {
        align-items: center;
        justify-content: center;
        margin-top: 6vh;
        gap: 4vh;
    }
 
    .s1 .flex-s1 .content-s1 {
        text-align: start;
        width: 80%;
    }
 
    /* h2 — subtítulo vermelho */
    .s1 .flex-s1 .content-s1 h2 {
        font-size: clamp(20px, 2.8vw, 2.8vw);
        font-weight: 500;
        letter-spacing: 0.08em;
        margin-bottom: 12px;
    }
 
    /* h1 — impacto máximo */
    .s1 .flex-s1 .content-s1 h1 {
        font-size: clamp(40px, 7vw, 7vw);
        font-weight: 400;
        letter-spacing: -0.04em;
        line-height: 1.04;
    }
 
    .s1 .flex-s1 .content-s1 p {
        font-size: clamp(14px, 2vw, 2vw);
        line-height: 1.8;
        width: 100%;
        margin: 1.5vh 0 0 0;
    }
 
    /* Imagem — mesma largura do bloco de texto */
    .s1 .flex-s1 > img {
        width: 80%;
        height: 45vw;
        border-radius: 10px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    }
 
    /* Desativa hover em dispositivos touch */
    @media (hover: none) {
        .s1 header .btn-contato-vermelho:hover {
            transform: none;
        }
    }
}
 
 
/* ============================================================
   BREAKPOINT 4: 480px — Mobile
   Coluna única. Tipografia dominante. Layout compacto.
   ============================================================ */
@media screen and (max-width: 480px) {
 
    /* --- SEÇÃO E HEADER --- */
    .s1 {
        padding: 3vw 4vw 6vw 4vw;
    }
 
    .s1 header .logo-header {
        width: 90px;
    }
 
    /* Botão contato permanece oculto (hambúrguer prevalece) */
    .s1 header .btn-contato-vermelho {
        display: none;
    }
 
    /* --- FLEX-S1 --- */
    .s1 .flex-s1 {
        align-items: center;
        justify-content: center;
        margin-top: 5vh;
        gap: 3.5vh;
    }
 
    .s1 .flex-s1 .content-s1 {
        margin-left: 0;
        text-align: start; /* texto sempre à esquerda */
        width: 88%;        /* bloco centralizado na tela */
    }
 
    /* h2 — "sobre nós" */
    .s1 .flex-s1 .content-s1 h2 {
        font-size: clamp(11px, 3vw, 3vw);
        font-weight: 400;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-bottom: 10px;
    }
 
    /* h1 — trio impactante */
    .s1 .flex-s1 .content-s1 h1 {
        font-size: clamp(32px, 9vw, 9vw);
        font-weight: 400;
        letter-spacing: -0.04em;
        line-height: 1.03;
        color: rgba(0, 0, 0, 0.88);
    }
 
    /* p — alinhado à esquerda, largura natural do bloco pai */
    .s1 .flex-s1 .content-s1 p {
        font-size: clamp(13px, 3.8vw, 3.8vw);
        line-height: 1.75;
        font-weight: 400;
        width: 100%;
        margin: 1.2vh 0 0 0;
        color: rgba(0, 0, 0, 0.75);
    }
 
    /* Imagem — mesma largura do bloco de texto para alinhamento perfeito */
    .s1 .flex-s1 > img {
        width: 88%;
        height: 55vw;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        object-fit: cover;
    }
}
 
 
/* ============================================================
   UTILITÁRIO: Desativa hover em dispositivos touch
   Evita estados presos após tap
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
 
    .s1 header .btn-contato-vermelho:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}