@font-face {
  font-family: "ExtraBold";
  src: url(fonts/Roboto-ExtraBold.ttf) format("truetype");
}

@font-face {
  font-family: "LightItalic";
  src: url(fonts/Roboto-LightItalic.ttf) format("truetype");
}

@font-face {
  font-family: "Regular";
  src: url(fonts/Roboto-Regular.ttf) format("truetype");
}

/*El's CSS*/
* {
  margin: 0;
  padding: 0;
}

.bg-color {
  background-color: #1f2937;
}

header {
  width: 100%;
  top: 0;
  position: sticky;
  overflow: hidden;
}

.nav {
  max-width: 80%;
  height: 3.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.nav-logo h2 {
  font-size: 24px;
  color: #f9faf8;
  font-family: "ExtraBold", sans-serif;
  cursor: pointer;
  margin-bottom: 0;
}

.nav-logo a {
  text-decoration: none;
}

.nav-links .link {
  font-size: 18px;
  color: #e5e7eb;
  text-decoration: none;
  margin-right: 1.1rem;
  font-family: "Regular", sans-serif;
}

.nav-links .link:last-child {
  margin-right: 0;
}

.nav-logo a:hover,
.nav-links .link:hover {
  opacity: 0.7;
  transition: 0.6s ease-in-out;
}

.hero-container {
  max-width: 80%;
  padding: 7.5rem 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 4rem;
}

.hero-container .hero-text {
  width: 50%;
}

.hero-text h1 {
  color: #f9faf8;
  font-size: 48px;
  font-family: "ExtraBold", sans-serif;
  margin-bottom: 1rem;
}

.hero-text p {
  color: #e5e7eb;
  font-size: 18px;
  font-family: "Regular", sans-serif;
  margin-bottom: 1.6rem;
}

.hero-text button {
  background-color: #3882f6;
  color: #e5e7eb;
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  font-family: "Regular", sans-serif;
  font-weight: bold;
  cursor: pointer;
}

.hero-text button a {
  text-decoration: none;
  color: #e5e7eb;
}

.hero-text button:hover {
  background-color: #f9faf8;
  color: #3882f6;
  transition: 0.6s ease-in-out;
}

.hero-img {
  width: 50%;
}

.hero-img img {
  width: 100%;
  height: 340px;
}

/*Patricia's CSS*/

/* About us page */
.about-us {
  display: flex;
  flex-direction: column;
}

.about-intro,
.about-list,
.about-info {
  display: flex;
  flex-wrap: wrap;
  min-height: 400px;
  margin: 4rem 2rem;
}

.about-heading,
.about-text-box,
.about-us-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-width: 200px;
}

/* Alternating backgrounds */

.about-intro .about-heading,
.about-info .about-text-box {
  background-color: #1f2937;
  color: #f9faf8;
}

.about-intro .about-text-box,
.about-list .about-heading,
.about-info .about-us-img {
  background-color: #e5e7eb;
  color: #1f2937;
}

.about-list .about-text-box {
  background-color: #1f2937;
  color: #f9faf8;
}

.about-text-box p {
  max-width: 600px;
  line-height: 1.6;
  font-family: "LightItalic", sans-serif;
}

/* about list */

.about-list ul {
  font-family: "LightItalic", sans-serif;
  margin-bottom: 1rem;
  list-style-type: none;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.about-us-img {
  height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-us-img img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  object-position: top;
}

/* ----------------------- */

.products-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

h2 {
  font-family: "ExtraBold";
  text-align: center;
  margin-bottom: 2rem;
}

.product-items {
  display: flex;
  /*for smaller screens*/
  flex-wrap: wrap;
  justify-content: center;
  gap: 7rem;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

small {
  font-family: "LightItalic";
  color: #1f2937;
  text-align: center;
  font-size: 10px;
  margin-top: 1rem;
}

.product-items img {
  height: 150px;
  width: 150px;
  border-radius: 10px;
  border: 3px solid #3882f6;
}

.product-items img:hover {
  scale: 1.1;
  transition: ease-in-out 0.3s;
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-items {
    gap: 4rem;
  }

  .product-items img {
    height: 110px;
    width: 110px;
  }
}

@media (max-width: 715px) {
  .product-items {
    gap: 2rem;
  }

  .product-items img {
    height: 90px;
    width: 90px;
  }
}

@media (max-width: 680px) {
  .product-items {
    column-gap: 11rem;
    row-gap: 6rem;
  }

  .product-items img {
    height: 150px;
    width: 150px;
  }
}

@media (max-width: 480px) {
  .products-container h2 {
    font-size: 18px;
  }

  .product-items {
    gap: 4rem;
  }

  .product-items img {
    height: 110px;
    width: 110px;
  }
}

/* Testimonial */

.testimonial {
  background-color: #e5e7eb;
  color: #1f2937;
  text-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.testimonial-container {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
}

.testimonial-text {
  font-family: "LightItalic", sans-serif;
  font-size: 20px;
}

.testimonial-caption {
  font-family: "Regular", sans-serif;
  text-align: right;
  font-weight: bold;
  margin-top: 1rem;
}

/* CTA  */

.call-to-action {
  background-color: #3882f6;
  color: #f9faf8;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 1rem 2rem;
  padding: 2rem 3rem;
  border-radius: 5px;
  gap: 1rem;
}

.call-to-action-text {
  font-size: 15px;
  font-family: "Regular", sans-serif;
}

.call-to-action-text p {
  color: #e5e7eb;
}

.call-to-action-button button {
  background: #3882f6;
  color: #f9faf8;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  border: solid #e5e7eb 2px;
  font-family: "Regular", sans-serif;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.call-to-action-button button:hover {
  background-color: #f9faf8;
  color: #3882f6;
  transition: 0.6s ease-in-out;
}

/* Footer */

footer {
  background-color: #1f2937;
  color: #f9faf8;
  text-align: center;
  padding: 2rem;
}

/* Media Queries */
@media (min-width: 480px) {
  .testimonial-text {
    font-size: 24px;
  }

  .call-to-action {
    display: flex;
    flex-direction: column;
  }

  .call-to-action-text {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .about-heading,
  .about-text-box,
  .about-us-img {
    width: 280px;
  }

  .testimonial-text {
    font-size: 36px;
  }

  .call-to-action-text {
    font-size: 18px;
  }

  .call-to-action {
    display: flex;
    flex-direction: row;
    margin: 5rem 10rem;
    padding: 2rem 5rem;
  }
}

@media (max-width: 1280px) {
  .hero-container {
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 43px;
  }

  .nav-logo h2 {
    font-size: 18px;
  }

  .nav-links .link {
    font-size: 12px;
  }
}

@media (max-width: 1050px) {
  .hero-container .hero-img {
    width: 52%;
  }

  .hero-container .hero-text {
    width: 48%;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-text h1 {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .hero-container {
    max-width: 80%;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .hero-container .hero-text,
  .hero-container .hero-img {
    width: 100%;
  }

  .hero-container .hero-text {
    margin-bottom: 0;
  }

  .hero-img img {
    height: 90%;
  }
}

@media (max-width: 500px) {
  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .hero-text button {
    padding: 0.6em 0.7em;
    font-size: 11px;
  }
}
