/* ================================
   ZERO-EMISSIONS COURIER SERVICE
   Responsive Stylesheet
   ================================ */

/* Mobile First Approach - Base styles are mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --section-padding: 2rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card {
    margin-bottom: 1.73rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-brand {
    font-size: 10px !important;
    font-size: 1.24rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .navbar-brand {
    font-size: 10px !important;
    font-size: 1.21rem;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover {
    transform: translateY(-3px);
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .feature-icon {
    font-size: 3.61rem;
  }
  
  .process-number {
    width: 70px;
    height: 70px;
    font-size: 1.41rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .container {
    max-width: var(--container-max-width);
  }
  
  .feature-icon {
    font-size: 4rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #c4bcbc;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .blog-card img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Large text preference */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Dark mode support */

/* Container responsive adjustments */
@media (max-width: 1199.98px) {
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0 0 1rem 0;
  }
  
  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Grid adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1.68rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Timeline responsive adjustments */
@media (max-width: 767.98px) {
  .timeline-card::before {
    display: none;
  }
  
  .timeline-card {
    margin-left: 0;
    margin-bottom: 1.64rem;
  }
}

@media (min-width: 768px) {
  .timeline-card {
    margin-left: 2rem;
  }
}

/* Production-ready enhancements */
/* Loading and error states */
.lazy {
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

.lazy:not(.loaded) {
  opacity: 0.7;
}

.lazy.error {
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Notification toast responsive */
@media (max-width: 575.98px) {
  .notification-toast {
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
    min-width: auto !important;
    max-width: none !important;
    transform: translateY(-100%) !important;
  }
  
  .notification-toast.show {
    transform: translateY(0) !important;
  }
}

/* Focus improvements for accessibility */
.service-card:focus,
.price-card:focus,
.team-card:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Smooth transitions for better UX */
.btn {
  transition: all 0.2s ease;
}

.nav-link {
    font-size: 10px !important;
  transition: color 0.2s ease;
}

/* Back to top button improvements */
.back-to-top {
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top[style*="block"] {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Form improvements */
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(86, 190, 151, 0.25);
}

/* Reduced motion compliance enhancement */
@media (prefers-reduced-motion: reduce) {
  .lazy,
  .btn,
  .nav-link,
  .back-to-top,
  .form-control,
  .notification-toast {
    transition: none !important;
  }
  
  .scroll-progress {
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .faq-card,
  .blog-card,
  .contact-form {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-gray);
  }
}

/* Print optimizations */
@media print {
  .scroll-progress,
  .notification-toast,
  .back-to-top {
    display: none !important;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
} 

.hero-content {
    padding-top: 150px;
}