/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .custom-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .price-card .price {
    font-size: 2rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .custom-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
    font-size: 2.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .custom-card {
    padding: 1.75rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .breadcrumb-container {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .custom-card,
  .btn-primary,
  .btn-secondary,
  .navbar-nav .nav-link {
    transition: none !important;
  }
  
  .hero-section::before {
    animation: none !important;
  }
}

/* Dark mode support (if user prefers) */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark-forest);
  color: var(--neutral-cream-light);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
} 

.hero-content {
    padding-top: 175px;
}