/* Responsive improvements - added for mobile/tablet/desktop */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: var(--primary-dark);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.navbar-menu {
  display: contents;
}

.hero,
.brands-section,
.explore-section,
.about-us,
.video-section,
.email-section,
.footer-section {
  width: 100%;
}

@media (max-width: 1200px) {
  .navbar {
    padding-inline: 28px;
  }

  .hero {
    max-width: calc(100% - 48px);
  }

  .hero-bg-text {
    font-size: clamp(120px, 20vw, 240px);
    line-height: 0.85;
  }

  .hero-right .hero-right-top img {
    max-width: min(56vw, 620px);
  }

  .explore-section .cards-container {
    width: calc(100% - 48px);
    max-width: 1000px;
  }

  .explore-section .cards-container .card {
    width: 100%;
    margin-left: 0;
  }

  .explore-section .cards-container .card .card-content .image {
    width: 260px;
    left: -260px;
  }

  .footer-container .wrapper {
    gap: 40px;
  }

  .links {
    gap: 50px;
  }
}

@media (max-width: 992px) {
  .navbar {
    height: 82px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  }

  .navbar-logo {
    z-index: 102;
  }

  .navbar-logo .car {
    font-size: 24px;
  }

  .navbar-logo .dealership {
    font-size: 16px;
  }

  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
    z-index: 102;
  }

  .navbar-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    padding: 22px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .navbar.nav-open .navbar-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-links {
    flex-direction: column;
    gap: 0;
  }

  .navbar-links a {
    display: block;
    padding: 13px 6px;
    font-size: 17px;
  }

  .hero {
    min-height: calc(100vh - 82px);
    height: auto;
    padding: 54px 0 34px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 28px;
  }

  .hero-bg-text {
    top: 35px;
    font-size: clamp(86px, 18vw, 160px);
    line-height: 1;
  }

  .hero-left h2 {
    font-size: clamp(34px, 6vw, 48px);
  }

  .hero-left div {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-left div h1 {
    font-size: clamp(56px, 10vw, 76px);
  }

  .hero-right {
    align-items: center;
    width: 100%;
  }

  .hero-right .hero-right-top {
    justify-content: center;
    width: 100%;
  }

  .hero-right .hero-right-top img {
    max-width: min(92vw, 620px);
    max-height: 310px;
    object-fit: contain;
  }

  .hero-right .hero-right-top .dots {
    position: absolute;
    right: 8px;
  }

  .hero .hero-filter {
    width: min(100%, 720px);
    height: auto;
    border-radius: 28px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 52px;
    gap: 14px;
    text-align: left;
  }

  .explore-section .categories {
    width: calc(100% - 32px);
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .explore-section .category {
    white-space: nowrap;
  }

  .explore-section .cards-container {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .explore-section .cards-container .card {
    padding: 18px;
  }

  .explore-section .cards-container .card .card-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: center;
    padding-left: 0;
  }

  .explore-section .cards-container .card .card-content .image {
    position: static;
    width: 100%;
    height: 210px;
  }

  .email-content,
  .footer-container .wrapper,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .email-image img {
    width: min(100%, 509px);
    height: auto;
  }

  .email-form,
  .email-form input,
  .email-form textarea {
    width: 100%;
  }

  .email-form {
    max-width: 520px;
  }

  .footer-bottom {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar-logo img {
    height: 34px;
  }

  .hero {
    max-width: calc(100% - 28px);
    padding-top: 38px;
    gap: 22px;
  }

  .hero-bg-text {
    font-size: 76px;
    top: 22px;
  }

  .hero-left h2 {
    font-size: 32px;
  }

  .hero-left div h1 {
    font-size: 58px;
  }

  .hero-left .order-now {
    padding: 12px 20px;
  }

  .hero-right .hero-right-top {
    flex-direction: column;
  }

  .hero-right .hero-right-top img {
    max-width: 112%;
    max-height: 240px;
  }

  .hero-right .hero-right-top .dots {
    position: static;
    flex-direction: row;
    margin-top: 12px;
  }

  .hero-right .hero-right-bottom {
    margin-top: 16px;
  }

  .hero .hero-filter {
    grid-template-columns: 1fr;
    border-radius: 24px;
    gap: 16px;
  }

  .hero .hero-filter .select {
    padding-bottom: 12px;
    border-bottom: 1px solid #eaebf0;
  }

  .hero .hero-filter .filter-search {
    width: 100%;
    border-radius: 999px;
  }

  .section-title {
    font-size: 32px;
  }

  .brands-section,
  .explore-section,
  .video-section,
  .email-section {
    padding-inline: 16px;
  }

  .brands-container {
    gap: 24px;
    margin-top: 36px;
  }

  .brands-container img {
    height: 78px;
  }

  .explore-section .cards-container {
    width: 100%;
  }

  .explore-section .cards-container .card .card-content {
    grid-template-columns: 1fr;
  }

  .explore-section .cards-container .card .card-content ul {
    width: 100%;
  }

  .explore-section .cards-container .card .card-content .order-btn span {
    margin-left: 18px;
  }

  .about-us .description {
    font-size: 17px;
    line-height: 1.8;
  }

  .about-us .description .slogan {
    margin-top: 32px;
    margin-bottom: 18px;
  }

  .video-section {
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .video-section iframe {
    border-radius: 14px;
  }

  .email-content {
    width: 100%;
  }

  .footer-container {
    padding: 38px 16px;
  }

  .input-group {
    width: min(100%, 360px);
  }

  .links {
    width: 100%;
    gap: 28px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .navbar-logo .car {
    font-size: 20px;
  }

  .navbar-logo .dealership {
    font-size: 14px;
  }

  .hero-bg-text {
    font-size: 58px;
  }

  .hero-left h2 {
    font-size: 28px;
  }

  .hero-left div h1 {
    font-size: 48px;
  }

  .brands-container img {
    height: 64px;
  }
}
