/* ==========================================================================
   Carbon Smart Logistics - Responsive CSS
   Mobile & Tablet Optimization
   ========================================================================== */

/* Mobile First Approach - Base styles for mobile in main.css */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .process-number {
    width: 70px;
    height: 70px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .team-photo {
    height: 300px;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  .process-number {
    width: 80px;
    height: 80px;
  }
  
  /* FAQ cards better spacing */
  .accordion-item {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .service-card {
    padding: 3.5rem;
  }
  
  .team-photo {
    height: 350px;
  }
  
  .gallery-item img {
    height: 350px;
  }
  
  .review-card {
    padding: 3rem;
  }
  
  /* Timeline better visualization */
  .timeline-item {
    padding-left: 4rem;
  }
  
  .timeline-item::before {
    width: 16px;
    height: 16px;
  }
  
  .timeline-item::after {
    left: 7px;
    width: 3px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 8rem 0;
  }
  
  .service-card {
    padding: 4rem;
  }
  
  .team-photo {
    height: 400px;
  }
  
  .gallery-item img {
    height: 400px;
  }
  
  .hero-shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-shape-2 {
    width: 300px;
    height: 300px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .section {
    padding: 10rem 0;
  }
  
  .container {
    max-width: 1320px;
  }
}

/* Mobile Specific Optimizations */
@media (max-width: 767px) {
  /* Stack hero content vertically on mobile */
  .hero-section .row {
    text-align: center;
  }
  
  /* Adjust service grid for mobile */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team cards stack nicely */
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Review cards mobile optimization */
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Process steps mobile layout */
  .process-step {
    margin-bottom: 3rem;
  }
  
  /* Timeline mobile optimization */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Contact form mobile */
  .form-control {
    margin-bottom: 1rem;
  }
  
  /* Gallery mobile grid */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ mobile optimization */
  .accordion-button {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Hide decorative shapes on mobile for performance */
  .hero-shape {
    display: none;
  }
}

/* Tablet Portrait Optimization */
@media (min-width: 768px) and (max-width: 991px) {
  .service-card {
    height: 100%;
  }
  
  .team-card {
    height: 100%;
  }
  
  .review-card {
    height: 100%;
  }
  
  /* Ensure equal height cards */
  .services-grid .col-md-6,
  .team-grid .col-md-6,
  .reviews-grid .col-md-6 {
    display: flex;
    margin-bottom: 2rem;
  }
  
  .services-grid .service-card,
  .team-grid .team-card,
  .reviews-grid .review-card {
    width: 100%;
  }
}

/* Landscape Orientation Optimization */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .service-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print Styles */
@media print {
  .hero-section,
  .gallery,
  .footer {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
} 

.hero-content {
    padding-top: 275px;
}