/* =====================================================
   SITE EDITÁVEL - IGREJA
   CSS Principal v1.0
   ===================================================== */

:root {
  --primary: #6b21a8;
  --secondary: #7c3aed;
  --primary-light: #9333ea;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light-bg: #f8f5ff;
  --border: #e9ecef;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(107, 33, 168, 0.15);
  --transition: all 0.3s ease;
  --font-main: 'Poppins', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-main);
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { transition: var(--transition); }

/* ===== NAVBAR ===== */
#mainNav {
  background: rgba(26, 0, 51, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  transition: var(--transition);
}
#mainNav.scrolled {
  background: rgba(26, 0, 51, 0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 8px 0;
}
.navbar-brand .church-name-nav {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 6px;
  position: relative;
}
.navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}
.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  display: inline-block;
}
.btn-nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.4);
}

/* ===== BANNER AO VIVO ===== */
.live-banner {
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; }
.heroSwiper { width: 100%; height: 85vh; min-height: 500px; }
.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(26,0,51,0.75), rgba(107,33,168,0.5));
}
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}
.slide-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  animation: slideUp 0.6s ease;
}
.slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease;
}
.btn-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  animation: slideUp 1s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-hero:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107,33,168,0.5);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.swiper-button-prev,
.swiper-button-next {
  color: white !important;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 45px !important;
  height: 45px !important;
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 18px !important; }

/* Hero padrão */
.hero-default {
  min-height: 60vh;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
}

/* ===== SEÇÃO GENÉRICA ===== */
.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle, .section-text {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-header { margin-bottom: 50px; }

/* Botões customizados */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-custom:hover {
  color: white;
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 11px 28px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: white;
}

/* ===== VERSÍCULO DO DIA ===== */
.verse-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 50px 0;
}
.verse-card { color: white; }
.verse-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.8;
}
.verse-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  margin: 0 auto 15px;
  max-width: 700px;
  font-weight: 300;
}
.verse-ref {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  font-style: normal;
}

/* ===== BANNER AO VIVO NA HOME ===== */
.live-section { background: #fff5f5; }
.live-banner-card {
  background: white;
  border: 2px solid #dc3545;
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.live-indicator { font-weight: 700; color: #dc3545; }

/* ===== BEM-VINDO ===== */
.welcome-section { background: var(--light-bg); }
.mvv-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.mvv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.mvv-icon {
  width: 45px; height: 45px;
  background: var(--light-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.mvv-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 1rem; }
.mvv-card p { color: var(--gray); font-size: 0.875rem; margin: 0; }
.mvv-values { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.mvv-values h5, .mvv-values p { color: white; }
.mvv-values .mvv-icon { background: rgba(255,255,255,0.2); color: white; }

/* ===== EVENTOS ===== */
.events-section { background: white; }
.event-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.event-image { position: relative; overflow: hidden; height: 200px; }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.event-card:hover .event-image img { transform: scale(1.05); }
.event-date-badge {
  position: absolute;
  top: 15px; left: 15px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  line-height: 1;
}
.event-date-badge .day { display: block; font-size: 1.5rem; }
.event-date-badge .month { display: block; font-size: 0.7rem; text-transform: uppercase; }
.event-no-image {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.event-date-large { color: white; text-align: center; }
.event-date-large .day { display: block; font-size: 2.5rem; font-weight: 800; }
.event-date-large .month { display: block; font-size: 0.9rem; text-transform: uppercase; opacity: 0.8; }
.event-body { padding: 20px; }
.event-type { background: var(--light-bg); color: var(--primary); font-size: 0.75rem; margin-bottom: 8px; border-radius: 4px; padding: 3px 8px; }
.event-title { font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--gray); font-size: 0.8rem; margin-bottom: 8px; }
.event-desc { color: var(--gray); font-size: 0.875rem; margin-bottom: 15px; }
.btn-event {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-event:hover { color: white; opacity: 0.9; }

/* ===== SERMÕES ===== */
.sermons-section { background: var(--light-bg); }
.sermon-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
}
.sermon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.sermon-thumbnail {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--dark);
}
.sermon-thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.5s; }
.sermon-card:hover .sermon-thumbnail img { transform: scale(1.05); }
.sermon-no-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
}
.sermon-play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 2.5rem;
  opacity: 0.9;
  background: rgba(0,0,0,0.2);
}
.sermon-body { padding: 20px; }
.sermon-category {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sermon-title { font-weight: 700; color: var(--dark); font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.sermon-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--gray); font-size: 0.8rem; }

/* ===== MINISTÉRIOS ===== */
.ministries-section { background: white; }
.ministry-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  text-align: center;
}
.ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.ministry-image { height: 180px; overflow: hidden; }
.ministry-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ministry-card:hover .ministry-image img { transform: scale(1.05); }
.ministry-icon-wrap {
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
}
.ministry-body { padding: 20px; }
.ministry-body h5 { font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.ministry-body p { color: var(--gray); font-size: 0.875rem; margin-bottom: 10px; }

/* ===== TESTEMUNHOS ===== */
.testimonials-section { background: var(--light-bg); }
.testimonialSwiper { padding-bottom: 40px !important; }
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-quote { font-size: 2rem; color: var(--primary); opacity: 0.3; margin-bottom: 10px; }
.testimonial-text {
  font-style: italic;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-photo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contact-section { background: white; }
.contact-form .form-control {
  border-radius: 8px;
  padding: 12px 16px;
  border-color: var(--border);
  font-size: 0.95rem;
}
.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.15);
}
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-placeholder {
  background: var(--light-bg);
  border-radius: var(--radius);
  height: 400px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer { background: #0d0920; color: rgba(255,255,255,0.75); }
.footer-top { padding: 60px 0; }
.footer-logo { color: white; font-size: 1.3rem; }
.footer-about { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }
.footer-title {
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-schedule { list-style: none; padding: 0; margin: 0; }
.footer-schedule li {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact li i { color: var(--primary-light); margin-top: 3px; width: 16px; }
.footer-contact a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-contact a:hover { color: white; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 20px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 1000;
  transition: var(--transition);
  animation: bounceIn 1s;
}
.whatsapp-float:hover {
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.6);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 42px; height: 42px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* ===== PÁGINAS INTERNAS ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 0 60px;
  margin-top: 0;
}
.page-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-item.active, .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== GALERIA ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(107,33,168,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== CARDS GENÉRICOS ===== */
.content-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ===== FORMULÁRIOS ===== */
.form-section .form-control,
.form-section .form-select {
  border-radius: 8px;
  padding: 12px 16px;
  border-color: #e0e0e0;
}
.form-section .form-control:focus,
.form-section .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.12);
}
.form-section .form-label { font-weight: 600; color: var(--dark); }

/* ===== PÁGINA DE MANUTENÇÃO ===== */
.maintenance-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white;
  text-align: center;
}

/* ===== 404 ===== */
.not-found-page {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}

/* ===== UTILITIES ===== */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-light-primary { background: var(--light-bg) !important; }
.border-primary-custom { border-color: var(--primary) !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .heroSwiper { height: 70vh; min-height: 400px; }
  .slide-title { font-size: 1.8rem; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
  .back-to-top { bottom: 80px; right: 20px; }
  .footer-top { padding: 40px 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 576px) {
  .slide-subtitle { font-size: 0.95rem; }
  .btn-hero { padding: 11px 22px; font-size: 0.95rem; }
  .section-title { font-size: 1.6rem; }
}
