button {
  background-color: transparent;
  outline: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition:
    background-color 300ms ease-in-out,
    color 300ms ease-in-out;
}
h2 {
  text-transform: uppercase;
}

.overlap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -7rem;
}

/* ----------------------------------- HERO SECTION ------------------------------------------- */
.hero {
  min-height: 90vh;
  padding: 5%;
  background: url("../images/index/hero-image.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--primary);
  color: var(--white);
  margin-bottom: 10rem;
}
.hero h1 {
  font-size: 3rem;
  width: 60%;
}
.hero p {
  font-size: 1rem;
  width: 40%;
  margin: 2rem 0;
}
.hero .cta {
  justify-content: flex-start;
  gap: 2rem;
}

.starter {
  background-color: var(--bg);
  color: var(--text);
  width: 60%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.starter p {
  background-color: var(--primary);
  color: var(--white);
  width: 40%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  font-weight: 600;
}
.starter .icons {
  padding: 5%;
  color: var(--text);
  font-size: 1rem;
}
.starter .icon {
  flex-direction: column;
  gap: 0.5rem;
  min-width: 30%;
}
.starter .icon.center {
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  border-right: 2px solid rgba(0, 0, 0, 0.1);
}
.starter .icon .fas {
  font-size: calc(var(--p) * 2);
}
.starter .icon a,
.starter .icon button {
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
  transition: color 300ms ease;
}
.starter .icon a:hover,
.starter .icon button:hover {
  color: var(--secondary);
}
/* ----------------------------------- HERO SECTION ------------------------------------------- */

/* ----------------------------------- SERVICES SECTION ------------------------------------------- */
.services {
  background-color: var(--primary);
  padding: 3% 0;
  padding-bottom: 15rem;
  margin-bottom: 25rem;
}
.services h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
  text-align: center;
}
.services p.intro {
  width: 60%;
  margin: 0 auto;
  color: var(--white);
  text-align: center;
}
.service-cards {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  bottom: -90%;
}

/* ----------------------------------- SERVICES SECTION ------------------------------------------- */

/* ----------------------------------- MISSION SECTION ------------------------------------------- */
.mission {
  padding-right: 5%;
  margin: 1rem 0;
  align-items: stretch;
  gap: 0;
}
.mission .info {
  width: 50%;
  background-color: var(--primary);
  color: var(--white);
  padding: 5%;
}
.mission h3 {
  color: var(--secondary);
}
.mission p {
  margin: 1rem 0;
}
.mission .image-container {
  width: 50%;
}
/* ----------------------------------- MISSION SECTION ------------------------------------------- */

/* ----------------------------------- PRODUCTS SECTION ------------------------------------------- */
.products h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}
.product-cards .cards {
  width: 80%;
  margin: 5rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.product-cards .card {
  height: 100%;
}
.products .card .image-container {
  height: 8rem;
}
.product-cards .btn {
  margin-top: auto;
  width: 100%;
}
.product-cards button.more {
  width: fit-content;
  margin: 1rem auto 3rem;
}
/* ----------------------------------- PRODUCTS SECTION ------------------------------------------- */
@media screen and (max-width: 1024px) {
  .product-cards .cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: var(--h1);
  }
  .hero h1,
  .hero p {
    width: 80%;
    text-align: center;
    margin: auto;
  }
  .hero p {
    margin: 2rem auto;
  }
  .hero .cta {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  .hero .cta .btn {
    width: fit-content;
  }
  .service-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .starter {
    width: 90%;
  }
  .product-cards .cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .product-cards .cards{
    width: 90%;
  }
}

@media screen and (max-width: 550px) {
  .overlap {
    position: relative;
  }
  .mission .image-container,
  .mission .info {
    width: 100%;
  }
  .hero {
    height: 100svh;
    margin-bottom: 25rem;
  }
  .hero h1 {
    font-size: 2rem;
    width: 90%;
    margin: 0 auto;
  }
  .hero p {
    width: 90%;
    margin: 2rem auto;
  }
  .hero .cta {
    gap: 1rem;
    flex-direction: column;
  }
  .hero .cta .btn {
    width: 100%;
  }
  .starter {
        bottom: 0rem;
    }
  .starter .icons {
    flex-direction: column;
    padding: 0 2rem;
  }
  .starter .icons .icon {
    padding: 2rem 0rem;
    margin: -0.5rem 0;
    width: 100%;
  }
  .starter .icon.center {
    border: initial;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  }
  .services {
    margin-bottom: 3rem;
    padding: initial;
    padding: 2rem;
  }
  .services p.intro {
    width: 100%;
    margin-bottom: 2rem;
  }
  .services .service-cards {
    width: 100%;
  }
  .products .card .image-container {
    height: 12rem;
  }
}

@media screen and (max-width:375px) {
  .hero{
    margin-bottom: 28rem;
  }
}
