/* Local Artisan Cooperative Store - Responsive CSS */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .service-item img {
    height: 250px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --section-padding: 4rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section::before {
    width: 80%;
    right: -30%;
  }
  
  .service-item {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-item img {
    height: 180px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.375rem;
    --font-size-h3: 1.125rem;
    --section-padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .navbar-brand {
    font-size: 0.9rem;
  }
  
  .service-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .service-item img {
    height: 160px;
  }
  
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .process-step {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .blog-content {
    padding: 1rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.25rem;
    --font-size-h3: 1.125rem;
    --font-size-body: 0.9rem;
    --section-padding: 2rem 0;
  }
  
  /* CRITICAL: No animations in mobile resolution */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 60vh;
    text-align: center;
    padding: 1.5rem 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .hero-section h1 {
    margin-bottom: 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 0.85rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .service-item {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .service-item img {
    height: 140px;
    margin-bottom: 0.75rem;
  }
  
  .team-member {
    margin-bottom: 1rem;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
    border-width: 2px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .contact-form {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .form-control {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .process-step {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    padding-left: 1rem;
    margin-bottom: 1rem;
  }
  
  .timeline-item::before {
    width: 8px;
    height: 8px;
    left: 2px;
  }
  
  .timeline-item::after {
    left: 4px;
    width: 1px;
  }
  
  .review-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .faq-card {
    margin-bottom: 0.75rem;
  }
  
  .faq-card .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  .blog-post {
    margin-bottom: 1rem;
  }
  
  .blog-post img {
    height: 150px;
  }
  
  .blog-content {
    padding: 0.75rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card:hover {
    transform: none;
  }
  
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }
  
  /* Mobile-specific adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col-12,
  .col-sm-6,
  .col-md-4,
  .col-lg-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Ensure text remains readable */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  
  /* Mobile navigation improvements */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 0.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 0.25rem;
  }
}

/* Landscape orientation adjustments for phones */
@media screen and (max-height: 480px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  section {
    padding: 1.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-member img,
  .gallery-item img,
  .service-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery,
  #space {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }
  
  .container {
    max-width: none !important;
    padding: 0;
  }
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}


.hero-content {
    padding-top: 100px;
}