:root{
  --gold: #FFD700;
  --white: #ffffff;
  --text: #2b2b2b;
  --light: #f7f7f7;
  --shadow: 0 10px 32px rgba(0,0,0,.08);
  --radius: 18px;
  --maxw: 1120px;
  --topbar-h: 100px; /* altura do menu */
  --primary-color: #0b5ed7;
  --primary-color-ink: #063a82;
  --blood: #7a0b0b;
}

/* Reset */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* Topbar fixa */
.topbar{
  position: sticky; top: 0; z-index: 999;
  background: linear-gradient(180deg, var(--gold), #fbe46a);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
}
.brand{
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 26px);
  text-decoration: none; color: #6a5300;
  letter-spacing: .2px;
}
.menu{
  margin-left: auto; list-style: none;
  display: flex; gap: 18px; padding: 0;
}
.menu a{
  display: inline-block;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #5a4a00;
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 16px);
  transition: transform .15s ease, background .2s ease;
}
.menu a:hover{ background: rgba(255,255,255,.55); transform: translateY(-1px) }

/* Hamburger (mobile) */
.hamburger{
  display: none; margin-left: auto;
  background: transparent; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 10px;
}
.hamburger span{
  display: block; height: 3px; width: 26px;
  background:#5a4a00; margin:6px auto; transition: .2s;
}

/* Ads */
.ad{
  display: grid; place-items: center;
  padding: 12px 0; background: var(--light);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.ad-footer{
  border-top: 1px solid rgba(0,0,0,.05); border-bottom: 0;
}

/* Hero */
.hero{
  min-height: 54vh; display: grid; place-items: center;
  text-align: center; padding: 30px 24px;
  color: #3a2e00;
  /* deixa um fundo padrão, mas o JS vai sobrescrever com a imagem do JSON */
  background: linear-gradient(to bottom, rgba(255,215,0,.35), rgba(255,255,255,1));
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.hero h1{
  font-family: 'Merriweather', serif;
  font-size: clamp(34px, 6vw, 60px);
  margin: 0 0 10px; color: #3a2e00;
}
.hero p{
  font-size: clamp(16px, 3vw, 22px);
  margin: 0; color:#6a5300;
}

/* Countdown destacado em card transparente */
.countdown{
  margin-top: 22px;
  display: inline-block;
  padding: 16px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  font-weight: 800;
  font-size: clamp(20px, 4vw, 32px);
  color: var(--blood);
  text-align: center;
}

/* Main */
#main{ max-width: var(--maxw); margin: 34px auto; padding: 0 18px; }
.card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.2vw, 36px);
  margin-bottom: 30px;            /* + espaço entre módulos */
}
.card + .card{ margin-top: 22px }  /* reforço de respiro */
.card h2{
  font-family: 'Merriweather', serif;
  text-align: center; margin: 0 0 18px; color:#3a2e00;
  font-size: clamp(20px, 3vw, 30px);
}

/* Grids */
.grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}
.simbolo-card{
  background: #fffaf0; border: 1px solid #f7e39a;
  border-radius: 16px; padding: 16px; transition: transform .15s ease, box-shadow .15s ease;
}
.simbolo-card:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.simbolo-card img{
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 12px; margin-bottom: 10px;
}
.simbolo-card h3{ margin: 6px 0 6px; color:#3a2e00; font-size: 20px; }
.gallery-item{
  width: 100%; height: 230px; object-fit: cover;
  border-radius: 14px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover{ transform: scale(1.03); box-shadow: 0 12px 24px rgba(0,0,0,.12); }

/* Rodapé */
.footer{
  text-align: center; padding: 20px 16px 30px;
  background: linear-gradient(180deg, #fff, #fff4b0);
  color: #6a5300; border-top: 1px solid rgba(0,0,0,.05);
}

/* Modal (para o web component) */
.modal{ position: fixed; inset: 0; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.85); opacity:0; visibility:hidden; transition:.25s; z-index:1000; }
.modal.show{ opacity:1; visibility:visible }
.modal-content{ max-width: 86vw; max-height: 86vh; border-radius: 12px; }
.close{ position: absolute; top: 16px; right: 20px; color: #fff; font-size: 36px; font-weight: 700; cursor: pointer; }

/* Botão flutuante WhatsApp */
.wa-float{
  position: fixed; right: 18px; bottom: 18px;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; box-shadow: 0 10px 24px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .15s ease;
  z-index: 1100;
}
.wa-float:hover{ transform: translateY(-2px) }
.wa-float svg{ width: 30px; height: 30px; fill: #fff; }

/* Responsivo */
@media (max-width: 900px){
  .menu{ display:none; position: absolute; top: var(--topbar-h); left: 0; right: 0;
         background: #fff8c6; padding: 12px 14px; border-bottom:1px solid rgba(0,0,0,.06)}
  .menu.open{ display: flex; flex-direction: column; }
  .hamburger{ display: inline-block; }
}

/* Cartaz */
.cartaz{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
}
.cartaz img{
  width: 100%;
  height: auto;
  max-width: 900px;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.cartaz .tema{
  text-align: center; 
  font-weight: 800; 
  color: var(--blood);
  line-height: 1.2;
  font-size: clamp(22px, 4.5vw, 44px);
  padding: 8px 10px;
}

/* Promise Candle Section */
#promessa { text-align: center; }
.promise-form{
  display: grid; grid-template-columns: 1fr; gap: 8px;
  max-width: 520px; margin: 10px auto 0;
}
.input{
  width: 100%; border: 1px solid #e7e7e7; border-radius: 10px;
  padding: 12px 14px; font-size: 15px; outline: none;
}
.input:focus{ border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(11,94,215,.15); }

.candle-container{
  position: relative;
  width: 200px;
  height: 200px;
  margin: 1rem auto 0.25rem;
}
.candle{
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px; opacity: 0; transition: opacity .4s ease-in-out;
}
.candle.active{ opacity: 1; }

.btn{
  padding: 12px 22px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  background-color: var(--primary-color);
  color: #fff; border: none; border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease;
  margin-top: .5rem;
  box-shadow: 0 12px 24px rgba(11,94,215,.22);
}
.btn:hover{ background-color: var(--primary-color-ink); transform: translateY(-1px) }

/* Mensagem após acender */
.promise-message{
  margin-top: .8rem;
  font-style: italic;
  color: var(--primary-color);
  opacity: 0; transition: opacity .4s ease-in-out, max-height .4s ease-in-out;
  max-height: 0; overflow: hidden;
}
.promise-message.show{ opacity: 1; max-height: 200px; }

/* Accordion Section */
.accordion{ max-width: 820px; margin: 0 auto; }
.accordion-item{ border-bottom: 1px solid #e7e7e7; }
.accordion-header{
  background-color: transparent; border: none; width: 100%; text-align: left;
  padding: 1.1rem 1.2rem; font-size: 1.05rem; font-family: 'Merriweather', serif;
  color: var(--primary-color); cursor: pointer; transition: background-color .2s ease;
  position: relative; padding-right: 36px;
}
.accordion-header::after{
  content: '+'; font-size: 1.5rem; color: var(--primary-color);
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  transition: transform .2s ease;
}
.accordion-item.active .accordion-header::after{ content: '−'; }

.accordion-item:hover .accordion-header{ background-color: #eaf2ff; }
.accordion-content{
  max-height: 0; overflow: hidden; transition: max-height .26s ease-out; background: #fdfdfd;
}
.accordion-content p{ padding: 0 1.2rem 1.2rem; margin: 0; }
