/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 1.78rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section h1 {
        font-size: 3.57rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.57rem;
        margin-bottom: 1.56rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Section Spacing */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Cards */
    .price-card.featured {
        transform: none;
        margin-top: 2rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-content::before {
        left: -15px;
        right: auto;
        border-left: 0;
        border-right: 15px solid var(--white);
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Small Tablet and Large Mobile (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.81rem;
    }
    
    h3 {
        font-size: 1.60rem;
    }
    
    h4 {
        font-size: 1.39rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
        padding-top: 120px;
    }
    
    .hero-section h1 {
        font-size: 2.61rem;
        line-height: 1.2;
    }
    
    .hero-section h2 {
        font-size: 1.39rem;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Section Spacing */
    .section-padding {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .feature-card, .service-card, .review-card, .price-card {
        margin-bottom: 1.72rem;
        padding: 1.5rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    /* Price Cards */
    .price-display span {
        font-size: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Blog Cards */
    .blog-image {
        height: 150px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Step Numbers */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    
    /* Gallery */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Additional Page Components */
    .ingredient-card, .sustainability-item, .quality-step, .research-area, 
    .impact-card, .commercial-card, .bulk-tier, .training-module, 
    .benefit-card, .compliance-badge, .career-card, .case-study-card,
    .feature-item, .core-info-item {
        margin-bottom: 1.69rem;
        padding: 1.5rem;
    }
    
    .research-image, .training-image, .case-image {
        height: 120px;
    }
    
    /* Breadcrumb */
    .breadcrumb-container {
        height: 150px;
        margin-top: 70px;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.89rem;
    }
    
    h2 {
        font-size: 1.60rem;
    }
    
    h3 {
        font-size: 1.30rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 85vh;
        padding: 100px 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.85rem;
    }
    
    .hero-section h2 {
        font-size: 1.18rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.04rem;
        margin-bottom: 1.61rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Section Spacing */
    .section-padding {
        padding: 2rem 0;
    }
    
    /* Cards */
    .feature-card, .service-card, .review-card, .price-card,
    .ingredient-card, .sustainability-item, .quality-step, 
    .research-area, .impact-card, .commercial-card, .bulk-tier, 
    .training-module, .benefit-card, .compliance-badge, 
    .career-card, .case-study-card, .feature-item, .core-info-item {
        padding: 1.25rem;
        margin-bottom: 1.37rem;
    }
    
    .service-image, .blog-image {
        height: 120px;
    }
    
    .research-image, .training-image, .case-image {
        height: 100px;
    }
    
    /* Icons */
    .feature-icon {
        font-size: 2rem;
    }
    
    .ingredient-card i, .sustainability-item i, .impact-card i,
    .commercial-card i, .benefit-card i, .compliance-badge i,
    .feature-item i, .core-info-item i {
        font-size: 1.84rem;
    }
    
    /* Price Display */
    .price-display span {
        font-size: 1.81rem;
    }
    
    /* Team */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-member {
        margin-bottom: 1.71rem;
    }
    
    /* Process Steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step {
        padding: 1rem;
        margin-bottom: 1.71rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-control {
        padding: 0.75rem;
    }
    
    .btn-primary {
        padding: 0.75rem 2rem;
        width: 100%;
    }
    
    /* Contact Info */
    .contact-info-item {
        margin-bottom: 1.69rem;
        text-align: center;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 1.63rem;
    }
    
    .footer h5 {
        margin-bottom: 1rem;
    }
    
    /* FAQ */
    .faq-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .faq-item h4 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    /* Reviews */
    .review-card {
        text-align: left;
    }
    
    .stars {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    .gallery .col-md-4 {
        margin-bottom: 0.96rem;
    }
    
    /* Blog Grid */
    .blog-content {
        padding: 1.25rem;
    }
    
    /* Space Container */
    .space-container {
        margin-top: 70px;
        min-height: 70vh;
    }
    
    /* Breadcrumb */
    .breadcrumb-container {
        height: 120px;
        margin-top: 70px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.76rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .review-card, .price-card,
    .ingredient-card, .sustainability-item, .quality-step, 
    .research-area, .impact-card, .commercial-card, .bulk-tier, 
    .training-module, .benefit-card, .compliance-badge, 
    .career-card, .case-study-card, .feature-item, .core-info-item {
        padding: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1rem;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    .card, .feature-card, .service-card {
        box-shadow: none;
        border: 1px solid #f3dcdd;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for high DPI displays */
    .feature-icon, .step-number {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
}

/* Dark Mode Support (if browser supports it) */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is needed in the future */
    /* Currently following the instruction not to create a dark theme */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .card:hover, .feature-card:hover, .service-card:hover {
        transform: none;
    }
} 