/* ================================================
   RESPONSIVE STYLES - Media Queries
   Elevate Agency
   ================================================ */

/* ========== LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* ========== DESKTOP (1024px - 1279px) ========== */
@media (max-width: 1279px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }
}

/* ========== TABLET (768px - 1023px) ========== */
@media (max-width: 1023px) {
    :root {
        --spacing-24: 5rem;
        --spacing-16: 3rem;
    }
    
    /* Navigation */
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Section Headers */
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    /* Grids become 2 columns */
    .services-grid,
    .process-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Pricing grid stacks */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .pricing-card-featured {
        transform: none;
    }
    
    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-10);
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    /* Contact section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-10);
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MOBILE LARGE (640px - 767px) ========== */
@media (max-width: 767px) {
    :root {
        --container-padding: 1.25rem;
        --spacing-24: 4rem;
        --spacing-16: 2.5rem;
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-20) 0 var(--spacing-16);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    /* Grids become single column */
    .services-grid,
    .process-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Form rows */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Service checkboxes */
    .service-checkboxes {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-newsletter {
        text-align: center;
    }
}

/* ========== MOBILE SMALL (< 480px) ========== */
@media (max-width: 479px) {
    :root {
        --container-padding: 1rem;
        --spacing-24: 3rem;
        --spacing-16: 2rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.375rem;
        --font-size-2xl: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-3) var(--spacing-4);
        font-size: var(--font-size-sm);
    }
    
    .btn-lg {
        padding: var(--spacing-3) var(--spacing-6);
    }
    
    /* Cards */
    .service-card,
    .pricing-card,
    .testimonial-card {
        padding: var(--spacing-6);
    }
    
    /* Process icons */
    .process-icon {
        width: 64px;
        height: 64px;
    }
    
    .process-icon svg {
        width: 32px;
        height: 32px;
    }
    
    /* Modal */
    .modal-content {
        padding: var(--spacing-4);
        border-radius: var(--border-radius-xl);
    }
    
    .modal-header,
    .modal-form {
        padding: var(--spacing-4);
    }
    
    .modal-header h2 {
        font-size: var(--font-size-xl);
        padding-right: var(--spacing-8);
    }
    
    .modal-steps {
        flex-wrap: wrap;
        gap: var(--spacing-2);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    /* Toast */
    .toast {
        left: var(--spacing-4);
        right: var(--spacing-4);
        bottom: var(--spacing-4);
    }
    
    /* FAQ */
    .faq-question {
        font-size: var(--font-size-base);
        padding: var(--spacing-4);
    }
    
    .faq-answer p {
        padding: 0 var(--spacing-4) var(--spacing-4);
    }
}

/* ========== HEIGHT ADJUSTMENTS ========== */
@media (max-height: 700px) and (min-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navigation,
    .mobile-menu,
    .hero-buttons,
    .cta-section,
    .footer,
    .modal,
    .toast,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ========== 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;
    }
}

/* ========== HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1a1d52;
        --color-accent: #a01420;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    input,
    select,
    textarea {
        border-width: 2px;
    }
}
