/* Responsive CSS for CompostMaster Pro */

/* Mobile First Approach */
@media (max-width: 576px) {
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 40px;
        margin-right: 0;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery */
    .gallery-img {
        margin-bottom: 1rem;
    }
    
    /* Sections */
    .py-5 {
        padding: 2rem 0;
    }
}

/* Tablet Portrait */
@media (min-width: 577px) and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card {
        padding: 1.8rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Timeline */
    .timeline-item {
        width: 90%;
    }
    
    /* Sections */
    .py-5 {
        padding: 3rem 0;
    }
}

/* Desktop */
@media (min-width: 992px) {
    /* Fixed Navigation */
    .navbar.fixed-top {
        position: fixed;
        top: 0;
        z-index: 1030;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Large Cards */
    .feature-card, .service-card, .price-card {
        padding: 2.5rem;
    }
    
    /* Timeline Alternating */
    .timeline-item {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: auto;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        margin-right: auto;
        text-align: left;
    }
}

/* Extra Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    /* Cards with more spacing */
    .feature-card, .service-card, .price-card {
        padding: 3rem;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger typography for ultra-wide */
    .hero-section h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .feature-card, .service-card, .price-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        box-shadow: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #000000;
        --secondary-brown: #000000;
        --text-dark: #000000;
        --white: #FFFFFF;
        --light-sage: #F0F0F0;
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    .feature-card, .service-card, .price-card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
        color: #FFFFFF;
    }
    
    .btn-primary:hover {
        background: #FFFFFF;
        color: #000000;
    }
}

/* Reduced Motion for Swiper */
@media (prefers-reduced-motion: reduce) {
    .swiper {
        --swiper-pagination-bullet-transform: none;
    }
    
    .swiper-slide {
        transition: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover {
        transform: none;
        box-shadow: 0 4px 15px var(--shadow);
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}
