/* Natural Dye Kits - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --navbar-brand-size: 1.125rem;
        --section-padding: 3rem 0;
        --card-padding: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.11rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.32rem !important;
    }
    
    .navbar-brand {
        font-size: var(--navbar-brand-size) !important;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
    }
    
    .timeline-item::before {
        left: 10px !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .price-plan-card.featured {
        transform: none;
        margin-bottom: 2.09rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.32rem;
    }
    
    /* Disable autoplay and effects on mobile for Swiper */
    .swiper {
        --swiper-theme-color: var(--color-sage);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --navbar-brand-size: 1.25rem;
        --section-padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.53rem !important;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 10px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.77rem !important;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Disable Swiper autoplay on tablets */
    .swiper-wrapper {
        transition-timing-function: ease-in-out;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.12rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0 1rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.52rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.77rem !important;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
  padding-top: 50px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.11rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.32rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .hero-section {
  padding-top: 50px;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        color: black !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-plan-card {
        border: 1px solid #f0f0f0 !important;
        box-shadow: none !important;
        background: white !important;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-earth: #000000;
        --color-sage: #085a03;
        --color-indigo: #070094;
        --color-madder: #c50012;
        --color-turmeric: #ffac00;
        --color-charcoal: #000000;
        --color-warm-white: #FFFFFF;
    }
    
    .navbar,
    .hero-section,
    .footer {
        background: #000000 !important;
        color: #FFFFFF !important;
    }
    
    .btn-primary {
        background: #000000 !important;
        border: 2px solid #FFFFFF !important;
        color: #FFFFFF !important;
    }
    
    .form-control {
        border: 2px solid #000000 !important;
    }
}


/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .card {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    /* Disable hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-plan-card:hover,
    .case-study-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .swiper {
        --swiper-autoplay-delay: 0;
    }
    
    .animate-fade-in-up {
        animation: none;
    }
    
    .hero-section::before {
        animation: none;
    }
}

/* Focus Styles for Keyboard Navigation */
@media (hover: hover) and (pointer: fine) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    a:focus {
        outline: 2px solid var(--color-sage);
        outline-offset: 2px;
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    .hero-section::before {
        display: none;
    }
    
    .bg-gradient-primary,
    .bg-gradient-secondary {
        background: var(--color-sage) !important;
    }
    
    .text-gradient-primary {
        color: var(--color-madder) !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }
}

/* Container Query Support (Modern browsers) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .service-card img {
            height: 150px;
        }
        
        .team-member img {
            width: 100px;
            height: 100px;
        }
    }
}

/* Grid Layout Fallbacks */
@supports not (display: grid) {
    .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .col-lg-4 {
        width: 33.333%;
        padding: 0 15px;
    }
    
    .col-md-6 {
        width: 50%;
        padding: 0 15px;
    }
    
    @media (max-width: 768px) {
        .col-lg-4,
        .col-md-6 {
            width: 100%;
        }
    }
}

/* Internet Explorer Compatibility */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hero-section {
  padding-top: 50px;
        background: var(--color-sage-light);
    }
    
    .navbar {
        background: var(--color-earth);
    }
    
    .footer {
        background: var(--color-charcoal);
    }
    
    .btn-primary {
        background: var(--color-madder);
    }
}

/* Screen Reader Optimizations */
@media screen and (max-width: 0) {
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
} 