*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #263a8c; --blue: #4058a4; --accent: #3e73c1;
  --gold: #ffbf00; --gold-light: #ffd24d; --cream: #f4f6fb;
  --text: #1a2150; --muted: #6b7a99; --white: #ffffff;
}
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--text); font-weight: 300; overflow-x: hidden; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(38,58,140,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,191,0,0.15);
  animation: fadeDown .6s ease both;
}
.nav-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; display: block; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-logo-name { font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 600; color: #fff; letter-spacing: .13em; text-transform: uppercase; }
.nav-logo-sub { font-family: 'Poppins', sans-serif; font-size: .6rem; font-weight: 400; color: #ffffff; letter-spacing: .13em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer; z-index: 200;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 0;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(255,191,0,0.1); border-color: rgba(255,191,0,0.3); }
.nav-toggle .bar {
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.85);
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
}
.nav-toggle.active { background: rgba(255,191,0,0.1); border-color: rgba(255,191,0,0.3); }
.nav-toggle.active .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* HERO SIMPLES */
.page-hero {
  min-height: 40vh;
  background: linear-gradient(135deg, #1a2a6e 0%, #263a8c 40%, #3e73c1 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,191,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,191,0,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--cream); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero-label {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .8rem;
  opacity: 0; animation: fadeUp .8s .2s ease both;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300; color: var(--white); line-height: 1.1;
  opacity: 0; animation: fadeUp .8s .35s ease both;
}
.page-hero-title em { color: var(--gold-light); font-style: italic; }
.page-hero-sub {
  font-size: .88rem; color: rgba(255,255,255,0.5);
  margin-top: 1rem; letter-spacing: .1em;
  opacity: 0; animation: fadeUp .8s .5s ease both;
}

/* CONTEÚDO */
.container { max-width: 1100px; margin: 0 auto; }
section { padding: 6rem 2rem; }
.section-label {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.15; color: var(--navy);
}
.section-title em { font-style: italic; color: var(--accent); }
.section-line { width: 40px; height: 2px; background: var(--accent); margin: 1.2rem 0 2rem; }

#novo { background: var(--cream); }
.novo-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.novo-steps { display: flex; flex-direction: column; gap: 1.8rem; }
.novo-step { display: flex; gap: 1.2rem; align-items: flex-start; }
.novo-step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400;
}
.novo-step-title { font-size: .9rem; font-weight: 500; color: var(--navy); margin-bottom: .3rem; letter-spacing: .03em; }
.novo-step-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.novo-cremos {
  background: linear-gradient(135deg, #263a8c, #4058a4);
  padding: 3rem; position: relative; overflow: hidden;
}
.novo-cremos::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,191,0,0.05);
}
.novo-cremos-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--white); font-weight: 300;
  margin-bottom: 1.5rem; letter-spacing: .02em;
}
.novo-cremos ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.novo-cremos li {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .88rem; color: rgba(255,255,255,0.78); line-height: 1.6;
}
.novo-cremos li::before {
  content: '✦'; color: var(--gold); font-size: .6rem;
  margin-top: .35rem; flex-shrink: 0;
}

/* CTA */
.novo-cta {
  background: linear-gradient(160deg, #4058a4 0%, #263a8c 100%);
  text-align: center; padding: 5rem 2rem;
}
.novo-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white); font-weight: 300; margin-bottom: 1rem;
}
.novo-cta-sub { color: rgba(255,255,255,0.55); font-size: .9rem; max-width: 420px; margin: 0 auto 2.5rem; line-height: 1.7; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #25D366; color: #fff; padding: 1rem 2.5rem;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; transition: background .2s;
  font-family: 'Jost', sans-serif;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-back {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; color: rgba(255,255,255,0.4);
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; transition: color .2s;
}
.btn-back:hover { color: var(--gold); }

/* FOOTER */
footer {
  background: #111a4a; padding: 2rem;
  text-align: center; border-top: 1px solid rgba(255,191,0,0.12);
}
.footer-copy { font-size: .7rem; color: rgba(255,255,255,0.2); letter-spacing: .08em; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) { nav { padding: 1rem 2rem; } .nav-links { gap: 1.4rem; } }
@media (max-width: 768px) {
  nav {
    padding: .7rem 1rem;
    flex-wrap: wrap;
    gap: .4rem;
  }
  .nav-logo img { height: 34px; }
  .nav-logo-text { display: none; }
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    list-style: none;
    justify-content: flex-end;
    flex: 1;
  }
  .nav-links a {
    font-size: .6rem;
    letter-spacing: .08em;
    padding: .3rem .5rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
  }
  .nav-links a::after { display: none; }
  .nav-link-novo {
    color: var(--gold) !important;
    font-weight: 600;
    border: 1px solid rgba(255,191,0,0.4);
    border-radius: 3px;
    padding: .3rem .6rem !important;
  }

  section { padding: 4rem 1.2rem; }
  .sobre-layout, .local-layout, .novo-layout, .oracao-layout { grid-template-columns: 1fr; gap: 2rem; }
  .sobre-verse-block { order: -1; }
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .galeria-item:first-child { grid-column: span 2; aspect-ratio: 4/3; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-social { justify-content: center; }
  .sobre-stat-row { justify-content: center; }
  .novo-cremos { order: -1; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .ministerios-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  nav { padding: .6rem .8rem; gap: .3rem; }
  .nav-logo img { height: 28px; }
  .nav-logo-text { display: none; }
  .nav-links { gap: .1rem; }
  .nav-links a { font-size: .55rem; padding: .25rem .4rem; letter-spacing: .05em; }
  .nav-link-novo { padding: .25rem .5rem !important; }
}

/* ── BANNER DE COOKIES ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #0d1640;
  border-top: 1px solid rgba(255,191,0,0.2);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  animation: fadeUp .4s ease both;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
#cookie-banner p {
  font-size: .8rem; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin: 0; flex: 1; min-width: 200px;
}
#cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-btn {
  padding: .6rem 1.4rem;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; cursor: pointer; border: none;
  font-family: 'Jost', sans-serif; white-space: nowrap;
  transition: opacity .2s;
}
.cookie-btn-accept { background: var(--gold); color: var(--navy); }
.cookie-btn-reject { background: transparent; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15); }
.cookie-btn:hover { opacity: .85; }

/* Landscape: smartphones */
@media (orientation: landscape) and (max-height: 500px) {
  .nav-logo img { height: 26px; }
  .nav-logo-name { font-size: .62rem; }
  .nav-logo-sub { font-size: .42rem; }
}
/* Landscape: tablets */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 800px) {
  .nav-logo-name { font-size: .72rem; }
  .nav-logo-sub { font-size: .48rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   IMMERSIVE ENHANCEMENTS — SOU NOVO
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── NAV: shrink on scroll ── */
nav.scrolled {
  padding-top: .5rem; padding-bottom: .5rem;
  background: rgba(20,32,80,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
nav.scrolled .nav-logo img { height: 34px; }

/* ── HERO: canvas particles ── */
.page-hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.5;
}
.page-hero-label,
.page-hero-title,
.page-hero-sub { position: relative; z-index: 1; }

/* ── HERO: glow ── */
@keyframes heroGlowSouNovo {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.page-hero .hero-glow {
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,191,0,0.07) 0%, transparent 70%);
  top: 25%; left: 50%; transform: translateX(-50%);
  animation: heroGlowSouNovo 5s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}

/* ── STEP NUMBERS: enhanced ── */
.novo-step-num {
  position: relative;
  transition: background .3s, transform .3s;
}
.novo-step:hover .novo-step-num {
  background: var(--accent);
  transform: scale(1.08);
}

/* ── STEPS: staggered entrance ── */
.novo-steps .novo-step:nth-child(1) { transition-delay: 0s; }
.novo-steps .novo-step:nth-child(2) { transition-delay: .1s; }
.novo-steps .novo-step:nth-child(3) { transition-delay: .2s; }
.novo-steps .novo-step:nth-child(4) { transition-delay: .3s; }

/* ── CREMOS: enhanced list items ── */
.novo-cremos li {
  transition: transform .25s, color .25s;
}
.novo-cremos li:hover {
  transform: translateX(6px);
  color: rgba(255,255,255,0.95);
}

/* ── CTA: animated background ── */
.novo-cta {
  position: relative; overflow: hidden;
}
.novo-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,191,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,191,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.novo-cta::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,191,0,0.06) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.novo-cta-title,
.novo-cta-sub,
.novo-cta .btn-whatsapp,
.novo-cta .btn-back { position: relative; z-index: 1; }

/* ── WHATSAPP: shine effect ── */
.btn-whatsapp {
  position: relative; overflow: hidden;
}
.btn-whatsapp::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.btn-whatsapp:hover::after {
  animation: btnShine .6s ease;
}
@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ── PAGE SMOOTH LOAD ── */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .5s ease both; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px;
  background: var(--navy); color: var(--gold);
  border: 1px solid rgba(255,191,0,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .25s;
  transform: translateY(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,191,0,0.25);
}
