/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-grid .footer-col:last-child {
        grid-column: span 3;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-auto-rows: 250px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-grid .footer-col:last-child {
        grid-column: span 2;
    }

    .hero-side-social {
        display: none;
    }

    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .case-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: 100svh;
        padding-top: 80px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .about,
    .services,
    .team,
    .cases,
    .testimonials,
    .blog,
    .contact {
        padding: 5rem 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .case-card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid .footer-col:last-child {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .map-section {
        height: 300px;
    }

    .about-image-main img {
        height: 400px;
    }

    .about-experience-badge {
        width: 100px;
        height: 100px;
        top: -1rem;
        left: -1rem;
    }

    .badge-number {
        font-size: 1.6rem;
    }

    .about-image-accent {
        width: 160px;
        height: 120px;
        bottom: -1.5rem;
        left: -1.5rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stats-grid {
        gap: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-sub {
        display: none;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        min-width: 80px;
    }

    .marquee-item {
        font-size: 0.8rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Ultra Wide */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3.2rem;
    }
}

/* Touch Device Overrides */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    .team-card-overlay {
        opacity: 1;
    }

    .team-social a {
        transform: translateY(0);
        opacity: 1;
    }

    .case-card-content p,
    .case-link {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .hero-scroll-indicator,
    .hero-side-social,
    .preloader,
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section-title,
    .hero-title {
        color: #000;
    }
}

/* How It Works Responsive */
@media (max-width: 1024px) {
    .steps-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .step-card {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 4rem 0;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .step-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
}

/* Trust Section Responsive */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .trust {
        padding: 4rem 0;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .trust-card {
        padding: 2rem 1.5rem;
    }
    
    .trust-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        gap: 1rem;
    }
    
    .trust-card {
        padding: 1.5rem;
    }
    
    .trust-card h3 {
        font-size: 1.05rem;
    }
}
