/* ==========================================================================
   COMUNIDADE NA GLÓRIA — ESTILOS INSTITUCIONAIS EDITORIAIS
   "Um lugar para recomeçar."
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-white: #FFFFFF;
  --bg-offwhite: #F9F8F6;
  --bg-dark: #121212;
  --bg-dark-footer: #0A0A0A;
  
  --text-dark: #121212;
  --text-body: #333333;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  
  --gold-primary: #C5A059;
  --gold-accent: #D4AF37;
  --gold-light: #E6C687;
  --gold-border: rgba(197, 160, 89, 0.4);
  --gold-hover: #B38E46;
  
  --whatsapp-green: #25D366;

  --container-max: 1240px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-body);
  font-size: 1.125rem;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading-h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.heading-h2 {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.heading-h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
}

.label-gold {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  display: inline-block;
  margin-bottom: 1.25rem;
}

.text-editorial {
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.85;
}

/* Layout & Containers */
.section-padding {
  padding-top: clamp(4.5rem, 9vw, 9rem);
  padding-bottom: clamp(4.5rem, 9vw, 9rem);
}

.container-custom {
  width: 90%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.container-narrow {
  width: 88%;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-gold,
.btn-dark,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--gold-primary);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.125rem 2.25rem;
  border: 1px solid var(--gold-primary);
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-gold:hover,
.btn-dark:hover,
.btn-whatsapp:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.35);
}

.link-editorial {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1.5px solid var(--gold-primary);
  transition: var(--transition-smooth);
}

.link-editorial:hover {
  color: var(--gold-hover);
  border-bottom-color: var(--gold-hover);
  transform: translateX(4px);
}

/* Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: var(--bg-white);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  height: 76px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  height: 100%;
}

.header-logo-horizontal {
  display: block;
  height: 52px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.site-header.scrolled .header-logo-horizontal {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem 1.5rem;
}

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

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--text-dark);
}

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

/* 1. Hero Photographic Slider (SEM ESPAÇO SOBRE OU ABAIXO DO MENU) */
.hero-slider-section {
  padding: 0;
  margin: 0;
  margin-top: 90px; /* Alinhado exatamente colado abaixo do menu de 90px */
  position: relative;
  overflow: hidden;
  background-color: var(--bg-white);
}

.hero-slider-container {
  width: 100%;
  height: clamp(65vh, 78vh, 85vh);
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  animation: kenBurnsSlow 12s ease-in-out infinite alternate;
}

@keyframes kenBurnsSlow {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.06);
  }
}

/* 2. Apresentação & Mini Galeria Slider */
.presentation-section {
  text-align: center;
}

.presentation-actions {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.mini-gallery-wrapper {
  margin-top: 3.5rem;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.mini-gallery-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.mini-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.mini-slide.active {
  opacity: 1;
}

.mini-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mini-dot.active {
  background-color: var(--gold-primary);
  width: 24px;
  border-radius: 4px;
}

/* 3. Cultos */
.cultos-section {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.88) 0%, rgba(14, 14, 14, 0.88) 100%), url('../images/templo-auditorio.png') center/cover no-repeat;
  color: #FFFFFF;
  text-align: center;
}

.cultos-section .heading-h2 {
  color: var(--gold-accent);
}

.cultos-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 3.5rem 0;
  flex-wrap: wrap;
}

.culto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.culto-day {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.culto-time {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.culto-divider {
  width: 1px;
  height: 65px;
  background-color: var(--gold-primary);
  opacity: 0.6;
}

.cultos-address {
  font-size: 1.125rem;
  color: #E0E0E0;
  margin-bottom: 2.5rem;
}

/* 4 & 5 Editorial Sections (Comunidade / Palavra) */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.editorial-grid.reversed {
  grid-template-columns: 0.85fr 1.15fr;
}

.editorial-img-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.editorial-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-img-wrap:hover .editorial-img {
  transform: scale(1.02);
}

.editorial-content {
  padding: 1rem 0;
}

.quote-box {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-top: 0.75rem;
  display: block;
}

/* 6. Liderança */
.lideranca-section {
  background-color: var(--bg-offwhite);
}

/* 7. Projeto Internacional */
.missoes-section {
  background-color: var(--bg-white);
}

/* 8. Grupo da Igreja */
.grupo-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.grupo-section .heading-h2 {
  color: #FFFFFF;
}

.grupo-section .text-editorial {
  color: #A0A0A0;
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
}

.grupo-symbol {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

/* 9. Localização */
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.info-block {
  margin-bottom: 2rem;
}

.info-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.info-detail {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.7;
}

.map-wrapper {
  width: 100%;
  height: 440px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Page Hero Banner */
.page-hero-banner {
  position: relative;
  width: 100%;
  height: clamp(340px, 45vh, 480px);
  margin-top: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.page-hero-content .label-gold {
  color: var(--gold-accent);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: #E0E0E0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* 10. Footer */
.site-footer {
  background-color: var(--bg-dark-footer);
  color: #888888;
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
}

.footer-logo {
  max-width: 380px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-primary);
  margin-bottom: 2.5rem;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.footer-nav-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CCCCCC;
}

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

.footer-contact-info {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  color: #AAAAAA;
}

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

/* Redes Sociais com Ícones */
.social-icons-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: #666666;
}

/* Form Styling */
.minimal-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 580px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--bg-offwhite);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: auto;
    z-index: 10;
  }

  /* LOGOTIPO EXACTAMENTE CENTRALIZADO 2D E SEM CORTAR */
  .header-logo-horizontal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 42px;
    max-width: 68vw;
    object-fit: contain;
  }

  .editorial-grid,
  .editorial-grid.reversed,
  .localizacao-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cultos-line {
    flex-direction: column;
    gap: 2rem;
  }

  .culto-divider {
    width: 60px;
    height: 1px;
  }

  .presentation-actions {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .mini-gallery-container {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .site-header {
    height: 76px;
  }

  .site-header.scrolled {
    height: 70px;
  }

  .header-logo-horizontal {
    height: 38px;
    max-width: 65vw;
  }

  .hero-slider-section, .page-hero-banner {
    margin-top: 76px;
  }

  .hero-slider-container {
    height: 55vh;
  }

  .footer-contact-info {
    flex-direction: column;
    gap: 1.25rem;
  }
}
