/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul: #1b2a4a;
  --azul-claro: #2c4270;
  --dourado: #c9a24b;
  --dourado-claro: #e6cd8f;
  --creme: #faf6ee;
  --creme-escuro: #f0e7d6;
  --texto: #2a2a2a;
  --texto-suave: #5b5b5b;
  --branco: #ffffff;
  --sombra: 0 18px 40px rgba(27, 42, 74, 0.15);
  --raio: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.1; }

.container { width: min(1080px, 92%); margin: 0 auto; }
.container--narrow { max-width: 680px; }

/* ===================== HERO / CAPA ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--branco);
  background: var(--azul) url('../img/capa.png?v=2') center 32% / cover no-repeat;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,28,48,0.55) 0%, rgba(20,28,48,0.15) 35%, rgba(20,28,48,0.75) 100%);
  z-index: 1;
}
.nav, .hero__content, .hero__scroll { position: relative; z-index: 2; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1080px, 92%); margin: 0 auto; padding: 26px 0;
  position: relative; z-index: 30;
}
.nav__brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: .3px; }
.nav__links { list-style: none; display: flex; gap: 28px; }
.nav__links a {
  color: var(--branco); text-decoration: none; font-size: .95rem; font-weight: 500;
  opacity: .9; transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }

/* Botão hambúrguer (só aparece no celular) */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: transparent; border: none; padding: 8px; z-index: 5;
}
.nav__toggle span {
  display: block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--branco); transition: transform .3s, opacity .3s;
}
.nav__toggle.is-ativo span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-ativo span:nth-child(2) { opacity: 0; }
.nav__toggle.is-ativo span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero__content {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px 80px;
  width: min(760px, 92%); margin: 0 auto;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: .8rem;
  color: var(--dourado-claro); font-weight: 600; margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 700;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 560px;
  margin: 22px auto 34px; opacity: .95; text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__versiculo {
  margin-top: 30px; max-width: 560px; width: 100%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--raio);
  padding: 30px 32px 26px; position: relative;
}
.hero__versiculo.is-revelado { animation: surge .5s ease; }
.hero__versiculo-aspas {
  font-family: 'Cormorant Garamond', serif; font-size: 3.5rem;
  color: var(--dourado-claro); line-height: 0; display: block; height: 22px; opacity: .8;
}
.hero__versiculo-texto {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600; color: #fff; margin: 14px 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__versiculo-ref { color: var(--dourado-claro); font-weight: 600; letter-spacing: .5px; }

.hero__scroll {
  text-align: center; padding-bottom: 26px; font-size: 1.6rem;
  animation: bounce 2s infinite; opacity: .85;
}
@keyframes bounce { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-block; cursor: pointer; border: none;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 15px 32px; border-radius: 100px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--dourado) 0%, #b8902f 100%);
  color: #2a2100; box-shadow: 0 10px 24px rgba(201, 162, 75, .4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 75, .55); }
.btn--secondary {
  background: var(--azul); color: var(--branco); box-shadow: var(--sombra);
}
.btn--secondary:hover { transform: translateY(-2px); background: var(--azul-claro); }
.btn--ghost {
  background: transparent; color: var(--azul); border: 2px solid var(--azul);
}
.btn--ghost:hover { background: var(--azul); color: var(--branco); }
.hero__cta { font-size: 1.1rem; padding: 17px 40px; }

.botoes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* ===================== SEÇÕES ===================== */
.section { padding: 90px 0; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; margin: 10px 0 12px; }
.section__lead { color: var(--texto-suave); max-width: 560px; margin: 0 auto 20px; font-size: 1.08rem; }
.section--dia, .section--ler { text-align: center; }
.section--dia { background: var(--creme); }
.section--escolher {
  text-align: center; color: var(--branco);
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-claro) 100%);
}
.section--escolher .section__lead { color: rgba(255,255,255,.8); }
.section--ler { background: var(--creme-escuro); }
.section--breve {
  text-align: center;
  background: linear-gradient(160deg, #23345c 0%, #1b2a4a 100%); color: var(--branco);
}
.section--breve .section__lead { color: rgba(255,255,255,.82); }
.section--jogos { text-align: center; background: var(--creme); }
.jogos-preview {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 26px 0 4px;
}
.jogos-preview__item {
  background: var(--branco); border: 1px solid var(--creme-escuro); border-radius: 100px;
  padding: 12px 22px; font-weight: 600; color: var(--azul); box-shadow: 0 6px 16px rgba(27,42,74,.08);
}

.badge {
  display: inline-block; background: rgba(201,162,75,.18); color: #9a7a2c;
  padding: 6px 16px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.badge--light { background: rgba(255,255,255,.15); color: var(--dourado-claro); }

/* ===================== CARD VERSÍCULO DO DIA ===================== */
.card-dia {
  background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra);
  max-width: 640px; margin: 36px auto 0; padding: 48px 40px;
  border: 1px solid var(--creme-escuro); position: relative;
  transition: transform .3s ease;
}
.card-dia.is-revelado { animation: surge .5s ease; }
@keyframes surge { from { opacity: 0; transform: translateY(14px) scale(.98);} to { opacity: 1; transform: none;} }
.card-dia__quote {
  font-family: 'Cormorant Garamond', serif; font-size: 5rem; color: var(--dourado);
  line-height: 0; display: block; height: 30px; opacity: .5;
}
.card-dia__texto {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 600; color: var(--azul); margin: 18px 0;
}
.card-dia__ref { color: var(--dourado); font-weight: 600; letter-spacing: .5px; font-size: 1.05rem; }

.dica { color: var(--texto-suave); font-size: .9rem; margin-top: 18px; min-height: 20px; }
.dica--center { text-align: center; margin-top: 24px; }

/* ===================== CARTAS (ESCOLHER) ===================== */
.cartas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px; max-width: 760px; margin: 40px auto 0;
}
.carta {
  aspect-ratio: 3 / 4; perspective: 1000px; cursor: pointer; border: none;
  background: transparent; padding: 0; font-family: inherit;
}
.carta__inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d;
}
.carta.is-virada .carta__inner { transform: rotateY(180deg); }
.carta__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px; text-align: center;
}
.carta__frente {
  background: linear-gradient(150deg, #f6e9c8 0%, var(--dourado) 100%);
  color: #4a3a10; box-shadow: 0 12px 26px rgba(0,0,0,.25);
}
.carta__frente span { font-size: 2.4rem; }
.carta__verso {
  background: var(--branco); color: var(--azul); transform: rotateY(180deg);
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
}
.carta__verso .carta__texto {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: .95rem; line-height: 1.3; color: var(--azul);
}
.carta__verso .carta__ref { font-size: .78rem; color: var(--dourado); font-weight: 600; margin-top: 8px; }
.carta:hover:not(.is-virada) .carta__inner { transform: translateY(-4px); }

/* ===================== PASSAGENS (LER) ===================== */
.passagens {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; margin: 40px auto 0; max-width: 820px;
}
.passagem {
  background: var(--branco); border-radius: 16px; padding: 26px 22px;
  text-decoration: none; color: var(--texto); box-shadow: 0 8px 20px rgba(27,42,74,.08);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  border: 1px solid var(--creme-escuro); transition: transform .18s ease, box-shadow .2s ease;
  cursor: pointer; font-family: inherit; text-align: left; width: 100%;
}
.passagem:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(27,42,74,.16); }
.passagem__emoji { font-size: 2rem; }
.passagem__nome { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--azul); }
.passagem__desc { color: var(--texto-suave); font-size: .92rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--azul); color: rgba(255,255,255,.85); text-align: center; padding: 44px 20px; }
.footer p:first-child { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }
.footer__small { font-size: .88rem; opacity: .7; margin-top: 6px; }

/* ===================== LEITOR DA BÍBLIA (MODAL) ===================== */
.leitor {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.leitor.is-aberto { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.leitor__backdrop {
  position: absolute; inset: 0; background: rgba(15, 22, 40, .7);
  backdrop-filter: blur(3px);
}
.leitor__janela {
  position: relative; background: var(--creme); border-radius: var(--raio);
  width: min(760px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,.5); overflow: hidden;
}
.leitor__topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: var(--azul); color: var(--branco);
}
.leitor__selects { display: flex; gap: 10px; flex-wrap: wrap; }
.leitor__select {
  font-family: inherit; font-size: .95rem; padding: 9px 14px; border-radius: 10px;
  border: none; background: rgba(255,255,255,.12); color: var(--branco); cursor: pointer;
  max-width: 200px;
}
.leitor__select option { color: var(--texto); }
.leitor__select--cap { max-width: 150px; }
.leitor__fechar {
  background: rgba(255,255,255,.15); color: var(--branco); border: none;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  flex-shrink: 0; transition: background .2s;
}
.leitor__fechar:hover { background: rgba(255,255,255,.3); }

.leitor__corpo { overflow-y: auto; padding: 30px 34px; }
.leitor__titulo {
  font-size: 2rem; color: var(--azul); margin-bottom: 18px; text-align: center;
  border-bottom: 1px solid var(--creme-escuro); padding-bottom: 14px;
}
.versiculo { margin-bottom: 12px; font-size: 1.08rem; line-height: 1.8; color: var(--texto); }
.versiculo__num {
  font-weight: 700; color: var(--dourado); font-size: .78rem; vertical-align: super;
  margin-right: 6px; font-family: 'Inter', sans-serif;
}

.leitor__rodape {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--creme-escuro); background: var(--creme-escuro);
}
.leitor__rodape .btn { padding: 10px 20px; font-size: .95rem; }
.leitor__rodape .btn:disabled { opacity: .35; cursor: not-allowed; }
.leitor__pos { font-size: .9rem; color: var(--texto-suave); text-align: center; }

@media (max-width: 640px) {
  .leitor__corpo { padding: 22px 20px; }
  .leitor__pos { display: none; }
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--azul); color: var(--branco); padding: 13px 26px; border-radius: 100px;
  box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 50;
  font-size: .95rem;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 640px) {
  .nav { padding: 18px 0; }
  .nav__brand { font-size: 1.25rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
  .nav__toggle { display: flex; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

  /* Menu: painel de fundo SÓLIDO, bem visível, acima de tudo */
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 6px;
    background: #16203a; border: 1px solid rgba(201,162,75,.35);
    border-radius: 14px; padding: 10px; margin-top: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .6); z-index: 50;
  }
  .nav__links.is-aberto { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block; padding: 14px 16px; border-radius: 10px; opacity: 1;
    background: rgba(255,255,255,.06); font-size: 1.05rem; text-shadow: none;
  }
  .nav__links a:hover, .nav__links a:active { background: rgba(201,162,75,.25); }

  /* Capa: mostrar a IMAGEM INTEIRA (sem cortar as laterais/crianças) */
  .hero { min-height: 86vh; background-size: contain; background-position: center top; }
  .hero__overlay {
    background: linear-gradient(to bottom,
      rgba(20,28,48,0.34) 0%, rgba(20,28,48,0.42) 42%, rgba(20,28,48,0.94) 100%);
  }
  .hero__content { justify-content: flex-end; padding: 24px 20px 56px; }
  .hero__versiculo { padding: 24px 22px 20px; }

  .section { padding: 64px 0; }
  .card-dia { padding: 36px 24px; }
}
