/* Responsive CSS for Environmental Impact Consulting Template */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.65rem;
  }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-card {
    min-height: 400px;
  }
  
  .price-card {
    min-height: 450px;
  }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
  }
  
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  .feature-card {
    min-height: 280px;
  }
  
  .team-card {
    min-height: 320px;
  }
  
  .review-card {
    min-height: 200px;
  }
  
  .process-step {
    min-height: 250px;
  }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content {
  padding-top: 50px !important;
    padding: 0 2rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.94rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.97rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.63rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.59rem;
    margin-bottom: 0.99rem;
  }
  
  .section-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.00rem;
  }
  
  .section-desc {
    font-size: 1.09rem;
    margin-bottom: 2rem;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .process-step {
    padding: 1.5rem;
    margin-bottom: 1.57rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .navbar-brand {
    font-size: 1.19rem !important;
  }
  
  .decorative-shape {
    display: none;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 2px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .process-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: -12px;
  }
  
  .faq-question {
    padding: 0.75rem 1rem;
    font-size: 1.10rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 1.02rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .blog-card img {
    height: 160px;
  }
  
  .blog-card-body {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .decorative-shape,
  .btn {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .process-step,
  .faq-card,
  .blog-card {
    box-shadow: none;
    border: 1px solid #f0dcdb;
    break-inside: avoid;
  }
  
  .contact-form {
    display: none;
  }
  
  .gallery-item {
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero-title,
  .section-title {
    color: #000 !important;
  }
  
  .text-gradient {
    -webkit-text-fill-color: initial;
    color: #000 !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-forest: #000000;
    --primary-ocean: #000000;
    --primary-earth: #000000;
    --primary-sage: #000000;
    --primary-teal: #000000;
    --medium-gray: #000000;
    --light-gray: #ffffff;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .process-step,
  .faq-card,
  .blog-card,
  .contact-form {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
  }
  
  .form-control {
    border: 2px solid #000000 !important;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .process-step:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .nav-link {
    padding: 1rem !important;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1.18rem;
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
  }
}



/* Animation Performance Optimizations */
@media (max-width: 768px) {
  .fade-in {
    transform: none;
    transition: opacity 0.3s ease;
  }
  
  .fade-in.visible {
    transform: none;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-forest);
    outline-offset: 2px;
  }
}

/* Large Text Support */
@media (min-resolution: 192dpi) {
  body {
    font-size: 1.11rem;
  }
  
  .hero-title {
    font-size: 2.51rem;
  }
  
  .section-title {
    font-size: 2.26rem;
  }
} 