/* ========================================================
   COMPONENTES ESPECÍFICOS - HEADER, FOOTER, CARDS, MODAIS, CARROSSEL
   ======================================================== */

/* ===== HEADER BAR ===== */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header-bar.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-badge {
  font-size: 0.725rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Navbar Desktop */
.navbar {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(15, 44, 89, 0.05);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background-color: rgba(15, 44, 89, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-full);
}

/* Header Action */
.header-action {
  display: block;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--border-radius-sm);
}

.mobile-menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
  animation: slideUp 0.25s ease forwards;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  border-bottom: 1px solid var(--bg-alt);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: rgba(15, 44, 89, 0.06);
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a1931 0%, #0f2c59 60%, #153e75 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--white);
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Carousel Media Frame */
.hero-media-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: #0b1528;
  height: 380px;
}

.hero-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 25, 49, 0.95) 0%, rgba(10, 25, 49, 0.4) 60%, transparent 100%);
  padding: 1.75rem;
  color: var(--white);
}

.hero-slide-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-slide-title {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero-slide-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0;
}

/* Controles do carrossel */
.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 44, 89, 0.7);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.hero-carousel-nav:hover {
  background: var(--primary-light);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-nav.prev { left: 12px; }
.hero-carousel-nav.next { right: 12px; }

.hero-indicators {
  position: absolute;
  bottom: 12px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-indicator.active {
  width: 24px;
  border-radius: var(--border-radius-full);
  background: var(--white);
}

/* ===== STATS BAR ===== */
.stats-section {
  background: var(--white);
  padding: 3rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== CARDS GERAIS ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #0f172a;
}

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

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

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--primary-color);
}

.card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-date-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.card-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-alt);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.card-meta-list {
  background: var(--bg-alt);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.825rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  color: var(--primary-color);
  font-weight: 600;
}

/* Jornal Cards */
.jornal-media {
  height: 200px;
}

.jornal-edition {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.jornal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Partner Cards */
.partner-card {
  text-align: center;
}

.partner-logo-box {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.partner-logo {
  max-height: 90px;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.partner-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.partner-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--secondary-dark);
  font-weight: 600;
}

/* Volunteer & Team Cards */
.volunteer-avatar-box, .team-avatar-box {
  height: 200px;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.volunteer-avatar, .team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.volunteer-role, .team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 0.75rem;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--border-radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(15, 44, 89, 0.2);
}

/* ===== MODAIS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 25, 49, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-header {
  padding: 1.75rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-box {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform var(--transition-normal);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--bg-alt);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ===== FOOTER STYLES (REFATORAÇÃO CORPORATIVA) ===== */
.site-footer,
.bg-\[\#0b1b3d\] {
  background-color: #0b1b3d !important;
  color: #cbd5e1;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid #1e293b;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-brand-logo {
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.brightness-0 {
  filter: brightness(0);
}

.invert {
  filter: brightness(0) invert(1);
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
}

.footer-social-icons a,
.w-9.h-9 {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-icons a:hover,
.w-9.h-9:hover {
  background-color: #0d9488 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
}

.footer-col-title {
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em;
  border-left: 2px solid #14b8a6;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: #94a3b8;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-menu a:hover {
  color: #2dd4bf !important;
  transform: translateX(3px);
}

.text-teal-400 {
  color: #2dd4bf !important;
}

.text-teal-500 {
  color: #14b8a6 !important;
}

.text-teal-600 {
  color: #0d9488 !important;
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Ícones Corporativos em Destaque */
.stat-icon i {
  font-size: 2.25rem;
  color: var(--secondary-color);
  transition: transform var(--transition-fast);
}

.stat-item:hover .stat-icon i {
  transform: scale(1.1);
  color: var(--secondary-light);
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-lg);
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Botão Flutuante Voltar ao Topo & WhatsApp */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.btn-float {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1.25rem;
}

.btn-float-whatsapp {
  background-color: #25d366;
  color: var(--white);
  text-decoration: none;
}

.btn-float-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1eb956;
}

.btn-float-top {
  background-color: var(--primary-color);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}

.btn-float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-float-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

/* Solid surfaces keep photo overlays readable independently of the image. */
.card-badges{flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:8px}
.card-badges .badge{background:#102b4d;color:#fff;border:1px solid rgba(255,255,255,.55);box-shadow:0 2px 8px #0005;font-size:.78rem;font-weight:700;line-height:1.4;max-width:100%;white-space:normal;text-align:left;padding:.4rem .65rem;opacity:1}
.card-badges .badge-accent{background:#fff0cc;color:#503300;border-color:#ffdf91}
.card-badges .badge-success{background:#0b5047;color:#fff}
.card-badges .badge-neutral{background:#f1f5f9;color:#22334a;border-color:#fff}
.card-badges .badge-dark{background:#15243a;color:#fff}
.hero-slide-badge{background:#102b4d;color:#fff;border:1px solid #ffffff66;opacity:1}
.mobile-nav-menu{padding:.5rem 1.5rem}
.mobile-nav-link{display:block;font-size:1rem;font-weight:500;line-height:1.5;letter-spacing:.01em;padding:1rem;border-radius:6px;border-bottom:1px solid #e5eaf0}
.mobile-nav-link.active{font-weight:650;border-left:3px solid var(--secondary-color)}
.footer-simple img{filter:brightness(0) invert(1)}
.footer-simple p,.footer-simple a{color:#fff}
.footer-simple nav{gap:.65rem}
.footer-social-link{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #ffffff55;border-radius:50%;transition:background .2s,border-color .2s}
.footer-social-link:hover,.footer-social-link:focus-visible{background:#ffffff22;border-color:#fff}
.footer-social-link svg{width:21px;height:21px;fill:currentColor}
.rich-content{font-size:1.05rem;line-height:1.8;color:var(--text-main);overflow-wrap:anywhere}
.rich-content p,.rich-content ul,.rich-content ol,.rich-content blockquote{margin:0 0 1.1rem}
.rich-content ul,.rich-content ol{padding-left:1.6rem}
.rich-content h2,.rich-content h3{margin:1.5rem 0 .7rem;color:var(--primary-color)}
.rich-content a{color:#075d8c;text-decoration:underline;text-underline-offset:3px}
.rich-content blockquote{padding:.75rem 1rem;border-left:3px solid #0d9488;background:#f0f7f7}
/* Allow long addresses and e-mails to wrap inside the mobile contact grid. */
#contatos-page .grid > *,#contatos-page .card div{min-width:0}
#contatos-page .contact-info-wrapper{overflow-wrap:anywhere}
@media(max-width:640px){#contatos-page .grid>.card{padding:1.5rem!important}}
