/* ============================================
   IDENTIDADE VISUAL GLOBAL - IGREJA JEOVÁ JIREH
   Paleta: Azul Marinho + Vermelho + Branco
   Design: Imponente e Profissional
   ============================================ */

/* === CORE COLORS === */
:root {
  --navy-dark: #0A1628;      /* Azul Marinho Profundo - Fundo Dark */
  --navy-medium: #1a2744;    /* Azul Marinho Médio - Gradientes */
  --navy-light: #2a3b55;    /* Azul Marinho Claro - Cards */
  --red-primary: #DC2626;   /* Vermelho Principal - CTA */
  --red-dark: #B91C1C;      /* Vermelho Escuro - Gradientes */
  --white: #ffffff;         /* Branco - Fundo Light */
  --gray-ice: #F8FAFC;      /* Cinza Gelo - Fundo Páginas Internas */
  --gray-light: #e2e8f0;    /* Cinza Claro - Borders */
  --text-primary: #0A1628;  /* Texto Principal - Azul Marinho */
  --text-secondary: #64748b;/* Texto Secundário - Cinza */
}

/* === RESET E BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* === HEADER GLOBAL === */
.header-global {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.25rem;
}

.header-logo-image {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--navy-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

.nav-link:hover {
  color: var(--red-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botão Login */
.btn-login {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Mobile Menu Button */
.btn-mobile-menu {
  display: none;
  padding: 8px;
  color: var(--navy-dark);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn-mobile-menu:hover {
  background: var(--gray-ice);
}

/* === MOBILE MENU === */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  background: var(--white);
  z-index: 199;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 24px;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  padding: 16px;
  color: var(--navy-dark);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--gray-ice);
  color: var(--red-primary);
}

/* === HERO SECTION (Páginas Internas) === */
.hero-internal {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero-internal-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-internal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-internal-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* === BUTTONS GLOBAIS === */

/* Botão Primário (Vermelho) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Botão Secundário */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--gray-ice);
  transform: translateY(-2px);
}

/* Botão Outline Vermelho */
.btn-outline-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: transparent;
  color: var(--red-primary);
  border: 2px solid var(--red-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

/* === CARDS GLOBAIS === */

/* Base Card */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.card-content {
  padding: 24px;
}

/* Card Image */
.card-image {
  aspect-ratio: 4/3;
  background: var(--gray-ice);
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Card Title */
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

/* Card Description */
.card-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Card Meta */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta-item svg {
  color: var(--red-primary);
  width: 16px;
  height: 16px;
}

/* === FORMS & INPUTS === */

/* Input Base */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

/* Search Input */
.search-input {
  position: relative;
}

.search-input input {
  padding-left: 48px;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

/* === SECTIONS GLOBAIS === */

/* Page Content */
.page-content {
  background: var(--gray-ice);
  padding: 48px 24px;
}

.content-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* === FOOTER GLOBAL === */
.footer-global {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 24px 32px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--red-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* === ANIMAÇÕES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .btn-mobile-menu {
    display: flex;
  }

  .header-actions .btn-login {
    display: none;
  }

  .hero-internal {
    padding: 60px 20px;
  }

  .page-content {
    padding: 32px 20px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline-red {
    width: 100%;
    justify-content: center;
  }
}

/* === UTILITÁRIOS === */
.text-red { color: var(--red-primary); }
.text-navy { color: var(--navy-dark); }
.text-white { color: var(--white); }

.bg-red { background: var(--red-primary); }
.bg-navy { background: var(--navy-dark); }
.bg-white { background: var(--white); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }