/* EcoCompost Smart - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 100vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    .services .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Team section mobile */
    .team img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    /* Pricing cards mobile */
    .priceplan .card.border-success {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .priceplan .card.border-success::before {
        top: -10px;
        font-size: 0.75rem;
        padding: 0.25rem 1rem;
    }
    
    /* Contact form mobile */
    .contact-section .btn {
        width: 100%;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for better performance */
    * {
        animation-duration: 0s !important;
        transition-duration: 0.1s !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .hero-section::before {
        display: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section .display-4 {
        font-size: 2.25rem;
    }
    
    .team img {
        width: 130px;
        height: 130px;
    }
    
    .services .card-body {
        padding: 1.75rem;
    }
    
    .priceplan .card.border-success {
        transform: scale(1.02);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .team img {
        width: 140px;
        height: 140px;
    }
    
    .services .card-body {
        padding: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Tablet specific adjustments */
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .priceplan .card.border-success {
        transform: scale(1.03);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section .display-4 {
        font-size: 2.75rem;
    }
    
    .team img {
        width: 150px;
        height: 150px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .services .card-body {
        padding: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section .display-4 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .services .card-body {
        padding: 2.5rem;
    }
    
    .team img {
        width: 160px;
        height: 160px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section .display-4 {
        font-size: 3.25rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .navbar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 50px 50px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .team img:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .hero-section::before {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    .navbar,
    footer,
    .gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 13pt; }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .hero-section {
        background: #fff;
    }
    
    .hero-section::before {
        display: none;
    }
}

/* Dark Mode Support (if needed in future) */

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

/* Container Adjustments for Very Small Screens */
@media (max-width: 320px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}