/* Urban Gardening Classes - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }
    
    .team img {
        width: 100px;
        height: 100px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Disable autoplay and effects on mobile for Swiper */
    .swiper {
        --swiper-navigation-size: 25px;
    }
    
    .swiper-slide {
        padding: 0 10px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .team img {
        width: 120px;
        height: 120px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .team img {
        width: 130px;
        height: 130px;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero h2 {
        font-size: 1.9rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .team img {
        width: 140px;
        height: 140px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .team img {
        width: 150px;
        height: 150px;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Disable Swiper autoplay and effects on mobile (< 768px) */
@media (max-width: 767.98px) {
    .swiper[data-autoplay] {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper .swiper-slide {
        transition: none !important;
    }
    
    .swiper-fade .swiper-slide {
        opacity: 1 !important;
    }
    
    .swiper-cube .swiper-slide,
    .swiper-flip .swiper-slide,
    .swiper-coverflow .swiper-slide {
        transform: none !important;
    }
}

/* Navigation adjustments for smaller screens */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        margin: 0.25rem 0;
    }
    
    .navbar-collapse {
        background-color: rgba(0,0,0,0.1);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* Hero section adjustments for mobile */
@media (max-width: 767.98px) {
    .hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero .row {
        flex-direction: column;
    }
    
    .hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

/* Form adjustments for mobile */
@media (max-width: 767.98px) {
    .contact .col-md-8 {
        margin-bottom: 2rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Card grid adjustments */
@media (max-width: 767.98px) {
    .services .col-md-4,
    .casestudy .col-md-4,
    .blog .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Timeline adjustments for mobile */
@media (max-width: 767.98px) {
    .timeline-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Gallery adjustments for mobile */
@media (max-width: 767.98px) {
    .gallery .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .gallery img {
        width: 100%;
        height: auto;
    }
}

/* Footer adjustments for mobile */
@media (max-width: 767.98px) {
    .footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Price plan adjustments for mobile */
@media (max-width: 767.98px) {
    .priceplan .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Features section adjustments for mobile */
@media (max-width: 767.98px) {
    .features .col-md-3,
    .about .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Team section adjustments for mobile */
@media (max-width: 767.98px) {
    .team .col-md-2 {
        margin-bottom: 2rem;
    }
    
    .team .row {
        justify-content: center;
    }
}

/* Process section adjustments for mobile */
@media (max-width: 767.98px) {
    .process .col-md-2 {
        margin-bottom: 1.5rem;
    }
}

/* Career section adjustments for mobile */
@media (max-width: 767.98px) {
    .career .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Core info adjustments for mobile */
@media (max-width: 767.98px) {
    .coreinfo .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .swiper-pagination,
    .breadcrumb-section {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 