/* Mobile First Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-cta-group {
        justify-content: flex-start;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .hero-container {
        text-align: center;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-content {
        flex-direction: row;
        text-align: left;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .hero-visual {
        gap: 1.5rem;
    }
    
    .hero-main-image,
    .hero-secondary-image {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }
    
    .hero-logo-img {
        max-width: 180px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-medium);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-medium);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--light-grey);
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        z-index: 100;
    }
    
    .nav-toggle.active {
        position: fixed;
        top: 1rem;
        right: 1rem;
    }
    
    /* Dropdown adjustments for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-grey);
        border-radius: 0;
        padding: 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 3rem;
        border-bottom: 1px solid var(--white);
        font-size: 1rem;
    }
    
    .dropdown.active .nav-link {
        background-color: var(--light-grey);
        color: var(--primary-orange);
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        margin: 0 1rem;
    }
    
    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* FAQ adjustments */
    .faq-item h3 {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .faq-item div[itemprop="acceptedAnswer"] {
        padding: 1rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-link {
        padding: 1rem 1rem;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2rem;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .product-card {
        margin: 0 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .product-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
    
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-img,
    .product-img {
        transition: none !important;
    }
    
    .product-card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #1f2937;
        --text-light: #6b7280;
        --white: #ffffff;
        --light-grey: #f8fafc;
        --beige: #f5f5f4;
        --eggshell: #fafaf9;
    }
    
    body {
        background-color: var(--eggshell);
        color: var(--text-dark);
    }
    
    .product-card,
    .review-card,
    .faq-item {
        background-color: var(--white);
    }
    
    .nav-menu {
        background-color: var(--eggshell);
    }
    
    .dropdown-menu {
        background-color: var(--eggshell);
    }
}

/* Focus visible for better accessibility */
@media (prefers-reduced-motion: no-preference) {
    .focus-visible {
        outline: 2px solid var(--primary-orange);
        outline-offset: 2px;
    }
}
