/* ============================================================
   RDO LOGÍSTICA — FROTA: MEDIA QUERIES RESPONSIVAS
   Estratégia: Desktop Down (1440px → Mobile)
   Breakpoints: 1367px | 1024px | 768px | 480px
   Atenção: layout travado em 100vh (overflow: hidden).
   Os transforms do carrossel são sobrescritos via CSS
   pois o JS só aplica classes — o visual vem do CSS.
   ============================================================ */
 
 
/* ============================================================
   BREAKPOINT 1: 1367px — Notebooks médios
   Ajuste fino. Carrossel permanece com 3 cards visíveis.
   ============================================================ */
@media screen and (max-width: 1367px) {
 
    /* --- HEADER --- */
    .abas {
        gap: 1.8vw;
        padding: 14px 1.8vw;
    }
 
    .abas a {
        font-size: 0.82rem;
        letter-spacing: 0.02em;
    }
 
    .btn-contato-vermelho {
        font-size: 0.85rem;
        padding: 3px 8px 3px 14px;
    }
 
    .btn-contato-vermelho img {
        height: 38px;
        width: 38px;
    }
 
    /* --- TÍTULO --- */
    .titulo-secao {
        font-size: clamp(18px, 1.8vw, 1.8vw);
        margin-left: 1.5vw;
    }
 
    /* --- CARROSSEL --- */
    .carrossel-container {
        height: 58vh;
    }
 
    /* Card central: levemente menor */
    .card {
        width: 30vw;
    }
 
    /* Cards laterais: reposicionados proporcionalmente */
    .card.anterior {
        transform: translateX(-28vw) scale(0.85);
    }
 
    .card.proximo {
        transform: translateX(28vw) scale(0.85);
    }
 
    /* Tipografia interna dos cards */
    .card .text h2 {
        font-size: clamp(14px, 1.2vw, 1.2vw);
        font-weight: 400;
    }
 
    .card .text p {
        font-size: clamp(11px, 0.78vw, 0.78vw);
        line-height: 1.5;
    }
}
 
 
/* ============================================================
   BREAKPOINT 2: 1024px — Tablets grandes / Laptops pequenos
   Cards ficam maiores. Cards laterais recuam mais
   para evitar sobreposição com o conteúdo central.
   ============================================================ */
@media screen and (max-width: 1024px) {
 
    /* --- HEADER --- */
    .logo-header {
        width: 100px;
    }
 
    .abas {
        gap: 1.5vw;
        padding: 12px 1.5vw;
    }
 
    .abas a {
        font-size: 0.78rem;
    }
 
    .btn-contato-vermelho {
        padding: 3px 8px 3px 12px;
        font-size: 0.8rem;
    }
 
    .btn-contato-vermelho img {
        height: 36px;
        width: 36px;
    }
 
    /* --- TÍTULO --- */
    .titulo-secao {
        font-size: clamp(18px, 2.5vw, 2.5vw);
        margin-left: 1.5vw;
        margin-top: 1.5vh;
    }
 
    /* --- CARROSSEL ---
       Card central ocupa mais espaço horizontal.
       Cards laterais ficam mais recuados e menores
       para não colidir com o card ativo. */
    .carrossel-container {
        height: 55vh;
    }
 
    .card {
        width: 38vw;
    }
 
    .card.anterior {
        transform: translateX(-34vw) scale(0.78);
        opacity: 0.6;
    }
 
    .card.proximo {
        transform: translateX(34vw) scale(0.78);
        opacity: 0.6;
    }
 
    .card .text {
        padding: 1.5vw;
    }
 
    .card .text h2 {
        font-size: clamp(14px, 1.8vw, 1.8vw);
        font-weight: 400;
        margin-bottom: 0.8vw;
    }
 
    .card .text p {
        font-size: clamp(12px, 1.2vw, 1.2vw);
        line-height: 1.55;
    }
 
    /* Bolinhas: margem maior pois o carrossel é mais alto */
    .indicadores {
        margin-top: 2.5vh;
    }
}
 
 
/* ============================================================
   BREAKPOINT 3: 768px — Tablets / iPads
   Menu hambúrguer. Cards laterais quase invisíveis —
   foco total no card ativo. Carrossel ocupa mais altura.
   ============================================================ */
@media screen and (max-width: 768px) {
 
    /* --- HEADER: Menu Hambúrguer --- */
    header {
        position: relative;
        flex-wrap: wrap;
        flex-shrink: 0;
    }
 
    /* Menu horizontal → oculto; exibido via JS com .menu-aberto */
    .abas {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        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);
    }
 
    .abas.menu-aberto {
        display: flex;
    }
 
    .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;
    }
 
    .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);
    }
 
    .btn-contato-vermelho {
        display: none;
    }
 
    /* --- TÍTULO --- */
    .titulo-secao {
        font-size: clamp(18px, 3.5vw, 3.5vw);
        margin-top: 1.5vh;
        margin-left: 1vw;
    }
 
    /* --- CARROSSEL ---
       Card ativo ocupa quase toda a largura.
       Cards laterais: muito recuados e quase transparentes —
       ainda são clicáveis mas não competem visualmente. */
    .carrossel-container {
        height: 60vh;
    }
 
    .card {
        width: 72vw;
    }
 
    .card.anterior {
        transform: translateX(-60vw) scale(0.72);
        opacity: 0.35;
        filter: blur(3px);
    }
 
    .card.proximo {
        transform: translateX(60vw) scale(0.72);
        opacity: 0.35;
        filter: blur(3px);
    }
 
    .card .text {
        padding: 3vw;
        height: 32%;
    }
 
    .card .text h2 {
        font-size: clamp(15px, 2.5vw, 2.5vw);
        font-weight: 400;
        margin-bottom: 1vw;
    }
 
    .card .text p {
        font-size: clamp(12px, 1.8vw, 1.8vw);
        line-height: 1.6;
    }
 
    .indicadores {
        margin-top: 3vh;
        gap: 10px;
    }
 
    .dot {
        width: 14px;
        height: 14px;
    }
 
    /* Desativa hover em touch */
    @media (hover: none) {
        .btn-contato-vermelho:hover {
            transform: none;
        }
    }
}
 
 
/* ============================================================
   BREAKPOINT 4: 480px — Mobile
   Card único dominante. Cards laterais invisíveis mas
   ainda clicáveis para manter a navegação do carrossel.
   Tipografia legível com clamp().
   ============================================================ */
@media screen and (max-width: 480px) {
 
    /* --- SEÇÃO: permite scroll leve se o conteúdo
       não couber — melhor que cortar o card */
    body, html {
        overflow: hidden;
        height: 100vh;
    }
 
    .s1 {
        padding: 2vh 4vw;
    }
 
    /* --- HEADER --- */
    .logo-header {
        width: 85px;
    }
 
    .btn-contato-vermelho {
        display: none;
    }
 
    /* --- TÍTULO --- */
    .titulo-secao {
        font-size: clamp(16px, 5.5vw, 5.5vw);
        font-weight: 400;
        margin-top: 1vh;
        margin-left: 0;
        letter-spacing: -0.01em;
    }
 
    /* --- CARROSSEL ---
       Card ocupa quase toda a tela.
       Cards laterais: deslocados para além da borda
       da tela — invisíveis, mas o JS ainda os anima.
       O overflow: hidden do body os esconde naturalmente. */
    .carrossel-container {
        height: 72vh;
    }
 
    .card {
        width: 88vw;
    }
 
    /* Laterais empurrados para fora da viewport */
    .card.anterior {
        transform: translateX(-88vw) scale(0.65);
        opacity: 0;
        filter: blur(0);
        pointer-events: auto; /* Mantém clicável para navegação */
    }
 
    .card.proximo {
        transform: translateX(88vw) scale(0.65);
        opacity: 0;
        filter: blur(0);
        pointer-events: auto;
    }
 
    /* Proporção da imagem: ocupa mais do card em mobile */
    .img-placeholder {
        height: 65%;
    }
 
    .card .text {
        padding: 4vw;
        height: 35%;
        justify-content: flex-start;
        gap: 1vh;
    }
 
    .card .text h2 {
        font-size: clamp(15px, 5vw, 5vw);
        font-weight: 400;
        margin-bottom: 0;
    }
 
    .card .text p {
        font-size: clamp(12px, 3.5vw, 3.5vw);
        line-height: 1.6;
        color: #555;
    }
 
    /* Bolinhas: maiores para touch */
    .indicadores {
        margin-top: 2.5vh;
        gap: 12px;
    }
 
    .dot {
        width: 16px;
        height: 16px;
    }
}
 
 
/* ============================================================
   UTILITÁRIO: Desativa hover em dispositivos touch
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
 
    .btn-contato-vermelho:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}