/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding-top: 70px;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Remove decorative shapes on mobile */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    /* Card adjustments */
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        margin-bottom: 1rem;
    }
    
    /* Team photos smaller on mobile */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery images stack better */
    #gallery .img-fluid {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Contact form adjustments */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Disable all animations on mobile */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .faq-card:hover,
    .quality-card:hover,
    .sustainability-item:hover,
    .award-card:hover,
    .nutrition-card:hover,
    .ingredient-card:hover,
    .diet-option:hover,
    .health-benefit:hover,
    .tip-card:hover,
    .story-card:hover,
    .feature-item:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    
    #gallery .img-fluid:hover {
        transform: none;
        box-shadow: none;
    }
    
    .team-member:hover .team-photo {
        border-color: var(--light-green);
    }
    
    /* Padding adjustments */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding-top: 75px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Gallery images */
    #gallery .img-fluid {
        height: 220px;
    }
    
    /* Team photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Disable animations on small mobile */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Remove hover effects */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .faq-card:hover,
    .quality-card:hover,
    .sustainability-item:hover,
    .award-card:hover,
    .nutrition-card:hover,
    .ingredient-card:hover,
    .diet-option:hover,
    .health-benefit:hover,
    .tip-card:hover,
    .story-card:hover,
    .feature-item:hover {
        transform: none;
    }
    
    #gallery .img-fluid:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.1rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
    }
    
    /* Gallery images */
    #gallery .img-fluid {
        height: 240px;
    }
    
    /* Team photos */
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    /* Services grid adjustment */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full typography restored */
    h1 {
        font-size: var(--font-size-h1);
    }
    
    h2 {
        font-size: var(--font-size-h2);
    }
    
    /* Hero section full features */
    .hero-section {
        padding-top: 80px;
    }
    
    /* Gallery images */
    #gallery .img-fluid {
        height: 250px;
    }
    
    /* Team photos full size */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    /* Services cards */
    .service-card .card-img-top {
        height: 200px;
    }
    
    /* Enable animations on desktop */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .feature-item:hover,
    .faq-card:hover,
    .quality-card:hover,
    .sustainability-item:hover,
    .award-card:hover,
    .nutrition-card:hover,
    .ingredient-card:hover,
    .diet-option:hover,
    .health-benefit:hover,
    .tip-card:hover,
    .story-card:hover {
        transform: translateY(-3px);
    }
    
    #gallery .img-fluid:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full desktop experience */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Larger containers for better spacing */
    .container {
        max-width: 1140px;
    }
    
    /* Full gallery height */
    #gallery .img-fluid {
        height: 300px;
    }
    
    /* Enhanced hover effects */
    .hero-buttons .btn:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* Team member enhanced hover */
    .team-member:hover .team-photo {
        border-color: var(--primary-green);
        transform: scale(1.05);
    }
    
    /* Enhanced card hover effects */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for ultra-wide */
    section {
        padding: 5rem 0;
    }
    
    /* Larger hero decorative elements */
    .hero-section::before {
        width: 800px;
        height: 800px;
    }
    
    .hero-section::after {
        width: 600px;
        height: 600px;
    }
}

/* Print Media Queries */
@media print {
    /* Hide interactive elements */
    .navbar,
    .hero-buttons,
    .btn,
    .contact-form,
    .breadcrumb-section {
        display: none !important;
    }
    
    /* Adjust colors for print */
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .bg-light {
        background: #f8f9fa !important;
    }
    
    #footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid #333;
    }
    
    /* Ensure readable text */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Adjust cards for print */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .img-fluid {
        max-width: 100%;
        height: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #2E7D32;
        --primary-orange: #E65100;
        --primary-blue: #1565C0;
        --primary-purple: #6A1B9A;
        --primary-teal: #00695C;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .faq-card {
        border: 2px solid #333;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
}

/* Reduced Motion Support */
@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;
    }
    
    /* Remove all transform effects */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .faq-card:hover,
    .quality-card:hover,
    .sustainability-item:hover,
    .award-card:hover,
    .nutrition-card:hover,
    .ingredient-card:hover,
    .diet-option:hover,
    .health-benefit:hover,
    .tip-card:hover,
    .story-card:hover,
    .feature-item:hover,
    .hero-buttons .btn:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover,
    #gallery .img-fluid:hover,
    .team-member:hover .team-photo {
        transform: none !important;
    }
}

/* Dark Mode Support */

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .faq-card:hover,
    .quality-card:hover,
    .sustainability-item:hover,
    .award-card:hover,
    .nutrition-card:hover,
    .ingredient-card:hover,
    .diet-option:hover,
    .health-benefit:hover,
    .tip-card:hover,
    .story-card:hover,
    .feature-item:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    
    #gallery .img-fluid:hover {
        transform: none;
        box-shadow: none;
    }
    
    .team-member:hover .team-photo {
        border-color: var(--light-green);
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 12px 15px;
    }
} 

.hero-section h1 {
    padding-top: 250px;
}