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

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* Medium screens */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .story-content {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
}

/* Small screens */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
    }
    
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Page headers */
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Grid layouts */
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Company page */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Contact page */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Thanks page */
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Extra small screens */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Page headers */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Grid layouts */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product cards */
    .product-info {
        padding: 1rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links-large {
        grid-template-columns: 1fr;
    }
    
    .contact-quick-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-form {
        gap: 0.75rem;
    }
    
    /* Cookie banner */
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Filter buttons */
    .filter-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Thanks page */
    .thanks-section {
        padding: 100px 0 40px;
    }
    
    .thanks-content h1 {
        font-size: 2.5rem;
    }
    
    .thanks-message {
        font-size: 1.1rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .detail-text {
        text-align: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile landscape */
@media (max-width: 575px) and (orientation: landscape) {
    .hero-banner {
        height: 100vh;
        min-height: 600px;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* Very small screens */
@media (max-width: 479px) {
    .container {
        padding: 0 10px;
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Page headers */
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .info-item,
    .value-item,
    .cert-item,
    .contact-item {
        padding: 1.5rem;
    }
    
    /* Achievement numbers */
    .achievement-number {
        font-size: 2.5rem;
    }
    
    /* Form elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Modal */
    .cookie-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    /* Legal text */
    .legal-text {
        font-size: 0.95rem;
    }
    
    .legal-text ul,
    .legal-text ol {
        padding-left: 1.5rem;
    }
    
    /* Thanks page details */
    .thanks-details {
        padding: 1.5rem;
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-hamburger,
    .cookie-banner,
    .cookie-modal,
    .btn,
    .social-links,
    .newsletter-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .page-header {
        margin-top: 0;
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .hero-banner {
        display: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        color: #000;
    }
    
    .legal-text h2 {
        margin-top: 1.5rem;
        border-top: 1px solid #ccc;
        padding-top: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Ensure images and icons remain crisp */
    .logo,
    .info-icon,
    .value-icon,
    .cert-icon,
    .contact-icon,
    .achievement-icon,
    .faq-icon,
    .contact-quick-icon,
    .detail-icon,
    .success-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-banner,
    .product-card,
    .info-item,
    .value-item,
    .cert-item,
    .contact-item,
    .social-link,
    .recommendation-item {
        transition: none;
    }
    
    .hero-banner::before {
        animation: none;
    }
    
    .loading {
        animation: none;
        border: 2px solid currentColor;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This is intentionally minimal as the design uses specific brand colors */
    /* Only adjust for better readability in dark environments */
    
    .legal-text {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 2rem;
        border-radius: var(--border-radius);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-banner {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Container queries for better responsive design */
@supports (container-type: inline-size) {
    .products-grid {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .product-card {
            min-width: 100%;
        }
    }
}

/* Focus indicators for better accessibility */
@media (any-hover: none) {
    /* Touch devices - ensure hover effects are accessible */
    .btn:hover,
    .product-card:hover,
    .info-item:hover,
    .value-item:hover {
        transform: none;
    }
    
    .btn:active,
    .product-card:active,
    .info-item:active,
    .value-item:active {
        transform: scale(0.98);
    }
}

/* Pointer precision adjustments */
@media (pointer: coarse) {
    /* Larger touch targets for touch devices */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-menu a {
        padding: 15px;
    }
    
    .faq-question {
        min-height: 60px;
    }
    
    .filter-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}
