/*
Theme Name: Pr. Wanderson Silva
Theme URI: https://pastorwandersonsilva.com
Author: ZeusAi
Author URI: https://zeusai.services/
Description: Tema profissional para o ministério do Pr. Wanderson Silva - Ensino Bíblico, EBD e Formação de Líderes
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pr-wanderson-silva
Tags: dark, one-column, custom-menu, featured-images
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #9CA3AF;                 /* texto padrão mais suave */
  background-color: #020617;      /* fundo geral */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* links padrão em azul */
a {
  color: #60A5FA;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93C5FD;
}

ul, ol {
  list-style: none;
}

/* ========================================
   CSS VARIABLES (COLOR SYSTEM)
======================================== */
:root {
  /* Backgrounds */
  --bg-primary: #020617;
  --bg-section-dark: #020617;
  --bg-section-light: #020617;
  --bg-card: #0B1120;
  --bg-card-hover: #111827;

  /* Azul padrão */
  --color-primary: #2563EB;
  --color-primary-light: #60A5FA;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;

  /* Textos */
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-dark: #111827;
  --text-muted: #6B7280;

  /* Bordas */
  --border-color: rgba(148, 163, 184, 0.25);
  --border-accent: rgba(37, 99, 235, 0.45);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem 1rem;
}

/* ========================================
   UTILITÁRIOS
======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   TIPOGRAFIA
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--text-muted); }

/* ========================================
   HEADER
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* LOGO TOPO – “Pr. Wanderson Silva” TODO BRANCO */
.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-logo a {
  color: var(--text-primary);
}

.site-logo span {
  color: var(--text-primary);
}

/* MENU */
.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 2rem;
  }
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary-light);
}

/* Botão menu mobile */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease;
}

/* Menu mobile */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover {
  color: var(--color-primary-light);
}

/* ========================================
   BOTÕES
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-light);
  border: 1px solid var(--color-primary-light);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--color-accent);
}

/* ========================================
   BADGES
======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.16);
  color: var(--color-primary-light);
  border: 1px solid var(--border-accent);
}

/* ========================================
   CARDS
======================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.card-ebook {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-ebook:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   SEÇÕES
======================================== */
.section {
  padding: var(--section-padding);
}

.section-dark {
  background: var(--bg-section-dark);
}

.section-light {
  background: var(--bg-section-light);
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-primary);
}

.section-light p {
  color: var(--text-secondary);
}

.section-light .card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.section-light .badge {
  background: rgba(37, 99, 235, 0.16);
  color: var(--color-primary-light);
  border-color: var(--border-accent);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   HERO
======================================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top left, #1E293B 0%, #020617 45%, #000 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.25) 0%, transparent 55%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

/* mantém o destaque azul no nome do hero */
.hero-text h1 span {
  color: var(--color-accent);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
}

/* ========================================
   SOBRE
======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: auto 1fr;
  }
}

.about-image img {
  width: 100%;
  max-width: 340px;
  height: 380px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.about-text h3 {
  margin-bottom: 1rem;
}

/* Accordion */
.accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--color-accent);
}

.accordion-trigger svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-content-inner {
  padding: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ========================================
   MENSAGENS
======================================== */
.messages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .messages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .messages-grid { grid-template-columns: repeat(3, 1fr); }
}

.message-card .card-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary-light);
}

/* ========================================
   EBD & FORMAÇÃO BÍBLICA
======================================== */
.ebd-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ebd-content { grid-template-columns: 1fr 1fr; }
}

.ebd-image img {
  width: 100%;
  max-width: 380px;
  height: 340px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 1.5rem;
}

.ebd-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ebd-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Ícones da EBD */
.ebd-feature-icon,
.ebd-feature img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   E-BOOKS
======================================== */
.ebooks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ebooks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ebooks-grid { grid-template-columns: repeat(3, 1fr); }
}

.ebook-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ebook-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ebook-card .btn {
  margin-top: auto;
}

/* ========================================
   AGENDA
======================================== */
.schedule-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.schedule-content h2 {
  margin-bottom: 1rem;
}

.schedule-content > p {
  margin-bottom: 2rem;
}

/* ========================================
   CONTATO
======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
}

.contact-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-info p {
  margin: 0;
  font-size: 0.875rem;
}

.contact-info a {
  color: var(--color-primary-light);
  transition: opacity 0.2s ease;
}

.contact-info a:hover {
  opacity: 0.8;
}

/* Redes sociais */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-primary-light);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer a {
  color: var(--color-primary-light);
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.8;
}

/* ========================================
   BOTÃO WHATSAPP
======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  left: 1.25rem;
  z-index: 999;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float img {
  width: 60px;
  height: auto;
}

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

.page-404 h1 {
  font-size: 6rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.page-404 p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 767px) {
  :root {
    --section-padding: 3rem 1rem;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-image img {
    max-width: 280px;
    height: 280px;
  }

  .about-image img {
    max-width: 260px;
    height: 300px;
  }

  .ebd-image img {
    max-width: 280px;
    height: 260px;
  }
}
/* Título principal do hero todo branco */
.hero-text h1 span {
  color: #F9FAFB; /* branco */
}
