/* Responsive Styles for Community-Supported Fishery Delivery Template */

/* Tablet Styles */
@media (max-width: 991.98px) {
  .hero-content {
    padding: 80px 0;
    text-align: center;
    padding-top: 175px;
}
  
  h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  /* Hero Section */
  .hero-content {
    padding: 60px 0;
    padding-top: 175px;
}
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Sections */
  .section-padding {
    padding: 40px 0;
  }
  
  .section-description {
    margin: 0 auto 2rem;
  }
  
  /* Cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Team */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Reviews */
  .review-card {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-image {
    height: 200px;
  }
  
  /* Price Cards */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Blog */
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Disable animations on mobile for performance */
  @media (prefers-reduced-motion: reduce) {
    .sal-animate {
      animation: none !important;
      transition: none !important;
    }
  }
}

/* Small Mobile Styles */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero */
  .hero-content {
    padding: 40px 0;
    padding-top: 175px;
}
  
  /* Sections */
  .section-padding {
    padding: 30px 0;
  }
  
  /* Cards */
  .service-card,
  .review-card,
  .contact-form {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  .price-amount {
    font-size: 1.8rem;
  }
  
  /* Form Elements */
  .form-control {
    padding: 10px 12px;
  }
  
  .btn-primary {
    padding: 10px 25px;
    width: 100%;
  }
  
  /* Spacing */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-content {
    padding: 30px 0;
    padding-top: 175px;
}
  
  .section-padding {
    padding: 30px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .service-image,
  .team-photo,
  .gallery-image,
  .blog-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero-decorative {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Focus Styles for Accessibility */
@media (min-width: 768px) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}