/* ===========================
   ADBOC - Design System v2
   Igreja-Mãe da Bahia
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lato:ital,wght@0,300;0,400;0,700;1,300&family=Cinzel:wght@400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --gold:       #B8960C;
  --gold-light: #D4AF37;
  --gold-pale:  #F5EED4;
  --deep:       #1A1A2E;
  --navy:       #16213E;
  --navy-mid:   #0F3460;
  --burgundy:   #6B1A2A;
  --cream:      #FAF7F0;
  --warm-white: #FFFDF8;
  --stone:      #8C7B6B;
  --text:       #2C2C2C;
  --text-light: #5E5E5E;
  --border:     rgba(184,150,12,0.25);
  --shadow-lg:  0 20px 60px rgba(26,26,46,0.18);
  --shadow-md:  0 8px 30px rgba(26,26,46,0.12);
  --shadow-sm:  0 2px 12px rgba(26,26,46,0.08);
  --radius-xl:  20px;
  --radius-lg:  14px;
  --radius-md:  10px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
  font-family: 'Lato', sans-serif; 
  color: var(--text); 
  background: var(--warm-white); 
  line-height: 1.7; 
  overflow-x: hidden; 
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Playfair Display', serif; 
  line-height: 1.2; 
  color: var(--deep); 
}

/* ---- Typography ---- */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--deep);
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
  text-align: center;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 860px; }
.section { padding: 6rem 0; }
.section--sm { padding: 3.5rem 0; }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---- Gold Divider ---- */
.gold-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 0.75rem 0 1.75rem;
}
.gold-divider span { width: 60px; height: 1px; background: var(--gold-light); display: block; }
.gold-divider i { color: var(--gold-light); font-size: 0.85rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  border: none; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn--gold { 
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); 
  color: var(--deep); 
}
.btn--gold:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 30px rgba(212,175,55,0.4); 
}
.btn--outline-gold { 
  background: transparent; 
  color: var(--gold-light); 
  border: 1.5px solid var(--gold-light); 
}
.btn--outline-gold:hover { background: var(--gold-light); color: var(--deep); }
.btn--outline-white { 
  background: transparent; 
  color: #fff; 
  border: 1.5px solid rgba(255,255,255,0.5); 
}
.btn--outline-white:hover { background: rgba(255,255,255,0.12); }
.btn--white { background: #fff; color: var(--deep); }
.btn--white:hover { background: var(--cream); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

/* Top Bar */
.header-top {
  background: var(--deep);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  padding: 0.5rem 0;
}
.header-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.header-top a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.header-top a:hover {
  color: var(--gold-light);
}
.header-top i {
  color: var(--gold-light);
  font-size: 0.75rem;
  margin-right: 0.4rem;
}
.header-social {
  display: flex;
  gap: 1rem;
}
.header-social a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Main Header */
.header-main {
  padding: 1rem 0;
}
.header-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
}
.site-logo__name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.1;
}
.site-logo__tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  line-height: 1.2;
}

/* Navigation */
.main-nav {
  background: rgba(15,52,96,0.95);
  border-top: 1px solid rgba(212,175,55,0.15);
}
.main-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}
.main-nav__item {
  position: relative;
}
.main-nav__link {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}
.main-nav__link i {
  font-size: 0.65rem;
}
.main-nav__link:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.05);
}
.main-nav__link.active {
  color: var(--gold-light);
}

/* Dropdown */
.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.main-nav__item:hover .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav__dropdown a:hover {
  background: var(--cream);
  color: var(--gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--deep) 0%, var(--navy-mid) 50%, var(--burgundy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 2rem;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.15em;
}
.hero__scroll i {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Page Hero (smaller version for internal pages) */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--navy-mid) 60%, var(--deep) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.12) 0%, transparent 60%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin: 0.75rem 0;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--deep), var(--navy-mid));
  padding: 2.5rem 0;
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1rem;
}
.stat {
  text-align: center;
  padding: 1rem;
}
.stat__number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.stat__label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card--gold-border {
  border-top: 3px solid var(--gold-light);
}
.card__body {
  padding: 1.75rem;
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.card__text {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   TAG
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}
.tag--gold {
  background: rgba(212,175,55,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.3);
}
.tag--dark {
  background: var(--deep);
  color: var(--gold-light);
}

/* ============================================================
   VERSE STRIP
   ============================================================ */
.verse-strip {
  background: linear-gradient(135deg, var(--navy-mid), var(--burgundy));
  padding: 3.5rem 0;
  text-align: center;
}
.verse-strip blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  max-width: 750px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}
.verse-strip cite {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep);
  border-top: 1px solid rgba(212,175,55,0.15);
}
.footer-main {
  padding: 5rem 0 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1rem;
}

/* Footer Brand */
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-logo__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.footer-logo__name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.footer-logo__sub {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
}
.footer-about {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.65rem;
}
.footer-social__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social__btn:hover {
  background: var(--gold-light);
  color: var(--deep);
  border-color: var(--gold-light);
}

/* Footer Columns */
.footer-col__title {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  display: block;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-links a i {
  font-size: 0.7rem;
  color: var(--gold-light);
}
.footer-links a:hover {
  color: var(--gold-light);
}

/* Footer Contact */
.footer-contact {
  margin-bottom: 1.5rem;
}
.footer-contact__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.footer-contact__item i {
  color: var(--gold-light);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact__item a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-contact__item a:hover {
  color: var(--gold-light);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 1.5rem;
}
.footer-bottom__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  color: rgba(255,255,255,0.32);
  font-size: 0.78rem;
}
.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up {
  animation: fadeInUp 0.7s ease both;
}
.animate-up--d1 { animation-delay: 0.1s; }
.animate-up--d2 { animation-delay: 0.2s; }
.animate-up--d3 { animation-delay: 0.3s; }
.animate-up--d4 { animation-delay: 0.4s; }

/* ============================================================
   WhatsApp Float Button
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mobile-menu-toggle { display: block; }
  
  .main-nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--deep);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.4rem;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.4);
    transition: right 0.3s ease;
  }
  
  .main-nav__list.open {
    right: 0;
  }
  
  .main-nav__link {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }
  
  .main-nav__dropdown {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border-left: 2px solid var(--gold-light);
    border-radius: 0;
  }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .header-top__inner { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wa-float { bottom: 1rem; right: 1rem; width: 52px; height: 52px; font-size: 1.5rem; }
}
