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

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .product-showcase {
        height: 300px;
    }
    
    .bottle-mockup {
        width: 100px;
        height: 160px;
    }
    
    .heritage-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.6rem;
        --spacing-xl: 2.4rem;
        --spacing-xxl: 3.2rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 30px var(--shadow-light);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-medium);
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    body[dir="rtl"] .nav-menu {
        flex-direction: column;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .product-showcase {
        height: 250px;
    }
    
    .bottle-mockup {
        width: 80px;
        height: 130px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .problem-grid,
    .features-grid,
    .science-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .solution-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .heritage-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    body[dir="rtl"] .footer-bottom {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        text-align: center;
    }
    
    .language-toggle {
        top: 15px;
        right: 15px;
    }
    
    body[dir="rtl"] .language-toggle {
        right: auto;
        left: 15px;
    }
}

/* Large phones */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-showcase {
        height: 200px;
    }
    
    .bottle-mockup {
        width: 60px;
        height: 100px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .step,
    .problem-card,
    .feature-card,
    .science-card,
    .testimonial-card {
        padding: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-showcase {
        height: 180px;
    }
    
    .bottle-mockup {
        width: 50px;
        height: 85px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .problem-icon,
    .feature-icon,
    .science-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
    
    .heritage-image .image-placeholder {
        height: 200px;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-showcase {
        height: 160px;
    }
    
    .bottle-mockup {
        width: 45px;
        height: 75px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    body[dir="rtl"] .language-toggle {
        right: auto;
        left: 10px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bottle-mockup {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .product-card,
    .problem-card,
    .feature-card,
    .science-card,
    .testimonial-card {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .hero-container {
        padding-top: 100px;
    }
    
    .hero-scroll {
        display: none;
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.4);
        --shadow-heavy: rgba(0, 0, 0, 0.5);
    }
}

/* Print styles */
@media print {
    .language-toggle,
    .navbar,
    .hero-scroll,
    .newsletter-form,
    .social-links {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-showcase {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}