/* Responsive CSS - Urban Gardening Template */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .display-4 {
        font-size: 2.59rem;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Large Devices (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section .container {
        padding: 2rem 0;
    }
    
    .timeline-item {
        margin-bottom: 2.56rem;
    }
}

/* Medium Devices - Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    /* Navigation */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
        text-align: center;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.72rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Timeline adjustments */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        left: -36px;
        width: 16px;
        height: 16px;
    }
    
    /* Team section */
    .team .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Process section - adjust grid */
    .process .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.56rem;
    }
}

/* Small Devices - Mobile (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    /* Container adjustments */
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.32rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 1.86rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.63rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.34rem;
    }
    
    h4, h5 {
        font-size: 1.24rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.58rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Timeline - mobile friendly */
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 1.63rem;
    }
    
    .timeline-marker {
        left: -26px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Process section - single column on mobile */
    .process .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Team members */
    .team img.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* FAQ section */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery grid adjustments */
    .gallery .col-lg-3 {
        margin-bottom: 0.66rem;
    }
    
    /* Contact form */
    .contact .col-lg-8 {
        margin: 0;
    }
    
    .form-control {
        padding: 0.6rem 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra Small Devices - Mobile (up to 575px) */
@media (max-width: 575px) {
    /* Container full width with padding */
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.19rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem;
        font-size: 1.01rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    /* Typography - very conservative on small screens */
    h1, .display-4 {
        font-size: 1.65rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.46rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.26rem;
    }
    
    h4, h5 {
        font-size: 1rem;
    }
    
    h6 {
        font-size: 0.99rem;
    }
    
    .lead {
        font-size: 1.07rem;
    }
    
    p {
        font-size: 0.96rem;
    }
    
    /* Section spacing */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.70rem;
    }
    
    .card-text {
        font-size: 0.96rem;
    }
    
    /* Timeline - compact */
    .timeline {
        padding-left: 0.5rem;
    }
    
    .timeline::before {
        left: 10px;
        width: 1px;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .timeline-marker {
        left: -21px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .timeline-content h5 {
        font-size: 1.10rem;
        margin-bottom: 0.56rem;
    }
    
    .timeline-content p {
        font-size: 0.96rem;
        margin-bottom: 0;
    }
    
    /* Process items - single column */
    .process .col-lg-2,
    .process .col-md-4,
    .process .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .process .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.22rem;
    }
    
    /* Team images smaller */
    .team img.rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* FAQ cards */
    .faq .card-body {
        padding: 0.75rem;
    }
    
    .faq .card-title {
        font-size: 1.06rem;
    }
    
    .faq .card-text {
        font-size: 0.99rem;
    }
    
    /* Gallery - 2 columns */
    .gallery .col-lg-3,
    .gallery .col-md-4,
    .gallery .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.69rem;
    }
    
    /* Contact info */
    .contact .col-lg-4 {
        margin-bottom: 1.59rem;
        text-align: center;
    }
    
    .contact .fa-2x {
        font-size: 1.57rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.97rem;
    }
    
    .form-label {
        font-size: 0.92rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 1.02rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.96rem;
    }
    
    /* Footer */
    #footer {
        padding: 2rem 0;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 1.55rem;
        text-align: center;
    }
    
    #footer h5,
    #footer h6 {
        font-size: 1rem;
        margin-bottom: 0.91rem;
    }
    
    #footer p,
    #footer li {
        font-size: 0.93rem;
    }
    
    /* Icon sizing */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.56rem;
    }
    
    /* Utility classes for mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .d-block-mobile {
        display: block;
    }
}

/* Mobile-specific: No animations on scroll */
@media (max-width: 768px) {
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 1rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .py-5 {
        padding-top: 1.72rem;
        padding-bottom: 1.73rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .contact form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn {
        border: 2px solid;
    }
    
    .form-control {
        border: 2px solid var(--text-dark);
    }
} 

.hero-section h1 {
    padding-top: 100px;
}