/**
 * Portal Institucional Betel Brasileiro — Design System & Refinamento Profissional
 * Estilos de alta fidelidade visual, tipografia nobre, glassmorphism e equilíbrio estético.
 */

:root {
  --betel-navy: #0b1e42;
  --betel-navy-deep: #07142d;
  --betel-blue: #143572;
  --betel-blue-light: #204c9e;
  --betel-gold: #dfa01b;
  --betel-gold-glow: rgba(223, 160, 27, 0.35);
  --betel-gold-light: #fff8eb;
  --betel-slate-surface: #f8fafc;
  --betel-card-border: rgba(226, 232, 240, 0.85);
  --betel-radius-card: 1.25rem;
}

/* Suavização de fontes para acabamento nítido e premium */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------
   1. BARRA DE TOPO & CABEÇALHO (HEADER)
   ------------------------------------------------------------- */
header {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Barra superior institucional (Sede, Telefones, Lema) */
header > div:first-child {
  background: linear-gradient(90deg, #091a38 0%, #0e2752 50%, #091a38 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em;
}

header > div:first-child a,
header > div:first-child span {
  transition: color 0.2s ease;
}

/* Barra principal de navegação com Glassmorphism elegante */
header > div:nth-child(2) {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  box-shadow: 0 4px 20px -2px rgba(11, 30, 66, 0.07), 0 1px 3px rgba(11, 30, 66, 0.04) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

/* Menu de navegação central */
header nav,
header .navigation,
header div[class*="rounded-full"] {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(248, 250, 252, 0.9) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* Botões de ação no cabeçalho */
header a[class*="border"]:hover,
header button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 53, 114, 0.15) !important;
}

/* -------------------------------------------------------------
   2. SEÇÃO DE EVENTOS ESPECIAIS (EXIBIÇÃO FRONTAL INTEGRAL SEM CORTES)
   Projeto Macedônia em cima e Celebrações 91 anos embaixo
   ------------------------------------------------------------- */
#eventos-especiais.special-events {
  position: relative;
  overflow: visible !important;
  margin: 0;
  border: 0;
  background: #022316 !important;
}

.special-event--macedonia {
  position: relative !important;
  max-height: none !important;
  overflow: visible !important;
  background: #033d26 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
}

.special-event__desktop--macedonia {
  position: relative !important;
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
}

.special-event__desktop--macedonia picture,
.special-event__desktop--macedonia img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.special-event--91 {
  position: relative !important;
  background: #e96400 !important;
  max-height: none !important;
  overflow: visible !important;
}

.special-event--91 .special-event__desktop {
  display: block !important;
  line-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.special-event--91 .special-event__desktop > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.special-event__desktop--invitation {
  display: block !important;
  line-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.special-event__desktop--invitation > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

/* -------------------------------------------------------------
   3. HERO GLOBAL (#quem-somos) — ACABAMENTO NOBRE
   ------------------------------------------------------------- */
#quem-somos.hero-global {
  background: linear-gradient(135deg, #07152e 0%, #0d2657 45%, #13397d 100%) !important;
  position: relative !important;
}

/* Overlay refinado sobre o vídeo */
#quem-somos .hero-global-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(13, 38, 87, 0.72) 0%, rgba(7, 21, 46, 0.92) 100%);
  pointer-events: none;
}

/* Título principal "Betel Brasileiro" */
#quem-somos h1 {
  letter-spacing: -0.025em !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
  font-weight: 800 !important;
}

/* Subtítulo Dourado */
#quem-somos h1 + p,
#quem-somos .text-amber-400,
#quem-somos .text-amber-300 {
  color: #dfa01b !important;
  text-shadow: 0 0 24px rgba(223, 160, 27, 0.25) !important;
}

/* Botão de Destaque "Conheça Nossos Cursos" */
#quem-somos a[class*="bg-amber"],
#quem-somos button[class*="bg-amber"] {
  background: linear-gradient(135deg, #f5b72e 0%, #dfa01b 100%) !important;
  color: #07142d !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px -4px rgba(223, 160, 27, 0.45) !important;
  border-radius: 0.85rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#quem-somos a[class*="bg-amber"]:hover,
#quem-somos button[class*="bg-amber"]:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 12px 30px -4px rgba(223, 160, 27, 0.6) !important;
  filter: brightness(1.05) !important;
}

/* Botão Secundário "Apoie Nossas Missões" */
#quem-somos a[class*="border"]:not([class*="bg-amber"]) {
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 0.85rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#quem-somos a[class*="border"]:not([class*="bg-amber"]):hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Card de Estatísticas e Destaque Direito no Hero */
#quem-somos .bg-indigo-950\/80 {
  background: rgba(6, 19, 44, 0.78) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45) !important;
  border-radius: 1.25rem !important;
}

#quem-somos .bg-indigo-950\/80 > div[class*="grid"] > div {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0.85rem !important;
  transition: background 0.2s ease;
}

#quem-somos .bg-indigo-950\/80 > div[class*="grid"] > div:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

/* -------------------------------------------------------------
   4. INDICADOR LATERAL FLUTUANTE (.active-unit-indicator)
   ------------------------------------------------------------- */
.active-unit-indicator {
  opacity: 0.75 !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  transform: translateX(-4px);
}

.active-unit-indicator:hover {
  opacity: 1 !important;
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .active-unit-indicator {
    display: none !important;
  }
}

/* -------------------------------------------------------------
   5. SEÇÃO INSTITUCIONAL (#institucional) & EDITORIAL DA PRESIDÊNCIA
   ------------------------------------------------------------- */
#institucional {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

#institucional .lg\:col-span-7 {
  border-radius: 1.25rem !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#institucional .lg\:col-span-7:hover {
  border-color: rgba(20, 53, 114, 0.3) !important;
  box-shadow: 0 16px 36px -8px rgba(20, 53, 114, 0.1) !important;
}

#institucional .lg\:col-span-5 {
  background: linear-gradient(150deg, #091a38 0%, #102d64 60%, #163d86 100%) !important;
  border-radius: 1.25rem !important;
  border: 1px solid rgba(223, 160, 27, 0.25) !important;
  box-shadow: 0 16px 40px -10px rgba(9, 26, 56, 0.4) !important;
}

#institucional .lg\:col-span-5 p[class*="italic"],
#institucional blockquote {
  font-family: "Open Sans", Georgia, serif !important;
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
  color: #e2e8f0 !important;
  position: relative !important;
  padding-left: 1.25rem !important;
  border-left: 2.5px solid #dfa01b !important;
}

/* -------------------------------------------------------------
   6. SEÇÃO ORGANIZAÇÕES EXECUTIVAS (#organizacoes)
   ------------------------------------------------------------- */
#organizacoes {
  background: #ffffff !important;
}

#organizacoes .grid > div {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

#organizacoes .grid > div:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 36px -4px rgba(11, 30, 66, 0.1) !important;
  border-color: rgba(20, 53, 114, 0.3) !important;
}

#organizacoes button,
#organizacoes a[class*="bg-indigo"],
#organizacoes button[class*="bg-indigo"] {
  background: linear-gradient(135deg, #102a62 0%, #163a84 100%) !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(16, 42, 98, 0.2) !important;
  transition: all 0.2s ease !important;
}

#organizacoes button:hover,
#organizacoes a[class*="bg-indigo"]:hover,
#organizacoes button[class*="bg-indigo"]:hover {
  background: linear-gradient(135deg, #163a84 0%, #1f4cb0 100%) !important;
  box-shadow: 0 6px 18px rgba(16, 42, 98, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* -------------------------------------------------------------
   7. DEPARTAMENTOS DO IBBB (#orgaos-apoio)
   ------------------------------------------------------------- */
#orgaos-apoio {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

/* -------------------------------------------------------------
   8. RODAPÉ (FOOTER)
   ------------------------------------------------------------- */
footer {
  background: linear-gradient(180deg, #07152e 0%, #050f21 100%) !important;
  color: #94a3b8 !important;
  border-top: 2px solid rgba(223, 160, 27, 0.3) !important;
}

footer div[class*="bg-indigo"],
footer div[class*="rounded"][class*="border"] {
  background: rgba(14, 38, 77, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.85rem !important;
  transition: all 0.2s ease !important;
}

footer div[class*="bg-indigo"]:hover,
footer div[class*="rounded"][class*="border"]:hover {
  background: rgba(14, 38, 77, 0.75) !important;
  border-color: rgba(223, 160, 27, 0.4) !important;
}

footer a[class*="text-pink"],
footer a[class*="text-fuchsia"],
footer span[class*="text-pink"],
footer span[class*="text-fuchsia"],
footer a[href*="instagram"] {
  color: #dfa01b !important;
  transition: color 0.2s ease;
}

footer a[href*="instagram"]:hover {
  color: #f5b72e !important;
  text-decoration: underline !important;
}

footer .flex.space-x-3 a,
footer a[class*="rounded-full"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  transition: all 0.2s ease !important;
}

footer .flex.space-x-3 a:hover,
footer a[class*="rounded-full"]:hover {
  background: #dfa01b !important;
  color: #07142d !important;
  border-color: #dfa01b !important;
  transform: translateY(-2px);
}
