/* JMX SAS - Responsive Styles */

/* Tablet Styles (768px and up) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Header Mobile */
    #header {
        height: 60px;
    }
    
    main {
        margin-top: 60px;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Grid Mobile */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Hero Mobile */
    #hero {
        height: 70vh;
        min-height: 500px;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 64, 175, 0.75) 50%, rgba(249, 115, 22, 0.4) 100%);
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
    
    /* Section Padding Mobile */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 10px;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Floating Buttons Mobile */
    #floating-buttons {
        bottom: 15px;
        right: 15px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
}

/* Navigation Mobile Styles */
@media (max-width: 768px) {
    /* Header Mobile Adjustments */
    .header-content {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Show mobile navigation */
    .nav-container {
        position: static;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Show hamburger menu */
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }
    
    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
        display: flex !important;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
        list-style: none;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1.5rem 2rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
        color: var(--dark-text);
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background-color: rgba(249, 115, 22, 0.1);
        color: var(--accent-orange);
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    /* Mobile CTA Button */
    .mobile-cta {
        margin-top: 2rem !important;
        padding: 0 2rem;
        border: none !important;
    }
    
    .mobile-cta-btn {
        width: 100%;
        text-align: center;
        border-bottom: none !important;
        background-color: var(--accent-orange) !important;
        color: var(--white) !important;
        border-radius: 6px !important;
        font-size: 1rem !important;
        padding: 12px 24px !important;
        display: block;
        transition: all 0.3s ease;
    }
    
    .mobile-cta-btn:hover {
        background-color: #ea580c !important;
        transform: translateY(-2px);
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }
    
    body.menu-open .nav-menu {
        left: 0 !important;
    }
}

/* Hide hamburger and mobile CTA on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .mobile-cta {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    #header,
    #floating-buttons {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* About Section Responsive */
@media (max-width: 1024px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-text {
        padding-right: 1rem;
    }
    
    .company-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .about-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .mission h3, .vision h3, .values h3 {
        font-size: 1.3rem;
    }
    
    .mission p, .vision p {
        font-size: 1rem;
    }
    
    .company-logo {
        width: 150px;
    }
    
    .slogan-text {
        font-size: 1.5rem;
    }
    
    .company-slogan {
        padding: 1.5rem;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .about-header {
        margin-bottom: 2rem;
    }
    
    .about-header h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .mission, .vision, .values {
        margin-bottom: 2rem;
    }
    
    .company-logo {
        width: 120px;
    }
    
    .slogan-text {
        font-size: 1.3rem;
    }
    
    .company-slogan {
        padding: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
}
/* Products Section Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card-header {
        padding: 1.5rem;
    }
    
    .product-card-body {
        padding: 1.5rem;
    }
    
    .product-card-icon {
        font-size: 2.5rem;
    }
    
    .product-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .products-header h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card-header {
        padding: 1.5rem 1rem;
    }
    
    .product-card-body {
        padding: 1.5rem 1rem;
    }
    
    .product-card-footer {
        padding: 1rem;
    }
    
    .product-card-icon {
        font-size: 2.2rem;
    }
    
    .product-card-title {
        font-size: 1.1rem;
    }
    
    .product-card-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-header {
        margin-bottom: 2rem;
    }
    
    .products-header h2 {
        font-size: 1.8rem;
    }
    
    .product-card-header {
        padding: 1rem;
    }
    
    .product-card-body {
        padding: 1rem;
    }
    
    .product-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0 0.4rem 1.2rem;
    }
    
    .product-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
/* Services Section Responsive */
@media (max-width: 1024px) {
    .services-grid {
        gap: 2rem;
    }
    
    .service-content {
        padding: 2rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        font-size: 3.5rem;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .services-cta-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .service-cta {
        flex-direction: column;
    }
    
    .service-cta .btn {
        width: 100%;
    }
    
    .services-cta-section {
        padding: 2rem 1rem;
    }
    
    .services-cta-section h3 {
        font-size: 1.5rem;
    }
    
    .services-cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-header {
        margin-bottom: 2rem;
    }
    
    .services-header h2 {
        font-size: 1.8rem;
    }
    
    .service-image {
        height: 140px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
    
    .services-cta-section {
        padding: 1.5rem 0.5rem;
    }
    
    .services-cta-section h3 {
        font-size: 1.3rem;
    }
}
/* Contact Section Responsive */
@media (max-width: 1024px) {
    .contact-content {
        gap: 3rem;
    }
    
    .contact-cta h3 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
    }
    
    .contact-cta {
        padding: 1.5rem;
    }
    
    .contact-cta h3 {
        font-size: 1.6rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .contact-cta {
        padding: 1rem;
    }
    
    .contact-cta h3 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section:first-child {
        grid-column: 1;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}
/* Floating Buttons Responsive */
@media (max-width: 768px) {
    #floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .floating-btn::before {
        right: 55px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .floating-btn::after {
        right: 45px;
        border-left-width: 5px;
        border-top-width: 5px;
        border-bottom-width: 5px;
    }
}

@media (max-width: 480px) {
    #floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    /* Hide tooltips on very small screens */
    .floating-btn::before,
    .floating-btn::after {
        display: none;
    }
    
    /* Reduce pulse animation intensity on mobile */
    @keyframes pulse-whatsapp {
        0% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
        50% { box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3), 0 0 0 5px rgba(37, 211, 102, 0.1); }
        100% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
    }
}
/* Advanced Responsive Optimizations */

/* Extra Small Devices (320px and up) */
@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .product-card-header {
        padding: 0.8rem;
    }
    
    .product-card-body {
        padding: 0.8rem;
    }
    
    .service-content {
        padding: 0.8rem;
    }
}

/* Large Tablets (1024px to 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }
    
    .services-grid {
        gap: 2.5rem;
    }
}

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-padding {
        padding: 120px 0;
    }
    
    .products-grid {
        gap: 2.5rem;
    }
    
    .services-grid {
        gap: 4rem;
    }
}

/* Landscape Orientation Optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        gap: 0.8rem;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo-img,
    .company-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-menu a {
        padding: 1rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .product-card:hover,
    .service-card:hover,
    .contact-item:hover {
        transform: none;
    }
    
    /* Enhance focus states for accessibility */
    .btn:focus,
    .nav-menu a:focus,
    .floating-btn:focus {
        outline: 3px solid var(--accent-orange);
        outline-offset: 2px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll-indicator,
    .floating-btn,
    .product-card,
    .service-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (if system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --dark-text: #ffffff;
        --secondary-gray: #cccccc;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark-text);
    }
    
    .product-card,
    .service-card,
    .contact-item,
    .company-slogan,
    .contact-cta,
    .services-cta-section {
        background-color: #2a2a2a;
        border: 1px solid #3a3a3a;
    }
    
    .modal-content {
        background-color: #2a2a2a;
        color: var(--dark-text);
    }
}

/* Print Styles Enhancement */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .hero-overlay,
    .floating-buttons,
    .hamburger,
    .btn {
        display: none !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .section-padding {
        padding: 20px 0 !important;
    }
    
    .products-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    a[href^="javascript:"] {
        display: none !important;
    }
    
    .contact-details p,
    .footer-contact p {
        font-size: 12px !important;
    }
}