/* Responsive CSS for Hydroponic Garden Units Template */
/* Mobile-First Approach */

/* Base styles are mobile (defined in main.css) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-brand {
    font-size: 1.6rem;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Mobile-specific styles (up to 767px) */
@media (max-width: 767px) {
  /* DISABLE ALL ANIMATIONS ON MOBILE */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Disable specific animations */
  .sal-animate {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  /* Disable hover animations */
  .custom-card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .gallery-item:hover img,
  .social-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Mobile hero section */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Mobile spacing */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Mobile cards */
  .service-card,
  .team-card,
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile forms */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .form-control {
    padding: 0.625rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
  
  /* Mobile footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Mobile FAQ */
  .faq-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Mobile reviews */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .service-card,
  .team-card,
  .contact-form {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .gallery-item img {
    height: 180px;
  }
}

/* Landscape phone orientation */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .custom-card,
  .service-card,
  .team-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Accessibility - Focus indicators */
@media (prefers-reduced-motion: no-preference) {
  .custom-card,
  .service-card,
  .team-card,
  .gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .custom-card,
  .service-card,
  .team-card,
  .gallery-item,
  .gallery-item img,
  .sal-animate {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  
  .custom-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
} 

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