/* =========================
   PREMIUM - REFINO GLOBAL
   ========================= */

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

section {
  position: relative;
}

h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
}

.container {
  max-width: 1240px;
}

/* =========================
   HEADER / NAVBAR
   ========================= */

.navbar {
  background: #3E2723;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .nav-list a {
  color: #F5F5DC;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar .nav-list a:hover {
  color: #E7C56A;
  opacity: 0.88;
}

.brand img.logo-header {
  height: 80px;
  max-height: none;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar .container {
  min-height: 92px;
}

.nav-list {
  gap: 2rem;
}

/* =========================
   HERO - ESTRUTURA
   ========================= */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  filter: contrast(1.05) saturate(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(62, 39, 35, 0.55) 0%,
    rgba(62, 39, 35, 0.25) 30%,
    rgba(62, 39, 35, 0.10) 75%,
    rgba(62, 39, 35, 0.30) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

/* =========================
   HERO - TÍTULO E TEXTO
   ========================= */

#hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: 1100px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
}

#hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* =========================
   HERO - LOGO DO BANNER
   ========================= */

.hero-logo {
  width: 120px;
  max-width: 28%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(255, 255, 255, 0.12));
}

/* =========================
   HERO - BOTÕES
   ========================= */

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 210px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: 0.25s;
  box-shadow: 0 10px 24px rgba(42, 26, 21, 0.14);
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
  background: rgba(62, 39, 35, 0.85);
  color: #fff;
}

.hero-buttons .btn-secondary:hover {
  background: #3E2723;
  color: #fff;
}

/* =========================
   HOME - REFINO DOS CARDS
   ========================= */

.cta-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(42, 26, 21, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(2px);
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(42, 26, 21, 0.12);
}

.cta-card h3 {
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-card p {
  min-height: 82px;
  line-height: 1.55;
}

.cta-card .cta-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-card .cta-link:hover {
  opacity: 0.8;
}

/* =========================
   ÍCONES DOS CARDS PRINCIPAIS
   ========================= */

.cta-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

/* =========================
   CARDS SECUNDÁRIOS
   ========================= */

.feature {
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(42, 26, 21, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 170px;
  backdrop-filter: blur(2px);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(42, 26, 21, 0.10);
}

.feature h3 {
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature p {
  line-height: 1.55;
}

/* =========================
   ÍCONES DOS CARDS SECUNDÁRIOS
   ========================= */

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

/* =========================
   MAPA E AGENDA
   ========================= */

.map-section {
  padding: 3rem 0;
}

.calendar-section {
  padding: 3rem 0;
}

.embed-card {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.embed-card iframe {
  width: 100%;
  border: 0;
}

.map-section h2,
.calendar-section h2 {
  margin-bottom: 1rem;
}

#calendar-fallback-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

#calendar-fallback-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background-color: var(--verde-vida);
  color: var(--bege-luz);
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

#calendar-fallback-link:hover {
  background-color: var(--verde-escuro);
}

/* =========================
   PREMIUM - FOOTER
   ========================= */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid > div h4 {
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-links li,
.social-list li {
  margin-bottom: 0.55rem;
}

.footer a {
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer a:hover {
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

/* =========================
   RODAPÉ - LOGO IPB
   ========================= */

.footer-logo-ipb {
  width: 110px;
  height: auto;
  margin-top: 18px;
  opacity: 0.85;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 8px;
}

.footer-logo-ipb:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   RESPONSIVO / MOBILE
   ========================= */

@media (max-width: 768px) {
  .embed-card {
    border-radius: 10px;
  }

  /* Header */
  .navbar .container {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }

  .brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }

  .brand img.logo-header {
    height: 48px;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    padding: 0;
    margin: 0;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.2rem 0.1rem;
  }

  /* Hero */
  .hero {
    min-height: 56vh;
    padding: 3.5rem 0;
  }

  .hero-logo {
    width: 72px;
    max-width: 26%;
    margin-bottom: 14px;
  }

  #hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
    max-width: 92%;
    margin: 0 auto 14px;
  }

  #hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 90%;
    margin: 0 auto 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: min(280px, 92%);
    justify-content: center;
    min-width: unset;
    padding: 12px 20px;
  }

  /* Cards principais */
  .cta-grid {
    gap: 1rem;
  }

  .cta-card {
    padding: 24px 20px;
  }

  .cta-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }

  .cta-icon img {
    width: 28px;
    height: 28px;
  }

  .cta-card h3 {
    font-size: 1.25rem;
  }

  .cta-card p {
    min-height: auto;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .cta-card .cta-link {
    font-size: 0.92rem;
  }

  /* Cards secundários */
  .feature {
    padding: 22px 18px;
    min-height: auto;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .feature-icon img {
    width: 26px;
    height: 26px;
  }

  .feature h3 {
    font-size: 1.2rem;
  }

  .feature p {
    font-size: 0.95rem;
  }

  /* Série */
  .sermon-card img,
  #series-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .sermon-info {
    padding-top: 1rem;
  }

  .sermon-info h3,
  #series-name {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .sermon-info p,
  #series-description {
    font-size: 0.98rem;
  }

  /* Mapa e agenda */
  #map-iframe {
    min-height: 300px;
  }

  #calendar-iframe {
    min-height: 420px;
  }

  #calendar-fallback-link {
    width: min(280px, 92%);
    text-align: center;
  }

  /* Formulário */
  .connect-form {
    padding: 1.25rem;
  }

  .connect-form input,
  .connect-form textarea,
  .connect-form select,
  .connect-form button {
    font-size: 16px;
  }

  .form-section h2,
  #connect-form-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  /* Footer */
  .footer-grid {
    gap: 1.5rem;
  }

  .footer-logo-ipb {
    width: 96px;
  }
}

/* =========================
   MINISTRIES - LOGOS
   ========================= */

.ministries-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ministry-logo-card {
  background: #fffdfa;
  border: 1px solid rgba(67, 45, 40, 0.08);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(42, 26, 21, 0.06);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ministry-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(42, 26, 21, 0.12);
}

.ministry-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: grayscale(20%);
}

.ministry-logo-card h3 {
  margin-bottom: 14px;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ministry-logo-card p {
  line-height: 1.65;
  color: #5a4842;
}

@media (max-width: 1024px) {
  .ministries-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ministries-logo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ministry-logo-card {
    padding: 24px 20px;
  }

  .ministry-logo {
    width: 96px;
    height: 96px;
  }

  .ministry-logo-card h3 {
    font-size: 1.5rem;
  }
}

/* =========================================================
   SISTEMA VISUAL INSTITUCIONAL GLOBAL — IGREJA PRIMÍCIAS
   Cole este bloco no FINAL do custom-fixes.css
   ========================================================= */

/* =========================
   1) TOKENS / PALETA OFICIAL
   ========================= */
:root {
  --primicias-marrom: #4A2C2A;
  --primicias-marrom-escuro: #3A1F1D;
  --primicias-dourado: #C8A96A;
  --primicias-dourado-suave: #E7D6B2;
  --primicias-bege: #F5F3EE;
  --primicias-bege-2: #EFEBDD;
  --primicias-branco: #FFFFFF;
  --primicias-texto: #2B2B2B;
  --primicias-texto-suave: #6B6B6B;
  --primicias-borda: rgba(67, 45, 40, 0.10);
  --primicias-sombra: 0 10px 26px rgba(42, 26, 21, 0.08);

  --card-verde: #DDE9D8;
  --card-azul: #DDE4EC;
  --card-rosa: #EBDDDD;
  --card-areia: #E8E1D7;
  --card-creme: #F2EBCF;
  --card-cinza: #DDD8D2;

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --space-section: 5rem;
  --space-title: 1.25rem;
  --space-grid: 28px;

  --container-max: 1240px;
}

/* =========================
   2) RESET LEVE / BASE
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--primicias-bege);
  color: var(--primicias-texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

section {
  position: relative;
}

.container {
  max-width: var(--container-max);
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  color: var(--primicias-marrom);
}

p, li {
  color: var(--primicias-texto-suave);
  line-height: 1.7;
}

/* =========================
   3) HEADER / NAVBAR PADRÃO
   ========================= */
.navbar {
  background: var(--primicias-marrom);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .container {
  min-height: 92px;
}

.brand img.logo-header {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-list {
  gap: 2rem;
}

.navbar .nav-list a {
  color: #F7F1E5;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar .nav-list a:hover,
.navbar .nav-list a.active {
  color: var(--primicias-dourado-suave);
  opacity: 1;
}

/* =========================
   4) HERO PADRÃO (PÁGINAS INTERNAS)
   ========================= */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primicias-branco);
  overflow: hidden;
  background:
    linear-gradient(rgba(62,39,35,0.40), rgba(62,39,35,0.40)),
    url("../img/hero-wheat.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(62, 39, 35, 0.46) 0%,
    rgba(62, 39, 35, 0.22) 38%,
    rgba(62, 39, 35, 0.18) 65%,
    rgba(62, 39, 35, 0.34) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero h1,
#heroTitle,
#hero-title {
  color: #F7F1E5;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 auto 1rem;
  text-shadow: 0 3px 14px rgba(0,0,0,0.25);
}

.hero p,
#heroSubtitle,
#hero-subtitle {
  color: rgba(255,255,255,0.96);
  font-size: 1.2rem;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}

/* =========================
   5) SEÇÕES PADRÃO
   ========================= */
.info-section,
.connect-section,
.features,
.cta-section,
.calendar-section,
.map-section {
  padding: var(--space-section) 0;
}

.info-section h2,
.connect-section h2,
.features h2,
.cta-section h2,
.calendar-section h2,
.map-section h2 {
  margin-bottom: var(--space-title);
  font-size: 2.4rem;
  line-height: 1.15;
}

.info-section p,
.connect-section p,
.cta-section p {
  max-width: 900px;
}

.connect-list {
  margin-top: 1.25rem;
}

.connect-list li {
  margin-bottom: 0.8rem;
}

/* =========================
   6) GRIDS PADRÃO
   ========================= */
.features-grid,
.cta-grid,
.cards-grid {
  display: grid;
  gap: var(--space-grid);
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   7) CARDS PADRÃO
   ========================= */
.feature,
.cta-card,
.content-card,
.ministry-logo-card {
  background: var(--primicias-branco);
  border: 1px solid var(--primicias-borda);
  border-radius: var(--radius-xl);
  box-shadow: var(--primicias-sombra);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover,
.cta-card:hover,
.content-card:hover,
.ministry-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(42, 26, 21, 0.12);
}

.feature h3,
.cta-card h3,
.content-card h3,
.ministry-logo-card h3 {
  margin-bottom: 14px;
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--primicias-marrom);
}

.feature p,
.cta-card p,
.content-card p,
.ministry-logo-card p {
  line-height: 1.65;
  color: #5a4842;
}

/* Fundos suaves opcionais */
.feature-blue,
.card-blue {
  background: var(--card-azul);
}

.feature-green,
.card-green {
  background: var(--card-verde);
}

.feature-yellow,
.card-yellow {
  background: var(--card-creme);
}

.feature-red,
.card-red {
  background: var(--card-cinza);
}

.card-rose {
  background: var(--card-rosa);
}

.card-sand {
  background: var(--card-areia);
}

/* =========================
   8) LINKS E BOTÕES
   ========================= */
.btn,
button,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
  box-shadow: 0 10px 24px rgba(42, 26, 21, 0.12);
}

.btn:hover,
button:hover,
a.btn:hover {
  transform: translateY(-2px);
}

.btn,
.btn-primary,
a.btn {
  background: #2E7D32;
  color: #fff;
}

.btn:hover,
.btn-primary:hover,
a.btn:hover {
  background: #256629;
  color: #fff;
}

.btn-secondary {
  background: rgba(74, 44, 42, 0.92);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primicias-marrom-escuro);
  color: #fff;
}

.cta-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--primicias-marrom);
  border-bottom: 2px solid currentColor;
  text-decoration: none;
  padding-bottom: 2px;
}

/* =========================
   9) ÍCONES / MINI-BADGES
   ========================= */
.cta-icon,
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon img,
.feature-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* =========================
   10) MINISTÉRIOS COM LOGOS
   ========================= */
.ministries-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ministry-logo-card {
  text-align: center;
  min-height: 100%;
}

.ministry-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

.ministry-logo-card h3 {
  font-size: 1.6rem;
}

.ministry-logo-card p {
  max-width: 92%;
  margin: 0 auto;
}

/* =========================
   11) EVENTOS / SÉRIES / BLOCOS DE CONTEÚDO
   ========================= */
.events-grid,
.sermon-grid,
.resource-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card,
.sermon-card,
.resource-card {
  background: var(--primicias-branco);
  border: 1px solid var(--primicias-borda);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--primicias-sombra);
}

.event-card img,
.sermon-card img,
.resource-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-info,
.sermon-info,
.resource-info {
  padding: 22px 20px 24px;
}

.event-info h3,
.sermon-info h3,
.resource-info h3 {
  margin-bottom: 12px;
  color: var(--primicias-marrom);
}

/* =========================
   12) EMBEDS / MAPA / AGENDA
   ========================= */
.embed-card {
  margin-top: 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.embed-card iframe {
  width: 100%;
  border: 0;
}

#calendar-fallback-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

#calendar-fallback-link {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background-color: #2E7D32;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

/* =========================
   13) FORMULÁRIOS
   ========================= */
.connect-form,
.form-panel,
.auth-box {
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--primicias-borda);
  border-radius: var(--radius-xl);
  box-shadow: var(--primicias-sombra);
  padding: 28px 24px;
}

.connect-form input,
.connect-form textarea,
.connect-form select,
.form-panel input,
.form-panel textarea,
.form-panel select,
.auth-box input,
.auth-box textarea,
.auth-box select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(67,45,40,0.14);
  background: #fff;
  color: var(--primicias-texto);
}

.connect-form label,
.form-panel label,
.auth-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primicias-marrom);
}

/* =========================
   14) FOOTER PADRÃO
   ========================= */
.footer {
  background: var(--primicias-marrom);
  color: #F7F1E5;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer h4 {
  color: #F7F1E5;
  margin-bottom: 1rem;
}

.footer p,
.footer li,
.footer a {
  color: rgba(247, 241, 229, 0.92);
}

.footer a:hover {
  opacity: 0.85;
}

.footer-grid > div h4 {
  letter-spacing: -0.01em;
}

.footer-links li,
.social-list li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.footer-logo-ipb {
  width: 110px;
  height: auto;
  margin-top: 18px;
  opacity: 0.92;
  background: rgba(255,255,255,0.05);
  padding: 8px;
  border-radius: 10px;
}

/* =========================
   15) LOGIN / ÁREA RESTRITA PÚBLICA
   ========================= */
.login-hero,
.auth-hero {
  min-height: 38vh;
}

.login-wrapper,
.auth-wrapper {
  padding: 4rem 0 5rem;
}

/* =========================
   16) RESPONSIVO
   ========================= */
@media (max-width: 1180px) {
  .features-grid,
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid,
  .events-grid,
  .sermon-grid,
  .resource-grid,
  .ministries-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 3.5rem;
    --space-grid: 18px;
  }

  .navbar .container {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }

  .brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }

  .brand img.logo-header {
    height: 52px;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    padding: 0;
    margin: 0;
  }

  .nav-list a {
    font-size: 0.92rem;
    line-height: 1.2;
    padding: 0.2rem 0.1rem;
  }

  .hero {
    min-height: 44vh;
    padding: 3.5rem 0;
  }

  .hero h1,
  #heroTitle,
  #hero-title {
    font-size: 2rem;
    max-width: 92%;
  }

  .hero p,
  #heroSubtitle,
  #hero-subtitle {
    font-size: 1rem;
    max-width: 90%;
  }

  .info-section h2,
  .connect-section h2,
  .features h2,
  .cta-section h2,
  .calendar-section h2,
  .map-section h2 {
    font-size: 2rem;
  }

  .features-grid,
  .cta-grid,
  .cards-grid,
  .events-grid,
  .sermon-grid,
  .resource-grid,
  .ministries-logo-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .cta-card,
  .content-card,
  .ministry-logo-card,
  .event-card,
  .sermon-card,
  .resource-card,
  .connect-form,
  .form-panel,
  .auth-box {
    padding: 24px 20px;
  }

  .cta-icon,
  .feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }

  .cta-icon img,
  .feature-icon img {
    width: 28px;
    height: 28px;
  }

  .ministry-logo {
    width: 96px;
    height: 96px;
  }

  .ministry-logo-card h3,
  .feature h3,
  .cta-card h3,
  .content-card h3 {
    font-size: 1.45rem;
  }

  .btn,
  button,
  a.btn {
    width: min(280px, 92%);
    min-width: unset;
    padding: 12px 20px;
  }

  #map-iframe {
    min-height: 300px;
  }

  #calendar-iframe {
    min-height: 420px;
  }

  .footer-logo-ipb {
    width: 96px;
  }
}
/* =========================
   MENU PÚBLICO HÍBRIDO
   ========================= */

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav button {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #F7F1E5;
  border-radius: 999px;
}

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

.main-nav .nav-list > li {
  position: relative;
  list-style: none;
}

.main-nav .has-dropdown {
  position: relative;
}

.main-nav .has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 230px;
  background: #fffdfa;
  border: 1px solid rgba(67, 45, 40, 0.10);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(42, 26, 21, 0.14);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

.main-nav .dropdown-menu li {
  margin: 0;
  list-style: none;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--primicias-marrom);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a.active {
  background: rgba(200, 169, 106, 0.12);
  color: var(--primicias-marrom-escuro);
}

.main-nav .has-dropdown:hover > .dropdown-menu,
.main-nav .has-dropdown.open > .dropdown-menu {
  display: block;
}

/* MOBILE */
@media (max-width: 980px) {
  .main-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, 92vw);
    background: #4A2C2A;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(42, 26, 21, 0.22);
    padding: 12px;
    z-index: 1200;
  }

  .main-nav .nav-list.open {
    display: flex;
  }

  .main-nav .nav-list > li > a,
  .main-nav .dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .main-nav .dropdown-menu {
    position: static;
    min-width: auto;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    padding: 6px 0 8px 0;
    margin-top: 4px;
    display: none;
  }

  .main-nav .has-dropdown.open > .dropdown-menu {
    display: block;
  }

  .main-nav .dropdown-menu a {
    color: #F7F1E5;
    padding: 10px 16px 10px 22px;
    font-weight: 500;
  }

  .main-nav .dropdown-menu a:hover,
  .main-nav .dropdown-menu a.active {
    background: rgba(255,255,255,0.08);
    color: var(--primicias-dourado-suave);
  }
}