/* ====================================
   AMSYS ERP - RESPONSIVE DESIGN
   Mobile-First Approach 2026
==================================== */

/* ====== DESKTOP: 1024px e acima ====== */
@media (min-width: 1024px) {
    .nav-links {
        display: flex !important;
    }
    
    .hamburger-menu {
        display: none !important;
    }
}

/* ====== TABLET: 768px até 1023px ====== */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
    
    .hero-modern .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .modulos-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .segmentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .planos-grid {
        grid-template-columns: 1fr;
    }
    
    .plano-card.professional {
        transform: scale(1);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ====== MOBILE: até 767px ====== */
/* Mobile dropdown override */
@media (max-width: 1023px) {
    .nav-dropdown,
    .nav-flyout {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        display: none;
        background: transparent;
    }

    .nav-item-dropdown.open > .nav-dropdown {
        display: block;
    }

    .nav-dropdown-item.open > .nav-flyout {
        display: block;
        padding-left: 1rem;
    }

    .nav-dropdown-item {
        padding: 0.5rem 1rem;
        border-top: 1px solid var(--border-light);
        flex-wrap: wrap;
    }

    .nav-flyout a {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
        border-top: 1px solid var(--border-light);
    }
}

@media (max-width: 767px) {
    :root {
        --border-radius: 0.5rem;
    }
    
    /* HEADER */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.5rem;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger-menu {
        display: block !important;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    /* HERO */
    section {
        padding: 3rem 0;
    }
    
    .hero-modern {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn:not(.sticky-cta-btn):not(.nav-btn-inline) {
        width: 100%;
    }
    
    /* SEÇÕES */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* SEGMENTOS */
    .segmentos-grid {
        grid-template-columns: 1fr;
    }
    
    .segmento-card {
        padding: 1.5rem;
    }
    
    .segmento-icon {
        font-size: 2.5rem;
    }
    
    .segmento-card h3 {
        font-size: 1.1rem;
    }
    
    /* MÓDULOS */
    .modulos-container {
        grid-template-columns: 1fr;
    }
    
    .modulo-box {
        padding: 1.5rem;
    }
    
    .modulo-icon {
        font-size: 2rem;
    }
    
    /* DIFERENCIAIS */
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .diferencial-item {
        padding: 1.5rem;
    }
    
    .diferencial-icon {
        font-size: 2.5rem;
    }
    
    .diferencial-item h3 {
        font-size: 1rem;
    }
    
    /* PROBLEMAS */
    .problemas-grid {
        grid-template-columns: 1fr;
    }
    
    .problema-item {
        padding: 1.5rem;
    }
    
    .problema-numero {
        font-size: 2rem;
    }
    
    .problema-item h3 {
        font-size: 1rem;
    }
    
    /* CASOS DE SUCESSO */
    .casos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .caso-card {
        padding: 1.5rem;
    }
    
    /* NÚMEROS */
    .numeros-section {
        padding: 3rem 0;
    }
    
    .numeros-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .numero-valor {
        font-size: 2rem;
    }
    
    /* PLANOS */
    .planos-grid {
        grid-template-columns: 1fr;
    }
    
    .plano-card {
        padding: 1.5rem;
    }
    
    .plano-card.professional {
        transform: scale(1);
    }
    
    .plano-preco span {
        font-size: 2rem;
    }
    
    /* DEMO */
    .demo-cta-section {
        padding: 3rem 0;
    }
    
    .demo-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .demo-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .demo-form input,
    .demo-form select {
        padding: 0.75rem;
    }
    
    /* SUPORTE */
    .suporte-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .suporte-item {
        padding: 1.5rem;
    }
    
    /* CTA FINAL */
    .cta-final-section {
        padding: 3rem 0;
    }
    
    .cta-final-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-final-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cta {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* FOOTER */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-col h3,
    .footer-col h4 {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .btn-large {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* ====== EXTRA SMALL: até 480px ====== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: 2fr;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .segmento-card h3 {
        font-size: 1rem;
    }
    
    .modulo-box h3 {
        font-size: 1rem;
    }
    
    .diferencial-item h3 {
        font-size: 0.9rem;
    }
    
    .numero-valor {
        font-size: 1.5rem;
    }
    
    .plano-preco span {
        font-size: 1.75rem;
    }
    
    .demo-content h2 {
        font-size: 1.25rem;
    }
    
    .cta-final-section h2 {
        font-size: 1.25rem;
    }
    
    .segmento-icon,
    .modulo-icon,
    .suporte-icon {
        font-size: 2rem;
    }
    
    .diferencial-icon,
    .problem-icon {
        font-size: 2rem;
    }
}

/* ====== MOBILE LANDSCAPE ====== */
@media (max-width: 767px) and (orientation: landscape) {
    section {
        padding: 2rem 0;
    }
    
    .hero-modern {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* ====== IMPRESSÃO ====== */
@media print {
    .header,
    .cta-buttons,
    .btn-cta,
    .hamburger-menu {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ====== ACESSIBILIDADE ====== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====== TELAS GRANDES (4K) ====== */
@media (min-width: 2560px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .numero-valor {
        font-size: 3.5rem;
    }
}

/* ====== RESPONSIVO: NOVAS SEÇÕES ====== */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .problemas-grid-new {
        grid-template-columns: 1fr;
    }
    .roi-wrapper {
        grid-template-columns: 1fr;
    }
    .roi-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .suporte-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .quem-layout {
        grid-template-columns: 1fr;
    }
    .quem-stats-row {
        gap: 2rem;
    }
    .sticky-bar-stats {
        display: none;
    }
}

@media (max-width: 767px) {
    .sticky-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    .sticky-bar-left,
    .sticky-bar-stats {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .quem-stats-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .roi-wrapper {
        margin: 0;
    }
    .caso-card {
        padding: 1.5rem;
    }
}
