/* CSS RESET  */

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

a {
  color: #000;
}

a:visited {
  color: #000;
}

/* end of CSS Reset  */

nav {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
  height: min-content;
  margin: 0 70px;
}

a {
  text-decoration: none;
}

header a:hover {
  opacity: 0.6;
  transition: 0.4s;
  border-bottom: solid 1px #566468;
}

header a:visited {
  color: #000;
}

.nav-links-dt {
  list-style: none;
  display: flex;
  gap: 50px;
  justify-content: center;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  padding-inline-start: 0;
}

.nav-svg-container {
  width: 20px;
  visibility: hidden;
}

.mobile-menu {
  display: none;
}

.bg-img-container {
  position: relative;
  width: 100%;
  height: 80vh;
  background-color: transparent;
  background-image: url(/assets/main_bg_photo.avif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

.bg-img-container::after {
  content: "Rent Cars With The Best Prices";
  font-size: 3rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-align: center;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.gradient-img {
  width: 100%;
  height: 4vh;
  position: absolute;
  top: 0;
  background: rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 50%,
    rgba(235, 236, 240, 1) 100%
  );
}

.car-logos-ribbon {
  width: 100%;
  height: 11vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  border-bottom: 1px solid #a0a0a0;
}

.car-logos-ribbon * {
  opacity: 0.3;
}

.mb-logo {
  width: 166px;
  height: 33px;
}

.vw-logo {
  width: 36px;
  height: 36px;
}

.kia-logo {
  width: 50px;
  height: 36px;
}

.hyundai-logo {
  width: 166px;
  height: 33px;
}

main h1 {
  text-align: center;
  font-family: "Inter";
  padding-top: 60px;
  font-size: 2.5rem;
}

.cards {
  /* background-color: #ff0000; */
  height: 30vh;
  width: 60.5%;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
}

.cards-ch svg {
  padding-top: 15px;
}

.cards-ch {
  width: 30%;
  height: 66%;
  background-color: #74878d;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #fff;
  cursor: pointer;
}

.cards-ch:hover {
  background-color: #566468;
  transition: 0.5s;
}

.cards-heading {
  font-size: 16px;
}

.container-2 {
  font-size: 12px;
  font-family: "Inter", sans-serif;
}

.explore-text {
  font-weight: 700;
  text-align: center;
  font-family: "Inter";
  font-size: 2.5rem;
  padding-bottom: 40px;
}

.container-cars {
  height: auto;
  padding-bottom: 100px;
  border-bottom: 1px solid rgb(204, 204, 204);
}

.car-cards {
  margin: 0 auto;
  height: auto;
  width: 60%;
  /* background-color: red; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* row-gap: 20px */
  row-gap: 30px;
  column-gap: 1px;
}

.car-cards-children {
  width: 49%;
  height: 35vh;
  background-color: blue;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.ccc-1 {
  background-image: url(/assets/w204_squoosh_.avif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.ccc-2 {
  background-image: url(/assets/hyundai-tucson.avif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.ccc-3 {
  background-image: url(/assets/avanta_black.avif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.ccc-4 {
  background-image: url(/assets/avante-grey.avif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.ccc-5 {
  background-image: url(/assets/KIA\ K3.avif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.car-description {
  position: absolute;
  font-size: 20px;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  color: #fff;
  bottom: 35px;
  left: 20px;
  z-index: 1;
}

.car-subscription {
  position: absolute;
  font-size: 1.7vh;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #fff;
  left: 20px;
  bottom: 20px;
  z-index: 1;
}

.bottom-layer {
  position: absolute;
  width: 100%;
  height: 27%;
  z-index: 0;
  background-color: rgba(4, 4, 4, 0.6);
  bottom: 0;
}

.wp-btn {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 2;
  width: 40%;
  /* opacity: 0.92; */
}

.book-now {
  position: absolute;
  color: #fff;
  font-weight: 600;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-family: "Inter", sans-serif;
  font-size: 2vh;
}

.wp-icon {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 17%;
}

#about-us {
  background-color: #f6f6f6;
  font-family: "Inter", sans-serif;
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgb(204, 204, 204);
}

.about-us-text {
  padding-top: 40px;
  font-weight: 700;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 2.5rem;
  padding-bottom: 40px;
}

.container-about {
  justify-content: center;
  align-items: center;
  gap: 80px;
  display: flex;
  flex-direction: row;
}

.c-a-text {
  width: 30%;
}

#img {
  width: 500px;
  height: 350px;
  border-radius: 20px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.18);
}

.contact-us {
  background-color: #fff;
  font-family: "Inter", sans-serif;
  text-align: center;
  padding-bottom: 40px;
}

.contact-us-text {
  padding-top: 40px;
  font-weight: 700;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 2.5rem;
  padding-bottom: 40px;
}

.cont-links .wp-b-contact {
  width: 100px;
  height: 100px;
}

.contact-us {
  background-color: #fff;
  text-align: center;
  padding-bottom: 100px;
  font-family: "Inter";
}

.contact-us h1 {
  color: #292929;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  /* text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.26); */
  padding: 30px;
  text-align: center;
  padding: 70px 0;
}

.contact-us-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cont-links {
  width: 55%;
  background-color: #fff;
  border-radius: 20px;
  height: 13vh;
  /* border: 1px solid black; */
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  display: flex;
  justify-content: center;
  gap: 80px;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #232526;
  /* text-shadow: 1px 1px rgba(0, 0, 0, 0.46); */
}

.cont-links svg {
  width: 50px;
  height: 50px;
}
footer {
  padding: 50px 0;
}
.social-links-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.line-separator {
  height: 1px;
  background-color: #000;
  width: 80%;
  margin: 10px auto;
}

.call-and-rent {
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #232526;
  padding-bottom: 60px;
}

/* START OF MOBILE CODING  */

@media (max-width: 1250px) {
  .nav-svg-container {
    visibility: visible;
  }

  .nav-links-dt {
    display: none;
  }

  nav {
    justify-content: space-between;
    padding: 0px;
    margin: 20px;
  }

  .gradient-img {
    height: 2vh;
  }

  .bg-img-container::after {
    font-size: 2.8rem;
    top: 30px;
  }

  .bg-img-container {
    position: relative;
    width: 100%;
    height: 40vh;
    background-color: transparent;
    background-image: url(/assets/main_bg_photo.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
  }

  .car-logos-ribbon {
    height: 6vh;
    gap: 60px;
  }

  .mb-logo {
    width: 83px;
    height: 16.5px;
  }

  .vw-logo {
    width: 18px;
    height: 18px;
  }

  .kia-logo {
    width: 25px;
    height: 18px;
  }

  .hyundai-logo {
    width: 83px;
    height: 16.5px;
  }

  main h1 {
    font-size: 1.5rem;
    padding: 40px;
  }

  .cards {
    flex-direction: column;
    gap: 20px;
    width: 75%;
  }

  .cards-ch {
    width: 100%;
  }

  .container-cars {
    margin-top: 300px;
  }

  .car-cards {
    width: 80%;
  }

  .car-cards-children {
    width: 100%;
    height: 20vh;
  }

  .car-description {
    font-size: 10px;
    bottom: 20px;
  }

  .car-subscription {
    font-size: 10px;
    bottom: 5px;
  }

  .wp-btn {
    height: 17%;
    transform: translate(20%, -58%);
  }

  .book-now {
    font-size: 1.5vh;
    transform: translate(-50%, -1%);
  }

  .wp-icon {
    transform: translate(-50%, -37%);
  }

  .container-about {
    flex-direction: column;
  }

  .c-a-text {
    width: 90%;
  }

  #img {
    width: 90%;
    height: 30vh;
    margin: 0 auto;
  }

  .cont-links {
    width: 90%;
    font-size: 1rem;
    gap: 10px;
  }

  .social-links-container {
    padding-bottom: 50px;
  }

  .mobile-menu {
    position: absolute;
    display: none;
    flex-direction: column;
    gap: 100px;
    background-color: #f6f6f6;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    justify-content: space-around;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    z-index: 9;
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 75px;
    text-decoration: none;
    list-style: none;
  }

  .mob-menu-active {
    background-color: transparent;
  }

  .mob-menu-inactive {
    display: none;
  }
}

#menu-btn {
  cursor: pointer;
}

.close-btn {
  position: absolute;
  z-index: 10;
  top: -370px;
  right: 22px;
  color: #000;
  fill: #000;
  width: 20px;
  cursor: pointer;
}
