/* ========================= */
/* HERO */
/* ========================= */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;

  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 42px;
  margin: 14px 0;
  color: #2f2a28;
}

.hero-text p {
  color: #666;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* CARD HERO */

.hero-card {
  background: #fff;
  padding: 30px;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  max-width: 320px;
}

/* ========================= */
/* REDES SOCIAIS HERO */
/* ========================= */

.hero-social {
  margin-top: 24px;
}

.hero-social span {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-social-icons {
  display: flex;
  gap: 12px;
}

.hero-social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
}

/* cores fixas */

.hero-social-icons .instagram {
  background: #e1306c;
}

.hero-social-icons .youtube {
  background: #ff0000;
}

.hero-social-icons .tiktok {
  background: #000;
}

.hero-social-icons svg {
  width: 20px;
  height: 20px;
}

/* ========================= */
/* GRID EBOOKS */
/* ========================= */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* CARD */

.post-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.post-card:hover {
  transform: translateY(-6px);
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.category {
  font-size: 13px;
  font-weight: 700;
  color: #7a5c58;
  margin-bottom: 8px;
}

.post-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2f2a28;
}

.post-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* FOOTER DO CARD */

.ebook-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.ebook-price {
  font-size: 21px;
  font-weight: 900;
  color: #2f2a28;
}

/* BOTÃO */

.btn-comprar {
  background: linear-gradient(135deg, #7a5c58, #5f4542);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(122, 92, 88, 0.25);
  transition: 0.25s;
}

.btn-comprar:hover {
  transform: scale(1.05);
}

/* ========================= */
/* SEÇÃO INFO */
/* ========================= */

.ebook-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 24px;
}

.ebook-card {
  background: #fff;
  padding: 32px;
  border-radius: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ========================= */
/* FAQ */
/* ========================= */

.faq-section {
  max-width: 1100px;
  margin: auto;
  padding: 60px 24px 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span {
  font-size: 20px;
  transition: 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #666;
  font-size: 14px;
  transition: 0.3s;
}

.faq-item.active .faq-answer {
  max-height: 180px;
  padding-bottom: 16px;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

/* ========================= */
/* FOOTER SOCIAL */
/* ========================= */

.footer-social .social-icons {
  display: flex;
  gap: 12px;
}

.footer-social .social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
}

/* cores fixas */

.footer-social .social-icons a:nth-child(1) {
  background: #e1306c;
}

.footer-social .social-icons a:nth-child(2) {
  background: #ff0000;
}

.footer-social .social-icons a:nth-child(3) {
  background: #000;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */

@media (max-width: 1000px) {
  .hero {
    flex-direction: column;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ebook-card {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

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