/*==================================
* BCJ Solutions - Responsive Styles
* Mobile-first responsive design
==================================== */

/* Extra Large Devices (1680px and up) */
@media screen and (max-width: 1680px) {
  /* Future-proofing for larger screens */
}

/* Large Devices (1440px and down) */
@media screen and (max-width: 1440px) {
  .welcome-hero-txt {
    padding: 268px 0 122px;
  }
  
  .model-search-content {
    position: relative;
    bottom: 0;
    top: 100px;
  }
}

/* Large Devices (1199px and down) */
@media screen and (max-width: 1199px) {
  .welcome-hero-txt h1 {
    font-size: 40px;
  }
  
  .welcome-btn.model-search-btn {
    margin-left: 28px;
  }
  
  .featured-cars-img {
    padding: 0 10px;
  }
}

/* Tablets and Medium Devices (992px and down) */
@media screen and (max-width: 992px) {
  /* Navigation adjustments */
  nav.navbar.bootsnav .navbar-collapse.collapse.in {
    padding-bottom: 30px;
  }
  
  nav.navbar.bootsnav {
    background-color: #000;
  }
  
  .wrap-sticky nav.navbar.bootsnav.sticked ul.nav > li > a {
    padding: 18px 0;
  }
  
  nav.navbar.bootsnav .navbar-brand {
    padding: 25px;
  }
  
  nav.navbar.bootsnav ul.nav > li > a {
    padding: 15px 0;
    border: transparent;
  }
}

/* Tablets and Small Devices (991px and down) */
@media screen and (max-width: 991px) {
  .welcome-hero-txt h1 {
    line-height: 1.6;
  }
  
  .model-search-content .col-sm-12 {
    padding: 0 40px;
  }
  
  .single-model-search:last-child {
    margin-bottom: 30px;
  }
  
  .welcome-btn.model-search-btn {
    margin: 0;
  }
  
  .single-new-cars-item {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .new-cars-txt {
    margin: 30px 0;
  }
  
  /* Services section for tablets */
  .single-service-item {
    height: auto;
    min-height: 380px;
    padding: 45px 25px 55px;
  }
}

/* Tablets (768px and down) */
@media screen and (max-width: 768px) {
  .welcome-hero-txt {
    padding: 150px 0 80px;
  }
  
  .welcome-hero-txt h1 {
    font-size: 36px;
  }
  
  /* Services section adjustments */
  .service {
    padding: 80px 0;
  }
  
  /* Popup adjustments */
  .popup-overlay {
    width: 95%;
  }
  
  .popup-content {
    padding: 25px;
  }
  
  /* Footer adjustments */
  .footer-top {
    padding: 80px 0 50px;
  }
}

/* Mobile Devices (767px and down) */
@media screen and (max-width: 767px) {
  .single-service-item {
    max-width: 350px;
    margin: 30px auto;
    height: auto;
    min-height: 350px;
  }
  
  .service {
    padding: 80px 0 60px;
  }
  
  .single-featured-cars {
    max-width: 350px;
    margin: 0 auto;
  }
  
  /* Footer Mobile Alignment */
  .footer-top .row {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-left,
  .footer-right {
    text-align: center;
    padding-left: 0;
    margin-bottom: 30px;
  }
  
  .footer-right {
    margin-top: 20px;
  }
  
  .brands-list ul li:hover {
    transform: translateY(-2px);
  }
  
  .footer-logo a {
    font-size: 24px;
  }
  
  .footer-social {
    text-align: left;
  }
  
  .footer-social a i {
    margin-right: 16px;
    margin-left: 0;
  }
  
  .hm-foot-email {
    max-width: 300px;
  }
}

/* Small Mobile Devices (640px and down) */
@media screen and (max-width: 640px) {
  .single-testimonial-box {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .brand {
    padding: 0px 0;
  }
  
  .brand .brand-area .owl-carousel .owl-item img {
    width: 90px;
    height: 50px;
    padding: 6px;
  }
}

/* Extra Small Mobile Devices (480px and down) */
@media screen and (max-width: 480px) {
  .welcome-hero-txt h1 {
    font-size: 30px;
  }
  
  .welcome-hero-txt {
    padding: 120px 0 60px;
  }
  
  .single-model-search h2 {
    font-size: 16px;
  }
  
  /* Button adjustments */
  .welcome-btn {
    padding: 15px 25px;
    font-size: 14px;
  }
  
  /* Popup adjustments */
  .popup-content {
    padding: 20px;
  }
  
  .popup-content h2 {
    font-size: 20px;
  }
  
  /* Service items */
  .single-service-item {
    padding: 40px 20px 50px;
    height: auto;
    min-height: 320px;
  }
  
  .single-service-item h2 a {
    font-size: 18px;
    margin: 25px 0 15px;
  }
  
  .service {
    padding: 60px 0 40px;
  }
  
  /* Footer Mobile Further Adjustments */
  .footer-logo a {
    font-size: 22px;
    letter-spacing: 1px;
  }
  
  .single-footer-widget p {
    font-size: 14px;
  }
  
  .brands-list ul li a {
    font-size: 14px;
  }
}

/* Very Small Mobile Devices (440px and down) */
@media screen and (max-width: 440px) {
  .welcome-hero-txt h1 {
    font-size: 24px;
    line-height: 1.5;
  }
  
  .popup2 {
    padding: 30px 20px;
  }
  
  .popup-content2 h2 {
    font-size: 24px;
  }
}

/* Ultra Small Mobile Devices (399px and down) */
@media screen and (max-width: 399px) {
  .testimonial-carousel .col-sm-3,
  .testimonial-carousel .col-xs-12 {
    width: 260px;
  }
  
  .single-service-item h2 a {
    line-height: 1.5;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
  
  /* Further reduce spacing */
  .service {
    padding: 60px 0;
  }
  
  .footer-top {
    padding: 60px 0 40px;
  }
}

/* Ultra Small Devices (350px and down) */
@media screen and (max-width: 350px) {
  nav.navbar.bootsnav .navbar-toggle {
    margin-right: -25px;
    left: -10px;
  }
  
  nav.navbar.bootsnav .navbar-brand {
    padding: 25px 0;
    font-size: 20px;
  }
  
  .wrap-sticky nav.navbar.bootsnav.sticked .navbar-header a.navbar-brand,
  .wrap-sticky nav.navbar.bootsnav.sticked .navbar-header a.navbar-brand:hover,
  .wrap-sticky nav.navbar.bootsnav.sticked .navbar-header a.navbar-brand:focus {
    padding: 25px 0;
  }
  
  .popup-content {
    padding: 15px;
  }
  
  .popup-content input[type="text"],
  .popup-content input[type="email"],
  .popup-content textarea {
    padding: 10px;
    font-size: 14px;
  }
}

/* Minimum Mobile Devices (320px and down) */
@media screen and (max-width: 320px) {
  .welcome-hero-txt h1 {
    font-size: 22px;
  }
  
  .welcome-hero-txt p {
    font-size: 16px;
  }
  
  .single-service-item {
    padding: 25px 10px;
  }
  
  .popup-content h2 {
    font-size: 18px;
  }
  
  .popup2 {
    padding: 25px 15px;
  }
  
  /* Footer Ultra Small Devices */
  .footer-logo a {
    font-size: 20px;
  }
  
  .single-footer-widget h2 {
    font-size: 18px;
  }
  
  .footer-top {
    padding: 50px 0 30px;
  }
  
  /* Ensure content doesn't overflow */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

