/* Responsive Design - Mobile First */

/* Large Screens (Desktop) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium Screens (Tablet) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-bottom: 1px solid var(--border);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a,
    .nav-menu button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Dropdown on mobile */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        margin: 0;
        padding: 0;
        display: none;
    }

    .nav-dropdown-menu.show {
        display: block;
    }

    .nav-dropdown-menu a {
        padding-left: 2rem;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    /* Mega Menu on mobile */
    .nav-mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        margin: 0;
        padding: var(--spacing-md);
        min-width: auto;
        display: none;
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .nav-mega-menu.show {
        display: grid;
    }

    .mega-menu-column {
        border-bottom: 1px solid var(--border);
        padding-bottom: var(--spacing-md);
    }

    .mega-menu-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mega-menu-title {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .mega-menu-items a {
        padding-left: var(--spacing-md);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 120px var(--spacing-md) var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    /* Grids */
    .feature-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .feature-card,
    .pricing-card {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Trust Badges */
    .trust-badges {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Comparison Table */
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .hero-cta {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

