/* ==========================================================================
   Responsive Styles - Mobile First
   Carbon-Negative Concrete R&D Firm
   ========================================================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
  /* No animations on mobile for performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section::before {
    display: none;
  }
  
  /* Section padding adjustments */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  /* Card spacing */
  .service-card,
  .pricing-card,
  .team-member,
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Process steps mobile */
  .process-step {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery grid mobile */
  .gallery-item img {
    height: 200px;
  }
}

/* Small devices (landscape phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Tablet-specific card layouts */
  .service-card,
  .pricing-card {
    height: auto;
    min-height: 350px;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 4.5rem 0;
  }
  
  /* Desktop card heights */
  .service-card {
    min-height: 400px;
  }
  
  .pricing-card {
    min-height: 450px;
  }
  
  .gallery-item img {
    height: 260px;
  }
}

/* Extra large devices (large desktops) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Full desktop experience */
  .service-card {
    min-height: 420px;
  }
  
  .pricing-card {
    min-height: 480px;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  /* Enhanced hover effects for larger screens */
  .service-card:hover,
  .pricing-card:hover,
  .case-study-card:hover {
    transform: translateY(-10px);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-section {
    display: none;
  }
  
  .hero-section,
  .section-padding {
    padding: 1rem 0;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  * {
    color: black !important;
    background: white !important;
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .pricing-card,
  .feature-card,
  .team-member,
  .review-card,
  .case-study-card,
  .career-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-green);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
    transform: none;
  }
  
  .service-card:hover,
  .pricing-card:hover,
  .team-member:hover,
  .feature-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

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

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Special mobile navbar handling */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

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