/* Mobile-First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .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);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        display: block;
    }
    
    .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(-8px) rotate(-45deg);
    }
    
    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: 60vh;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-food-image {
        max-width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-form .form-group {
        flex-direction: column;
        max-width: 100%;
    }
    
    .newsletter-form input {
        margin-bottom: 0.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Blog */
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-page {
        padding: 6rem 0 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-article {
        flex-direction: column;
        text-align: center;
    }
    
    .related-article img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
    
    /* Legal pages */
    .legal-page {
        padding: 6rem 0 2rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    /* Thank you page */
    .thank-you {
        padding: 6rem 0 2rem;
    }
    
    .thank-you h1 {
        font-size: 2rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Tables */
    .pricing-table {
        font-size: 0.9rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .newsletter,
    .social-links,
    .share-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .article-page,
    .legal-page {
        padding: 1rem 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .service-card,
    .review-card,
    .article-card {
        border: 2px solid #333;
    }
    
    .navbar {
        border-bottom: 2px solid #333;
    }
}

/* 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 {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    /* Note: Dark mode would require extensive changes */
    /* This is just a foundation for future implementation */
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .article-card:hover,
    .btn:hover {
        transform: none;
    }
    
    .btn,
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape orientation on small devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-menu.active {
        top: 60px;
    }
}

/* Very small devices (phones in portrait) */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .review-card,
    .contact-form {
        padding: 1rem;
    }
    
    .article-content,
    .legal-content {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .pricing-table {
        font-size: 0.8rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Internet Explorer fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .services-grid,
    .reviews-grid,
    .articles-grid,
    .footer-content {
        display: flex;
        flex-wrap: wrap;
    }
    
    .service-card,
    .review-card,
    .article-card,
    .footer-section {
        flex: 1;
        min-width: 300px;
        margin: 1rem;
    }
}
