/*
Theme Name: AcheIgrejaBR
Theme URI: https://acheigrejasbr.com.br
Author: Allan - AcheIgrejaBR
Author URI: https://acheigrejasbr.com.br
Description: Mega Diretório Evangélico All-in-One - Encontre sua igreja, eventos, louvor, devocional e comunidade evangélica em um só lugar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acheigrejasbr
Tags: directory, church, gospel, brazilian, mobile-first, custom-post-types
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES / DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  /* Core Palette */
  --aib-primary: #1B4332;
  --aib-primary-light: #2D6A4F;
  --aib-primary-dark: #0F2B1F;
  --aib-accent: #40916C;
  --aib-accent-light: #52B788;
  --aib-gold: #B8860B;
  --aib-gold-light: #DAA520;

  /* Neutrals */
  --aib-dark: #1A1A2E;
  --aib-gray-900: #212529;
  --aib-gray-700: #495057;
  --aib-gray-500: #6C757D;
  --aib-gray-300: #CED4DA;
  --aib-gray-100: #F1F3F5;
  --aib-white: #FFFFFF;
  --aib-bg: #F8F9FA;

  /* Semantic */
  --aib-success: #2D6A4F;
  --aib-warning: #E9C46A;
  --aib-danger: #E63946;
  --aib-info: #457B9D;

  /* Typography */
  --aib-font-heading: 'DM Serif Display', 'Georgia', serif;
  --aib-font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --aib-font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --aib-space-xs: 0.25rem;
  --aib-space-sm: 0.5rem;
  --aib-space-md: 1rem;
  --aib-space-lg: 1.5rem;
  --aib-space-xl: 2rem;
  --aib-space-2xl: 3rem;
  --aib-space-3xl: 4rem;

  /* Border Radius */
  --aib-radius-sm: 6px;
  --aib-radius-md: 10px;
  --aib-radius-lg: 16px;
  --aib-radius-xl: 24px;
  --aib-radius-full: 9999px;

  /* Shadows */
  --aib-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --aib-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --aib-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --aib-shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  /* Transitions */
  --aib-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --aib-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --aib-container: 1200px;
  --aib-sidebar: 320px;
  --aib-header-h: 64px;
  --aib-bottom-nav-h: 64px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--aib-font-body);
  color: var(--aib-gray-900);
  background: var(--aib-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--aib-bottom-nav-h);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--aib-primary);
  text-decoration: none;
  transition: color var(--aib-transition);
}
a:hover {
  color: var(--aib-primary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--aib-font-heading);
  color: var(--aib-dark);
  line-height: 1.3;
  margin-bottom: var(--aib-space-sm);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: var(--aib-space-md); }

/* ═══════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════ */
.aib-container {
  width: 100%;
  max-width: var(--aib-container);
  margin: 0 auto;
  padding: 0 var(--aib-space-md);
}

.aib-grid {
  display: grid;
  gap: var(--aib-space-lg);
}

.aib-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.aib-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.aib-flex {
  display: flex;
  align-items: center;
  gap: var(--aib-space-sm);
}

.aib-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aib-section {
  padding: var(--aib-space-2xl) 0;
}

.aib-section-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--aib-primary);
  margin-bottom: var(--aib-space-lg);
  display: flex;
  align-items: center;
  gap: var(--aib-space-sm);
}

.aib-section-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--aib-gold);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   HEADER / TOPBAR
   ═══════════════════════════════════════════ */
.aib-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--aib-primary);
  height: var(--aib-header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--aib-shadow-md);
}

.aib-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--aib-container);
  margin: 0 auto;
  padding: 0 var(--aib-space-md);
}

.aib-header__logo {
  display: flex;
  align-items: center;
  gap: var(--aib-space-sm);
  color: var(--aib-white);
  font-family: var(--aib-font-heading);
  font-size: 1.25rem;
}

.aib-header__logo svg {
  width: 28px;
  height: 28px;
  fill: var(--aib-gold);
}

.aib-header__actions {
  display: flex;
  align-items: center;
  gap: var(--aib-space-md);
}

.aib-header__actions a,
.aib-header__actions button {
  color: var(--aib-white);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0.85;
  transition: opacity var(--aib-transition);
}

.aib-header__actions a:hover,
.aib-header__actions button:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   SEARCH BAR (HOME + ARCHIVE)
   ═══════════════════════════════════════════ */
.aib-search-bar {
  background: var(--aib-white);
  border-radius: var(--aib-radius-lg);
  box-shadow: var(--aib-shadow-md);
  padding: var(--aib-space-sm) var(--aib-space-md);
  display: flex;
  align-items: center;
  gap: var(--aib-space-sm);
  margin: var(--aib-space-md) auto;
  max-width: 600px;
  transition: box-shadow var(--aib-transition);
}

.aib-search-bar:focus-within {
  box-shadow: var(--aib-shadow-lg);
  outline: 2px solid var(--aib-accent-light);
}

.aib-search-bar__icon {
  color: var(--aib-gray-500);
  flex-shrink: 0;
}

.aib-search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--aib-font-body);
  background: transparent;
  color: var(--aib-gray-900);
}

.aib-search-bar__input::placeholder {
  color: var(--aib-gray-500);
}

/* ═══════════════════════════════════════════
   HOME HERO
   ═══════════════════════════════════════════ */
.aib-hero {
  background: linear-gradient(145deg, var(--aib-primary), var(--aib-primary-light));
  padding: var(--aib-space-2xl) var(--aib-space-md) var(--aib-space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aib-hero::after {
  content: '✝';
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 12rem;
  color: rgba(255,255,255,0.04);
  font-family: var(--aib-font-heading);
  pointer-events: none;
}

.aib-hero__title {
  color: var(--aib-white);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  margin-bottom: var(--aib-space-sm);
}

.aib-hero__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.875rem, 2.5vw, 1.1rem);
  margin-bottom: var(--aib-space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   CATEGORY CHIPS (HOME)
   ═══════════════════════════════════════════ */
.aib-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aib-space-sm);
  padding: var(--aib-space-lg) var(--aib-space-md);
  max-width: 500px;
  margin: calc(var(--aib-space-xl) * -1) auto var(--aib-space-lg);
  position: relative;
  z-index: 10;
}

.aib-category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--aib-space-xs);
  padding: var(--aib-space-md) var(--aib-space-sm);
  background: var(--aib-white);
  border-radius: var(--aib-radius-md);
  box-shadow: var(--aib-shadow-sm);
  text-decoration: none;
  color: var(--aib-gray-700);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--aib-transition);
  border: 1px solid transparent;
}

.aib-category-chip:hover {
  border-color: var(--aib-accent-light);
  box-shadow: var(--aib-shadow-md);
  color: var(--aib-primary);
  transform: translateY(-2px);
}

.aib-category-chip__icon {
  font-size: 1.5rem;
}

/* ═══════════════════════════════════════════
   CHURCH CARD
   ═══════════════════════════════════════════ */
.aib-church-card {
  background: var(--aib-white);
  border-radius: var(--aib-radius-lg);
  overflow: hidden;
  box-shadow: var(--aib-shadow-sm);
  transition: all var(--aib-transition);
  position: relative;
}

.aib-church-card:hover {
  box-shadow: var(--aib-shadow-lg);
  transform: translateY(-3px);
}

.aib-church-card--premium {
  border: 2px solid var(--aib-gold);
}

.aib-church-card__badge {
  position: absolute;
  top: var(--aib-space-sm);
  left: var(--aib-space-sm);
  background: var(--aib-gold);
  color: var(--aib-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--aib-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.aib-church-card__save {
  position: absolute;
  top: var(--aib-space-sm);
  right: var(--aib-space-sm);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
  transition: all var(--aib-transition);
}

.aib-church-card__save:hover {
  background: var(--aib-white);
  transform: scale(1.1);
}

.aib-church-card__save.saved {
  color: var(--aib-danger);
}

.aib-church-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.aib-church-card__image--placeholder {
  background: linear-gradient(135deg, var(--aib-gray-100), var(--aib-gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aib-gray-500);
  font-size: 2.5rem;
}

.aib-church-card__body {
  padding: var(--aib-space-md);
}

.aib-church-card__title {
  font-family: var(--aib-font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--aib-space-xs);
  color: var(--aib-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aib-church-card__meta {
  font-size: 0.8rem;
  color: var(--aib-gray-500);
  margin-bottom: var(--aib-space-sm);
  display: flex;
  align-items: center;
  gap: var(--aib-space-xs);
  flex-wrap: wrap;
}

.aib-church-card__meta-sep {
  width: 3px;
  height: 3px;
  background: var(--aib-gray-300);
  border-radius: 50%;
}

.aib-church-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--aib-gold);
  font-weight: 600;
  font-size: 0.85rem;
}

.aib-church-card__schedule {
  font-size: 0.8rem;
  color: var(--aib-gray-700);
  margin-bottom: var(--aib-space-sm);
}

.aib-church-card__actions {
  display: flex;
  gap: var(--aib-space-sm);
  padding-top: var(--aib-space-sm);
  border-top: 1px solid var(--aib-gray-100);
}

.aib-church-card__distance {
  font-size: 0.75rem;
  color: var(--aib-accent);
  font-weight: 600;
}

/* Verified Badge */
.aib-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--aib-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.aib-verified svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════
   EVENT CARD
   ═══════════════════════════════════════════ */
.aib-event-card {
  background: var(--aib-white);
  border-radius: var(--aib-radius-lg);
  overflow: hidden;
  box-shadow: var(--aib-shadow-sm);
  display: flex;
  gap: var(--aib-space-md);
  padding: var(--aib-space-md);
  transition: all var(--aib-transition);
}

.aib-event-card:hover {
  box-shadow: var(--aib-shadow-md);
}

.aib-event-card__date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  padding: var(--aib-space-sm);
  background: var(--aib-primary);
  color: var(--aib-white);
  border-radius: var(--aib-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aib-event-card__date-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.aib-event-card__date-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.aib-event-card__content {
  flex: 1;
  min-width: 0;
}

.aib-event-card__title {
  font-family: var(--aib-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--aib-space-xs);
}

.aib-event-card__info {
  font-size: 0.8rem;
  color: var(--aib-gray-500);
}

.aib-event-card__price {
  display: inline-block;
  margin-top: var(--aib-space-xs);
  padding: 2px 10px;
  background: var(--aib-gray-100);
  border-radius: var(--aib-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aib-accent);
}

.aib-event-card__price--free {
  background: rgba(45,106,79,0.1);
  color: var(--aib-success);
}

/* ═══════════════════════════════════════════
   DEVOCIONAL CARD
   ═══════════════════════════════════════════ */
.aib-devocional-card {
  background: linear-gradient(135deg, var(--aib-primary), var(--aib-primary-light));
  border-radius: var(--aib-radius-lg);
  padding: var(--aib-space-xl);
  color: var(--aib-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aib-devocional-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 6rem;
  color: rgba(255,255,255,0.08);
  font-family: var(--aib-font-heading);
}

.aib-devocional-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: var(--aib-space-md);
}

.aib-devocional-card__verse {
  font-family: var(--aib-font-heading);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-style: italic;
  margin-bottom: var(--aib-space-sm);
  line-height: 1.5;
}

.aib-devocional-card__ref {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: var(--aib-space-lg);
}

.aib-devocional-card__cta {
  display: inline-block;
  padding: var(--aib-space-sm) var(--aib-space-xl);
  background: rgba(255,255,255,0.2);
  color: var(--aib-white);
  border-radius: var(--aib-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  transition: all var(--aib-transition);
}

.aib-devocional-card__cta:hover {
  background: rgba(255,255,255,0.3);
  color: var(--aib-white);
}

/* ═══════════════════════════════════════════
   PRAYER CARD
   ═══════════════════════════════════════════ */
.aib-prayer-card {
  background: var(--aib-white);
  border-radius: var(--aib-radius-lg);
  padding: var(--aib-space-lg);
  box-shadow: var(--aib-shadow-sm);
  border-left: 4px solid var(--aib-accent);
}

.aib-prayer-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--aib-space-sm);
}

.aib-prayer-card__author {
  font-weight: 600;
  font-size: 0.9rem;
}

.aib-prayer-card__category {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--aib-gray-100);
  border-radius: var(--aib-radius-full);
  color: var(--aib-gray-500);
}

.aib-prayer-card__text {
  font-size: 0.9rem;
  color: var(--aib-gray-700);
  margin-bottom: var(--aib-space-md);
  line-height: 1.6;
}

.aib-prayer-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aib-prayer-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--aib-space-xs);
  padding: var(--aib-space-sm) var(--aib-space-md);
  background: rgba(45,106,79,0.08);
  color: var(--aib-primary);
  border: none;
  border-radius: var(--aib-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--aib-transition);
  font-family: var(--aib-font-body);
}

.aib-prayer-btn:hover {
  background: rgba(45,106,79,0.15);
}

.aib-prayer-btn.prayed {
  background: var(--aib-primary);
  color: var(--aib-white);
}

.aib-prayer-card__time {
  font-size: 0.75rem;
  color: var(--aib-gray-500);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.aib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--aib-space-xs);
  padding: var(--aib-space-sm) var(--aib-space-lg);
  border: none;
  border-radius: var(--aib-radius-md);
  font-family: var(--aib-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--aib-transition);
  text-decoration: none;
  line-height: 1.4;
}

.aib-btn--primary {
  background: var(--aib-primary);
  color: var(--aib-white);
}
.aib-btn--primary:hover {
  background: var(--aib-primary-light);
  color: var(--aib-white);
}

.aib-btn--secondary {
  background: var(--aib-white);
  color: var(--aib-primary);
  border: 1.5px solid var(--aib-gray-300);
}
.aib-btn--secondary:hover {
  border-color: var(--aib-primary);
}

.aib-btn--gold {
  background: var(--aib-gold);
  color: var(--aib-white);
}
.aib-btn--gold:hover {
  background: var(--aib-gold-light);
  color: var(--aib-white);
}

.aib-btn--whatsapp {
  background: #25D366;
  color: var(--aib-white);
}
.aib-btn--whatsapp:hover {
  background: #20BD5B;
  color: var(--aib-white);
}

.aib-btn--sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.aib-btn--full {
  width: 100%;
}

.aib-btn--pill {
  border-radius: var(--aib-radius-full);
}

/* ═══════════════════════════════════════════
   SINGLE CHURCH PAGE
   ═══════════════════════════════════════════ */
.aib-single-church__gallery {
  position: relative;
  overflow: hidden;
}

.aib-single-church__gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.aib-single-church__gallery-scroll::-webkit-scrollbar {
  display: none;
}

.aib-single-church__gallery-item {
  flex-shrink: 0;
  width: 100%;
  height: 240px;
  object-fit: cover;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .aib-single-church__gallery-item {
    height: 360px;
  }
}

.aib-single-church__gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--aib-space-sm) 0;
}

.aib-single-church__gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aib-gray-300);
  border: none;
  cursor: pointer;
  transition: all var(--aib-transition);
}

.aib-single-church__gallery-dot.active {
  background: var(--aib-primary);
  width: 20px;
  border-radius: 4px;
}

.aib-single-church__header {
  padding: var(--aib-space-lg) var(--aib-space-md);
}

.aib-single-church__name {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: var(--aib-space-xs);
}

.aib-single-church__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aib-space-xs);
  margin-bottom: var(--aib-space-md);
}

.aib-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--aib-gray-100);
  border-radius: var(--aib-radius-full);
  font-size: 0.75rem;
  color: var(--aib-gray-700);
  font-weight: 500;
}

.aib-tag--accent {
  background: rgba(45,106,79,0.1);
  color: var(--aib-accent);
}

.aib-single-church__quick-actions {
  display: flex;
  gap: var(--aib-space-sm);
  margin-bottom: var(--aib-space-lg);
  overflow-x: auto;
  padding-bottom: var(--aib-space-xs);
}

/* Info Section (Horários, Endereço, etc.) */
.aib-info-block {
  background: var(--aib-white);
  border-radius: var(--aib-radius-lg);
  padding: var(--aib-space-lg);
  margin-bottom: var(--aib-space-md);
  box-shadow: var(--aib-shadow-sm);
}

.aib-info-block__title {
  font-family: var(--aib-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--aib-gray-700);
  margin-bottom: var(--aib-space-md);
  display: flex;
  align-items: center;
  gap: var(--aib-space-sm);
}

.aib-schedule-row {
  display: flex;
  align-items: center;
  padding: var(--aib-space-sm) 0;
  border-bottom: 1px solid var(--aib-gray-100);
  font-size: 0.9rem;
}

.aib-schedule-row:last-child {
  border-bottom: none;
}

.aib-schedule-row__day {
  width: 90px;
  font-weight: 600;
  color: var(--aib-gray-900);
}

.aib-schedule-row__time {
  flex-shrink: 0;
  width: 60px;
  color: var(--aib-primary);
  font-weight: 600;
}

.aib-schedule-row__type {
  color: var(--aib-gray-500);
  font-size: 0.8rem;
}

/* Map */
.aib-map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--aib-radius-md);
  overflow: hidden;
  margin-bottom: var(--aib-space-sm);
  background: var(--aib-gray-100);
}

/* Pix Donation */
.aib-pix-block {
  background: linear-gradient(135deg, #f0f9f4, #e8f5e9);
  border-radius: var(--aib-radius-lg);
  padding: var(--aib-space-lg);
  text-align: center;
  border: 1px dashed var(--aib-accent-light);
}

.aib-pix-block__qr {
  width: 120px;
  height: 120px;
  margin: var(--aib-space-md) auto;
  background: var(--aib-white);
  border-radius: var(--aib-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   FILTERS (FACETW STYLING)
   ═══════════════════════════════════════════ */
.aib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aib-space-sm);
  padding: var(--aib-space-md) 0;
}

.aib-filter-chip {
  padding: var(--aib-space-sm) var(--aib-space-md);
  background: var(--aib-white);
  border: 1.5px solid var(--aib-gray-300);
  border-radius: var(--aib-radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--aib-transition);
  font-family: var(--aib-font-body);
  color: var(--aib-gray-700);
  display: flex;
  align-items: center;
  gap: var(--aib-space-xs);
}

.aib-filter-chip:hover,
.aib-filter-chip.active {
  border-color: var(--aib-primary);
  color: var(--aib-primary);
  background: rgba(27,67,50,0.04);
}

.aib-filter-chip.active {
  background: var(--aib-primary);
  color: var(--aib-white);
  border-color: var(--aib-primary);
}

/* FacetWP overrides */
.facetwp-facet {
  margin-bottom: 0 !important;
}

.facetwp-dropdown {
  border-radius: var(--aib-radius-md) !important;
  border-color: var(--aib-gray-300) !important;
  font-family: var(--aib-font-body) !important;
}

/* ═══════════════════════════════════════════
   BOTTOM NAVIGATION (MOBILE)
   ═══════════════════════════════════════════ */
.aib-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--aib-bottom-nav-h);
  background: var(--aib-white);
  border-top: 1px solid var(--aib-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.aib-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--aib-gray-500);
  font-size: 0.65rem;
  font-weight: 500;
  padding: var(--aib-space-xs) var(--aib-space-sm);
  transition: color var(--aib-transition);
  position: relative;
}

.aib-bottom-nav__item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.aib-bottom-nav__item.active {
  color: var(--aib-primary);
}

.aib-bottom-nav__item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--aib-primary);
  border-radius: 0 0 3px 3px;
}

.aib-bottom-nav__badge {
  position: absolute;
  top: 0;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--aib-danger);
  color: var(--aib-white);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Hide bottom nav on desktop */
@media (min-width: 992px) {
  .aib-bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ═══════════════════════════════════════════
   DASHBOARD PASTOR (PREMIUM)
   ═══════════════════════════════════════════ */
.aib-dash-stat {
  background: var(--aib-white);
  border-radius: var(--aib-radius-lg);
  padding: var(--aib-space-lg);
  text-align: center;
  box-shadow: var(--aib-shadow-sm);
  position: relative;
  overflow: hidden;
}

.aib-dash-stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--aib-primary);
}

.aib-dash-stat--gold::after {
  background: var(--aib-gold);
}

.aib-dash-stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--aib-dark);
  line-height: 1;
  margin-bottom: var(--aib-space-xs);
}

.aib-dash-stat__label {
  font-size: 0.8rem;
  color: var(--aib-gray-500);
  margin-bottom: var(--aib-space-xs);
}

.aib-dash-stat__change {
  font-size: 0.75rem;
  font-weight: 600;
}

.aib-dash-stat__change--up { color: var(--aib-success); }
.aib-dash-stat__change--down { color: var(--aib-danger); }

/* ═══════════════════════════════════════════
   FORM WIZARD (CADASTRO IGREJA)
   ═══════════════════════════════════════════ */
.aib-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--aib-space-sm);
  padding: var(--aib-space-lg) var(--aib-space-md);
}

.aib-wizard-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--aib-gray-100);
  color: var(--aib-gray-500);
  transition: all var(--aib-transition);
}

.aib-wizard-step.active {
  background: var(--aib-primary);
  color: var(--aib-white);
  box-shadow: 0 0 0 4px rgba(27,67,50,0.15);
}

.aib-wizard-step.completed {
  background: var(--aib-accent);
  color: var(--aib-white);
}

.aib-wizard-line {
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: var(--aib-gray-300);
}

.aib-wizard-line.completed {
  background: var(--aib-accent);
}

/* Form Fields */
.aib-form-group {
  margin-bottom: var(--aib-space-lg);
}

.aib-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aib-gray-700);
  margin-bottom: var(--aib-space-xs);
}

.aib-form-input {
  width: 100%;
  padding: var(--aib-space-sm) var(--aib-space-md);
  border: 1.5px solid var(--aib-gray-300);
  border-radius: var(--aib-radius-md);
  font-family: var(--aib-font-body);
  font-size: 0.95rem;
  transition: border-color var(--aib-transition);
  background: var(--aib-white);
}

.aib-form-input:focus {
  outline: none;
  border-color: var(--aib-primary);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}

.aib-form-input::placeholder {
  color: var(--aib-gray-500);
}

.aib-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236C757D' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* Photo Upload Grid */
.aib-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--aib-space-sm);
}

.aib-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--aib-radius-md);
  overflow: hidden;
  cursor: grab;
}

.aib-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aib-photo-item__actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.aib-photo-item__badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--aib-gold);
  color: var(--aib-white);
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: var(--aib-radius-full);
  font-weight: 700;
}

.aib-photo-add {
  aspect-ratio: 1;
  border: 2px dashed var(--aib-gray-300);
  border-radius: var(--aib-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--aib-space-xs);
  color: var(--aib-gray-500);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--aib-transition);
}

.aib-photo-add:hover {
  border-color: var(--aib-primary);
  color: var(--aib-primary);
}

/* ═══════════════════════════════════════════
   PREMIUM BADGE
   ═══════════════════════════════════════════ */
.aib-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--aib-gold), var(--aib-gold-light));
  color: var(--aib-white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--aib-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.aib-footer {
  background: var(--aib-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--aib-space-2xl) var(--aib-space-md);
  text-align: center;
  font-size: 0.85rem;
}

.aib-footer a {
  color: var(--aib-accent-light);
}

.aib-footer__logo {
  font-family: var(--aib-font-heading);
  color: var(--aib-white);
  font-size: 1.25rem;
  margin-bottom: var(--aib-space-sm);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .aib-hero {
    padding: var(--aib-space-3xl) var(--aib-space-md);
  }

  .aib-categories {
    grid-template-columns: repeat(6, 1fr);
    max-width: 700px;
  }

  .aib-single-church__quick-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .aib-header__nav {
    display: flex;
    align-items: center;
    gap: var(--aib-space-lg);
  }

  .aib-header__nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--aib-transition);
  }

  .aib-header__nav a:hover {
    color: var(--aib-white);
  }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes aib-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aib-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aib-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.aib-animate-in {
  animation: aib-fadeIn 0.4s ease-out forwards;
}

.aib-animate-slide {
  animation: aib-slideUp 0.5s ease-out forwards;
}

/* Stagger children */
.aib-stagger > * {
  opacity: 0;
  animation: aib-fadeIn 0.4s ease-out forwards;
}
.aib-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.aib-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.aib-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.aib-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.aib-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.aib-stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.aib-text-center { text-align: center; }
.aib-text-primary { color: var(--aib-primary); }
.aib-text-gold { color: var(--aib-gold); }
.aib-text-sm { font-size: 0.85rem; }
.aib-text-xs { font-size: 0.75rem; }
.aib-mb-0 { margin-bottom: 0; }
.aib-mb-sm { margin-bottom: var(--aib-space-sm); }
.aib-mb-md { margin-bottom: var(--aib-space-md); }
.aib-mb-lg { margin-bottom: var(--aib-space-lg); }
.aib-mt-md { margin-top: var(--aib-space-md); }
.aib-p-md { padding: var(--aib-space-md); }
.aib-hidden { display: none !important; }
.aib-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
