/* ===============================================
   Organic Spice Blends - Responsive CSS
   Mobile-First Responsive Design
   =============================================== */

/* Tablet and Below - 768px and down */
@media (max-width: 768px) {
    
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Force disable SAL.js animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    .sal-animate {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Custom 5-column grid becomes 2-column on tablet */
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Card spacing and sizing */
    .feature-card,
    .service-card,
    .team-card,
    .review-card,
    .case-study-card,
    .price-card,
    .info-card,
    .blog-card,
    .faq-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }
    
    .timeline-date {
        position: absolute;
        left: -15px;
        margin: 0;
        min-width: 60px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .timeline-content {
        max-width: none;
        margin-left: 30px;
    }
    
    /* Process steps */
    .process-step {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        top: -15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Price card featured scaling removed */
    .price-card.featured {
        transform: none;
        border: 2px solid var(--color-primary);
    }
    
    /* Contact form adjustments */
    .contact-form {
        padding: 2rem;
    }
    
    /* Gallery grid adjustments */
    .gallery-image {
        margin-bottom: 1rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Reduce section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Service card images */
    .service-card img {
        height: 180px;
    }
    
    /* Blog images */
    .blog-image {
        height: 180px;
    }
}

/* Mobile Phones - 576px and down */
@media (max-width: 576px) {
    
    /* Even more conservative typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Navbar brand conservative sizing */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 70vh;
        padding-top: 120px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.125rem;
    }
    
    /* Custom grid becomes single column */
    .col-lg-2-4 {
        width: 100%;
    }
    
    /* All cards full width with reduced padding */
    .feature-card,
    .service-card,
    .team-card,
    .review-card,
    .case-study-card,
    .price-card,
    .info-card,
    .blog-card,
    .faq-card,
    .origin-card,
    .technique-card,
    .health-card,
    .cuisine-card,
    .storage-card,
    .delivery-card,
    .custom-card,
    .community-card,
    .management-card,
    .sustainability-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    /* Price display adjustment */
    .price-display {
        font-size: 2rem;
    }
    
    .price-display::after {
        font-size: 0.875rem;
    }
    
    /* Timeline mobile layout */
    .timeline-content {
        padding: 1.25rem;
        margin-left: 20px;
    }
    
    .timeline-date {
        font-size: 0.75rem;
        left: -20px;
        min-width: 50px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Service cards mobile */
    .service-card img {
        height: 160px;
    }
    
    /* Blog cards mobile */
    .blog-image {
        height: 160px;
    }
    
    /* Team layout mobile */
    .team-card {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Footer adjustments */
    #footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Feature items mobile */
    .feature-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-item i {
        margin: 0 auto 1rem;
        display: block;
    }
    
    /* Process mobile layout */
    .process-step {
        text-align: center;
        padding: 1.25rem 0.5rem;
    }
    
    /* Career cards mobile */
    .career-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    /* Contact info mobile */
    .contact-info .contact-item {
        margin-bottom: 1.5rem;
    }
    
    /* Reduce section padding further */
    section {
        padding: 2.5rem 0;
    }
    
    /* FAQ mobile layout */
    .faq-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .faq-card h5 {
        font-size: 1rem;
    }
    
    /* Gallery mobile adjustments */
    .gallery-image {
        margin-bottom: 0.75rem;
    }
    
    /* Stars alignment mobile */
    .stars {
        margin-bottom: 1rem;
    }
    
    /* Case study mobile */
    .case-image {
        height: 150px;
        width: 100%;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
}

/* Large tablets and small desktops - 992px to 1199px */
@media (min-width: 769px) and (max-width: 1199px) {
    
    /* Custom grid adjustment for medium screens */
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    /* Slight font size adjustments */
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 200px;
}
    
    /* Timeline adjustments */
    .timeline-content {
        max-width: 280px;
    }
    
    /* Card padding adjustments */
    .feature-card,
    .service-card,
    .team-card,
    .review-card,
    .case-study-card,
    .price-card,
    .info-card,
    .blog-card {
        padding: 1.75rem;
    }
}

/* Extra small devices - under 360px */
@media (max-width: 360px) {
    
    /* Ultra-conservative typography for very small screens */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    /* Ultra-compact cards */
    .feature-card,
    .service-card,
    .team-card,
    .review-card,
    .case-study-card,
    .price-card,
    .info-card,
    .blog-card,
    .faq-card,
    .origin-card,
    .technique-card,
    .health-card,
    .cuisine-card,
    .storage-card,
    .delivery-card,
    .custom-card,
    .community-card,
    .management-card,
    .sustainability-card {
        padding: 1rem;
    }
    
    /* Contact form compact */
    .contact-form {
        padding: 1.25rem;
    }
    
    /* Price display compact */
    .price-display {
        font-size: 1.75rem;
    }
    
    /* Ultra-compact buttons */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Timeline ultra-compact */
    .timeline-content {
        padding: 1rem;
        margin-left: 15px;
    }
    
    .timeline-date {
        font-size: 0.7rem;
        left: -25px;
        min-width: 45px;
    }
    
    /* Team photos ultra-compact */
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    /* Service and blog images */
    .service-card img,
    .blog-image,
    .case-image {
        height: 140px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section p {
        margin-bottom: 1rem;
    }
    
    /* Reduce section padding in landscape */
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Sharper borders and shadows for retina displays */
    .feature-card,
    .service-card,
    .team-card,
    .review-card,
    .case-study-card,
    .price-card,
    .info-card,
    .blog-card,
    .faq-card {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {
    
    /* Hide navigation and interactive elements */
    #header,
    .btn,
    .contact-form,
    #footer {
        display: none !important;
    }
    
    /* Ensure content is visible */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Print-friendly colors */
    .hero-section {
        background: white !important;
    }
    
    /* Ensure text is readable */
    * {
        color: #000 !important;
        background: white !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

/* Force content visibility for all screen sizes (based on memory) */
@media (max-width: 768px) {
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .sal-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    
    /* Remove all transforms and transitions */
    * {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Ensure all content is immediately visible */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .sal-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    
    .feature-card,
    .service-card,
    .team-card,
    .review-card,
    .case-study-card,
    .price-card,
    .info-card,
    .blog-card,
    .faq-card {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-outline-primary {
        border: 2px solid #000;
    }
}


body {
    overflow-x: hidden;
}