/* Mobile First Responsive Design */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding reduction */
  section {
    padding: 40px 0;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero::before {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .job-card,
  .info-card,
  .blog-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .price-card {
    margin-bottom: 1.5rem;
    padding: 2rem;
  }
  
  /* Contact form */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  /* Footer */
  #footer {
    padding: 40px 0 20px;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Section padding */
  section {
    padding: 60px 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 90vh;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .job-card,
  .info-card,
  .blog-card {
    padding: 1.75rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 225px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  section {
    padding: 70px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 95vh;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  /* Cards in grid */
  .feature-card,
  .service-card,
  .team-card,
  .info-card {
    height: 100%;
  }
  
  /* Gallery grid */
  .gallery-item img {
    height: 240px;
  }
  
  /* Contact section */
  .contact-form {
    margin-bottom: 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section padding */
  section {
    padding: 80px 0;
  }
  
  /* Hero full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Cards equal height */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .job-card,
  .info-card,
  .blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .feature-card .card-body,
  .service-card .card-body,
  .team-card .card-body,
  .review-card .card-body,
  .case-card .card-body,
  .job-card .card-body,
  .info-card .card-body,
  .blog-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}
  
  /* Gallery optimization */
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Enhanced spacing */
  section {
    padding: 100px 0;
  }
  
  /* Hero enhancements */
  #hero {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
  
  /* Card enhancements */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .job-card,
  .info-card,
  .blog-card {
    padding: 2.5rem;
  }
  
  .price-card {
    padding: 3rem;
  }
  
  /* Gallery large screens */
  .gallery-item img {
    height: 300px;
  }
  
  /* Team photos */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Process numbers */
  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .contact-form,
  #footer .footer-section:not(.footer-bottom) {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  /* Card styles for print */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .job-card,
  .info-card,
  .blog-card,
  .price-card,
  .faq-card {
    border: 1pt solid #ccc;
    border-radius: 0;
    box-shadow: none;
    padding: 10pt;
    margin-bottom: 10pt;
    background: white;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2E5D2E;
    --primary-blue: #1E4E7B;
    --primary-earth: #8B4513;
    --primary-orange: #CC6600;
    --primary-purple: #4B0082;
    
    --light-green: #F0F8F0;
    --light-blue: #F0F6FF;
    --light-earth: #FFF8DC;
    --light-orange: #FFF4E6;
    --light-purple: #F8F0FF;
    
    --dark-green: #1B3D1B;
    --dark-blue: #0F2A4A;
    --dark-earth: #5A2D0C;
    --dark-orange: #994D00;
    --dark-purple: #2E0052;
  }
  
  /* Enhanced borders and outlines */
  .card,
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .job-card,
  .info-card,
  .blog-card,
  .price-card,
  .faq-card {
    border: 2px solid var(--dark-green);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border: 2px solid var(--dark-green);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transforms */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-card:hover,
  .job-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .price-card:hover,
  .gallery-item:hover {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.card:focus-within {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
} 