/* 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-image {
    min-height: 200px !important;
    max-height: 300px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
  }
  
  .hero-decoration {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* 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: 120px !important;
    max-height: 120px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !important;
    margin-bottom: 1rem !important;
  }
  
  /* 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: 100px !important;
    height: 100px !important;
    background-size: contain !important;
    background-position: center !important;
    margin: 0 auto 1rem !important;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 150px !important;
    max-height: 150px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !important;
  }
  
  /* Reduce hover effects on mobile */
  .gallery-item:hover {
    transform: none;
  }
  
  /* 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: 120px !important;
    max-height: 120px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !important;
  }
  
  .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;
  }
  
  /* Service cards for tablets */
  .service-image {
    height: 160px !important;
    max-height: 160px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !important;
  }
  
  /* Team photo size for tablets */
  .team-photo {
    width: 130px !important;
    height: 130px !important;
    background-size: contain !important;
    background-position: center !important;
  }
  
  /* Hero image for tablets */
  .hero-image {
    min-height: 300px !important;
    max-height: 400px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  
  /* Gallery items for tablets */
  .gallery-item {
    height: 200px !important;
    max-height: 200px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !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);
  }
  
  /* Standard service image height */
  .service-image {
    height: 180px !important;
    max-height: 180px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !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);
  }
  
  /* Optimal spacing for large screens */
  .gallery-item {
    height: 280px !important;
    max-height: 280px !important;
    width: 100% !important;
    background-size: contain !important;
    background-position: center !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);
  }
  
  /* Hero image for very large screens */
  .hero-image {
    max-height: 550px !important;
    min-height: 350px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  
  /* Team photos for very large screens */
  .team-photo {
    width: 160px !important;
    height: 160px !important;
    background-size: contain !important;
    background-position: center !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;
  }
}

/* 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: 175px;
}