:root {
  --primary: #f49b1d;
  --secondary: #232426;
  --whiteSmoke: #f2f2f2;
  --gray: #d4d2e3;
  --darkGray: #212427;
  --lightGreen: #59b081;
  --lightGray: #f2f1fa;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding: var(--scroll-padding, 4rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "inter", sans-serif;
}
body {
  color: var(--darkGray);
  font-size: 18px;
  line-height: 1.5em;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  /* font-weight: 700; */
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 50px;
  font-weight: 600;
  line-height: 66px;
}

h2 {
  /* font-size: 36px; */
  font-size: 24px;
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 16px;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  font-weight: 600;
  color: var(--darkGray);
}

.medium-font {
  font-weight: 500;
  font-size: 16px;
}
.logo {
  font-weight: 700;
}
.contact-btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
}
span {
  color: var(--primary);
}
.center-text {
  text-align: center;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 70px;
}

/* ---------------- Navigation Section ------------------*/

nav {
  background-color: var(--white);
  position: sticky;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  border-bottom: 0.6px solid rgb(209, 209, 209);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 70px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
#hamburger {
  display: none;
}

#hamburger span {
  pointer-events: none;
  width: 100%;
  transform-origin: 0 0;
  height: 3px;
  border-radius: 6px;
  background-color: var(--darkGray);
  transition: 0.4s;
}

.open#hamburger span:nth-child(1) {
  transform: translate(20%, 50%) rotate(45deg);
  background: var(--primary);
}
.open#hamburger span:nth-child(2) {
  opacity: 0;
}
.open#hamburger span:nth-child(3) {
  transform: translate(12%, 200%) rotate(-45deg);
  background: var(--primary);
}

#mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 82.5px;
  right: -100%;
  width: 100%;
  height: 100vh;
  padding: 40px 50px;
  z-index: 1;
  text-align: right;
  background-color: var(--white);
  transition: ease-in-out 0.5s;
}

#mobile-menu.open {
  right: 0;
}
body.open {
  overflow: hidden;
}
#mobile-menu .medium-font {
  font-size: 26px;
  font-weight: 500;
  margin: 20px 0;
  margin-right: 40px;
  color: var(--darkGray);
}

/* ---------------- Hero Section ------------------*/
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section .center-text {
  max-width: 574px;
}

.hero-image {
  margin-top: 40px;
  /* height: 490px; */
}
.hero-image img {
  width: 100%;
}

/* ---------------- Services Section ------------------*/
.service-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-section .center-text {
  max-width: 688px;
}

.service-cards {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
  width: 322px;
  /* height: 370px; */
  /* background-color: var(--lightGray); */
  filter: drop-shadow(0px -2px 20px rgba(0, 0, 0, 0.095));
  background-color: var(--white);
  /* padding: 28px 40px; */
  padding: 28px 40px 65px 40px;
  border-radius: 20px;
}
.card h3 {
  margin-bottom: 30px;
  align-self: flex-start;
}

.list-items {
  display: grid;
  gap: 16px;
  align-self: flex-start;
}
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.small-para {
  margin-top: -5px;
}

.card .contact-btn {
  margin-top: 22px;
}
/* ---------------- Car section ------------------*/
.image-container {
  overflow-x: hidden;
  /* max-width: 768px; */
}
.image-container {
  position: relative;
  overflow: hidden;
}

/* .image-container::before,
.image-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  z-index: 1;
}

.image-container::after {
  right: 0;
  left: auto;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
} */

.image-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (1.5rem * (var(--per-view) - 1))) / var(--per-view)
  );
  gap: 1.5rem;
  position: relative;
  left: 0;
  transition: 3s;
}
.image-wrapper > * {
  aspect-ratio: 4 / 3;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.5rem;
}
/* IMAGE */

/* ---------------- About Us Section ------------------*/
.about-content {
  max-width: 769px;
  margin: 0 auto;
  text-align: left;
}
.about-content :nth-child(2) {
  margin-top: 18px;
}

/* ---------------- Contact Us Section ------------------*/
.contact {
  background: url("Assets/images/Desert.png");
  background-size: 100%;
  background-position: bottom;
  background-repeat: no-repeat;
  height: 600px;
}

.contact-section {
  display: flex;
  justify-content: flex-end;
}

.contact-details {
  max-width: 450px;
  padding: 50px;
  border-radius: 25px;
  /* filter: drop-shadow(0px -2px 20px rgba(0, 0, 0, 0.16)); */
  filter: drop-shadow(0px -2px 20px rgba(0, 0, 0, 0.095));
  background-color: var(--white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 14px;
}
.contact-item p {
  margin-top: -6px;
}
.contact-details h2 {
  text-align: left;
}
.phone-numbers {
  margin-top: -4px;
}
.phone-numbers a {
  font-weight: 400;
}

/* ---------------- Footer Section ------------------*/
footer {
  background-color: var(--secondary);
  color: var(--white);
  text-align: center;
}

footer .nav-links a {
  color: var(--white);
}

footer .nav-links {
  justify-content: center;
}

.divider {
  background-color: var(--gray);
  height: 1px;
  margin-top: 40px;
  margin-bottom: 28px;
}

/* ---------------- Break Points ------------------*/
@media (max-width: 1140px) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    width: 100%;
  }
  .card h3 {
    margin-bottom: 24px;
  }
  .card:nth-child(3) {
    grid-column: span 2;
    width: 100%;
    /* height: 263px; */
  }

  .list-item {
    max-width: 450px;
  }
}
@media (max-width: 840px) {
  h1 {
    font-size: 36px;
    line-height: normal;
  }
  h2 {
    font-size: 26px;
  }
  p,
  .phone-numbers a {
    font-size: 16px;
  }

  .container {
    padding: 60px 60px;
    padding-bottom: 0;
  }
  .container.footer {
    padding-bottom: 60px;
  }
  nav .container {
    padding: 26px 60px;
  }
  .contact {
    background-size: contain;
    background-repeat: no-repeat;
    height: 580px;
  }

  .contact-details {
    max-width: 400px;
    padding: 50px 40px;
  }

  .service-cards {
    margin-top: 55px;
  }
  /* .card {
    padding: 40px 50px 50px 50px;
  } */
  .about-content {
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }
  #hamburger {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 660px) {
  .card {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  nav .container {
    padding: 26px 42px;
  }
  .container {
    padding: 60px 42px;
    padding-bottom: 0;
  }
  /* .container.cars {
    padding: 0;
  } */
  .contact {
    height: 680px;
  }
  .contact-section {
    justify-content: center;
  }

  .contact-section.container {
    padding: 60px 20px;
    padding-bottom: 0;
  }

  /* .contact-details {
    padding: 50px 40px;
  } */
}

@media (max-width: 380px) {
  p,
  .phone-numbers a {
    font-size: 14px;
  }
  .contact-details {
    max-width: 95vw;
    padding: 50px 20px;
  }
}
