/* ================================
   RYZE.AI - RESPONSIVE STYLES
   Mobile-First Media Queries
   ================================ */

/* ============ MOBILE (< 640px) - BASE STYLES ============ */
/* Mobile styles are in main.css and components.css as the base */

/* ============ SMALL TABLETS (640px and up) ============ */
@media (max-width: 640px) {

    /* Typography adjustments */
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    /* Grid adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Header */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu li a {
        display: block;
        padding: var(--spacing-md);
        text-align: center;
    }

    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Pricing */
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    /* CTA Section */
    .cta-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Features Page */
    .feature-card>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
    }

    .feature-card>div[style*="grid-template-columns"]>div {
        direction: ltr !important;
    }
}

/* ============ TABLETS (768px and up) ============ */
@media (min-width: 768px) {

    /* Container adjustments */
    .container {
        padding: 0 var(--spacing-lg);
    }

    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero stays single column on tablet */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ DESKTOP (1024px and up) ============ */
@media (min-width: 1024px) {

    /* Typography enhancements */
    h1 {
        font-size: var(--text-6xl);
    }

    /* Grid adjustments */
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Hero */
    .hero .container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-visual {
        order: 2;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    /* Buttons */
    .btn {
        width: auto;
    }
}

/* ============ LARGE DESKTOP (1280px and up) ============ */
@media (min-width: 1280px) {

    /* Container */
    .container {
        padding: 0 var(--spacing-xl);
    }

    /* Spacing */
    section {
        padding: var(--spacing-3xl) 0;
    }
}

/* ============ PRINT STYLES ============ */
@media print {

    .header,
    .footer,
    .cta-section,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============ HIGH CONTRAST MODE ============ */
@media (prefers-contrast: high) {

    .feature-card,
    .testimonial-card,
    .pricing-card,
    .stat-card {
        border: 2px solid var(--text-primary);
    }

    .btn {
        border: 2px solid currentColor;
    }
}