/* Responsive Design for Heirloom Seeds Shop */
/* Mobile-First Approach - No animations on mobile per requirements */

/* Mobile Devices (up to 576px) */
@media (max-width: 575.98px) {
  /* Disable scroll animations on mobile */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  /* Navbar mobile adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Section spacing mobile */
  .section {
    padding: 2rem 0;
  }
  
  .section-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
  
  /* Grid adjustments for mobile */
  .services-grid,
  .team-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Card padding mobile */
  .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  .service-item {
    padding: 1.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .review-item {
    padding: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Small tablets (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero-section {
    min-height: 85vh;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Grid adjustments */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Section spacing */
  .section {
    padding: 3rem 0;
  }
}

/* Medium tablets (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero adjustments */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Grid adjustments */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large tablets/small desktops (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Grid adjustments */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
  /* Full desktop experience */
  .hero-section {
    min-height: var(--hero-height);
  }
  
  /* Grid full layout */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Container max width adjustments */
  .container {
    max-width: 1200px;
  }
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::before {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--earth-brown);
  }
  
  .btn-primary {
    border: 2px solid var(--terracotta-dark);
  }
  
  .form-control {
    border: 2px solid var(--earth-brown);
  }
}

/* Dark mode preferences */

/* Focus states for accessibility */
@media (any-hover: none) {
  /* Touch devices - adjust hover states */
  .card:hover,
  .service-item:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Reduced motion preferences - Enhanced support */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .gallery-item img {
    transition: none;
  }
  
  .card,
  .service-item,
  .btn-primary,
  .btn-outline-primary {
    transition: none;
  }
  
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Very small devices (Galaxy Fold, etc.) */
@media (max-width: 320px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 1rem 0.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


.hero-section h1 {
    padding-top: 225px;
}