/* RESET GERAL */
* {
  box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* LOGO */
.logo {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.img-logo {
  max-width: 240px;
  height: auto;
  width: 100%;
}

/* HEADER */
.header-back {
  padding: 0 clamp(16px, 5vw, 40px);
}

.header {
  background-color: #FFD803;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 30px clamp(16px, 5vw, 60px);
  gap: 40px;
  flex-wrap: wrap;
  border-radius: 12px;
  text-align: left;
}

.texts-n-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 480px;
  gap: 24px;
  flex: 1;
}

.title-header h1 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: bolder;
  color: rgb(10, 10, 10);
  margin: 0;
}

.text-header p {
  font-size: 16px;
  color: rgb(10, 10, 10);
  margin: 0;
  line-height: 1.5;
}

.buttons-header {
  display: flex;
  gap: 16px;
  flex-direction: row;
  flex-wrap: wrap;
}

.buttons-header a {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  text-align: center;
}

.btnCadastrar {
  background-color: rgb(10, 10, 10);
  color: #FFD803;
  border: 2px solid rgb(10, 10, 10);
}

.btnFaleconosco {
  background-color: transparent;
  color: rgb(10, 10, 10);
  border: 2px solid rgb(10, 10, 10);
}

.btnCadastrar:hover,
.btnFaleconosco:hover {
  opacity: 0.7;
}

.imagem-header {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.img-header {
  max-height: 100%;
  height: auto;
  width: 100%;
  max-width: 360px;
  display: block;
}

/* CARDS */
.cards-back {
  padding: 40px clamp(16px, 5vw, 40px) 60px clamp(16px, 5vw, 40px);
}

.cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background-color: #fff;
  justify-content: space-between;
}

.card1,
.card3 {
  background-color: #FFD803;
  padding: 24px 24px 0px 24px;
  width: 350px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ref2 {
  text-decoration: none;
}

.card2 {
  background-color: #000000;
  padding: 24px 24px 0px 24px;
  width: 350px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card1:hover,
.card2:hover,
.card3:hover {
  transform: translateY(-5px);
}

.text-card2 h2 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.text-card2 p {
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.text-card p {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
}

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

/* DIVISÓRIA */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #eeeeee, transparent);
  margin: 0 auto;
  width: 80%;
}

/* FORMULÁRIO */
.form-back {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 20px 12rem 20px;
  background-color: #fff;
}

.form {
  max-width: 600px;
  text-align: center;
}

.title-form {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: bold;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.text-form {
  font-size: 16px;
  color: #444;
  margin-bottom: 32px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1;
  min-width: 240px;
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: #1a1a1a;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #333;
}

/* FOOTER */
.footer {
    justify-content: space-evenly;
    flex-wrap: wrap;
    display: flex;
    background-color: #0B0D17;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-content-link {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-text {
  color: #D9DBE1;
  font-size: 14px;
  margin: 0;
  font-family: Arial, sans-serif;
}

.footer-text a {
  text-decoration: none;
  font-weight:bold;
  cursor: pointer;
  color: #D9DBE1;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .texts-n-buttons {
    align-items: center;
    text-align: center;
  }

  .imagem-header {
    justify-content: center;
    margin-top: 32px;
  }

  .cards {
    justify-content: center;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .buttons-header {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
  }

  .buttons-header a {
    width: 100%;
    max-width: 300px;
  }

  .img-header {
    max-width: 300px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }
  
  .footer {
	row-gap: 40px;
    flex-direction: column;
    align-items: center;
}

  .card1,
  .card2,
  .card3 {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
  }

  .slider-back {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .form-back {
    padding: 80px 20px 120px 20px;
  }

  .cards-back {
    padding: 20px;
  }
}
