/* Responsive CSS for Urban Gardening Academy */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Header */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
        padding: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Services */
    .service-image {
        width: 60px;
        height: 60px;
    }
    
    .feature-list {
        font-size: 0.85rem;
    }
    
    /* Price Plans */
    .price-display .display-4 {
        font-size: 2rem;
    }
    
    /* Team */
    .member-photo img {
        width: 80px;
        height: 80px;
    }
    
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-marker {
        left: 12px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 150px;
    }
    
    /* Contact */
    .contact-info .contact-item {
        margin-bottom: 2rem;
    }
    
    /* FAQ */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1rem 0.5rem;
        margin-bottom: 2rem;
    }
    
    .step-number .badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Additional Pages */
    .breadcrumbs {
        margin-top: 66px;
    }
    
    .technique-card,
    .plant-card,
    .nutrient-item,
    .control-card,
    .troubleshoot-item,
    .equipment-card,
    .lighting-item,
    .water-system,
    .automation-item,
    .budget-tier,
    .budget-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Small devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin: 0.5rem 0.25rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Services */
    .service-image {
        width: 70px;
        height: 70px;
    }
    
    /* Team */
    .member-photo img {
        width: 90px;
        height: 90px;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 180px;
    }
    
    /* Process Steps */
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Medium devices (desktops, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Sections */
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        width: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker {
        right: -8px;
    }
    
    .timeline-item:nth-child(even) .timeline-marker {
        left: -8px;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 200px;
    }
    
    /* Team */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large devices (large desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Sections */
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    /* Timeline remains centered */
    .timeline-item:nth-child(odd) {
        padding-right: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 3rem;
    }
}

/* Extra large devices (extra large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.25rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 1.2rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
    padding-top: 175px;
}
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Dark Mode Support (if user prefers) */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-color: #000000;
        --text-muted: #333333;
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .card {
        border: 1px solid #000000;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2,
    .hero-shapes .shape-3 {
        display: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .faq-item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    #footer,
    .breadcrumbs {
        display: none;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 14pt;
    }
} 