/* responsive.css - Estilos responsivos */

/* Dispositivos grandes (desktops, 1200px e acima) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Dispositivos médios (tablets, 992px - 1199px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    /* Categorias */
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Sobre */
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
}

/* Celulares grandes (576px - 767px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Header */
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .logo {
        gap: 0.75rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .logo-text p {
        font-size: 0.625rem;
    }

    .search-box {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: 0.75rem;
    }

    .logo {
        grid-column: 2;
        justify-content: center;
        text-align: center;
        min-width: 0;
    }

    .logo-text {
        text-align: center;
    }

    .header-actions {
        grid-column: 3;
        width: auto;
        justify-content: flex-end;
        margin-left: 0;
    }

    
    /* Hero */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .stat {
        flex: 0 0 100%;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Section Header */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Categorias */
    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Cursos */
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filtros-categorias {
        justify-content: center;
    }
    
    .filtro-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Sobre */
    .sobre-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .cta-section p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-content {
        max-width: 520px;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 320px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-logo .logo-img {
        width: 40px;
        height: 40px;
    }
    
}

/* Celulares pequenos (até 575px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 0.75rem;
    }

    .logo-text {
        text-align: left;
    }

    .search-box {
        display: none;
    }

    .cart-btn {
        width: 52px;
        height: 52px;
    }

    .logo-text h1 {
        font-size: 1rem;
        line-height: 1.15;
    }

    .logo-text p {
        font-size: 0.6rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }

    /* CTA */
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-section h2 {
        font-size: 1.35rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Section Header */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.875rem;
    }
    
    /* Categorias */
    .categoria-card {
        padding: 1.5rem;
    }
    
    .categoria-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Cursos */
    .curso-header,
    .curso-detalhes,
    .curso-footer {
        padding: 1.25rem;
    }
    
    .curso-botoes {
        flex-direction: column;
    }
    
    .btn-detalhes,
    .btn-matricula {
        width: 100%;
        min-height: 2.75rem;
    }
    
    /* Sobre */
    .sobre-stats {
        grid-template-columns: 1fr;
    }
    
    /* Modal de cursos */
    .curso-modal {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .curso-modal-header {
        padding: 1.25rem;
    }
    
    .curso-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .curso-modal-body {
        padding: 1.5rem;
    }
    
    .curso-modal-footer {
        padding: 1.25rem;
    }
    
    .curso-modal-botoes .btn {
        min-width: 100%;
    }
    
    /* Mobile menu removido */
    
    /* Carrinho */
    .cart-modal {
        max-height: 90vh;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-btn {
        width: 44px;
        height: 44px;
    }

    .cart-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dispositivos muito pequenos (até 375px) */
@media (max-width: 374.98px) {
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.5625rem;
    }
    
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .categoria-card h3 {
        font-size: 1.125rem;
    }
    
    .curso-titulo {
        font-size: 1rem;
    }
    
    .filtro-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Orientação paisagem para celulares */
@media (max-height: 575.98px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .modal,
    .curso-modal,
    .cart-modal,
    .confirm-modal {
        max-height: 80vh;
    }
}

/* Impressão */
@media print {
    .header,
    .footer,
    .cart-btn,
    .search-box,
    .hero-buttons,
    .btn,
    .floating-whatsapp-cta,
    .carrossel-btn,
    .filtro-busca button,
    .curso-botoes {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero h1 {
        color: #000 !important;
        text-shadow: none !important;
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .curso-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .cursos-grid {
        display: block;
    }
}
