/* 
* MD Engenharia Integrada - Estilos Responsivos
* Desenvolvido por Manus AI
*/

/* ===== MEDIA QUERIES ===== */

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

/* Dispositivos Grandes (desktops, menos de 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

/* Dispositivos Médios (tablets, menos de 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Ajustes de Grid */
    .about-grid,
    .service-grid,
    .in-company-grid,
    .contact-grid,
    .case-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-grid.reverse,
    .case-item.reverse {
        direction: ltr;
    }
    
    .service-image {
        order: -1;
    }
    
    .case-image {
        order: -1;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Conteúdo de Treinamentos */
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Dispositivos Pequenos (celulares em landscape, menos de 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    /* Menu de Navegação */
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 0 0 1rem 0;
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Botões */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Dispositivos Extra Pequenos (celulares em portrait, menos de 576px) */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-banner {
        padding: 2rem 0;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    /* Grids */
    .services-grid,
    .trainings-grid,
    .testimonials-slider,
    .blog-grid,
    .logos-grid,
    .mvv-grid,
    .team-grid,
    .differentials-grid,
    .trainings-grid-summary,
    .sectors-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Calendário de Treinamentos */
    .calendar-item {
        flex-direction: column;
    }
    
    .calendar-date {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .calendar-date .month,
    .calendar-date .day,
    .calendar-date .year {
        font-size: 1rem;
        margin: 0;
    }
    
    /* Tabs */
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 auto;
        text-align: center;
        padding: 0.5rem;
    }
    
    /* Formulários */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius-md);
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius-md);
        width: 100%;
    }
    
    /* Post Footer */
    .post-footer {
        flex-direction: column;
    }
    
    /* Depoimentos */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto 0.5rem;
    }
}

/* Ajustes para o menu mobile */
@media (max-width: 767.98px) {
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* Ajustes para telas muito grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero {
        padding: 6rem 0;
    }
}

/* Ajustes para impressão */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .cta-section,
    .btn,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .page-banner {
        background-color: #fff;
        color: #000;
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .page-banner h1,
    .page-banner p {
        color: #000;
    }
}
