/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card i {
    font-size: 2rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .review-text {
    margin-left: 2rem;
  }
  
  .review-author {
    margin-left: 2rem;
  }
  
  .faq-header {
    padding: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .navbar-collapse {
    background: rgba(45, 90, 39, 0.95);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    width: 130px;
    height: 130px;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .section {
    padding: 5rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    width: 150px;
    height: 150px;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .gallery-item img,
  .service-card img,
  .team-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .breadcrumb,
  footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .feature-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .gallery-item:hover,
  .service-card:hover,
  .team-card:hover,
  .feature-card:hover {
    transform: none !important;
  }
}

/* Focus states for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid var(--primary-sage);
    outline-offset: 2px;
  }
}

/* Dark mode support (minimal, as requested no dark theme) */
