/* Responsive CSS for Travel Route Optimization Tool */

/* Mobile First - Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title { font-size: var(--font-size-2xl); }
  .hero-subtitle { font-size: var(--font-size-lg); }
  .section-title { font-size: var(--font-size-xl); }
  .section-padding { padding: 2rem 0; }
  .contact-form { padding: 2rem; }
  .navbar-brand { font-size: var(--font-size-lg) !important; }
  
  .service-card,
  .team-card,
  .feature-item,
  .price-card,
  .blog-card { margin-bottom: 2rem; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title { font-size: var(--font-size-3xl); }
  .service-card,
  .team-card,
  .feature-item { margin-bottom: 2rem; }
}

/* Disable Swiper autoplay and effects on mobile (<768px) */
@media (max-width: 767px) {
  .hero-section { min-height: 80vh; }
  .swiper-slide { transition: none !important; }
  
  /* Disable hover effects on mobile */
  .service-card:hover,
  .team-card:hover,
  .feature-item:hover,
  .price-card:hover,
  .blog-card:hover { transform: none; }
  
  .gallery-item:hover img { transform: none; }
  
  /* Reduce motion for mobile */
  * { transition-duration: 0.1s !important; }
  
  /* Hero responsive */
  .hero-section {
    text-align: center;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid .col-md-4:nth-child(2n+1) { clear: left; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section { padding: 0 2rem; }
}

/* Navigation responsive */
@media (max-width: 991px) {
  .navbar-collapse { background: white; padding: 1rem; }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e5e7eb;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3,
  .footer .col-md-6 { margin-bottom: 2rem; }
}

/* Form responsive */
@media (max-width: 575.98px) {
  .form-control { font-size: 16px; }
  .team-photo { width: 100px; height: 100px; }
}

/* Gallery responsive */
@media (max-width: 767.98px) {
  .gallery-item { margin-bottom: 0.5rem; }
  .gallery-item img { height: 200px; }
}

/* Price cards responsive */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-content {
    padding-right: 2rem;
  }
}

/* Hero Section Responsive */
@media (max-width: 767.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-desc {
    max-width: none;
  }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
  .services-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Team Grid Responsive */
@media (max-width: 575.98px) {
  .team-name {
    font-size: var(--font-size-base);
  }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* FAQ Responsive */
@media (max-width: 575.98px) {
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
}

/* Reviews Slider Responsive */
@media (max-width: 767.98px) {
  .review-slide {
    margin: 0 0.5rem;
    padding: 1.5rem;
  }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
  .breadcrumb {
    padding: 0.5rem 0;
  }
  
  .breadcrumb img {
    max-height: 20px;
  }
}

/* Utility Responsive Classes */
@media (max-width: 575.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .mb-mobile-2 {
    margin-bottom: 2rem !important;
  }
  
  .px-mobile-1 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-navigation {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .feature-item,
  .price-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
} 