/* ================================================
   RESPONSIVE DESIGN
   Production-level Mobile First
   ================================================ */

/* ================================================
   TABLETS (768px - 1024px)
   ================================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .inquiry-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   MOBILE (320px - 767px)
   ================================================ */

@media (max-width: 768px) {
    /* Root Variables */
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.6rem;
        --spacing-xl: 2.4rem;
        --spacing-2xl: 3rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Header */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: var(--spacing-lg) var(--spacing-md);
        gap: var(--spacing-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
    }
    
    .nav-cta {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.65rem 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-visual {
        height: 200px;
        margin: var(--spacing-xl) 0;
    }
    
    .floating-card {
        width: 100px;
        padding: var(--spacing-md);
        font-size: 0.8rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    /* Why Choose Us */
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .why-card {
        padding: var(--spacing-lg);
    }
    
    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Form */
    .inquiry-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .inquiry-content h2 {
        font-size: 1.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .badge {
        justify-content: center;
        width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Map */
    .map-container iframe {
        height: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .sticky-call-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 6rem;
        right: 1rem;
        font-size: 1.2rem;
    }
}

/* ================================================
   SMALL PHONES (320px - 480px)
   ================================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .floating-card {
        width: 90px;
        padding: var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
    }
}

/* ================================================
   LANDSCAPE MODE
   ================================================ */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}

/* ================================================
   TABLETS LANDSCAPE
   ================================================ */

@media (max-width: 1024px) and (orientation: landscape) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   ACCESSIBILITY & PRINT
   ================================================ */

@media print {
    .navbar,
    .sticky-call-btn,
    .whatsapp-btn,
    .inquiry-section,
    .footer {
        display: none;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #f0f0f0;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .service-card,
    .stat-card,
    .why-card,
    .testimonial-card {
        background: #2a2a2a;
        color: #f0f0f0;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        background: #3a3a3a;
        color: #f0f0f0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar,
    .service-card,
    .why-card {
        border-width: 0.5px;
    }
}