/* Responsive CSS for Garden Journal Template */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 3.10rem;
    }
    
    h2 {
        font-size: 2.53rem;
    }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199.98px) {
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
}

/* Small screens (768px to 991px) */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.35rem !important;
    }
    
    h1 {
        font-size: 2.11rem;
    }
    
    h2 {
        font-size: 1.84rem;
    }
    
    h3 {
        font-size: 1.58rem;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 3rem 0;
        min-height: 70vh;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .career-card,
    .info-card,
    .blog-card {
        margin-bottom: 2.07rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2.07rem;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Extra small screens (576px to 767px) */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.31rem !important;
    }
    
    h1 {
        font-size: 1.84rem;
    }
    
    h2 {
        font-size: 1.58rem;
    }
    
    h3 {
        font-size: 1.27rem;
    }
    
    h4 {
        font-size: 1.12rem;
    }
    
    .col-lg-2-4 {
        width: 100%;
    }
    
    .hero-section {
  padding-top: 50px;
        text-align: center;
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2.05rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .process-step {
        margin-bottom: 2.07rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.27rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .review-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .btn {
        width: 100%;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Timeline adjustments for mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
    }
    
    /* Gallery responsive grid */
    #gallery .col-lg-3 {
        margin-bottom: 1.20rem;
    }
    
    #gallery img {
        height: 200px;
    }
    
    /* FAQ accordion on mobile */
    .accordion-button {
        padding: 1rem;
        font-size: 1.04rem;
    }
    
    /* Service and blog cards on mobile */
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 180px;
    }
    
    /* Footer on mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2.07rem;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* Mobile screens (less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.12rem !important;
    }
    
    h1 {
        font-size: 1.58rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.31rem;
    }
    
    h4 {
        font-size: 1.06rem;
    }
    
    .hero-section {
  padding-top: 50px;
        min-height: 50vh;
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        margin-bottom: 0.62rem;
    }
    
    .hero-section h2 {
        margin-bottom: 1.20rem;
        font-size: 1.31rem;
    }
    
    .feature-card,
    .info-card {
        padding: 1rem;
    }
    
    .service-card .card-body,
    .blog-card .card-body,
    .case-study-card .card-body {
        padding: 1rem;
    }
    
    .price-card .card-header {
        padding: 1.5rem;
    }
    
    .price-card .card-body {
        padding: 1.5rem;
    }
    
    .price-card .price-tag {
        font-size: 1.58rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-form .form-control {
        padding: 10px 12px;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    /* Gallery grid for mobile */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        width: 50%;
    }
    
    #gallery img {
        height: 150px;
    }
    
    /* Service cards responsive grid */
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 150px;
    }
    
    /* Timeline mobile optimization */
    .timeline-content {
        margin-left: 40px !important;
        padding: 1rem;
    }
    
    .timeline-content::before {
        left: -25px !important;
        width: 15px;
        height: 15px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 8px 20px;
        font-size: 0.91rem;
    }
    
    /* Accordion on very small screens */
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.91rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Disable autoplay and effects on mobile for Swiper (as per requirements) */
@media (max-width: 767.98px) {
    .swiper {
        --swiper-navigation-size: 30px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    
    .swiper-pagination {
        position: static;
        margin-top: 1.09rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .team-photo,
    .service-card img,
    .blog-card img,
    .case-study-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
  padding-top: 50px;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .swiper-pagination,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
  padding-top: 50px;
        min-height: auto;
        padding: 1rem 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .blog-card,
    .case-study-card {
        page-break-inside: avoid;
        margin-bottom: 1.20rem;
    }
}

/* Focus states for accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-sage);
        outline-offset: 2px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .swiper {
        --swiper-transition-timing-function: linear;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
} 