/* Mobile Tire Service Template - Responsive CSS */
/* Bootstrap 5 Compatible - Mobile First Approach */

/* Mobile First Base Styles (up to 575px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.90rem;
  }
  
  h3 {
    font-size: 1.65rem;
  }
  
  h4 {
    font-size: 1.39rem;
  }
  
  p {
    font-size: 1.02rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.35rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.03rem;
    padding: 0.5rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2.64rem;
    margin-bottom: 1rem;
    padding-top: 125px;
}
  
  .hero-section p {
    font-size: 1.15rem;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Cards */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-card,
  .faq-card {
    margin-bottom: 2rem;
  }
  
  /* Price Cards */
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .price-card .price {
    font-size: 2rem;
  }
  
  /* Team Cards */
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .process-step {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .process-step .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.40rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 10px;
    height: 10px;
  }
  
  .timeline-item::after {
    left: 4px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-info-item {
    margin-bottom: 1.38rem;
  }
  
  .contact-info-item i {
    font-size: 1.32rem;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Feature Items */
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .feature-item i {
    font-size: 2.60rem;
  }
  
  /* Core Info Cards */
  .core-info-card i {
    font-size: 2.58rem;
  }
  
  /* Decorative Blobs - Hide on mobile */
  .decorative-blob {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-section h1 {
    font-size: 2.83rem;
    padding-top: 125px;
}
  
  /* Section Padding */
  .section-padding {
    padding: 70px 0;
  }
  
  /* Price Cards */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Team Cards */
  .team-card img {
    width: 110px;
    height: 110px;
  }
  
  /* Process Steps */
  .process-step .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.49rem;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-secondary {
    width: auto;
    display: inline-block;
  }
  
  /* Show decorative blobs but smaller */
  .decorative-blob {
    display: block;
  }
  
  .decorative-blob.blob-1 {
    width: 120px;
    height: 120px;
  }
  
  .decorative-blob.blob-2 {
    width: 100px;
    height: 100px;
  }
  
  .decorative-blob.blob-3 {
    width: 80px;
    height: 80px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-section h1 {
    font-size: 3rem;
    padding-top: 125px;
}
  
  /* Process Steps */
  .process-step::after {
    display: block;
    right: -30px;
    width: 30px;
  }
  
  .process-step .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.56rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem 2rem;
  }
  
  /* Decorative Blobs */
  .decorative-blob.blob-1 {
    width: 160px;
    height: 160px;
  }
  
  .decorative-blob.blob-2 {
    width: 130px;
    height: 130px;
  }
  
  .decorative-blob.blob-3 {
    width: 90px;
    height: 90px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-section {
    padding: 100px 0;
  }
  
  /* Process Steps */
  .process-step::after {
    right: -40px;
    width: 35px;
  }
  
  /* Decorative Blobs */
  .decorative-blob.blob-1 {
    width: 180px;
    height: 180px;
  }
  
  .decorative-blob.blob-2 {
    width: 140px;
    height: 140px;
  }
  
  .decorative-blob.blob-3 {
    width: 95px;
    height: 95px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-section {
    padding: 120px 0;
  }
  
  /* Process Steps */
  .process-step::after {
    right: -50px;
    width: 40px;
  }
  
  /* Full size decorative blobs */
  .decorative-blob.blob-1 {
    width: 200px;
    height: 200px;
  }
  
  .decorative-blob.blob-2 {
    width: 150px;
    height: 150px;
  }
  
  .decorative-blob.blob-3 {
    width: 100px;
    height: 100px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI screens */
  .team-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 2.55rem;
    margin-bottom: 1rem;
    padding-top: 125px;
}
  
  .hero-section p {
    font-size: 1.15rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Reset all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Hide decorative elements that might be distracting */
  .decorative-blob {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  /* Enhance contrast for better accessibility */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-card,
  .faq-card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary,
  .btn-secondary {
    border: 2px solid var(--dark-gray);
  }
  
  .contact-form .form-control {
    border: 2px solid var(--dark-gray);
  }
}

/* Print styles */
@media print {
  /* Hide interactive elements */
  .navbar,
  .btn-primary,
  .btn-secondary,
  .decorative-blob {
    display: none !important;
  }
  
  /* Ensure good print contrast */
  body {
    background: white !important;
    color: black !important;
  }
  
  /* Optimize spacing for print */
  .section-padding {
    padding: 30px 0;
  }
  
  /* Ensure cards break properly */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-card,
  .faq-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  /* Remove shadows for print */
  .shadow-sm,
  .shadow,
  .shadow-lg {
    box-shadow: none !important;
  }
}

/* Focus styles for better accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.contact-form .form-control:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Table responsiveness */
.table-responsive {
  overflow-x: auto;
}

/* Container max-width adjustments for better mobile experience */
@media (max-width: 575.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Navbar collapse improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 