
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color: #333;
}

h1 {
  font-size: 2.5rem;
  color: #153244;
  margin: 0.5em 0;
  line-height: 1.1;
  font-family: "Archivo Black", sans-serif;
}

p {
  line-height: 1.6;
  font-size: 1rem;
  #max-width: 452px;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  min-height: 100vh;
  
}

.hero-content {
  flex-basis: 45%;
  max-width: 550px;
}

.title-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.desafios-logo {
  width: 80px;
  margin-right: 1rem;
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 45px;
  margin-bottom: 75px;
  margin-top: 55px;
}

.ciudad-logo,
.matific-logo {
  width: 122px;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffcc00;
  color: #333;
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 30px 0 30px;
  height: 90px;
  width: 375px;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.hero-image {
  flex-basis: 50%;
  text-align: center;
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 98%;
  object-fit: fill;
  z-index: 0;
}


#matter-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#matter-container canvas {
  touch-action: auto; 
}

.main-footer {
  background-color: #023144;
  color: #ffffff;
  padding: 2.5rem 4rem;
  width: 100%;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logos {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer-logos img {
  height: 45px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #a0b3c4;
}

/* MOBILE */
@media (max-width: 460px) {
  .hero-section {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
  }

  .hero-image {
    order: -1;
    height: auto;
    margin-bottom: 1rem;
  }

  #matter-container {
    display: none;
  }

  .hero-image img {
    position: relative;
    width: 205.38px;
    height: 178.67px;
    object-fit: cover;
    margin-top: 30px;
  }

  .title-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    order: 0;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .title-container {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
  }

  .desafios-logo {
    width: 60px;
    margin-right: 0.5rem;
  }

  h1 {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
  }

  p {
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    margin: 0;
    
  }

  .cta-button {
    width: 100%;
    font-size: 1.1rem;
    height: 60px;
    border-radius: 0 20px 0 20px;
    margin: 1rem 0 0.5rem 0;
    align-self: flex-start;
    order: 1;
  }

  .logos-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 33px;
    order: 2;
  }

  .ciudad-logo,
  .matific-logo {
    width: 110px;
  }

  .main-footer {
    padding: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-logos img {
    height: 45px;
    width: auto;
    max-width: 100%;
    padding-top: 10px;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-nav a {
    margin: 0;
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    text-align: left;
  }
}
