/* Mobile First Responsive Design */

/* Small devices (phones, 576px and up) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 15px;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
    .nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 0 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav.active {
        display: flex;
        right: 0;
    }
    
    .nav a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: #333;
    }
    
    .nav a:hover {
        background: #f8f9fa;
    }
    
    .nav .cta-button {
        background: #2563eb;
        color: white !important;
        margin: 1rem 2rem;
        text-align: center;
        border-radius: 8px;
        border: none;
    }
    
    .hero {
        padding: 4rem 0 3rem; /* Reduced top padding for mobile */
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .examples-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonials-summary blockquote {
        padding: 1.5rem;
    }
    
    .testimonials-summary blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }
    
    .testimonials-summary blockquote p {
        font-size: 1.1rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Contact page specific */
    .contact-grid {
        flex-direction: column !important;
        gap: 2rem !important;
        max-width: 100% !important;
    }
    
    .contact-form,
    .contact-info {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 769px) and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 993px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .hero-cta {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
