/* Trail Mix Subscription Website - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.375rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Header mobile adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-decoration {
    display: none; /* Hide decorative elements on mobile */
  }

  /* MOBILE IMAGE ADJUSTMENTS */
  
  /* Hero image mobile */
  #hero img,
  .hero-image,
  img[src*="hero-trail-mix"] {
    max-height: 250px !important;
    margin-bottom: 1rem;
  }
  
  /* Service images mobile */
  .service-image {
    height: 150px !important;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 100px !important;
    height: 100px !important;
  }
  
  /* Gallery items mobile */
  .gallery-item {
    height: 180px !important;
  }
  
  /* Blog images mobile */
  .blog-image {
    height: 150px !important;
  }
  
  /* Section padding adjustments */
  .section-padding,
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #casestudy,
  #process,
  #timeline,
  #career,
  #coreinfo,
  #contacts,
  #blog,
  #faq,
  #gallery {
    padding: 40px 0;
  }
  
  /* Service cards mobile */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  /* Price cards mobile */
  .price-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none; /* Remove scale on mobile */
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  /* Team cards mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Features grid mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Feature cards mobile */
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Blog cards mobile */
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  /* FAQ cards mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* No animations on mobile for better performance */
  .feature-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Adjust grid for small tablets */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Price cards on small tablets */
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery grid for tablets */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Section padding for tablets */
  .section-padding,
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #casestudy,
  #process,
  #timeline,
  #career,
  #coreinfo,
  #contacts,
  #blog,
  #faq,
  #gallery {
    padding: 60px 0;
  }
  
  /* TABLET IMAGE ADJUSTMENTS */
  
  /* Hero image tablet */
  #hero img,
  .hero-image,
  img[src*="hero-trail-mix"] {
    max-height: 350px !important;
  }
  
  /* Service images for tablets */
  .service-image {
    height: 180px !important;
  }
  
  /* Team photo size for tablets */
  .team-photo {
    width: 140px !important;
    height: 140px !important;
  }
  
  /* Gallery items tablet */
  .gallery-item {
    height: 220px !important;
  }
  
  /* Blog images tablet */
  .blog-image {
    height: 180px !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* DESKTOP IMAGE ADJUSTMENTS */
  
  /* Hero image desktop */
  #hero img,
  .hero-image,
  img[src*="hero-trail-mix"] {
    max-height: 400px !important;
  }
  
  /* Standard service image height */
  .service-image {
    height: 200px !important;
  }
  
  /* Team photos desktop */
  .team-photo {
    width: 150px !important;
    height: 150px !important;
  }
  
  /* Gallery items desktop */
  .gallery-item {
    height: 250px !important;
  }
  
  /* Blog images desktop */
  .blog-image {
    height: 200px !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum container width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Full gallery layout */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* LARGE DESKTOP IMAGE ADJUSTMENTS */
  
  /* Hero image large desktop */
  #hero img,
  .hero-image,
  img[src*="hero-trail-mix"] {
    max-height: 450px !important;
  }
  
  /* Service images large desktop */
  .service-image {
    height: 220px !important;
  }
  
  /* Team photos large desktop */
  .team-photo {
    width: 160px !important;
    height: 160px !important;
  }
  
  /* Gallery items large desktop */
  .gallery-item {
    height: 300px !important;
  }
  
  /* Blog images large desktop */
  .blog-image {
    height: 220px !important;
  }
  
  /* Enhanced hover effects on large screens */
  .feature-card:hover {
    transform: translateY(-8px);
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card:hover {
    transform: translateY(-8px);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Increase font sizes slightly for very large screens */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Enhanced gallery for very large screens */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* EXTRA LARGE DESKTOP IMAGE ADJUSTMENTS */
  
  /* Hero image extra large desktop */
  #hero img,
  .hero-image,
  img[src*="hero-trail-mix"] {
    max-height: 500px !important;
  }
  
  /* Service images extra large desktop */
  .service-image {
    height: 250px !important;
  }
  
  /* Team photos extra large desktop */
  .team-photo {
    width: 180px !important;
    height: 180px !important;
  }
  
  /* Gallery items extra large desktop */
  .gallery-item {
    height: 320px !important;
  }
  
  /* Blog images extra large desktop */
  .blog-image {
    height: 250px !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI displays */
  .team-photo,
  .gallery-item,
  .service-image,
  .blog-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 100vh;
  }
  
  /* Reduce section padding on short landscape screens */
  .section-padding {
    padding: 30px 0;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer for printing */
  #header,
  #footer {
    display: none;
  }
  
  /* Optimize colors for printing */
  body {
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  /* Remove shadows and effects for print */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  /* Ensure proper page breaks */
  .feature-card,
  .service-card,
  .price-card,
  .team-card {
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* RESPONSIVE IMAGES - ALL DEVICES */

/* Base responsive image styles */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* Hero image responsive */
#hero img,
.hero-image,
img[src*="hero-trail-mix"] {
  width: 100% !important;
  height: auto !important;
  max-height: 400px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

/* Service images responsive */
.service-image {
  width: 100% !important;
  height: 200px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 8px !important;
}

/* Team photos responsive */
.team-photo {
  width: 150px !important;
  height: 150px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 50% !important;
  margin: 0 auto 1.5rem !important;
}

/* Gallery items responsive */
.gallery-item {
  width: 100% !important;
  height: 250px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 8px !important;
}

/* Breadcrumb images responsive */
.breadcrumb img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* Blog images responsive */
.blog-image {
  width: 100% !important;
  height: 200px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Enhance contrast for accessibility */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Dark mode preference (optional enhancement) */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  /* Touch devices - remove hover effects */
  .feature-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
} 

.hero-content {
    padding-top: 225px;
}