/* Responsive CSS for Custom-Printed Fabric Template */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  /* Navbar brand smaller on mobile */
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 1rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Section padding reduction */
  .section {
    padding: 2rem 0;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Button full width on mobile */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Form improvements */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Team photos smaller */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery grid adjustment */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Process numbers smaller */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Service price smaller */
  .service-price {
    font-size: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Reduce animations on small devices */
  .card:hover {
    transform: translateY(-2px);
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  h1 {
    font-size: 2.1rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Two column layout for services */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Three column layout optimization */
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
  
  /* Optimal spacing for large screens */
  .section {
    padding: 5rem 0;
  }
  
  .card-body {
    padding: 2.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #cdcdcd;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
}

/* Dark mode support (if system preference) */

/* Focus improvements for accessibility */
@media (any-hover: none) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {
  .hero-decorative,
  .gallery-item::before {
    display: none;
  }
  
  .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
} 

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