/*
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.0
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: #E5E7EB;
  background-color: #020617;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ========================================
   CSS VARIABLES (COLOR SYSTEM)
======================================== */
:root {
  /* Backgrounds */
  --bg-primary: #020617;
  --bg-section-dark: #0B1120;
  --bg-section-light: #F9FAFB;
  --bg-card: #111827;
  --bg-card-hover: #1F2937;
  
  /* Colors */
  --color-primary: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-accent: #FFFFFF;
  --color-accent-hover: #E5E7EB;
  
  /* Text */
  --text-primary: #E5E7EB;
  --text-secondary: #9CA3AF;
  --text-dark: #111827;
  --text-muted: #6B7280;
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(250, 204, 21, 0.3);
  
  /* 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;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.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); }
}

/* ========================================
   TYPOGRAPHY
======================================== */
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;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

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

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

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

/* Mobile Menu Button */
.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;
}

/* Mobile Menu */
.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-accent);
}

/* ========================================
   BUTTONS
======================================== */
.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.3s ease;
  border: none;
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.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(250, 204, 21, 0.1);
  color: var(--color-accent);
  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.3s ease;
}

.card:hover {
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-ebook {
  transition: transform 0.3s ease, box-shadow 0.3s 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;
}

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

/* ========================================
   SECTIONS
======================================== */
.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-dark);
}

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

.section-light .card {
  background: white;
  border-color: #E5E7EB;
}

.section-light .badge {
  background: rgba(29, 78, 216, 0.1);
  color: var(--color-primary);
  border-color: rgba(29, 78, 216, 0.3);
}

.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 SECTION
======================================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-section-dark));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.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;
}

.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.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.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);
}

/* ========================================
   ABOUT SECTION
======================================== */
.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.3s 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;
}

/* ========================================
   MESSAGES SECTION (GRID)
======================================== */
.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: 48px;
  height: 48px;
  background: rgba(250, 204, 21, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

/* ========================================
   EBD SECTION
======================================== */
.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;
}

.ebd-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   EBOOKS SECTION
======================================== */
.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;
  position: relative;
  z-index: 10;
}

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

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

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

/* ========================================
   CONTACT SECTION
======================================== */
.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: 48px;
  height: 48px;
  background: rgba(250, 204, 21, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

.contact-info a {
  color: var(--color-accent);
  transition: opacity 0.3s ease;
}

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

/* Social Links */
.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.3s ease;
}

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

.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-accent);
  transition: opacity 0.3s ease;
}

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

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  left: 1.25rem;
  z-index: 999;
  transition: transform 0.3s ease;
}

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

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

/* ========================================
   404 PAGE
======================================== */
.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;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@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;
  }
}
