/* RESET & VARIÁVEIS */
:root {
  --bg-color: #0b0b0d;
  --bg-card: #141418;
  --text-main: #e6e6e8;
  --text-muted: #9e9ea7;
  --accent-gold: #c5a059;
  --accent-gold-hover: #d8b26a;
  --border-color: #23232a;
  --font-main: 'Space Grotesk', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CABEÇALHO */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--accent-gold);
}

/* BOTÕES & TAGS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.tag-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* CARROSSEL HERO */
.hero-carousel {
  position: relative;
  height: 85vh;
  min-height: 600px;
  margin-top: 80px;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11,11,13,0.7) 0%, rgba(11,11,13,0.4) 50%, rgba(11,11,13,0.2) 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.slide-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 700;
}

.slide-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 24, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent-gold);
}

/* SEÇÕES GERAIS */
.section {
  padding: 6rem 0;
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

/* SEÇÃO LIVROS */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.book-grid.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.book-cover-wrapper {
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: center;
  align-self: start;
  width: 100%;
}

/* ESTILO PADRÃO E IDENTICO DA CAPA DOS LIVROS */
.book-cover {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(0, 119, 145, 0.4); 
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.8),             
    0 0 25px rgba(0, 119, 145, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(0, 119, 145, 0.45);
}

.book-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.book-description p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.book-features {
  list-style: none;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.book-features li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.book-features strong {
  color: var(--text-main);
}

.status-box {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-gold);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SEÇÃO AUTOR */
.author-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.author-image-wrapper {
  position: sticky;
  top: 100px;
  align-self: start;
  width: 100%;
  display: flex;
  justify-content: center;
}

.author-img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  filter: grayscale(20%);
  border: 1px solid rgba(0, 119, 145, 0.4); 
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(0, 119, 145, 0.25);
  transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: block;
}

.author-img:hover {
  filter: grayscale(0%); 
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(0, 119, 145, 0.4);
}

.bio-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.bio-text p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.bio-quote {
  font-style: italic;
  border-left: 2px solid var(--accent-gold);
  padding-left: 1rem;
  color: var(--text-main);
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* RODAPÉ */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.footer p {
  margin-bottom: 0.5rem;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
  .book-grid, .book-grid.reverse, .author-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .book-grid.reverse .book-cover-wrapper {
    order: -1;
  }

  .book-cover-wrapper, .author-image-wrapper {
    position: static;
  }

  .slide-content h2 {
    font-size: 2.2rem;
  }

  .nav-list {
    display: none;
  }

  .carousel-btn {
    display: none;
  }
}

/* BOTÃO MENU HAMBÚRGUER (OCULTO NO DESKTOP) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ANIMAÇÃO PARA O 'X' QUANDO ABERTO */
.menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--accent-gold);
}

.menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--accent-gold);
}

/* COMPORTAMENTO NO MOBILE (TELAS ATÉ 900px) */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex; /* Exibe o botão hambúrguer de forma visível e centralizada */
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(11, 11, 13, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }

  .nav.active {
    transform: translateY(0); /* Desliza o menu para baixo */
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }

  .nav-list a {
    font-size: 1.1rem;
  }
}