/* Responsive CSS - Mobile-First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
        --font-size-h4: 1.1rem;
        --font-size-h5: 1rem;
        --font-size-h6: 0.9rem;
        --font-size-base: 14px;
    }
    
    /* Spacing adjustments */
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
        --spacing-sm: 0.75rem;
        --spacing-xs: 0.5rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .team-member,
    .review-card,
    .element-card,
    .process-step,
    .benefit-card,
    .standard-card,
    .sustainability-card,
    .recipe-card,
    .breakfast-card,
    .lunch-card,
    .dinner-card,
    .snack-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Service Cards */
    .service-card img,
    .recipe-card img {
        height: 180px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 200px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Feature Items */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Process Steps */
    .process-step {
        text-align: center;
    }
    
    .process-step .step-number {
        margin: 0 auto var(--spacing-md);
    }
    
    /* Price Cards */
    .price-card {
        margin-bottom: var(--spacing-md);
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    /* Timeline Responsive */
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px;
        margin-right: 0;
    }
    
    .timeline-item::before {
        left: -30px !important;
        right: auto !important;
    }
    
    .timeline-year {
        font-size: var(--font-size-base);
    }
    
    /* Career Cards */
    .career-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Info Cards */
    .info-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Case Study Cards */
    .case-study-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    /* Cards */
    .service-card img,
    .recipe-card img {
        height: 200px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 220px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 130px;
        height: 130px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .service-card img,
    .recipe-card img {
        height: 220px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 240px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Feature Items */
    .feature-item {
        flex-direction: row;
        text-align: left;
    }
    
    .feature-item i {
        margin-right: var(--spacing-md);
        margin-bottom: 0;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Cards */
    .service-card img,
    .recipe-card img {
        height: 240px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 250px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    /* Cards */
    .service-card img,
    .recipe-card img {
        height: 250px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 280px;
    }
    
    /* Container max-width adjustment */
    .container {
        max-width: 1200px;
    }
}

/* Specific Component Responsive Styles */

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(46, 125, 50, 0.95);
        padding: var(--spacing-md);
        border-radius: var(--border-radius-md);
        margin-top: var(--spacing-sm);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Ensure mobile menu is visible */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.5);
        color: var(--white);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    /* Fix for mobile menu not showing */
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-collapse.collapsing {
        height: auto !important;
    }
}

/* Hero Section Responsive */
@media (max-width: 991.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-content {
        text-align: center;
        margin-top: var(--spacing-lg);
    }
}

/* Service Cards Grid Responsive */
@media (max-width: 575.98px) {
    .service-card {
        margin-bottom: var(--spacing-lg);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .service-card {
        margin-bottom: var(--spacing-md);
    }
}

/* Team Section Responsive */
@media (max-width: 575.98px) {
    .team-member {
        margin-bottom: var(--spacing-md);
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .team-member {
        margin-bottom: var(--spacing-md);
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    .gallery-img {
        margin-bottom: 2px;
    }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: var(--spacing-sm);
    }
}

/* FAQ Responsive */
@media (max-width: 575.98px) {
    .accordion-button {
        font-size: var(--font-size-small);
        padding: var(--spacing-sm);
    }
    
    .accordion-body {
        padding: var(--spacing-sm);
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    footer ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    footer ul li {
        margin: 0 var(--spacing-sm) var(--spacing-xs);
    }
}

/* Additional Pages Responsive */
@media (max-width: 575.98px) {
    .breadcrumb-nav {
        text-align: center;
    }
    
    .breadcrumb-icon {
        width: 20px;
        height: 20px;
    }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
    .process-step {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .process-step .step-number {
        margin: 0 auto var(--spacing-md);
    }
}

/* Benefit Cards Responsive */
@media (max-width: 767.98px) {
    .benefit-card,
    .sustainability-card {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .benefit-card i,
    .sustainability-card i {
        display: block;
        margin: 0 auto var(--spacing-md);
    }
}

/* Recipe Cards Responsive */
@media (max-width: 767.98px) {
    .recipe-card,
    .breakfast-card,
    .lunch-card,
    .dinner-card,
    .snack-card {
        margin-bottom: var(--spacing-md);
    }
}

/* Contact Info Responsive */
@media (max-width: 991.98px) {
    #contacts .row:last-child .col-lg-4 {
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
}

/* Utility Classes for Responsive */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

.mb-mobile {
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .mb-mobile {
        margin-bottom: 0;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .team-member:hover,
    .element-card:hover,
    .process-step:hover,
    .benefit-card:hover,
    .standard-card:hover,
    .sustainability-card:hover,
    .recipe-card:hover,
    .breakfast-card:hover,
    .lunch-card:hover,
    .dinner-card:hover,
    .snack-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .contact-form .btn-primary:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .navbar-nav .nav-link {
        padding: var(--spacing-md);
    }
    
    .accordion-button {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .breadcrumb-nav,
    footer,
    .contact-form,
    .gallery-img {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 24pt;
        text-shadow: none;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .feature-card,
    .service-card,
    .team-member,
    .review-card {
        box-shadow: none;
        border: 1px solid var(--gray);
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section,
    .feature-card,
    .service-card,
    .team-member,
    .element-card,
    .process-step,
    .benefit-card,
    .standard-card,
    .sustainability-card,
    .recipe-card,
    .breakfast-card,
    .lunch-card,
    .dinner-card,
    .snack-card {
        transition: none;
    }
}

/* Dark Mode Support */
