/* style.css — Página principal (site_papai.html) */

:root {
  --primary:    #0a192f;
  --secondary:  #c5a059;
  --text-dark:  #333;
  --text-light: #fff;
  --glass:      rgba(255,255,255,.15);
  --glass-dark: rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: var(--text-dark); background: #f4f4f4; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('praia.png') no-repeat center/cover;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 80px 5% 40px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,.5);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.books-preview img {
  height: clamp(180px, 30vw, 340px);
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0,0,0,.4);
}

.hero-cta {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding: 28px 30px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.22);
  max-width: 400px;
  width: 100%;
}

.text-secondary { color: var(--secondary); }

.btn-gold {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-top: 15px;
  border-radius: 6px;
  transition: transform .2s, opacity .2s;
  font-family: 'Montserrat', sans-serif;
}

.btn-gold:hover { transform: scale(1.05); opacity: .9; }
.btn-small { padding: 8px 20px; font-size: .88rem; }

/* ===== HISTÓRIA / BIOGRAFIA ===== */
.historia {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
}

.historia-img {
  flex: 0 0 clamp(260px, 35vw, 500px);
  background: url('papai-evento.jpeg') no-repeat center top / cover;
  min-height: 450px;
}

.historia-text {
  flex: 1;
  min-width: 280px;
  padding: clamp(40px, 6vw, 100px);
  background: var(--primary);
  color: #fff;
}

.historia-text h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.historia-text p { margin-bottom: 14px; font-weight: 300; font-size: .95rem; }

.divider-gold { border: 1px solid var(--secondary); width: 50px; margin-bottom: 18px; }

/* ===== MEUS LIVROS ===== */
.meus-livros {
  padding: 70px 5%;
  background: url('mar.png') center/cover;
  text-align: center;
}

.meus-livros h2 {
  margin-bottom: 46px;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
}

.books-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.book-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  padding: 20px;
  border-radius: 15px;
  width: clamp(240px, 28vw, 300px);
  transition: transform .3s, background .3s;
  text-align: center;
}

.book-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.25); }

.book-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  margin-bottom: 14px;
}

.book-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  min-height: 46px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.6);
}

/* ===== EVENTO LANÇAMENTO ===== */
.evento-lancamento {
  padding: 60px 5%;
  background: #f4f4f4;
  text-align: center;
}

.evento-lancamento h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 36px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.evento-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.evento-wrapper {
  flex: 1;
  min-height: 200px;
}

.evento-slide { display: none; width: 100%; animation: fadeIn .8s; }
.evento-slide.active { display: block; }

.evento-slide img,
.evento-slide video {
  width: 100%;
  height: auto;
  min-height: 300px;
  display: block;
  border-radius: 14px;
  max-height: 82vh;
  object-fit: contain;
}

.nav-btn {
  background: rgba(0,0,0,.32);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}

.nav-btn:hover { background: var(--secondary); color: var(--primary); }

/* ===== CITAÇÕES ===== */
.citacoes {
  padding: 80px 5%;
  background: linear-gradient(var(--glass-dark), var(--glass-dark)), url('beach.png') center/cover;
  color: #fff;
  text-align: center;
}

.citacoes h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--secondary);
  margin-bottom: 36px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-slide {
  display: none;
  background: rgba(255,255,255,.1);
  padding: clamp(24px, 5vw, 44px) clamp(30px, 7vw, 64px);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--secondary);
  width: 100%;
  animation: fadeIn 1s;
}

.quote-slide.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.quote-text     { font-style: italic; font-size: 1.05rem; margin-bottom: 22px; line-height: 1.8; }
.quote-author   { color: var(--secondary); font-weight: 700; font-size: .98rem; margin-bottom: 4px; }
.quote-source   { font-size: .84rem; opacity: .85; }

.prev-btn, .next-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 22px;
  background: rgba(0,0,0,.3);
  border: none;
  border-radius: 50%;
  z-index: 2;
  transition: background .25s, color .25s;
  line-height: 1;
}

.prev-btn:hover, .next-btn:hover { background: var(--secondary); color: var(--primary); }
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ===== CONTATO ===== */
.contato {
  padding: 70px 5%;
  background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), url('praia2.jpg') center/cover;
  display: flex;
  justify-content: center;
}

.form-container {
  background: #f9f9f9;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  width: 100%;
  max-width: 800px;
}

.form-title { text-align: center; color: var(--primary); margin-bottom: 26px; font-family: 'Montserrat', sans-serif; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-grid input, .form-grid textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ddd;
  border-radius: 7px;
  margin-top: 5px;
  font-family: 'Open Sans', sans-serif;
  font-size: .94rem;
}

.full-width { grid-column: span 2; }

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  width: 100%;
  cursor: pointer;
  margin-top: 18px;
  font-weight: 700;
  border-radius: 7px;
  font-size: 1rem;
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .85; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .historia { flex-direction: column; }
  .historia-img {
    /* No mobile vira um img de altura fixa proporcional */
    flex: 0 0 auto;
    min-height: 320px;
    width: 100%;
    /* centraliza o rosto - ajuste o Y se precisar */
    background-position: center 15%;
  }
  .historia-text { padding: 36px 5%; }

  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }

  .prev-btn, .next-btn { padding: 10px; font-size: 18px; }
  .nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .books-preview img { height: 180px; }
  .hero-cta { padding: 20px; }

  .historia-img { min-height: 260px; }
}