/* Responsive Styles for Solar Cold Storage Template */

/* Mobile First Approach */
/* No animations when scrolling in mobile resolution */
@media (max-width: 768px) {
  /* Disable all scroll animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Allow only basic hover transitions */
  .btn, .nav-link, .card {
    transition: color 0.2s ease, background-color 0.2s ease !important;
  }
  
  /* Typography adjustments */
  .hero-content h1 {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 275px;
}
  
  /* Hide decorative shapes on mobile */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Section padding */
  .section {
    padding: 3rem 0;
  }
  
  /* Cards and components */
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Navbar mobile - using standard Bootstrap only */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    margin: 0;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .service-card,
  .team-card {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Desktop styles */
@media (min-width: 1025px) {
  /* Full animations enabled on desktop */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .price-card:hover {
    transform: translateY(-5px);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

/* Extra large screens */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .gallery-item,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Dark mode support */

/* Accessibility improvements */
@media (max-width: 768px) {
  /* Ensure touch targets are at least 44px */
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Increase text size for better readability */
  .card-text,
  .faq-answer,
  .review-text {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

/* Reduce motion preferences respected globally */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus management for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
