/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .service-image,
  .gallery-image {
    height: 180px;
  }
}

/* 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.8rem;
  }
  
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.9rem;
  }
  
  .service-image,
  .gallery-image {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Enable hover effects only on larger screens */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover {
    transform: translateY(-5px);
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  
  .price-card:hover {
    transform: translateY(-8px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-shape,
  .btn,
  #footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  .section-title {
    font-size: 18pt;
  }
  
  .hero-content h1 {
    font-size: 24pt;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #ffffff;
    --contrast-color: #000000;
    --neutral-color: #666666;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .feature-card,
  .faq-card {
    border: 2px solid #000000;
  }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Focus and accessibility improvements */
@media (max-width: 991.98px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 90, 60, 0.25);
  }
  
  .nav-link:focus,
  .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
} 