body {
  margin: 0;
  background-color: var(--body-color);
}

html {
  font-size: 16px;
}

/* Reusable classes */

.container {
  width: 100%;
  max-width: 1140px;
  margin: auto;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.d-grid {
  display: grid;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.d-inline-flex {
  display: inline-flex;
}

.grid-half {
  grid-template-columns: 1fr 1fr;
}

.gap-4 {
  gap: 4rem;
}

.gap-3 {
  gap: 3rem;
}

.text-deco-none {
  text-decoration: none;
}

.text-center {
  text-align: center;
}

.py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pl-3 {
  padding-left: 3rem;
}

.v-align-super {
  vertical-align: super;
}

.btn {
  height: 3.75rem;
  width: 16.25rem;
  justify-content: center;
  align-items: center;
  margin-right: 3rem;
}

.mr-0 {
  margin-right: 0;
}

/* Custom classes */
.first-section {
  padding: max(5vh, 7rem) 1rem max(3vh, 6rem) 1rem;
  background-color: var(--section1-bg-color);
}

.third-section {
  background-color: var(--section3-bg-color);
}

.fourth-section {
  padding: 3.7rem 4rem 3.7rem 4rem;
  background-color: var(--section4-bg-color);
}

.slogan {
  align-self: end;
  font-size: 1.875rem;
  color: var(--slogan-color);
}

.banner {
  background-image: url("./images/banner.jpg");
  background-size: cover;
  background-position: center;
  height: 35vh;
}

.under-banner-text {
  font-size: 2.1rem;
  margin: 0;
  letter-spacing: 1px;
  padding: 1rem 0 1rem 0;
  color: var(--section3-text-color);
}

.btn-mail {
  padding-top: 0.25rem;
  font-size: 1.1rem;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  background-color: var(--mail-btn-bg-color);
  color: var(--mail-btn-text-color);
}

.btn-phone {
  color: var(--phone-btn-text-color);
  font-size: 1.875rem;
  font-weight: 500;
  border: 0.1rem solid var(--phone-btn-border-color);
}

.copyright {
  color: var(--footer-text-color);
}

.copyright a {
  color: var(--footer-text-color);
}

.lithium-svg {
  position: relative;
  top: 0.375rem;
  max-width: 1.3rem;
  fill: var(--footer-text-color);
}

footer {
  background-color: var(--footer-bg-color);
}

/* Responsive */

@media screen and (max-width: 1300px) {
  .container {
    max-width: 900px;
  }
}

@media screen and (max-width: 1050px) {
  .container {
    max-width: 800px;
  }

  .slogan {
    font-size: 22px;
  }

  .pl-sm-1 {
    padding-left: 1rem !important;
  }
  .d-flex {
    flex-direction: column;
  }
  .btn {
    margin-right: 0;
    width: 100%;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
  }
}

@media screen and (max-width: 850px) {
  .container {
    max-width: 560px;
  }

  .slogan {
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .copyright svg {
    height: 1.6rem;
  }
}

@media screen and (max-width: 700px) {
  .container {
    max-width: 470px;
  }

  .slogan {
    font-size: 1.4rem;
  }

  .copyright {
    font-size: 0.75rem;
  }
  .lithium-svg {
    top: 0.25rem;
  }

  .under-banner-text {
    font-size: 1.43rem;
  }
}

@media screen and (max-width: 500px) {
  .container {
    max-width: 340px;
  }
  .grid-half {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 400px) {
  .first-section {
    padding: max(5vh, 3rem) 1.4rem max(3vh, 3rem) 1.4rem;
  }
  .fourth-section {
    padding: 3.7rem 2rem 3.7rem 2rem;
  }
  .under-banner-text {
    font-size: 1.2rem;
    text-align: center;
  }
  .slogan {
    font-size: 1.1rem;
  }
  .copyright {
    font-size: 0.75rem;
  }
  .pl-sm-1 {
    padding-left: 0.5rem !important;
  }
}
