/* ============================================================
   RDO LOGÍSTICA — CONTATO: MEDIA QUERIES RESPONSIVAS
   Estratégia: Desktop Down (1440px → Mobile)
   Breakpoints: 1367px | 1024px | 768px | 480px
   Fonte: Montserrat | Fundo: #e8ecee
   ============================================================ */


/* ============================================================
   BREAKPOINT 1: 1367px — Notebooks médios
   Grid 2 colunas mantido. Ajustes de espaçamento
   e tipografia proporcionais ao viewport menor.
   ============================================================ */
@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;
    }

    /* --- S6 --- */
    .s6 {
        margin: 3vh 6vw 6vh 6vw;
        padding: 50px 4vw;
        gap: 4vw;
    }

    /* ESQUERDA */
    .s6 .content-s6 .logo-rdo {
        max-width: 260px;
    }

    .s6 .content-s6 h3 {
        font-size: clamp(1.8rem, 2.8vw, 2.8vw);
    }

    .s6 .content-s6 p {
        font-size: clamp(0.9rem, 1.1vw, 1.1vw);
    }

    .s6 .content-s6 a {
        font-size: 1rem;
    }

    /* DIREITA */
    .s6 .form-s6 .linha input {
        height: 48px;
        font-size: 0.95rem;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-saibamais,
    .s6 .form-s6 .btn-s6 .btn-s1-orcamento {
        font-size: 16px;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-saibamais img {
        height: 44px;
        width: 44px;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-orcamento img {
        height: 40px;
        width: 40px;
    }
}


/* ============================================================
   BREAKPOINT 2: 1024px — Tablets grandes / Laptops pequenos
   Grid passa para 1 coluna.
   Conteúdo centralizado, texto alinhado à esquerda
   dentro de um bloco controlado.
   ============================================================ */
@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;
    }

    /* --- S6: 1 coluna, centralizada --- */
    .s6 {
        grid-template-columns: 1fr;
        margin: 3vh 5vw 6vh 5vw;
        padding: 50px 6vw;
        gap: 40px;
    }

    /* ESQUERDA — alinha à esquerda dentro do bloco */
    .s6 .content-s6 {
        align-items: flex-start;
        text-align: start;
    }

    .s6 .content-s6 .logo-rdo {
        max-width: 220px;
    }

    .s6 .content-s6 h3 {
        font-size: clamp(1.8rem, 4vw, 4vw);
        margin-left: 0;
    }

    .s6 .content-s6 p {
        font-size: clamp(0.9rem, 1.5vw, 1.5vw);
        margin-left: 0;
    }

    .s6 .content-s6 a {
        margin-left: 0;
        font-size: 1rem;
    }

    /* DIREITA — formulário ocupa largura total */
    .s6 .form-s6 .btn-s6 {
        gap: 1.5rem;
    }
}


/* ============================================================
   BREAKPOINT 3: 768px — Tablets / iPads
   Menu hambúrguer. Layout centralizado.
   ============================================================ */
@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;
    }

    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;
    }

    .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;
    }

    /* --- S6 --- */
    .s6 {
        margin: 3vh 4vw 5vh 4vw;
        padding: 40px 6vw;
        border-radius: 15px;
        gap: 35px;
    }

    .s6 .content-s6 .logo-rdo {
        max-width: 190px;
    }

    .s6 .content-s6 h3 {
        font-size: clamp(1.6rem, 5vw, 5vw);
        font-weight: 500;
    }

    .s6 .content-s6 p {
        font-size: clamp(0.9rem, 2vw, 2vw);
    }

    .s6 .content-s6 a {
        font-size: 0.95rem;
        word-break: break-all;
    }

    /* Botões empilham no tablet */
    .s6 .form-s6 .btn-s6 {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-saibamais,
    .s6 .form-s6 .btn-s6 .btn-s1-orcamento {
        width: 100%;
        justify-content: center;
        font-size: 16px;
    }

    @media (hover: none) {
        header .btn-contato-vermelho:hover,
        .s6 .form-s6 .btn-s6 .btn-s1-saibamais:hover,
        .s6 .form-s6 .btn-s6 .btn-s1-orcamento:hover {
            transform: none;
        }
    }
}


/* ============================================================
   BREAKPOINT 4: 480px — Mobile
   Coluna única. Formulário compacto e legível.
   ============================================================ */
@media screen and (max-width: 480px) {

    /* --- HEADER --- */
    header {
        padding: 3vw 4vw;
    }

    header .logo-header {
        width: 90px;
    }

    header .btn-contato-vermelho {
        display: none;
    }

    /* --- S6 --- */
    .s6 {
        margin: 2vh 3vw 5vh 3vw;
        padding: 35px 5vw;
        border-radius: 12px;
        gap: 30px;
    }

    /* ESQUERDA */
    .s6 .content-s6 {
        align-items: flex-start;
        gap: 6px;
    }

    .s6 .content-s6 .logo-rdo {
        max-width: 160px;
    }

    /* H3 "Fale conosco" — impacto com peso 500,
       tamanho dominante mas sem ultrapassar a logo */
    .s6 .content-s6 h3 {
        font-size: clamp(1.5rem, 7.5vw, 7.5vw);
        font-weight: 500;
        letter-spacing: -0.02em;
        line-height: 1.1;
        margin-left: 0;
    }

    .s6 .content-s6 p {
        font-size: clamp(0.85rem, 3.5vw, 3.5vw);
        font-weight: 300;
        color: #cccccc;
        margin-left: 0;
        margin-bottom: 4px;
    }

    /* E-mail — quebra linha se necessário */
    .s6 .content-s6 a {
        font-size: clamp(0.75rem, 3.2vw, 3.2vw);
        margin-left: 0;
        word-break: break-all;
        line-height: 1.4;
    }

    /* DIREITA — inputs mais compactos */
    .s6 .form-s6 {
        gap: 16px;
    }

    .s6 .form-s6 .linha label {
        font-size: 0.85rem;
    }

    .s6 .form-s6 .linha input {
        height: 46px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    /* Botões — empilhados, largura total */
    .s6 .form-s6 .btn-s6 {
        flex-direction: column;
        width: 50%;
        gap: 0.8rem;
        margin-top: 10px;
        margin: auto;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-saibamais,
    .s6 .form-s6 .btn-s6 .btn-s1-orcamento {
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-saibamais img {
        height: 42px;
        width: 42px;
    }

    .s6 .form-s6 .btn-s6 .btn-s1-orcamento img {
        height: 38px;
        width: 38px;
    }
}


/* ============================================================
   UTILITÁRIO: Desativa hover em dispositivos touch
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

    header .btn-contato-vermelho:hover,
    .s6 .form-s6 .btn-s6 .btn-s1-saibamais:hover,
    .s6 .form-s6 .btn-s6 .btn-s1-orcamento:hover {
        transform: none !important;
        box-shadow: -4px 5px 16px 0px rgba(136, 136, 136, 0.2) !important;
    }

    .s6 .content-s6 a:hover {
        transform: none !important;
        color: #ffffff !important;
    }
}