/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
======================================== */

/* Large Desktop - 1400px and up */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop - Max 1399px */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4.5rem);
    }
}

/* Tablet - Max 1023px */
@media (max-width: 1023px) {
    .container {
        max-width: 960px;
    }
    
    /* Navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        gap: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--bg-gray);
    }
    
    .nav-btn {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Grids */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Max 767px */
@media (max-width: 767px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Typography */
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    h3 { font-size: clamp(1.5rem, 6vw, 2rem); }
    
    /* Hero */
    .hero {
        min-height: 90vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-auto {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .mlm-plan-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Cards */
    .card {
        padding: var(--spacing-lg);
    }
    
    /* Scroll to top */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile - Max 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Navigation */
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Product Cards */
    .product-image {
        height: 240px;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    /* Pricing */
    .pricing-price {
        font-size: 3rem;
    }
    
    /* Stats */
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
}

/* High Resolution Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .card-icon,
    .mlm-card-icon,
    .pricing-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-toggle,
    .scroll-top,
    .preloader {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
