/* ==========================================================================
   COMADEMS — Home 1.18.0  ·  prefixo .hx-
   Estrutura inspirada na Home da COMADEMAT, com identidade COMADEMS.
   Fontes do próprio site: Roboto Condensed (títulos) e Roboto (texto). Sem fonte externa.
   Seções de largura total ("hx-bleed") dentro de qualquer coluna do Impreza.
   ========================================================================== */

.hx {
  --hx-navy: #13324c;
  --hx-navy-2: #0b2236;
  --hx-sky: #3fb8e8;
  --hx-sky-text: #1b7fb0;
  --hx-tint: #eef8fd;
  --hx-line: #dbe6ee;
  --hx-text: #3b4650;
  --hx-head: "Roboto Condensed", Roboto, "Arial Narrow", Arial, sans-serif;
  --hx-body: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--hx-body);
  color: var(--hx-text);
  line-height: 1.6;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx img { max-width: 100%; height: auto; }
html:has(.hx) { overflow-x: clip; }

/* Largura total, mesmo dentro de coluna estreita */
.hx-bleed { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.hx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- Cabeçalho de seção ------------------------------------------------ */
.hx-sec { padding: clamp(56px, 8vw, 104px) 0; background: #fff; }
.hx-tint { background: var(--hx-tint); }
.hx-head { margin-bottom: clamp(28px, 4vw, 48px); }
.hx-head--center { text-align: center; }
.hx-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hx-eyebrow { margin: 0 0 .5rem; font: 700 .8125rem/1.2 var(--hx-body); letter-spacing: .16em; text-transform: uppercase; color: var(--hx-sky-text); }
.hx-title { margin: 0; font-family: var(--hx-head); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.08; color: var(--hx-navy); }
.hx-when { margin: .6rem 0 0; font-size: 1.125rem; color: var(--hx-text); }
.hx-rule { display: inline-flex; gap: 6px; margin-top: 1rem; }
.hx-rule::before, .hx-rule::after { content: ""; display: block; height: 4px; background: var(--hx-sky); }
.hx-rule::before { width: 56px; }
.hx-rule::after { width: 28px; opacity: .55; }
.hx-dark { background: linear-gradient(160deg, var(--hx-navy) 0%, var(--hx-navy-2) 100%); }
.hx-dark .hx-eyebrow { color: var(--hx-sky); }
.hx-dark .hx-title { color: #fff; }
.hx-link { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem var(--hx-head); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-sky-text) !important; text-decoration: none !important; }
.hx-link svg { width: 20px; height: 20px; transition: transform .25s; }
.hx-link:hover svg { transform: translateX(5px); }
.hx-more { margin: 2.5rem 0 0; text-align: center; }

/* ---- Botões -------------------------------------------------------------- */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem;
  font: 600 1rem/1.2 var(--hx-head); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none !important; border: 1px solid transparent; border-radius: 0;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s, border-color .3s, transform .2s, box-shadow .3s;
}
.hx-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hx-btn:hover::before, .hx-btn:focus-visible::before { transform: none; }
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn:focus-visible { outline: 2px solid var(--hx-sky); outline-offset: 3px; }
.hx-btn--sky { background: var(--hx-sky); color: var(--hx-navy-2) !important; }
.hx-btn--sky::before { background: #fff; }
.hx-btn--sky:hover { box-shadow: 0 10px 28px rgba(63, 184, 232, .35); }
.hx-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.65); }
.hx-btn--ghost::before { background: var(--hx-sky); }
.hx-btn--ghost:hover { color: var(--hx-navy-2) !important; border-color: var(--hx-sky); }
.hx-btn--navy { background: var(--hx-navy); color: #fff !important; }
.hx-btn--navy::before { background: var(--hx-sky-text); }

/* ---- Revelar ao rolar ----------------------------------------------------- */
.hx-js [data-hx-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--hx-d, 0s); }
.hx-js [data-hx-reveal].is-in { opacity: 1; transform: none; }

/* ---- HERO ---------------------------------------------------------------- */
.hx-hero {
  min-height: clamp(520px, 82vh, 760px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(125deg, #0a2236, #13324c 38%, #0f4a6e 62%, #0b2236);
  background-size: 240% 240%;
  animation: hx-shift 18s ease-in-out infinite alternate;
}
@keyframes hx-shift { to { background-position: 100% 100%; } }
.hx-hero::before { /* grade sutil */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hx-hero::after { /* vinheta inferior */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 20, 32, .55), transparent);
}
.hx-hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hx-hero__glow {
  position: absolute; width: 620px; height: 620px; left: 50%; top: 50%; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(63,184,232,.28), transparent 65%);
  transform: translate(var(--hx-gx, 0), var(--hx-gy, 0)); transition: transform .6s ease-out;
}
.hx-hero__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 96px; }
.hx-hero__kicker { margin: 0 0 .75rem; font: 600 clamp(1.1rem, 2.4vw, 1.5rem) var(--hx-head); letter-spacing: .18em; text-transform: uppercase; color: var(--hx-sky); }
.hx-hero__title { margin: 0; font-family: var(--hx-head); font-weight: 700; font-size: clamp(3.4rem, 12vw, 8rem); line-height: .95; letter-spacing: .02em; color: #fff;
  background: linear-gradient(100deg, #fff 30%, #bfe9f8 50%, #fff 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hx-sheen 7s linear infinite; }
@keyframes hx-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hx-hero__sub { max-width: 40rem; margin: 1.25rem auto 0; font-size: clamp(1.05rem, 2.2vw, 1.375rem); line-height: 1.5; color: rgba(255,255,255,.92); }
.hx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2.25rem; }

/* ---- Contadores (sobrepõem a base do hero) ------------------------------- */
.hx-counters { margin-top: -54px; z-index: 3; }
.hx-counters__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; box-shadow: 0 24px 60px rgba(11, 34, 54, .22); }
.hx-counter { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem 1rem; background: var(--hx-sky); color: #fff; }
.hx-counter:nth-child(even) { background: #fff; color: var(--hx-navy); }
.hx-counter__ico { display: grid; place-items: center; width: 56px; height: 56px; background: #fff; color: var(--hx-sky-text); flex: none; }
.hx-counter:nth-child(even) .hx-counter__ico { background: var(--hx-sky); color: #fff; }
.hx-counter__ico svg { width: 26px; height: 26px; }
.hx-counter__txt { display: flex; flex-direction: column; line-height: 1.1; }
.hx-counter__txt strong { font: 700 clamp(2rem, 4vw, 2.6rem)/1 var(--hx-head); font-variant-numeric: tabular-nums; }
.hx-counter__txt span { margin-top: .3rem; font-size: .9375rem; font-weight: 500; }

/* ---- Evento: cards com losango ------------------------------------------ */
.hx-event { padding-top: clamp(72px, 9vw, 120px); }
.hx-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.hx-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  padding: 2.25rem 1.25rem 2rem; background: var(--hx-tint); border: 1px solid transparent;
  color: var(--hx-text) !important; text-decoration: none !important;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background .35s, border-color .35s;
}
.hx-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--hx-sky); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.hx-card:hover, .hx-card:focus-visible { transform: translateY(-8px); background: #fff; border-color: var(--hx-line); box-shadow: 0 22px 44px rgba(19, 50, 76, .16); }
.hx-card:hover::after, .hx-card:focus-visible::after { transform: none; }
.hx-card:focus-visible { outline: 2px solid var(--hx-sky); outline-offset: 3px; }
.hx-diamond { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1.1rem; color: #fff; }
.hx-diamond::before { content: ""; position: absolute; inset: 11px; transform: rotate(45deg); background: var(--hx-navy); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hx-card--sky .hx-diamond::before { background: var(--hx-sky); }
.hx-card:hover .hx-diamond::before { transform: rotate(225deg) scale(1.08); }
.hx-diamond svg { position: relative; width: 28px; height: 28px; }
.hx-card b { font: 700 1.5rem/1.15 var(--hx-head); color: var(--hx-navy); }
.hx-card b em { display: block; font-style: normal; text-transform: uppercase; letter-spacing: .02em; }
.hx-card > span:not(.hx-diamond) { font-size: .9375rem; color: #66727d; }
.hx-card__go { margin-top: .6rem; color: var(--hx-sky-text); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.hx-card__go svg { width: 22px; height: 22px; }
.hx-card:hover .hx-card__go, .hx-card:focus-visible .hx-card__go { opacity: 1; transform: none; }
.hx-event .cmd-v-event-hero { margin-top: clamp(32px, 5vw, 56px); }

/* ---- Cards no formato COMADEMAT: 2 por linha, centralizados -------------- */
.hx-cards { max-width: 780px; margin: 0 auto; }
.hx-logo { display: grid; place-items: center; width: 110px; height: 84px; margin-bottom: 1.1rem; }
.hx-logo img { max-height: 84px; width: auto; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hx-card:hover .hx-logo img { transform: scale(1.08); }
.hx-title--sm { font-size: clamp(1.4rem, 3.2vw, 2rem); text-transform: uppercase; color: var(--hx-sky-text); }

/* ---- Hospedagem ---------------------------------------------------------- */
.hx-stay { padding: clamp(40px, 6vw, 72px) 0; }
.hx-stay__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(32px, 9vw, 120px); margin: 0 0 1.75rem; }
.hx-stay__item { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-decoration: none !important; color: #66727d !important; }
.hx-stay__item b { font: 700 1.5rem/1.2 var(--hx-head); color: var(--hx-navy); }
.hx-stay__item .hx-diamond { margin-bottom: .4rem; }
.hx-stay__item:hover .hx-diamond::before { transform: rotate(225deg) scale(1.08); }
.hx-diamond--navy::before { background: var(--hx-navy) !important; }
.hx-stay .hx-diamond::before { background: var(--hx-sky); }
.hx-note { max-width: 46rem; margin: 0 auto; text-align: center; font-size: .9375rem; color: #66727d; }

/* ---- Slider (no meio da página) ----------------------------------------- */
.hx-slider-sec { padding: clamp(24px, 4vw, 56px) 0; background: linear-gradient(180deg, #fff, var(--hx-tint)); }
.hx-slider { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1920 / 490; background: var(--hx-navy); box-shadow: 0 28px 60px rgba(11, 34, 54, .28); }
.hx-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.hx-slide.is-on { opacity: 1; z-index: 1; }
.hx-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hx-slide.is-on img { transform: scale(1.1); }
.hx-slider__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 34, 54, .55); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .25s, transform .25s; }
.hx-slider__nav:hover { background: var(--hx-sky); color: var(--hx-navy-2); }
.hx-slider__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hx-slider__nav svg { width: 22px; height: 22px; }
.hx-slider__nav--prev { left: 14px; } .hx-slider__nav--prev svg { transform: scaleX(-1); }
.hx-slider__nav--next { right: 14px; }
.hx-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hx-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.hx-slider__dots button.is-on { width: 30px; background: var(--hx-sky); }

/* ---- Credencial e anuidade ---------------------------------------------- */
.hx-duo { display: grid; grid-template-columns: 1fr; gap: 22px; }
.hx-panel { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid var(--hx-line); box-shadow: 0 10px 30px rgba(19, 50, 76, .08); transition: transform .35s, box-shadow .35s; }
.hx-panel:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(19, 50, 76, .16); }
.hx-panel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hx-panel h3 { margin: 0 0 .4rem; font: 700 1.75rem/1.1 var(--hx-head); color: var(--hx-navy); }
.hx-panel p { margin: 0 0 1.1rem; }

/* ---- Diretoria (dados do Core) ------------------------------------------ */
.hx-lider .cmd-v-person:nth-child(n + 8) { display: none; }
.hx-lider .cmd-v-people { margin: 0; }

/* ---- Notícias / igrejas -------------------------------------------------- */
.hx-news .cmd05-grid { margin: 0; }
.hx-news .cmd05-card { transition: transform .35s, box-shadow .35s; }
.hx-news .cmd05-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(19, 50, 76, .16); }
@media (max-width: 599px) { .hx-news .cmd05-card:nth-child(n + 3) { display: none; } }
.hx-igrejas .cmd-v-church:nth-child(n + 9) { display: none; }
.hx-igrejas .cmd-v-church { background: #fff; transition: transform .3s, box-shadow .3s; }
.hx-igrejas .cmd-v-church:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19, 50, 76, .14); }

/* ---- Faixa de contato ---------------------------------------------------- */
.hx-cta { padding: clamp(40px, 6vw, 72px) 0; background: linear-gradient(110deg, var(--hx-navy-2), var(--hx-navy) 60%, #0f4a6e); color: #fff; }
.hx-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.hx-cta h2 { margin: 0 0 .3rem; font: 700 clamp(1.6rem, 3.4vw, 2.2rem)/1.1 var(--hx-head); color: #fff; }
.hx-cta p { margin: 0; color: rgba(255,255,255,.85); }

/* ---- Telas maiores -------------------------------------------------------- */
@media (min-width: 640px) {
  .hx-counters__list { grid-template-columns: repeat(2, 1fr); }
  .hx-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hx-counters__list { grid-template-columns: repeat(var(--hx-n, 4), 1fr); }
  .hx-cards { gap: 22px; }
  .hx-duo { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hx-panel { padding: 1.5rem; }
}
@media (min-width: 1100px) {
  .hx-igrejas .cmd-v-church:nth-child(n + 7) { display: none; }
}
@media (max-width: 599px) {
  .hx-btn { width: 100%; }
  .hx-hero__cta { flex-direction: column; align-items: stretch; }
  .hx-slider__nav { opacity: .85; }
  .hx-slider__dots { bottom: 6px; }
  .hx-slider__nav { width: 38px; height: 38px; margin-top: -19px; }
}

/* ---- Movimento reduzido: tudo estático ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hx-hero, .hx-hero__title { animation: none; }
  .hx-hero__title { -webkit-text-fill-color: #fff; background: none; }
  .hx-hero__glow { transition: none; }
  .hx-js [data-hx-reveal] { opacity: 1; transform: none; transition: none; }
  .hx-btn, .hx-btn::before, .hx-card, .hx-card::after, .hx-diamond::before, .hx-panel, .hx-slide, .hx-slide img { transition: none; }
  .hx-slide img, .hx-slide.is-on img { transform: none; }
}


/* ==== 1.18.1 · firulas ==================================================== */
/* faixa branca entre menu e hero */
.l-section:has(#hx-home) { padding-top: 0 !important; padding-bottom: 0 !important; }

/* frase rotativa do hero */
.hx-rotate { position: relative; min-height: 4.6em; }
.hx-rotate p { position: absolute; left: 0; right: 0; margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s; }
.hx-rotate p.is-on { opacity: 1; transform: none; }
.hx-js-off .hx-rotate p:first-child { opacity: 1; }

/* indicador de rolagem */
.hx-scroll { position: absolute; left: 50%; bottom: 36px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.hx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--hx-sky); animation: hx-wheel 1.8s ease-in-out infinite; }
@keyframes hx-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hx-counters { margin-top: -54px; }

/* barra de progresso de leitura */
.hx-progress { position: fixed; left: 0; top: 0; z-index: 99999; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #3fb8e8, #fff); pointer-events: none; }

/* inclinação 3D nos cards */
.hx-card, .hx-panel { transform-style: preserve-3d; }
.hx-card.is-tilt, .hx-panel.is-tilt { transform: perspective(900px) rotateX(var(--hx-rx, 0deg)) rotateY(var(--hx-ry, 0deg)) translateY(-8px); transition: transform .12s; }

/* botão de voltar ao topo: quadrado azul, como na COMADEMAT */
.w-toplink { background: var(--hx-sky, #3fb8e8) !important; color: #fff !important; border-radius: 0 !important; left: auto !important; right: 24px !important; width: 48px !important; height: 48px !important; opacity: 1 !important; box-shadow: 0 10px 24px rgba(11, 34, 54, .3); transition: transform .25s, background .25s; }
.w-toplink:hover { background: #13324c !important; transform: translateY(-4px); }

@media (max-width: 599px) { .hx-rotate { min-height: 6.6em; } .hx-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .hx-scroll span { animation: none; } .hx-rotate p { transition: none; } .hx-progress { display: none; } }
