/* ========================================
   MIRTILO DIGITAL - RESPONSIVE STYLES
   Mobile-First Approach
   ======================================== */

/* ========================================
   TABLET (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --text-7xl: 4.5rem;
        /* 72px */
        --text-6xl: 3.75rem;
        /* 60px */
        --text-5xl: 3rem;
        /* 48px */
        --text-4xl: 2.25rem;
        /* 36px */
        --spacing-5xl: 8rem;
        /* 128px */
        --spacing-4xl: 6rem;
        /* 96px */
    }

    /* Navigation */
    .nav-menu {
        gap: var(--spacing-lg);
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-6xl);
    }

    .hero-stats {
        gap: var(--spacing-2xl);
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    :root {
        --text-7xl: 3.5rem;
        /* 56px */
        --text-6xl: 3rem;
        /* 48px */
        --text-5xl: 2.5rem;
        /* 40px */
        --text-4xl: 2rem;
        /* 32px */
        --text-3xl: 1.75rem;
        /* 28px */
        --text-2xl: 1.5rem;
        /* 24px */

        --spacing-5xl: 5rem;
        /* 80px */
        --spacing-4xl: 4rem;
        /* 64px */
        --spacing-3xl: 3rem;
        /* 48px */
        --spacing-2xl: 2rem;
        /* 32px */

        --container-padding: 1.25rem;
    }

    section {
        padding: var(--spacing-4xl) 0;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-sm) 0;
    }

    .nav-link-cta {
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: var(--spacing-3xl);
        padding-bottom: var(--spacing-3xl);
    }

    .hero-title {
        font-size: var(--text-4xl);
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: var(--text-base);
        margin-bottom: var(--spacing-xl);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .service-card {
        padding: var(--spacing-xl);
    }

    /* Process */
    .process-step {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .process-step:not(:last-child)::before {
        left: 15px;
        top: 75px;
    }

    .process-step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }

    .process-step-title {
        font-size: var(--text-xl);
    }

    .process-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .project-image {
        height: 200px;
    }

    .project-stats {
        gap: var(--spacing-md);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .testimonial-card {
        padding: var(--spacing-xl);
    }

    .testimonial-text {
        font-size: var(--text-base);
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .pricing-card {
        padding: var(--spacing-xl);
    }

    .pricing-amount {
        font-size: var(--text-4xl);
    }

    /* Contact */
    .contact-title {
        font-size: var(--text-3xl);
    }

    .contact-description {
        font-size: var(--text-base);
    }

    .contact-form {
        padding: var(--spacing-xl);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    /* Section Headers */
    .section-title {
        font-size: var(--text-4xl);
    }

    .section-description {
        font-size: var(--text-base);
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    :root {
        --text-6xl: 2rem;
        /* 32px */
        --text-5xl: 1.75rem;
        /* 28px */
        --text-4xl: 1.5rem;
        /* 24px */
        --container-padding: 1rem;
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-3xl);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--text-sm);
    }

    /* Process */
    .process-step-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .process-step:not(:last-child)::before {
        left: 10px;
    }

    /* Projects */
    .project-image {
        height: 180px;
        font-size: var(--text-4xl);
    }

    .project-content {
        padding: var(--spacing-lg);
    }

    .project-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    /* Pricing */
    .pricing-header {
        padding-bottom: var(--spacing-lg);
    }

    .pricing-amount {
        font-size: var(--text-3xl);
    }

    .pricing-features {
        margin-bottom: var(--spacing-xl);
    }

    /* Contact */
    .contact-feature {
        flex-direction: column;
        text-align: center;
    }

    /* Section Headers */
    .section-title {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-xl);
    }
}

/* ========================================
   LARGE DESKTOP (min-width: 1440px)
   ======================================== */

@media (min-width: 1440px) {
    :root {
        --container-max-width: 1400px;
        --text-7xl: 5rem;
        /* 80px */
        --text-6xl: 4rem;
        /* 64px */
    }

    .hero-title {
        font-size: var(--text-7xl);
    }

    .section-title {
        font-size: var(--text-6xl);
    }
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .nav,
    .mobile-menu-toggle,
    .hero-shapes,
    .cursor,
    .cursor-follower,
    .footer-social {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }
}