/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Padding adjustments */
  section {
    padding: 2rem 0;
  }
  
  .service-card,
  .price-card,
  .review-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery grid mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process numbers smaller */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  /* Footer spacing */
  footer {
    padding: 2rem 0 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Container max-widths for better readability */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Navbar responsive behavior */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
}

/* Cards responsive stacking */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
}

/* Form responsive adjustments */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.5rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Timeline responsive */
@media (max-width: 767.98px) {
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: -6px;
    width: 10px;
    height: 10px;
  }
}

/* Blog cards responsive */
@media (max-width: 767.98px) {
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: 1rem;
  }
}

/* Price badge responsive */
@media (max-width: 575.98px) {
  .price-badge {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

/* Ensure proper spacing on all devices */
.mb-mobile {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mb-mobile {
    margin-bottom: 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .card,
  .service-card,
  .price-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
