* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: auto;
  font-family: Helvetica, Arial, sans-serif;
  background-color: white;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.header {
  display: flex;
  justify-content: center;
  max-width: 1366px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.header-img {
  width: 100%;
  height: auto;
  transition: box-shadow 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.navbar a {
  text-decoration: none;
  text-align: center;
  font-size: 1.2rem;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  color: black;
  transition: color 0.4s ease, transform 0.5s ease;
  cursor: pointer;
}

.navbar a:hover {
  color: white;
  background-color: #e18c44;
  transition: all.4s ease;
  transition: transform 0.5s ease;
  box-shadow: 0px 0px 1px #000000;
}

.carousel {
  width: 100%;
  height: auto;
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0px 0px 10px #000000;
}

.carousel-images {
  display: flex;
  transition: transform 1.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.visibility {
  display: flex;
  position: static;
  margin: 0 auto;
  padding: 1rem;
  opacity: 0;
  transform: translateY(5%);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  max-width: 1316px;
  width: 100%;
  height: auto;
}

.visibility.visible {
  opacity: 1;
  transform: translateY(0);
}

.company {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 4rem auto;
}

#bar {
  margin-left: auto;
  max-width: 700px;
  width: 100%;
  height: auto;
  z-index: 2;
}

#company-text {
  max-width: 565px;
  width: 100%;
  height: auto;
  margin-top: -2.4rem;
  margin-left: auto;
  border: 1px solid #e6e6e6;
  background-color: #eeecec;
  padding: 1.5rem;
  box-shadow: 0px 0px 10px #00000085;
  z-index: 1;
}

#company-text p {
  font-size: 1.2rem;
  text-align: justify;
  text-indent: 50px;
}

#depo {
  margin-top: -20rem;
  margin-right: 30rem;
  margin-left: auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0px 0px 10px #000000;
}

.services {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 4rem auto;
}

#bar2 {
  margin-left: auto;
  margin-right: 37rem;
  max-width: 700px;
  width: 100%;
  height: auto;
  z-index: 2;
}

.services-text {
  font-size: 1.2rem;
  margin-top: -2.4rem;
  margin-left: auto;
  margin-right: 46rem;
  text-align: left;
  max-width: 558px;
  width: 100%;
  height: auto;
  border: 1px solid #e6e6e6;
  background-color: #eeecec;
  padding: 1rem 3rem;
  box-shadow: 0px 0px 10px #00000085;
  z-index: 1;
}

.services-text li {
  padding: 0.7rem;
}

#carriage {
  margin-top: -15rem;
  margin-right: 0rem;
  margin-left: auto;
  max-width: 750px;
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0px 0px 10px #000000;
}

.contacts {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  margin: 2rem auto;
  gap: 2rem;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: auto;
}

.googlemap {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

#googlemap {
  max-width: 600px;
  width: 100%;
  height: 400px;
  box-shadow: 0px 0px 10px #000000;
  border-radius: 15px;
  margin: 2rem 1rem;
}

#loc {
  max-width: 20px;
  width: 100%;
  height: auto;
  margin-left: 0.5rem;
}

#phone {
  max-width: 35px;
  width: 100%;
  height: auto;
}

#email {
  max-width: 16px;
  width: 100%;
  height: auto;
  margin-left: 0.6rem;
}

.address {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.address p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
}

.address a {
  text-decoration: none;
}

.address a:hover {
  color: #005effba;
}

#callbackBtn:hover {
  box-shadow: 0px 0px 5px #000000;
}

.footer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 1366px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.footer-img {
  width: 100%;
  height: auto;
}

#copyright {
  display: flex;
  font-size: 1rem;
  justify-content: center;
  align-self: center;
  position: absolute;
  width: 100%;
  height: auto;
}

.scrollBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.scroll-to-top {
  position: fixed;
  bottom: 10rem;
  right: 2rem;
  max-width: 40px;
  height: auto;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  pointer-events: all;
  z-index: 1000;
}

.scroll-to-top:hover {
  transform: scale(1.2);
}

/* Mobile menu */
.container {
  display: none;
  cursor: pointer;
  padding: 2px;
}

.bar1,
.bar2,
.bar3 {
  width: 30px;
  height: 3px;
  background-color: #e18c44;
  margin: 6px 0;
  transition: 0.4s;
}

.container.change .bar1 {
  transform: translate(0, 9px) rotate(-45deg);
}

.container.change .bar2 {
  opacity: 0;
}

.container.change .bar3 {
  transform: translate(0, -9px) rotate(45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  flex-direction: column;
  top: 4rem;
  width: 60%;
  background: white;
  box-shadow: 0 4px 10px #00000055;
  z-index: 1;
  cursor: pointer;
}

.mobile-menu a {
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  color: black;
  border-bottom: 1px solid #ddd;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: #e18c44;
  color: white;
}

.mobile-menu.active {
  display: flex;
}

.header-mobile {
  display: none;
}

#copyright-mobile {
  display: none;
}

@media (max-width: 850px) {
  .navbar {
    display: none;
  }

  .container {
    display: inline-block;
  }

  .company {
    margin: 1px auto;
  }

  #carriage {
    margin-right: 2px;
  }

  #depo {
    margin-top: -10rem;
  }

  .grid {
    margin: 0;
  }

  .address {
    align-items: center;
  }

  .address p {
    text-align: center;
  }

  .header {
    display: none;
  }

  .footer {
    display: none;
  }

  .header-mobile {
    display: flex;
    justify-content: flex-end;
  }

  .header-mobile img {
    width: 30%;
    height: auto;
  }

  .container {
    position: absolute;
    top: 1rem;
    left: 1rem;
  }

  #copyright-mobile {
    display: flex;
    justify-content: center;
  }

  #copyright-mobile p {
    font-size: 0.7rem;
  }
}

@media (max-width: 735px) {
  .carousel {
    border-radius: 0px;
  }

  #company-text {
    margin-top: 0.6rem;
  }

  #depo {
    margin-top: 0;
    border-radius: 0px;
  }

  .services-text {
    margin-top: 0.6rem;
  }

  #carriage {
    margin-top: 0;
    border-radius: 0px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 auto;
  }

  #googlemap {
    border-radius: 0px;
    width: 90vw;
    margin: 0 auto;
  }

  #bar {
    margin-left: 15px;
  }

  #bar2 {
    margin-left: -15px;
  }
}
