/* Plant Nursery Template - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
        --font-size-h4: 1.1rem;
    }
    
    /* Hero section adjustments */
    .hero-content {
        text-align: center;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Cards and sections */
    .service-card,
    .feature-card,
    .price-card,
    .team-card,
    .blog-card {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper {
        --swiper-navigation-size: 24px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    /* Gallery adjustments */
    .gallery-section .col-lg-3,
    .gallery-section .col-md-4 {
        margin-bottom: var(--spacing-md);
    }
    
    /* Team section - stack vertically */
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Timeline */
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    .footer-section .col-lg-4,
    .footer-section .col-lg-3,
    .footer-section .col-lg-2 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    /* Service cards - 2 per row */
    .services-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Team cards adjustments */
    .team-card img {
        width: 110px;
        height: 110px;
    }
    
    /* Disable Swiper autoplay and effects */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Disable Swiper autoplay and effects for tablets */
    .reviews-swiper {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-slide {
        transition: none !important;
    }
    
    /* Adjust team layout */
    .team-section .row {
        justify-content: center;
    }
    
    /* Process section */
    .process-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Timeline adjustments */
    .timeline-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Core info section */
    .coreinfo-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop layout */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    /* Enable full Swiper functionality */
    .reviews-swiper {
        --swiper-autoplay-delay: 4000;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full desktop experience */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    /* Container adjustments for ultra-wide screens */
    .container {
        max-width: 1140px;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 767.98px) {
    /* Disable hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .career-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    /* Simplify animations for mobile */
    .feature-item:hover {
        transform: none;
        background: rgba(255,255,255,0.1);
    }
    
    .coreinfo-item:hover {
        transform: none;
        background: rgba(255,255,255,0.1);
    }
    
    /* Adjust padding for mobile */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Mobile navigation improvements */
    .navbar-collapse {
        background: var(--primary-green);
        margin-top: var(--spacing-sm);
        border-radius: 10px;
        padding: var(--spacing-sm);
    }
    
    /* Mobile-friendly buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Mobile contact form */
    .contact-form .row .col-md-6 {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Mobile gallery - 2 columns */
    .gallery-section .col-lg-3,
    .gallery-section .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Mobile FAQ */
    .faq-section .col-lg-6 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Tablet-specific optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet navigation */
    .navbar-nav {
        text-align: center;
    }
    
    /* Tablet hero section */
    .hero-section .row {
        align-items: center;
    }
    
    /* Tablet services layout */
    .services-section .col-lg-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Tablet team layout - 3 columns */
    .team-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Tablet process layout */
    .process-section .col-lg-2 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Tablet timeline layout */
    .timeline-section .col-lg-2 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 668px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    .hero-image img,
    .service-card img,
    .blog-card img,
    .gallery-section img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .header-section,
    .footer-section,
    .swiper-pagination,
    .btn {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
@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;
    }
    
    /* Disable Swiper autoplay */
    .swiper {
        --swiper-autoplay-delay: 0;
    }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--accent-emerald);
    outline-offset: 2px;
}

/* Screen reader only content */
.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;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
} 