/* Mobile First Responsive Design */
/* Base styles are mobile-first, then scale up */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  .service-card,
  .gallery-item img,
  .team-card,
  * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  #hero::before {
    display: none;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    height: 200px;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
    border-width: 2px;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Process numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog images */
  .blog-image {
    height: 150px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No animations on small devices */
  .service-card,
  .gallery-item img,
  * {
    transition: none !important;
    animation: none !important;
  }
  
  #hero {
    min-height: 80vh;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .team-photo {
    height: 220px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    min-height: 90vh;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  .team-photo {
    height: 240px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Allow limited animations on tablets */
  .service-card:hover {
    transform: translateY(-3px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations enabled on desktop */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item img:hover {
    transform: scale(1.05);
  }
  
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .team-photo {
    height: 280px;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  section {
    padding: 6rem 0;
  }
}

/* Navbar responsiveness */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form responsiveness */
@media (max-width: 767.98px) {
  .form-control {
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Card responsiveness */
@media (max-width: 575.98px) {
  .service-card,
  .review-card,
  .case-card,
  .price-card,
  .blog-card {
    padding: 1.5rem;
  }
  
  .faq-card {
    padding: 1rem;
  }
}

/* Footer responsiveness */
@media (max-width: 767.98px) {
  #footer {
    text-align: center;
  }
  
  #footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Utility classes for responsive display */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2E7D32;
    --primary-blue: #1565C0;
    --primary-orange: #E65100;
    --primary-teal: #00695C;
    --primary-brown: #5D4037;
  }
  
  .service-card,
  .review-card,
  .case-card,
  .price-card,
  .blog-card {
    border: 2px solid #333;
  }
}

/* Print styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .review-card,
  .case-card,
  .price-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
} 

body {
    overflow-x: hidden;
}