/* Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -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: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-filters {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .benefits-grid,
    .products-grid,
    .reviews-grid,
    .categories-grid,
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card,
    .product-card,
    .review-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .next-steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mv-grid,
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand .logo {
        height: 40px;
    }
    
    .hero {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .benefit-card,
    .product-card,
    .review-card,
    .contact-info-card,
    .info-card {
        padding: 1.25rem;
    }
    
    .product-image,
    .category-image,
    .promotion-image {
        height: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-details {
        padding: 2rem;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .catalog-filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .promotion-card {
        margin-bottom: 1rem;
    }
    
    .promotion-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .cookies-table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .cookies-table thead,
    .cookies-table tbody,
    .cookies-table th,
    .cookies-table td,
    .cookies-table tr {
        display: block;
    }
    
    .cookies-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cookies-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 5px;
    }
    
    .cookies-table td {
        border: none;
        position: relative;
        padding: 0.5rem 0.5rem 0.5rem 35%;
        white-space: normal;
    }
    
    .cookies-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #705d5d;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .benefit-card,
    .product-card,
    .review-card {
        padding: 1rem;
    }
    
    .newsletter-form .form-group input {
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .thank-you-details {
        padding: 1.5rem;
    }
    
    .cookie-content {
        padding: 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .nav-menu {
        top: 60px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .page-header {
        background: none;
        border-bottom: 2px solid #705d5d;
    }
    
    .section-header {
        border-bottom: 1px solid #ddd;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .legal-document {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .legal-document h2 {
        page-break-before: always;
        margin-top: 0;
    }
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .product-card:hover,
    .benefit-card:hover,
    .category-card:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #2c2c2c;
        color: white;
    }
    
    .modal-content h2,
    .modal-content h3 {
        color: white;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #444;
        color: white;
        border-color: #666;
    }
    
    .switch .slider {
        background-color: #666;
    }
}

/* Accessibility Enhancements */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Better spacing for form elements */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .checkbox-label {
        padding: 0.5rem;
    }
}

/* Focus states for keyboard navigation */
@media (max-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid #705d5d;
        outline-offset: 2px;
    }
}
