/* PlantCare Pro - Responsive Stylesheet */

/* Mobile-First Responsive Design */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Team Cards */
    .team-section .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-year {
        width: 70px;
        height: 70px;
        font-size: 0.75rem;
    }
    
    /* Metrics */
    .metric-circle {
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Contact Form */
    .contact-page .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery */
    .gallery .col-lg-3,
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile as per requirements */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 200px;
}
    
    section {
        padding: 50px 0;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team-section .card-img-top {
        width: 140px;
        height: 140px;
    }
    
    /* No animations on mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    /* Enable animations for tablets and larger */
    [data-sal] {
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    [data-sal].sal-animate {
        opacity: 1;
        transform: none;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 100px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-section .card-img-top {
        width: 150px;
        height: 150px;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    section {
        padding: 100px 0;
    }
}

/* Extra Extra Large Devices (Extra Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 120px 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Responsive */
@media print {
    .container {
        max-width: none;
        width: 100%;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-4,
    .col-md-6 {
        width: 50% !important;
        float: left;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #c4bcbc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
}

/* Specific Mobile Navigation Fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #ebf2fa;
        padding-top: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    /* Disable hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Dark Mode Support (if device supports it) */

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
    #blog_grid .card-img-top {
        height: 150px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #blog_grid .card-img-top {
        height: 160px;
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
    .contact-page .col-lg-8,
    .contact-page .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Team Section Responsive */
@media (max-width: 575.98px) {
    .team-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
    .process-item {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-item .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Services Grid Responsive */
@media (max-width: 575.98px) {
    .services-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Pricing Cards Responsive */
@media (max-width: 991.98px) {
    .pricing-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
    .faq-section .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Career Cards Responsive */
@media (max-width: 767.98px) {
    .career-section .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Core Info Responsive */
@media (max-width: 767.98px) {
    .coreinfo-section .col-lg-4 {
        margin-bottom: 2rem;
    }
} 