/* Responsive CSS for Farmers Market Booth Template */

/* Tablet Landscape */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.6rem;
        --section-padding: 60px 0;
    }
    
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --navbar-brand-size: 1.25rem;
        --section-padding: 50px 0;
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper-slide {
        transition: none !important;
    }
    
    .swiper-wrapper {
        transform: none !important;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        margin-bottom: 1rem;
    }
    
    .hero-content h2 {
        margin-bottom: 1rem;
    }
    
    /* Services Grid */
    .services-section .row > div {
        margin-bottom: 1.5rem;
    }
    
    .service-card img {
        height: 150px;
    }
    
    /* About Features */
    .about-section .row > div {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    .feature-card i {
        font-size: 2rem !important;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Blog Section */
    .blog-section .row > div {
        margin-bottom: 1.5rem;
    }
    
    .blog-card img {
        height: 180px;
    }
    
    .blog-card .card-body {
  overflow-x: hidden;
        padding: 1.25rem;
    }
    
    /* Footer */
    .footer-section .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    :root {
        --font-size-base: 14px;
        --font-size-h1: 1.6rem;
        --font-size-h2: 1.3rem;
        --font-size-h3: 1.2rem;
        --font-size-h4: 1.1rem;
        --navbar-brand-size: 1.1rem;
        --section-padding: 40px 0;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
    }
    
    /* Services */
    .service-card img {
        height: 120px;
    }
    
    .service-card .card-body {
  overflow-x: hidden;
        padding: 1rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .price {
        font-size: var(--font-size-lg);
        padding: 0.75rem;
    }
    
    /* Blog Section */
    .blog-card img {
        height: 150px;
    }
    
    .blog-card .card-body {
  overflow-x: hidden;
        padding: 1rem;
    }
    
    .blog-card h4 {
        font-size: 1rem;
    }
    
    .blog-card .btn-outline-primary {
        padding: 0.4rem 1rem;
        font-size: var(--font-size-sm);
    }
    
    /* Features */
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card i {
        font-size: 1.5rem !important;
    }
    
    /* Contact Section */
    .contact-section .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .contact-section i {
        font-size: 1.5rem !important;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: var(--font-size-sm);
    }
    
    /* Footer */
    .footer-section {
        padding: 30px 0;
    }
    
    .footer-section h4,
    .footer-section h5 {
        font-size: 1.1rem;
    }
    
    #site-copyright {
        font-size: 12px;
        text-align: center;
    }
}

/* Mobile Portrait - Extra Small */
@media (max-width: 375px) {
    :root {
        --font-size-base: 13px;
        --font-size-h1: 1.4rem;
        --font-size-h2: 1.2rem;
        --section-padding: 30px 0;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section {
        min-height: 50vh;
        padding: 70px 0 30px;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .service-card img {
        height: 100px;
    }
    
    .feature-card,
    .service-card .card-body,
    .contact-form {
        padding: 0.75rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 12px;
    }
    
    .blog-card img {
        height: 120px;
    }
    
    .blog-card .card-body {
  overflow-x: hidden;
        padding: 0.75rem;
    }
    
    .blog-card .btn-outline-primary {
        padding: 0.3rem 0.8rem;
        font-size: 11px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: var(--gradient-hero), url('../INV_images/hero-bg@2x.webp');
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .feature-card:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .contact-form,
    .btn {
        display: none !important;
    }
    
    .hero-section,
    .about-section,
    .services-section,
    .contact-section,
    .footer-section {
        padding: 20px 0;
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
