/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablets - Landscape */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets - Portrait */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 120px 0 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 40px;
    }
    
    .image-decoration {
        display: none;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact {
        display: inline-block;
        text-align: left;
    }
    
    /* Carousel */
    .carousel-btn {
        display: none;
    }
    
    /* Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
    }
}

/* Mobile - Large */
@media (max-width: 576px) {
    /* Typography */
    h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
    h3 { font-size: clamp(1.25rem, 6vw, 1.75rem); }
    h4 { font-size: clamp(1.125rem, 5vw, 1.5rem); }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* About */
    .mission-vision {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .about-features {
        gap: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Services */
    .service-card {
        padding: 30px 20px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Stats */
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .contact-items {
        margin: 20px 0;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Map */
    .map-container iframe {
        height: 300px;
    }
    
    /* Footer */
    .footer-top {
        padding: 40px 0;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

/* Mobile - Small */
@media (max-width: 380px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero-content {
        padding: 100px 0 40px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Promo Banner */
    .promo-item {
        font-size: 0.875rem;
    }
    
    .promo-icon {
        font-size: 1.25rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    #preloader,
    .cookie-notice,
    .header,
    .promo-banner,
    .carousel-btn,
    .carousel-indicators,
    .whatsapp-float,
    .scroll-to-top,
    .hero-shape,
    .social-links,
    .quick-actions,
    form,
    .map-section {
        display: none !important;
    }
    
    /* Adjust layout */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Ensure content is visible */
    * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FFD700;
        --secondary-color: #000;
        --accent-color: #FF0000;
        --background-color: #FFF;
        --text-color: #000;
    }
    
    .btn,
    .service-card,
    .testimonial-content {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .promo-slider {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e0e0e0;
        --white: #2a2a2a;
    }
    
    .header {
        background-color: var(--white);
    }
    
    .nav-menu {
        background-color: var(--white);
    }
    
    img {
        opacity: 0.9;
    }
} 