/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
}

/* Small screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Extra small screens (575px and below) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 2.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .newsletter {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .email-input {
        width: 100%;
    }
    
    /* Industries Hero */
    .industries-hero {
        padding: 2rem 0;
    }
    
    .industries-hero .hero-title {
        font-size: 2rem;
    }
    
    .industries-hero .hero-description {
        font-size: 1rem;
    }
    
    /* Sections */
    :root {
        --section-padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Grids */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Industry page */
    .industry-description {
        font-size: 1rem;
    }
    
    .industry-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .industry-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* CTA Section */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Error page */
    .error-title {
        font-size: 4rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Tables */
    .table-wrapper {
        font-size: 0.875rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Cards */
    .product-card,
    .sector-card,
    .testimonial-card,
    .industry-card {
        margin-bottom: 0;
    }
    
    .product-content,
    .testimonial-card,
    .contact-form {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Form elements */
    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
}

/* Extra extra small screens (400px and below) */
@media (max-width: 400px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .error-title {
        font-size: 3rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
    }
}

/* Mobile menu styles */
@media (max-width: 767px) {
    .nav.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        z-index: 100;
    }
    
    .nav.mobile-open .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }
    
    .nav.mobile-open .nav-link:last-child {
        border-bottom: none;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    .specs-table {
        page-break-inside: avoid;
    }
}