/* ========================================
   Responsive CSS - Media Queries
   ======================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* About */
    .about-grid {
        gap: 40px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-cta-mobile {
        display: block;
        margin-top: 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Section Padding */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Process Steps */
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Back to Top */
    .back-to-top {
        right: 20px;
    }
}

/* Mobile Large (480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    /* About */
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        flex: 0 0 33.333%;
    }
    
    .stat .number {
        font-size: 2rem;
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    /* CTA Stats */
    .cta-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .quick-buttons {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button svg {
        width: 20px;
        height: 20px;
    }
    
    /* Cookie Notice */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-content p {
        margin-right: 0;
    }
}

/* Mobile Small (320px) */
@media (max-width: 320px) {
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    /* About Stats */
    .stat {
        flex: 0 0 50%;
    }
    
    /* Process Step */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    /* Hide elements */
    .navbar,
    .hero-scroll,
    .whatsapp-button,
    .back-to-top,
    .cookie-notice,
    .carousel-controls,
    .carousel-indicators {
        display: none !important;
    }
    
    /* Adjust layout */
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    /* Show all content */
    .testimonial-item {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimize images and icons for retina */
    .hero-bg img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    
    .value-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }
} 