@import "external.css";

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 50px 20px;
  position: relative;
}

.hero::before {
  content: '"';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 25rem;
  color: var(--bg-secondary);
  z-index: -1;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.hero-content {
  max-width: 900px;
  animation: fadeIn 1.5s ease;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 50px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* --- MANIFESTO SECTION --- */
.manifesto {
  padding: var(--spacing-unit) 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background-color: var(--bg-secondary);
}

.manifesto-text h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.manifesto-img {
  height: 600px;
  width: 100%;
  background-image: url("../images/manifesto-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: 0.6s ease;
}
.manifesto-img:hover {
  filter: grayscale(0%);
}

/* --- AUTHORS SECTION --- */
.authors {
  padding: var(--spacing-unit) 20px;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h3 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
}

.author-card {
  text-align: center;
  padding: 10px;
}
.author-img-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 25px auto;
  border-radius: 50%;
  overflow: hidden;
}
.author-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}
.author-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}
.author-card h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

/* --- FEATURES --- */
.features {
  padding: var(--spacing-unit) 20px;
  background-color: var(--paper-color);
  border-top: 1px solid #f0f0f0;
}
.features-grid {
  display: grid;
  /* Garante que haja 3 colunas iguais no desktop */
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 25px;
  opacity: 1;
}
.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-family: var(--font-serif);
  font-weight: 700;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- PRICING --- */
.pricing {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}
.pricing h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.price-tag {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  font-family: var(--font-serif);
  margin: 20px 0;
  display: block;
  color: var(--accent-color);
}
.price-tag span {
  font-size: 1.2rem;
  font-weight: 400;
  font-family: var(--font-sans);
  color: #fff;
  opacity: 0.6;
}

/* --- MODAL DE LEITURA --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.book-page {
  background-color: var(--paper-color);
  width: 100%;
  max-width: 600px;
  padding: 60px 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .book-page {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: 0.3s;
}
.close-modal:hover {
  color: var(--accent-color);
}

.poem-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 10px;
  color: #000;
}
.poem-author {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 40px;
  display: block;
}
.poem-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 40px;
  font-style: italic;
}
.modal-cta {
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

/* --- MEDIA QUERIES (RESPONSIVIDADE MÓVEL) --- */
@media (max-width: 768px) {
  .hero::before {
    font-size: 15rem;
    top: 10%;
  }
  .hero h1 {
    font-size: 3rem;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
  .manifesto-img {
    height: 300px;
  }
  .manifesto-text h2 {
    font-size: 2rem;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }
  /* Garante que os 3 cards fiquem empilhados no mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
