/* Mobile-specific optimizations */

/* Improve touch targets */
@media (max-width: 768px) {
  a, button, .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Header optimization */
  .site-navbar {
    padding: 10px 0;
  }

  .site-logo a {
    font-size: 1.2rem !important;
  }

  .icon-box {
    padding: 8px 12px;
  }

  .icon-box__title {
    font-size: 0.75rem !important;
    margin-bottom: 2px;
  }

  .icon-box__subtitle {
    font-size: 0.85rem !important;
  }

  /* Hero section optimization */
  .hero {
    height: 50vh !important;
    min-height: 400px;
    background-position: center center;
    background-size: cover;
  }

  .hero h1 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero .intro {
    padding: 0 15px;
  }

  /* Hero call button */
  .hero .btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px 20px;
    color: #fff !important;
  }

  /* Section headings */
  .section-heading {
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
  }

  /* Step cards */
  .step {
    margin-bottom: 2rem;
  }

  .step h3 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .step p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Image optimization */
  .img-wrap-1 {
    margin-bottom: 2rem !important;
  }

  .img-wrap-1 img {
    max-height: 300px;
    object-fit: cover;
  }

  /* Benefits section */
  .service-1 {
    margin-bottom: 1.5rem;
  }

  .service-1 h3 {
    font-size: 1.1rem;
  }

  .service-1 p {
    font-size: 0.9rem;
  }

  /* Image gallery */
  .listing {
    margin-bottom: 1rem;
  }

  .listing-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Testimonials */
  .testimonial-2 {
    margin-bottom: 1.5rem;
  }

  .testimonial-2 blockquote p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* CTA section */
  .bg-primary h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
  }

  .bg-primary p {
    font-size: 0.9rem;
  }

  .btn-white {
    width: 100%;
    margin-top: 1rem;
  }

  /* Footer */
  footer .col-md-4 {
    margin-bottom: 1.5rem;
    text-align: center !important;
  }

  footer h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  footer p, footer address {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Spacing adjustments */
  .site-section {
    padding: 3rem 0;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  /* Improve readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  p {
    margin-bottom: 1rem;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Better spacing for containers */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Phone number link - make it more prominent */
  a[href^="tel:"] {
    text-decoration: none;
    color: inherit;
  }

  /* Optimize icon sizes */
  .service-1-icon {
    font-size: 2rem;
  }

  /* Better touch areas for navigation */
  .site-mobile-menu-toggle {
    padding: 15px;
  }
}

/* Tablet optimization */
@media (min-width: 768px) and (max-width: 991px) {
  .hero h1 {
    font-size: 2rem !important;
  }

  .section-heading {
    font-size: 1.8rem !important;
  }

  .listing-img img {
    height: 250px;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 60vh !important;
  }
}

/* Very small devices */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.3rem !important;
  }

  .section-heading {
    font-size: 1.3rem !important;
  }

  .icon-box__subtitle {
    font-size: 0.8rem !important;
  }
}

/* Performance optimization - reduce animations on mobile */
@media (max-width: 768px) {
  * {
    animation-duration: 0.5s !important;
    transition-duration: 0.3s !important;
  }
}

/* Improve form elements on mobile */
@media (max-width: 768px) {
  input, select, textarea, button {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}