/* Heritage Seeds - Responsive CSS */
/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.63rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-section .btn-primary {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .team img {
        width: 80px;
        height: 80px;
    }
    
    .navbar-brand {
        font-size: 1.37rem;
    }
    
    .contact-info {
        margin-top: var(--spacing-md);
    }
    
    .gallery .col-sm-6 {
        margin-bottom: var(--spacing-md);
    }
    
    .breadcrumb-icon {
        height: 16px;
        width: 16px;
    }
    
    /* Adjust spacing for mobile */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Stack cards vertically on mobile */
    .row .col-lg-4,
    .row .col-lg-6,
    .row .col-md-4,
    .row .col-md-6 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.27rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.68rem;
    }
    
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.24rem;
    }
    
    .team img {
        width: 90px;
        height: 90px;
    }
    
    .gallery .col-sm-6 {
        margin-bottom: var(--spacing-lg);
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.63rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.77rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    
    .team img {
        width: 100px;
        height: 100px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .contact-info {
        margin-top: 0;
    }
    
    /* Adjust grid for tablets */
    .row .col-md-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    .row .col-md-6 {
        margin-bottom: var(--spacing-lg);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.90rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.38rem;
    }
    
    .team img {
        width: 100px;
        height: 100px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 2.28rem;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    .process-number {
        width: 55px;
        height: 55px;
        font-size: 1.44rem;
    }
    
    .team img {
        width: 120px;
        height: 120px;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding-top: var(--spacing-md);
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .form-control {
        margin-bottom: var(--spacing-md);
    }
    
    .btn-primary {
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .contact-info {
        margin-top: var(--spacing-xl);
    }
}

/* Gallery responsive adjustments */
@media (max-width: 575.98px) {
    #gallery .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0.25rem;
    }
    
    #gallery img {
        height: 120px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #gallery .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    #gallery img {
        height: 130px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #gallery .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    #gallery img {
        height: 140px;
    }
}

@media (min-width: 992px) {
    #gallery img {
        height: 150px;
    }
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    footer .text-lg-end {
        text-align: center;
    }
}

/* Services/Cards responsive grid */
@media (max-width: 575.98px) {
    .services-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .services-grid .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Team responsive adjustments */
@media (max-width: 575.98px) {
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: var(--spacing-lg);
    }
    
    #team img {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: var(--spacing-lg);
    }
    
    #team img {
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #team .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
        margin-bottom: var(--spacing-lg);
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 992px) {
    #team img {
        width: 120px;
        height: 120px;
    }
}

/* Process section responsive */
@media (max-width: 767.98px) {
    .process .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .process .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: var(--spacing-lg);
    }
}

/* Timeline responsive */
@media (max-width: 767.98px) {
    .timeline .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .timeline .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: var(--spacing-lg);
    }
}

/* Hero section responsive layout */
@media (max-width: 991.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: var(--spacing-xl);
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: var(--spacing-lg);
    }
}

/* Utility responsive classes */
@media (max-width: 767.98px) {
    .text-md-center {
        text-align: center;
    }
    
    .mb-md-0 {
        margin-bottom: 0;
    }
    
    .mb-md-3 {
        margin-bottom: var(--spacing-md);
    }
}

/* Ensure proper spacing between sections on mobile */
@media (max-width: 767.98px) {
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    .nav-link {
        font-size: 1.21rem;
        padding: var(--spacing-md) 0;
    }
    
    .btn-primary {
        min-height: 44px;
        font-size: 1rem;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 1rem;
    }
}

/* Print responsive */
@media print {
    .hero-section,
    .bg-light {
        background: none !important;
        color: #000 !important;
    }
    
    .card {
        border: 1px solid #e8e8e8 !important;
        break-inside: avoid;
    }
    
    .navbar,
    .btn,
    .gallery {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
    
    .text-primary {
        color: #000 !important;
    }
} 