/* Urban Compost & Soil Template - Responsive CSS */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 0 2rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .service-card {
    padding: 2.5rem;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 2.58rem;
    padding-top: 150px;
}
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .service-card {
    height: 100%;
  }
  
  .team-card {
    height: 100%;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .navbar-brand {
    font-size: 1.45rem;
  }
  
  .hero-section h1 {
    font-size: 2.42rem;
    padding-top: 150px;
}
  
  .service-price {
    font-size: 1.71rem;
  }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
  .navbar-brand {
    font-size: 1.15rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.93rem;
    margin-bottom: 1rem;
    padding-top: 150px;
}
  
  .hero-section p {
    font-size: 0.98rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.68rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.68rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
  }
  
  .service-price {
    font-size: 1.42rem;
  }
  
  .team-card {
    padding: 1.2rem;
    margin-bottom: 1.74rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
    font-size: 1.54rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    width: 100%;
  }
  
  .faq-card {
    padding: 1.2rem;
  }
  
  .faq-question {
    font-size: 1.10rem;
  }
  
  .faq-answer {
    font-size: 0.94rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-item {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 1px solid #d8d3d2;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .gallery-item img,
  .navbar-nav .nav-link,
  .footer a {
    transition: none;
  }
  
  .hero-section::before {
    display: none;
  }
}

/* Focus Management for Accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 3px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
} 