/* ==========================================================================
   COMADEMS — Home  ·  tema filho Pensualizei 1.17.0
   Carregado só na página inicial (functions.php). Classes isoladas em .hm-*.
   O WPBakery da Home só monta a estrutura (linhas, fundos, shortcodes do
   Core); o desenho dos blocos vem daqui. Mobile primeiro.

   Padrão de cada seção:  .hm-eyebrow  →  .hm-title  →  .hm-rule  →  .hm-lead
   Fundos alternados pelas linhas da Home: branco · #f3f6f9 · azul-marinho.
   ========================================================================== */

.hm-sec {
  --hm-navy: #13324c;
  --hm-sky: #3fb8e8;       /* destaque sobre fundo escuro e traços */
  --hm-sky-text: #1b7fb0;  /* destaque em texto sobre fundo claro (contraste ≥ 4,5:1) */
  --hm-line: #e3e8ee;
  --hm-text: #333333;
  --hm-head: "Roboto Condensed", Roboto, "Arial Narrow", Arial, sans-serif;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--hm-text);
}

/* ---- Cabeçalho de seção ------------------------------------------------- */
.hm-eyebrow {
  margin: 0 0 .5rem;
  font: 600 .8125rem/1.2 Roboto, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hm-sky-text);
}
.hm-title {
  margin: 0;
  font-family: var(--hm-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.1;
  color: var(--hm-navy);
}
.hm-rule { display: block; width: 56px; height: 4px; margin: 1rem 0 1.25rem; background: var(--hm-sky); }
.hm-lead { margin: 0 0 1.5rem; max-width: 42rem; font-size: 1.0625rem; line-height: 1.65; color: var(--hm-text); }

.hm-dark .hm-eyebrow { color: var(--hm-sky); }
.hm-dark .hm-title { color: #fff; }
.hm-dark .hm-lead { color: rgba(255, 255, 255, .88); }

/* ---- Botões (espelham o estilo "Principal" e o "Claro" do Theme Options) -- */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 1.5rem;
  background: #13324c;
  color: #fff !important;
  font: 600 1rem/1.2 "Roboto Condensed", Roboto, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid #13324c;
  border-radius: 0;
  transition: background .3s, color .3s, border-color .3s;
}
.hm-btn:hover,
.hm-btn:focus-visible { background: transparent; color: #13324c !important; }
.hm-btn:focus-visible { outline: 2px solid #3fb8e8; outline-offset: 3px; }

.hm-btn--light { background: #fff; color: #13324c !important; border-color: #fff; }
.hm-btn--light:hover,
.hm-btn--light:focus-visible { background: transparent; color: #fff !important; border-color: #fff; }

/* ---- A Convenção (texto + citação) -------------------------------------- */
.hm-split { display: grid; gap: 2rem; }
.hm-quote { margin: 0; padding: 1.5rem; background: #13324c; color: #fff; border-left: 6px solid #3fb8e8; }
.hm-quote span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3fb8e8; }
.hm-quote p { margin: .6rem 0; font-family: var(--hm-head); font-size: 1.5rem; line-height: 1.3; color: #fff; }
.hm-quote cite { font-style: normal; font-size: .875rem; opacity: .8; }

/* ---- Atalhos (2 colunas no celular, 4 no desktop) ------------------------ */
.hm-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.1rem 1rem;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-top: 4px solid #13324c;
  color: var(--hm-text) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(19, 50, 76, .06);
  transition: transform .15s, box-shadow .15s;
}
.hm-card:hover,
.hm-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(19, 50, 76, .14); }
.hm-card b { font-family: var(--hm-head); font-size: 1.125rem; line-height: 1.2; color: #13324c; }
.hm-card span { font-size: .875rem; line-height: 1.4; }
.hm-card i {
  margin-top: auto;
  padding-top: .6rem;
  font-style: normal;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hm-sky-text);
}
.hm-card i::after { content: " \2192"; }

/* ---- Credencial e anuidade (faixa azul-marinho) -------------------------- */
.hm-duo { display: grid; gap: 16px; }
.hm-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
}
.hm-panel h3 { margin: 0; font-family: var(--hm-head); font-size: 1.5rem; line-height: 1.2; color: #fff; }
.hm-panel p { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.hm-panel img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 8px; }
.hm-panel .hm-btn { margin-top: auto; }

/* ---- Blocos de dados do Core dentro da Home ------------------------------ */
/* Liderança: presidência em destaque + 6 (os demais ficam em /lideranca/). */
.hm-lider .cmd-v-person:nth-child(n + 8) { display: none; }
.hm-news { margin: 0 0 .5rem; }
.hm-news .cmd05-grid { margin: 0; }
/* Notícias: 2 no celular, 3 a partir de 600px. */
@media (max-width: 599px) {
  .hm-news .cmd05-card:nth-child(n + 3) { display: none; }
}
/* Igrejas: 8 (celular/tablet: 2×4 e 4×2) ou 6 (desktop: 1 fileira de 6). */
.hm-igrejas .cmd-v-church:nth-child(n + 9) { display: none; }

@media (min-width: 600px) {
  .hm-btn { width: auto; }
}
@media (min-width: 900px) {
  .hm-split { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; }
  .hm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .hm-duo { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1100px) {
  .hm-igrejas .cmd-v-church:nth-child(n + 7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-btn, .hm-card { transition: none; }
}
