/* Responsive Design Styles */

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

/* Standard Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .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(-6px, -8px);
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Company Info */
    .company-info .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Products and Experts */
    .products-grid,
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tips Grids */
    .tips-grid,
    .care-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Section padding */
    .section {
        padding: 60px 0;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Company stats */
    .company-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Tips and care categories */
    .tips-grid,
    .care-categories {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Newsletter form */
    .newsletter-form {
        padding: 1.5rem;
    }
    
    /* Steps grid */
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Cookie modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Header adjustments */
    .nav-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Hero section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Section adjustments */
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Cards and content */
    .product-card,
    .tip-card,
    .care-category,
    .expert-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Expert photos */
    .expert-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Product icons */
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Form adjustments */
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .submit-button {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Legal pages */
    .legal-content {
        padding: 1rem 10px;
    }
    
    .thank-you-content {
        padding: 1rem 10px;
    }
    
    .thank-you-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Cookie banner mobile */
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-buttons {
        gap: 0.5rem;
    }
    
    .cookie-buttons button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 375px) {
    /* Further reduce spacing and font sizes */
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .product-card,
    .tip-card,
    .care-category,
    .expert-card {
        padding: 1rem;
    }
    
    .newsletter-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    /* Adjust font sizes */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Button sizes */
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high-DPI displays */
    .section-icon,
    .product-icon,
    .expert-photo,
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tip-highlight {
        border-left-width: 6px;
        background: #fffacd;
    }
    
    .product-card,
    .tip-card,
    .care-category,
    .expert-card {
        border: 2px solid #333;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This website maintains light theme for brand consistency,
       but we can add subtle dark mode hints for system elements */
    
    ::placeholder {
        color: #999;
    }
    
    .modal-content {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Focus Visible for Better Accessibility */
@supports selector(:focus-visible) {
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    a:focus {
        outline: none;
    }
    
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    a:focus-visible {
        outline: 2px solid #ff8308;
        outline-offset: 2px;
    }
}

/* Container Queries (Progressive Enhancement) */
@supports (container-type: inline-size) {
    .newsletter-content {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .newsletter-content {
            grid-template-columns: 1fr;
        }
    }
}
