/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Hero spacing adjustments */
    .hero {
        padding-bottom: 100px !important;
    }
    
    .scroll-indicator {
        bottom: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem var(--spacing-xl) var(--spacing-xl);
        gap: var(--spacing-lg);
        transition: right var(--transition-base);
        overflow-y: auto;
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-cta .btn-whatsapp,
    .nav-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 80px !important;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Now */
    .urgency-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* Hero specific */
    .hero {
        padding-bottom: 60px !important;
    }
    
    .hero-cta {
        margin-bottom: 60px !important;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-badge,
    .section-badge,
    .why-now-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-card,
    .service-card,
    .urgency-card {
        padding: var(--spacing-md);
    }
    
    .about-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .mission-statement {
        padding: var(--spacing-md);
    }
    
    .mission-icon {
        font-size: 2rem;
    }
    
    .mission-statement blockquote {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-whatsapp,
    .btn-service,
    .btn-submit,
    .btn-urgent {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .urgency-stat {
        font-size: 2rem;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-indicator,
    .hero-cta,
    .service-footer,
    .why-now-cta,
    .contact-form-wrapper {
        display: none !important;
    }
    
    body {
        color: #000;
    }
    
    .hero,
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator,
    .whatsapp-float {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if needed */
}