/* =====================================================
   ETSD - Estilos Responsivos
   Mobile-first approach
   ===================================================== */

/* ===== TABLET (768px+) ===== */
@media screen and (max-width: 991px) {
    .header .container {
        height: 70px;
    }

    .logo-img {
        height: 40px;
    }

    .nav-lista {
        gap: 1.5rem;
    }

    .header .btn-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .sobre-grid {
        gap: 2rem;
    }
}

/* ===== MOBILE (768px-) ===== */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    /* Header Mobile */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cor-branco);
        box-shadow: var(--sombra-lg);
        padding: 100px 2rem 2rem;
        transition: var(--transicao-normal);
    }

    .nav-menu.ativo {
        right: 0;
    }

    .nav-lista {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--cor-cinza-claro);
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .nav-dropdown.ativo .dropdown-menu {
        display: block;
    }

    /* Menu Toggle Animation */
    .menu-toggle.ativo .hamburger {
        background: transparent;
    }

    .menu-toggle.ativo .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.ativo .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-conteudo {
        text-align: center;
    }

    .hero-botoes {
        justify-content: center;
    }

    .hero-decorativo {
        display: none;
    }

    /* Seções */
    .secao {
        padding: var(--espacamento-xl) 0;
    }

    /* Sobre */
    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .sobre-imagem {
        order: -1;
    }

    .sobre-imagem::before {
        display: none;
    }

    /* Contadores */
    .contadores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contador-numero {
        font-size: 2.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contato li {
        justify-content: center;
    }

    /* Cards */
    .cursos-grid,
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-botoes {
        flex-direction: column;
        align-items: center;
    }

    .cta-botoes .btn {
        width: 100%;
        max-width: 300px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== SMALL MOBILE (480px-) ===== */
@media screen and (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-subtitulo {
        font-size: 0.75rem;
    }

    .contadores-grid {
        grid-template-columns: 1fr;
    }

    .card-curso-imagem {
        height: 180px;
    }
}

/* ===== DESKTOP GRANDE (1400px+) ===== */
@media screen and (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
}

/* ===== PREFERÊNCIAS DO USUÁRIO ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== MODO ESCURO (opcional) ===== */
@media (prefers-color-scheme: dark) {
    /* Comentado para manter tema claro fixo
    :root {
        --cor-fundo: #1A1A2E;
        --cor-texto: #F5F5F5;
        --cor-branco: #2A2A3E;
    }
    */
}

/* ===== IMPRESSÃO ===== */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .menu-toggle {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
