/* Responsive Enhancements */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base responsive utilities */
body {
    overflow-x: hidden;
}

/* Navigation responsive behavior */
.nav-links {
    font-family: "Din", Helvetica;
}

.nav-link {
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link:focus {
    outline: 2px solid #3ab54a;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero section responsive images */
.hero-images {
    position: relative;
}

@media (max-width: 1023px) {
    .hero-images img {
        max-width: 90%;
    }
}

/* Button hover effects */
.cta-button,
.view-detail-button,
.whatsapp-button,
.subscribe-button,
.newsletter-button {
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover,
.view-detail-button:hover,
.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 148, 68, 0.3);
}

.cta-button:active,
.view-detail-button:active,
.whatsapp-button:active {
    transform: translateY(0);
}

/* Testimonial cards responsive */
.testimonial-card {
    transition: all 0.3s ease;
}

/* .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
} */

/* Form inputs */
.subscribe-input,
.newsletter-input {
    transition: all 0.3s ease;
}

.subscribe-input:focus,
.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(12, 148, 68, 0.2);
}

/* Footer links */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Social icons */
.social-icon {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Decorative elements responsive visibility */
@media (max-width: 768px) {
    .leaf-decor {
        opacity: 0.3 !important;
    }

    .about-decor,
    .mealprep-decor {
        opacity: 0.2 !important;
    }
}

/* Typography responsive scaling */
@media (max-width: 640px) {
    .hero-heading {
        line-height: 1.2;
    }

    .section-title {
        line-height: 1.2;
    }
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.hero-section,
.about-section,
.bestseller-section,
.mealprep-section,
.hours-section,
.testimonials-section,
.subscribe-section,
.footer-section {
    position: relative;
}

/* Accessibility improvements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-container,
    .subscribe-section,
    .footer-section,
    .copyright-bar {
        display: none;
    }

    .hero-section,
    .about-section,
    .bestseller-section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link,
    .footer-link {
        border: 2px solid currentColor;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Container max-width constraints */
@media (min-width: 1920px) {
    .hero-section,
    .about-section,
    .bestseller-section,
    .mealprep-section,
    .hours-section,
    .testimonials-section,
    .subscribe-section,
    .footer-section {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Touch target sizing for mobile */
@media (max-width: 768px) {
    .nav-link,
    .cta-button,
    .view-detail-button,
    .whatsapp-button,
    .footer-link,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-images {
        height: 300px;
    }
}

/* Tablet landscape optimization */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .hero-content-wrapper,
    .about-content-wrapper,
    .mealprep-content-wrapper {
        gap: 2rem;
    }
}
