/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #101010;
  --bg-page: #f6f2e7;
  --bg-card: #ffffff;
  --bg-soft: #fbf7ed;
  --accent-gold: #d9b748;
  --accent-gold-soft: #f4e2a2;
  --text-main: #111111;
  --text-muted: #6b6b6b;
  --border-soft: #ece3d3;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 22px 80px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.10);
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
}

/* CONTÊINER GENÉRICO */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 42px;
  display: block;
}

/* NAV */
.header-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

/* links e dropdown */
.nav-link,
.dropdown-toggle {
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* sublinhado animado */
.nav-link::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.dropdown-toggle:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link.active {
  color: var(--accent-gold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.chevron {
  font-size: 0.7rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.dropdown-menu {
  position: absolute;
  top: 32px;
  left: 0;
  min-width: 190px;
  background: #181818;
  border-radius: 10px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
}

.dropdown-menu a {
  color: #f5f5f5;
  font-size: 0.95rem;
  padding: 9px 18px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active-sub {
  background: rgba(217, 183, 72, 0.14);
  color: var(--accent-gold);
  transform: translateX(2px);
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

/* Hamburguer (desktop: escondido) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.mobile-menu-btn span {
  width: 26px;
  height: 2px;
  background: #ffffff;
  display: block;
  border-radius: 3px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Botão X (só mobile) */
.mobile-close-btn {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 26px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

/* ======= HERO LIVRO ======= */

.hero-livro {
  background: radial-gradient(circle at top left, rgba(217, 183, 72, 0.25), transparent 45%),
              #101010;
  color: #f9f3e7;
  padding: 80px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  color: var(--accent-gold-soft);
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 2.9rem;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #d9b748 0%, #f4e2a2 50%, #d9b748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #d9b748 0%, #f4e2a2 50%, #d9b748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1rem;
  color: rgba(249, 243, 231, 0.86);
  max-width: 38rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent-gold);
  color: #101010;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: #e1c45a;
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.btn-secondary {
  background: transparent;
  color: #f9f3e7;
  border-color: rgba(249, 243, 231, 0.4);
}

.btn-secondary:hover {
  background: rgba(249, 243, 231, 0.08);
  border-color: #f9f3e7;
}

/* Cartão do livro */
.hero-book {
  display: flex;
  justify-content: flex-end;
}

.hero-book-card {
  width: 320px;
  max-width: 100%;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), #050505);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-book-card img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

/* ======= SEÇÕES GENÉRICAS ======= */

section {
  margin: 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #d9b748 0%, #f4e2a2 50%, #d9b748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ======= BANNER ======= */

.livro-banner {
  background: #f1eadc;
  padding: 36px 0 40px;
}

.banner-card {
  background: #fff;
  border-radius: 999px;
  padding: 18px 34px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-soft);
  font-size: 0.96rem;
  color: #514c40;
}

/* ======= MAIS DO QUE UM LIVRO ======= */

.livro-mais {
  background: var(--bg-soft);
  padding: 60px 0 70px;
}

.livro-mais .section-header p {
  max-width: 730px;
}

.mais-grid {
  margin-top: 26px;
}

.mais-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.mais-chip {
  font-size: 0.98rem;
  color: #353027;
}

/* ======= O QUE VAIS ENCONTRAR ======= */

.livro-encontrar {
  padding: 70px 0 80px;
  background: #f6f1e5;
}

.encontrar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.encontrar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 24px 30px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.card-number {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.encontrar-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #d9b748 0%, #f4e2a2 50%, #d9b748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.encontrar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ======= SOBRE O LIVRO / AUTOR ======= */

.livro-sobre {
  padding: 80px 0;
  background: #ffffff;
}

.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 42px;
  align-items: center;
}

.sobre-img img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.20);
}

.sobre-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: var(--accent-gold);
  display: inline-block;
  margin-bottom: 12px;
}

.sobre-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #d9b748 0%, #f4e2a2 50%, #d9b748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sobre-content p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ======= TESTEMUNHOS ======= */

.livro-testemunhos {
  padding: 70px 0 78px;
  background: #fbf7ed;
}

.testemunhos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testemunho-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
}

.estrelas {
  color: #f7b731;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.testemunho-text {
  color: #444;
  margin-bottom: 10px;
}

.testemunho-autor {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ======= VÍDEO ======= */

.livro-video-section {
  padding: 80px 0;
  background: #ffffff;
}

.video-card {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  border: 6px solid #111;
}

.livro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* botão retroceder 10s */
.rewind-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  border: 0;
  background: rgba(16, 16, 16, 0.85);
  color: #fff;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rewind-btn:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

/* ======= CTA FINAL ======= */

.livro-cta-final {
  padding: 80px 0 90px;
  background: #fbf7ed;
  text-align: center;
}

.livro-cta-final h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #d9b748 0%, #f4e2a2 50%, #d9b748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 0.98rem;
}

.cta-card {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  background: #ffffff;
  border-radius: 999px;
  padding: 18px 26px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.cta-preco {
  text-align: left;
}

.cta-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta-price {
  font-size: 1.4rem;
  font-weight: 700;
}

.cta-price span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-cta {
  padding-inline: 32px;
}


.ev-footer {
  background: #f0e8d3;
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.ev-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}

.ev-footer-logo {
  display: block;
  max-width: 190px;     /* ajusta el ancho del logo si hace falta */
  height: auto;
  margin: 0 0 12px;
}


.ev-footer-text {
  margin: 0;
  max-width: 360px;
  color: #444;
  line-height: 1.7;
}

.ev-footer-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  color: #555;
}

.ev-footer-links,
.ev-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ev-footer-links li,
.ev-footer-contact li {
  margin-bottom: 8px;
}

.ev-footer-links a {
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ev-footer-links a:hover {
  color: var(--ev-green);
  transform: translateX(3px);
}

.ev-footer-contact li {
  color: #333;
}

.ev-footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #666;
}

.ev-footer-bottom strong {
  color: #333;
}

/* ======= BOTÃO WHATSAPP ======= */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.6);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-book {
    justify-content: center;
  }

  .hero-livro {
    padding: 70px 0 70px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
  }

  .sobre-img {
    order: 1;
  }

  .sobre-content {
    order: 2;
  }

  .encontrar-grid,
  .testemunhos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-card {
    flex-direction: column;
    border-radius: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 360px;
    height: 100vh;
    background: #101010;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 32px 40px;
    gap: 24px;
    transition: right 0.35s ease;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .header-nav.open {
    right: 0;
  }

  .mobile-close-btn {
    display: block;
  }

  .nav-link,
  .dropdown-toggle {
    font-size: 1.05rem;
    width: 100%;
  }

  /* dropdown como acordeão */
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown-toggle.active + .dropdown-menu {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0 0 0 10px;
  }

  .dropdown-menu a {
    padding-left: 12px;
  }
}

@media (max-width: 768px) {
  .banner-card {
    border-radius: 20px;
  }

  .encontrar-grid,
  .testemunhos-grid {
    grid-template-columns: 1fr;
  }

  .livro-cta-final h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .header-inner {
    padding-inline: 14px;
  }

  .container {
    padding-inline: 16px;
  }

  .cta-card {
    width: 100%;
  }

  .footer-logo {
    width: 150px;
  }
}

/* ======= CHECKOUT / PAGAMENTO (STRIPE) ======= */

.payment-section {
  display: none;                /* se muestra al hacer click en "COMPRAR AGORA" */
  margin-top: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.payment-section.active {
  display: block;
}

#payment-element {
  margin-bottom: 16px;
}

/* botón de pagar ocupa todo el ancho dentro de la pill */
.payment-submit {
  width: 100%;
  justify-content: center;
}

.payment-message {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
}

.payment-message.error {
  color: #c0392b;
}

.payment-message.success {
  color: #2d5a3d;
}

/* ======= CAMPOS EXTRA CHECKOUT ======= */
/* ======= UNIFICAR ESTILO CHECKOUT (igual a Stripe) ======= */

.checkout-field{
  margin-bottom: 14px;
}

.checkout-label{
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: #2b2b2b;
}

/* Este input tiene que verse igual al de Stripe */
.checkout-input{
  width: 100%;
  height: 44px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #ece3d3;
  background: #ffffff;
  font-size: 15px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111;
  outline: none;

  /* mismo “feeling” que Stripe */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Focus dorado (igual que Stripe appearance) */
.checkout-input:focus{
  border-color: rgba(217,183,72,0.7);
  box-shadow: 0 0 0 3px rgba(217,183,72,0.18);
}

/* Alinear el checkbox con el look */
.checkout-checkbox-row{
  margin: 10px 0 14px;
}

.checkout-checkbox{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: #333;
}

.checkout-checkbox input{
  width: 16px;
  height: 16px;
}

.checkout-label{
  width: 100%;
}
