/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.914px) {
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.2rem;
    --font-size-brand: 1.1rem;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.92rem;
    margin-bottom: 0.58rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .services-card,
  .team-card,
  .review-card {
    margin-bottom: 1.73rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.14rem !important;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  .faq-header,
  .faq-body {
    padding: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .services-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
  }
  
  .hero-section h1 {
    font-size: 2.14rem;
  }
  
  .services-card {
    padding: 1.8rem;
  }
  
  .team-card {
    padding: 1.3rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 95vh;
  }
  
  .services-card img {
    height: 180px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
  }
  
  .container-fluid {
    max-width: 1400px;
  }
  
  .services-card img {
    height: 200px;
  }
  
  .gallery-item img {
    height: 270px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.92rem;
    margin-bottom: 0.71rem;
  }
  
  .hero-section .lead {
    font-size: 1.01rem;
    margin-bottom: 1rem;
  }
}

/* High resolution screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .services-card,
  .team-card,
  .review-card {
    box-shadow: 0 8px 12px rgba(0,0,0,0.08);
  }
  
  .services-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-item {
    display: none !important;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .services-card,
  .team-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #dbd2d2;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements for smaller screens */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* Focus improvements for keyboard navigation */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 2px solid transparent;
  }
  
  .navbar-toggler:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(89, 158, 236, 0.25);
  }
  
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
} 