/* ========================================
   Mobile Optimization Styles for GT Transport
   ======================================== */

/* Touch-friendly tap targets (minimum 44x44px for iOS, 48x48px for Android) */
@media (max-width: 991.98px) {
  
  /* Buttons - Make them larger and easier to tap */
  .btn {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.5;
  }
  
  .btn-lg {
    min-height: 56px;
    padding: 16px 32px;
    font-size: 18px;
  }
  
  .btn-sm {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* Navigation links - Better tap targets */
  .nav-link {
    padding: 12px 16px !important;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .dropdown-item {
    padding: 12px 20px;
    font-size: 16px;
    min-height: 48px;
  }
  
  /* Cards - Better spacing on mobile */
  .card {
    margin-bottom: 20px;
  }
  
  .card-body {
    padding: 20px;
  }
  
  /* Typography - Better readability on mobile */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  h1, .h1, .display-1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h2, .h2, .display-2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }
  
  h3, .h3, .display-3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  h4, .h4, .display-4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  .lead {
    font-size: 1.125rem;
    line-height: 1.6;
  }
  
  /* Better paragraph spacing */
  p {
    margin-bottom: 1rem;
  }
  
  /* Images - Make them responsive and prevent overflow */
  img {
    max-width: 100%;
    height: auto;
  }
  
  figure {
    margin: 0 0 1rem 0;
  }
  
  /* Spacing adjustments for mobile */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Reduce excessive padding on mobile */
  .py-14, .py-md-16 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .pt-14, .pt-md-18, .pt-lg-20 {
    padding-top: 3rem !important;
  }
  
  .pb-14, .pb-md-16, .pb-lg-21 {
    padding-bottom: 3rem !important;
  }
  
  .mb-10, .mb-12, .mb-14, .mb-15 {
    margin-bottom: 2rem !important;
  }
  
  .mt-10, .mt-12, .mt-14, .mt-15 {
    margin-top: 2rem !important;
  }
  
  /* Grid spacing */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Process steps - Stack better on mobile */
  .process-wrapper .col-md-6,
  .process-wrapper .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  /* Icon sizing */
  .icon-svg-md {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* Better accordion on mobile */
  .accordion-button {
    padding: 16px;
    font-size: 16px;
    min-height: 56px;
  }
  
  .accordion-body {
    padding: 16px;
  }
  
  /* Tables - Make them scrollable */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 14px;
  }
  
  /* Forms - Better input sizing */
  .form-control,
  .form-select {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  /* Counter and stats */
  .counter-wrapper {
    gap: 1rem;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  /* CTA sections */
  .wrapper.image-wrapper {
    padding: 3rem 0;
  }
  
  /* Footer adjustments */
  footer .widget {
    margin-bottom: 2rem;
  }
  
  /* Pricing cards */
  .pricing {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ sections */
  .accordion-wrapper {
    margin-bottom: 2rem;
  }
  
  /* Service cards - Better grid on mobile */
  .card.shadow-lg {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Modal improvements */
  .modal-body {
    padding: 1.5rem;
  }
  
  /* Navbar improvements */
  .navbar-brand img {
    max-height: 40px;
    width: auto;
  }
  
  .offcanvas {
    width: 85% !important;
    max-width: 320px;
  }
  
  .offcanvas-header {
    padding: 20px;
  }
  
  .offcanvas-body {
    padding: 20px;
  }
  
  /* Social icons */
  .nav.social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 575.98px) {
  
  /* Even more compact on very small screens */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  h1, .h1, .display-1, .display-2 {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-group .btn {
    width: auto;
  }
  
  /* Stack buttons in CTA sections */
  .d-flex.justify-content-center {
    flex-direction: column;
    align-items: stretch;
  }
  
  .d-flex.justify-content-center > span {
    width: 100%;
    margin: 0 0 0.75rem 0 !important;
  }
  
  /* Counter grid */
  .counter-wrapper .col-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Hide decorative elements on very small screens */
  .shape {
    display: none !important;
  }
}

/* Landscape phone optimization */
@media (max-width: 991.98px) and (orientation: landscape) {
  
  /* Reduce header padding in landscape */
  .wrapper.bg-dark .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .display-1, .display-2, .display-3 {
    font-size: 1.5rem;
  }
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Better tap highlight for iOS */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Prevent text size adjust on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Better focus styles for accessibility */
@media (max-width: 991.98px) {
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid #3f78e0;
    outline-offset: 2px;
  }
}

/* Improve loading performance */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Better scrolling for touch devices */
.overflow-auto {
  -webkit-overflow-scrolling: touch;
}
