/* Rolagem suave em todo o site */
html {
  scroll-behavior: smooth;
}
/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@200;300;400;500&display=swap');

:root {
  --bg-color: #000000;
  --gold-accent: #b28a53;  /* Cor dos títulos/bordas */
  --gold-text: #d1b287;    /* Cor dos textos e subtítulos */
  --text-body: #c5c5c5;
  --font-title: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= ESTRUTURA GLOBAL E UNIDADE DO FUNDO ================= */
body {
  background-color: var(--bg-color);
  /* Textura contínua de fundo */
  background-image: url('../images/bg-home-texture.png');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Camada de escurecimento suave e contínua para TODO o site (sem quebras) */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.70); /* Escurecimento uniforme e elegante */
  pointer-events: none;
  z-index: 0;
}

main, header, footer, .hero-wrapper {
  position: relative;
  z-index: 1; /* Garante que os textos e imagens fiquem acima do escurecimento */
}

/* ================= NAV SUPERIOR ================= */
.top-nav {
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

.top-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--gold-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.top-nav a:hover {
  color: #f3e8d3;
}

/* ================= HERO SECTION ================= */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  color: var(--gold-accent);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem; /* Aumentado de 0.95rem para 1.15rem */
  color: var(--gold-text);
  font-weight: 400;   /* Mudado de 300 para 400 para dar mais corpo */
  letter-spacing: 0.05em;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  line-height: 1.6;
}
/* ================= HERO WRAPPER (TOPO DA HOME) ================= */
.hero-wrapper {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  /* Imagem limpa sem o logo L. Vogel e o divisor */
  background: url('../images/bg-hero-clean-desktop.png') center top / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 8vh;
}

.hero-section {
  text-align: center;
  max-width: 850px;
  padding: 0 1.5rem;
  z-index: 2;
}

/* ================= ESCURECIMENTO GLOBAL DE LEITURA ================= */
.sobre-section, 
.livros-section, 
.newsletter-section, 
.social-section {
  background: transparent !important; /* Remove fundo de caixa */
  backdrop-filter: none !important;    /* Remove o desfoque isolado */
  border: none !important;             /* Remove bordas delimitadoras */
  box-shadow: none !important;
  padding: 4rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Ajuste nos cards dos livros para integrarem ao fundo */
.book-card {
  text-decoration: none;
  display: block;
  border: 0.5px solid var(--gold-accent);
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3); /* Sombra sutil apenas na moldura da capa */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(178, 138, 83, 0.3);
}

/* ================= BANNER CINEMATIC "SEM PERMISSÃO" ================= */
.destaque-banner {
  position: relative;
  width: 100vw;
  min-height: 600px;
  /* Imagem do homem na janela cobrindo toda a extensão no Desktop */
  background: url('../images/destaque-sem-permissao-desktop.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Empurra o conteúdo para a direita */
}

.destaque-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente suave da esquerda (imagem) para a direita (fundo escuro para o texto) */
  background: linear-gradient(to right, rgba(0,0,0,0) 20%, rgba(0,0,0,0.70) 70%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.destaque-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: flex-end; /* Alinha o texto na área vazia da direita */
}

.destaque-text-box {
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.destaque-title {
  font-family: var(--font-title);
  color: var(--gold-accent);
  font-size: 2.8rem;
  letter-spacing: 0.35em;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.destaque-text {
  font-size: 1.1rem; /* Aumentado de 0.95rem para 1.1rem */
  color: var(--gold-text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;  /* Corpo reforçado */
}

.btn-read-free {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold-text);
  border: 0.5px solid rgba(178, 138, 83, 0.6);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.9rem 2rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.btn-read-free:hover {
  background: rgba(178, 138, 83, 0.2);
  border-color: var(--gold-text);
  color: #f3e8d3;
  box-shadow: 0 0 15px rgba(178, 138, 83, 0.35);
}

/* ================= ADAPTAÇÃO PARA MOBILE ================= */
@media (max-width: 768px) {
  .hero-wrapper {
    background-image: url('../images/bg-hero-clean-mobile.png');
  }

  .destaque-banner {
    min-height: 550px;
    background-image: url('../images/destaque-sem-permissao-mobile.png');
    justify-content: center;
    background-position: center top;
  }

  .destaque-overlay {
    background: rgba(0, 0, 0, 0.65); /* Fundo escuro uniforme no mobile para garantir leitura */
  }

  .destaque-content-wrapper {
    justify-content: center;
    padding: 2rem 1.5rem;
  }

  .destaque-title {
    font-size: 2rem;
    letter-spacing: 0.25em;
  }
}

/* ================= CATÁLOGO DE LIVROS ================= */
.livros-section {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  color: var(--gold-accent);
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.book-card {
  text-decoration: none;
  display: block;
  border: 0.5px solid var(--gold-accent);
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(178, 138, 83, 0.25);
}

.book-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================= SOBRE A AUTORA ================= */
.sobre-section {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.sobre-content p {
  font-size: 1.1rem; /* Aumentado de 0.95rem para 1.1rem */
  color: var(--gold-text);
  margin-bottom: 1.8rem;
  font-weight: 400;  /* Leitura muito mais confortável */
  line-height: 1.8;
  text-align: justify;
  text-align-last: center;
}

/* ================= NEWSLETTER ================= */
.newsletter-section {
  max-width: 750px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-title);
  color: var(--gold-accent);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.newsletter-text {
  font-size: 1.05rem; /* Aumentado de 0.90rem para 1.05rem */
  color: var(--gold-text);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Cor do texto do placeholder no campo de e-mail */
.newsletter-input::placeholder {
  color: var(--gold-text); /* Mesma cor dourada dos outros textos */
  opacity: 0.7; /* Suave transparência para manter a elegância */
}

.newsletter-input {
  width: 100%;
  max-width: 380px;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  border: 0.5px solid var(--gold-accent);
  color: #f3e8d3;
  font-family: var(--font-body);
  text-align: center;
  outline: none;
}

.newsletter-btn {
  background: var(--gold-accent);
  color: #000000;
  border: none;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--gold-text);
}

/* ================= REDES SOCIAIS E RODAPÉ ================= */
.social-section {
  text-align: center;
  margin: 5rem auto 2rem;
}

.social-title {
  font-family: var(--font-title);
  color: var(--gold-accent);
  font-size: 1rem;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.social-links a {
  text-decoration: none;
  color: var(--gold-text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #f3e8d3;
}

/* Seta Voltar ao Topo */
.scroll-top-wrapper {
  text-align: center;
  margin: 3rem 0 1rem;
}

.btn-scroll-top {
  display: inline-block;
  text-decoration: none;
  color: var(--gold-text);
  font-size: 2rem; /* Tamanho bem visível */
  font-weight: 300;
  width: 45px;
  height: 45px;
  line-height: 40px;
  border: 0.5px solid var(--gold-accent);
  border-radius: 50%; /* Transforma num botão circular elegante */
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.btn-scroll-top:hover {
  color: #f3e8d3;
  border-color: var(--gold-text);
  background: rgba(178, 138, 83, 0.25);
  box-shadow: 0 0 15px rgba(178, 138, 83, 0.4);
  transform: translateY(-4px);
}

footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.75rem;
  color: var(--gold-accent);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ==================== RESPONSIVIDADE (MOBILE) ==================== */
@media (max-width: 768px) {
  .top-nav {
    justify-content: center;
    padding: 1.5rem 1rem;
  }

  .top-nav ul {
    gap: 1.2rem;
  }

  .top-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .hero-title {
    font-size: 1.3rem;
    letter-spacing: 0.15em;
  }

  .hero-subtitle {
    font-size: 0.95rem; /* Ajustado para celular */
  }

  .destaque-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .destaque-title {
    font-size: 1.8rem;
  }

  .destaque-text {
    font-size: 1rem; /* Ajustado para celular */
  }

  .books-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .sobre-content p {
    text-align: center;
    font-size: 1rem; /* Ajustado para celular */
  }
}
/* Efeito de contorno denso e brilho escuro ao redor das letras */
.hero-title,
.hero-subtitle,
.destaque-title,
.destaque-text,
.sobre-content p,
.newsletter-title,
.newsletter-text,
.section-title {
  text-shadow: 
    0 0 8px #000000,
    0 0 12px #000000,
    0 2px 4px #000000;
}

