/* Responsive Design for Carbon Offset Brokerage */

/* Large Devices (Desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    padding-top: 175px;
}
  
  .service-card {
    padding: 2.5rem;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section .col-md-6:first-child {
    margin-bottom: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .service-card,
  .feature-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Small Devices (Mobile Landscape) */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .service-card,
  .feature-card,
  .contact-form,
  .process-step {
    padding: 1rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
  }
  
  .process-number {
    position: static;
    margin: 0 auto 1rem;
  }
  
  .timeline-item,
  .career-item {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Extra Small Devices (Mobile Portrait) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section-padding {
    padding: 1.5rem 0;
  }
  
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  
  p {
    font-size: var(--font-size-small);
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .service-card,
  .feature-card,
  .contact-form,
  .process-step,
  .review-card {
    padding: 0.75rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .price-value {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
}

/* Mobile-Specific Optimizations */
@media (max-width: 767.98px) {
  /* No animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Ensure touch targets are adequate */
  .btn, .nav-link, .card {
    min-height: 44px;
  }
  
  /* Optimize tap targets */
  .nav-link {
    padding: 0.75rem 1rem;
    display: block;
  }
  
  /* Mobile-friendly form inputs */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem;
  }
  
  /* Mobile-friendly cards */
  .card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Optimize mobile spacing */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col-6,
  .col-12,
  .col-sm-6,
  .col-md-4,
  .col-md-6,
  .col-lg-3,
  .col-lg-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}