/* ===================================
   RESPONSIVE STYLES
   Mobile-first approach
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --text-3xl: 36px;
        --text-4xl: 48px;
        --text-5xl: 64px;
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        display: block;
        background: rgba(26, 26, 26, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        transition: left 0.3s ease;
        padding: var(--space-6);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .nav-list a {
        display: block;
        padding: var(--space-3);
        font-size: var(--text-lg);
        border-bottom: 1px solid rgba(255, 107, 53, 0.2);
        /* Drawer mobile tem bg escuro (rgba(26,26,26,0.98)) — texto precisa ser branco */
        color: #FFFFFF !important;
        min-height: 48px;
    }
    .nav-list a:hover,
    .nav-list a:focus {
        color: #FF6B35 !important;
        background: rgba(255, 107, 53, 0.1);
    }
    .nav-list .dropdown-menu a {
        color: rgba(255, 255, 255, 0.88) !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-video-preview {
        display: none; /* Hide on mobile */
    }
    
    /* Sections */
    section {
        padding: var(--space-10) 0;
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    /* Comparison Grid */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .comparison-arrow {
        font-size: var(--text-3xl);
        transform: rotate(90deg);
    }
    
    /* Tech Grid */
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    /* Table */
    .comparison-table {
        overflow-x: auto;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .table-divider {
        display: none;
    }
    
    .table-header .table-col:first-child {
        display: none;
    }
    
    /* Results */
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-number {
        font-size: var(--text-3xl);
    }
    
    /* Beyond Cards */
    .beyond-grid {
        grid-template-columns: 1fr;
    }
    
    /* Target Grid */
    .target-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .qualification-form {
        padding: var(--space-4);
    }
    
    .form-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        padding: var(--space-2);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --space-4: 16px;
        --space-6: 24px;
        --space-8: 32px;
        --space-10: 40px;
    }
    
    .container {
        padding: 0 var(--space-2);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .stat-number {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .btn-large {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-base);
    }
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .hero-video,
    .hero-particles,
    .btn,
    .menu-toggle,
    .scroll-indicator,
    .footer-social {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-video {
        display: none;
    }
    
    .hero-particles {
        display: none;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: unset;
        padding: var(--space-8) 0;
    }
    
    .hero-content {
        padding: var(--space-6) var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--space-3);
    }
    
    .stat-number {
        font-size: var(--text-3xl);
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .option-card,
    .tech-card,
    .faq-question {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .tech-card:hover,
    .beyond-card:hover,
    .btn:hover {
        transform: none; /* Remove transform on touch devices */
    }
}
