/* Responsive CSS for Automated Bookkeeping Template */
/* Mobile-First Approach with Bootstrap 5 Grid System */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE - Critical Requirement */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Hero Section - Mobile Optimization */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Typography - Mobile Adjustments */
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Section Padding - Reduced for Mobile */
  .section-padding {
    padding: 2rem 0;
  }
  
  /* Service Cards - Mobile Stack */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: none;
  }
  
  .service-card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* Feature Cards - Mobile */
  .feature-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  /* Team Cards - Mobile */
  .team-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
    border-width: 2px;
  }
  
  /* Price Cards - Mobile */
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transform: none;
    border-width: 1px;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 2px;
  }
  
  /* Contact Form - Mobile */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Gallery Grid - Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Footer - Mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* FAQ Cards - Mobile */
  .faq-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Review Cards - Mobile */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Reduced animations for small screens */
  @media (prefers-reduced-motion: no-preference) {
    .service-card:hover {
      transform: translateY(-2px);
    }
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  /* Moderate animations for tablets */
  @media (prefers-reduced-motion: no-preference) {
    .service-card:hover {
      transform: translateY(-3px);
    }
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .hero-section {
    padding: 0 2rem;
  }
}

/* Print Styles */
@media print {
  .hero-decorative,
  .navbar,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card,
  .review-card,
  .faq-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .team-card,
  .price-card,
  .review-card,
  .faq-card,
  .contact-form {
    border: 2px solid;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 1.5rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .price-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary {
    padding: 1rem 2rem; /* Larger touch targets */
  }
  
  .form-control {
    padding: 1rem; /* Larger form fields */
  }
}

.hero-content {
    padding-top: 200px;
}