/* =============================================
   COMUNIDADE NOVA CRIATURA — style.css
   Paleta: #0A1F44 | #0F2E6E | #3B82F6 | #fff
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-deep:   #0A1F44;
  --blue-mid:    #0F2E6E;
  --blue-light:  #3B82F6;
  --blue-glow:   #60A5FA;
  --white:       #FFFFFF;
  --white-soft:  rgba(255,255,255,0.85);
  --white-dim:   rgba(255,255,255,0.12);
  --dark-overlay: rgba(0,0,0,0.55);
  --radius:      12px;
  --transition:  0.3s ease;
  --shadow:      0 8px 32px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #0F2E6E 0%, #000C24 100%);
  color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- ACCESSIBILITY ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.55);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 11px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--white);
  color: var(--blue-deep);
  transform: translateY(-2px);
}

.btn-outline-sm {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--blue-light);
  color: var(--blue-light);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.8rem; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-sm:hover { background: var(--blue-light); color: var(--white); }

/* ---- EYEBROW / DIVIDER ---- */
.eyebrow {
  display: block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3px; color: var(--blue-light);
  text-transform: uppercase; margin-bottom: 8px;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: 1px;
}
.divider {
  width: 60px; height: 4px;
  background: var(--blue-light);
  border-radius: 2px;
  margin: 16px auto 0;
}

.flex-between { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 14px 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(10,31,68,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
}

.logo { height: 56px; width: auto; }
.logo-link { flex-shrink: 0; }

.nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  font-size: 0.85rem; font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav a:hover { background: var(--white-dim); color: var(--blue-glow); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 16px; }

.btn-donate { padding: 10px 20px; font-size: 0.82rem; }

.social-top {
  display: flex; gap: 12px; margin-left: 8px;
}
.social-top a {
  font-size: 1rem; color: var(--white-soft);
  transition: color var(--transition);
}
.social-top a:hover { color: var(--blue-light); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO / SLIDER
   ============================================= */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.slides-wrapper { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; inset: 0; background: var(--dark-overlay); }

.hero-content {
  position: relative; z-index: 2;
  text-align: left; max-width: 700px;
  padding: 0 24px;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  display: block;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 5px; color: var(--blue-glow);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900; line-height: 0.9;
  letter-spacing: -2px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300; line-height: 1.7;
  color: var(--white-soft);
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.slider-dots { display: flex; gap: 10px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--blue-light); transform: scale(1.3); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--blue-light); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* =============================================
   SECTIONS — BASE
   ============================================= */
.section { padding: 100px 0; }
.section.dark { background: rgba(0,0,0,0.35); }

/* =============================================
   NOSSA ESSÊNCIA
   ============================================= */
.essencia { background: rgba(15,46,110,0.4); }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }

.essencia-card {
  background: var(--white-dim);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.essencia-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(59,130,246,0.2);
  border: 2px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--blue-light);
  margin: 0 auto 20px;
}

.essencia-card h3 {
  font-size: 1rem; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 12px;
  color: var(--blue-glow);
}
.essencia-card p, .essencia-card ul { font-size: 0.9rem; line-height: 1.7; color: var(--white-soft); }
.essencia-card ul { text-align: left; padding-left: 4px; }
.essencia-card ul li { padding: 3px 0; }
.essencia-card ul li::before { content: "• "; color: var(--blue-light); }

/* =============================================
   SOBRE
   ============================================= */
.sobre-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.sobre-text .eyebrow { margin-bottom: 12px; }
.sobre-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 20px; }
.sobre-text p { font-size: 0.95rem; line-height: 1.8; color: var(--white-soft); margin-bottom: 32px; }
.sobre-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; height: 380px; }

/* =============================================
   EVENTOS
   ============================================= */
.event-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.event-img {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.event-date {
  position: absolute; top: 16px; left: 16px;
  background: var(--blue-light);
  border-radius: 8px; padding: 8px 14px;
  text-align: center; line-height: 1.1;
}
.event-date .day { display: block; font-size: 1.4rem; font-weight: 800; }
.event-date .month { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; }

.event-body { padding: 24px; }
.event-body h3 { font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.event-meta { font-size: 0.8rem; color: var(--blue-glow); margin-bottom: 10px; }
.event-body p { font-size: 0.85rem; line-height: 1.6; color: var(--white-soft); margin-bottom: 16px; }
.event-link { font-size: 0.82rem; font-weight: 600; color: var(--blue-light); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.event-link:hover { gap: 10px; }

/* =============================================
   SOCIAL
   ============================================= */
.social-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.social-text .eyebrow { margin-bottom: 12px; }
.social-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 20px; }
.social-text p { font-size: 0.95rem; line-height: 1.8; color: var(--white-soft); margin-bottom: 32px; }

.social-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.social-item { text-align: center; }
.social-item .icon-circle { margin: 0 auto 12px; }
.social-item h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; color: var(--blue-glow); }
.social-item p { font-size: 0.82rem; line-height: 1.6; color: var(--white-soft); }

/* =============================================
   INFO SECTION (Horários / Mapa / Contato)
   ============================================= */
.info-section { background: rgba(10,31,68,0.6); }
.grid-3-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }

.info-block h3 {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
  color: var(--blue-glow); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}

.culto-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.culto-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light); font-size: 0.9rem; flex-shrink: 0;
}
.culto-item strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.culto-item span { font-size: 0.8rem; color: var(--white-soft); }

.map-placeholder { margin-bottom: 16px; border-radius: 8px; overflow: hidden; }
.address { font-size: 0.82rem; line-height: 1.6; color: var(--white-soft); margin-bottom: 16px; }
.address i { color: var(--blue-light); margin-right: 6px; }

.contact-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--white-soft);
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-list li i { color: var(--blue-light); width: 16px; text-align: center; }

/* =============================================
   CTA / DOAÇÃO / NEWSLETTER
   ============================================= */
.cta-section { background: rgba(0,0,0,0.5); }
.cta-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center;
}
.cta-block h2 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 800; margin-bottom: 12px; }
.cta-block p { font-size: 0.9rem; line-height: 1.7; color: var(--white-soft); margin-bottom: 24px; }
.cta-divider { width: 1px; height: 120px; background: rgba(255,255,255,0.15); }

.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 12px 16px; color: var(--white);
  font-family: inherit; font-size: 0.88rem;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--blue-light); }

/* =============================================
   MEMBROS
   ============================================= */
.membros { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(10,31,68,0.8)); }
.membros-inner { display: flex; align-items: center; justify-content: center; }
.membros-text { text-align: center; max-width: 600px; }
.membros-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.membros-text p { font-size: 0.95rem; line-height: 1.8; color: var(--white-soft); margin-bottom: 32px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #000; padding: 64px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { height: 56px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--blue-light); color: var(--white); }

.footer-links h4, .footer-info h4 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  color: var(--white); margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--blue-light); }

.footer-info p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 8px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
  max-width: 1200px; margin: 0 auto;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-light);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(59,130,246,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .social-top { display: none; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(10,31,68,0.98);
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 8px; transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  }
  .nav.open { right: 0; }
  .nav a { font-size: 1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .hamburger { display: flex; }
  .btn-donate { display: none; }

  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  .slider-dots { justify-content: center; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-3-info { grid-template-columns: 1fr; }
  .sobre-inner { grid-template-columns: 1fr; }
  .social-inner { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .flex-between { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.5rem; }
  .section { padding: 72px 0; }
  .slider-arrow { display: none; }
}

/* ---- Active nav link ---- */
.nav a.active-link {
  color: var(--blue-glow);
  background: var(--white-dim);
}

/* ── Logo fallback (quando logo.png não existe) ── */
.logo-text-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
}
.logo-text-fallback span {
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}

/* ═══════════════════════════════════════════
   RESPONSIVIDADE APRIMORADA — SITE PÚBLICO
═══════════════════════════════════════════ */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .sobre-inner    { grid-template-columns: 1fr; gap: 40px; }
  .sobre-img img  { height: 280px; }
  .social-inner   { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner      { grid-template-columns: 1fr; }
  .cta-divider    { display: none; }
  .footer-inner   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3         { grid-template-columns: 1fr 1fr; }
  .grid-3-info    { grid-template-columns: 1fr; gap: 32px; }
  .social-icons   { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile grande (max 768px) ── */
@media (max-width: 768px) {
  /* Header */
  .header { padding: 10px 0; }
  .logo   { height: 44px; }
  .social-top { display: none; }
  .btn-donate { display: none; }

  /* Hero */
  .hero-content { text-align: center; padding: 0 16px; }
  .hero-title   { font-size: clamp(2.8rem, 12vw, 5rem); }
  .hero-buttons { justify-content: center; }
  .slider-dots  { justify-content: center; }
  .slider-arrow { display: none; }

  /* Sections */
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.5rem; }

  /* Grid */
  .grid-3       { grid-template-columns: 1fr; }
  .grid-3-info  { grid-template-columns: 1fr; }
  .social-icons { grid-template-columns: 1fr 1fr; }

  /* Sobre */
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-img   { display: none; }

  /* Eventos */
  .flex-between { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* CTA */
  .cta-inner   { grid-template-columns: 1fr; gap: 32px; }
  .cta-divider { display: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: unset; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Membros */
  .membros-inner { padding: 0 16px; }
}

/* ── Mobile pequeno (max 480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.8rem; }
  .section    { padding: 48px 0; }
  .grid-3     { grid-template-columns: 1fr; }
  .social-icons { grid-template-columns: 1fr 1fr; }
  .essencia-card { padding: 24px 20px; }
  .event-card .event-img { height: 160px; }
  .info-block { padding: 0 4px; }
  .culto-item { gap: 10px; }
  .footer-logo { height: 44px; }
}
