/* =====================================================================
   Padrão visual Modal Modular (Contato, Seja um Corretor, Privacidade,
   Home, Sobre, Publicações, Realizações)
   Carregado em header.asp. Use a classe .mm-pg no <main> da página.
   ===================================================================== */

.mm-pg {
  --mm-accent: var(--accent-color, #3980AC);
  --mm-borda: #dfe5ea;
  --mm-texto: #3d4348;
  --mm-suave: #6b7680;
  --mm-whats: #1f9d55;
  --mm-raio: 14px;
  --mm-sombra: 0 8px 28px rgba(0, 0, 0, .06);
  --mm-sombra-hover: 0 14px 34px rgba(0, 0, 0, .11);
}

/* ---------- Cabeçalho de seção ---------- */
.mm-pg .mm-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-accent); margin-bottom: 8px; }
.mm-pg .mm-titulo { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--heading-color, #3e5055); margin: 0 0 12px; }
.mm-pg .mm-lead { font-size: 16px; line-height: 1.75; color: var(--mm-texto); }
.mm-pg .mm-mais { text-align: center; margin-top: 32px; }

/* ---------- Card base ---------- */
.mm-pg .mm-card { background: #fff; border: 1px solid var(--mm-borda); border-radius: var(--mm-raio); padding: 32px; box-shadow: var(--mm-sombra); }
.mm-pg .mm-card-titulo { font-size: 22px; margin: 0 0 4px; color: var(--heading-color, #3e5055); }
.mm-pg .mm-card-sub { color: var(--mm-suave); margin: 0 0 8px; font-size: 14px; }

/* Destaque com barra lateral */
.mm-pg .mm-intro { font-size: 16px; color: var(--mm-texto); line-height: 1.75; padding: 18px 20px; margin: 18px 0; border-left: 4px solid var(--mm-accent); background: color-mix(in srgb, var(--mm-accent), transparent 94%); border-radius: 0 10px 10px 0; }
.mm-pg .mm-intro p:last-child { margin-bottom: 0; }

/* Lista com check */
.mm-pg .mm-checks { list-style: none; margin: 0; padding: 0; }
.mm-pg .mm-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--mm-texto); line-height: 1.6; }
.mm-pg .mm-checks li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--mm-accent); font-size: 18px; }

/* ---------- Botões ---------- */
.mm-pg .mm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 8px; border: 1.5px solid var(--mm-accent); background: var(--mm-accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .1s; cursor: pointer; }
.mm-pg .mm-btn:hover { background: color-mix(in srgb, var(--mm-accent) 85%, #000); border-color: color-mix(in srgb, var(--mm-accent) 85%, #000); color: #fff; }
.mm-pg .mm-btn:active { transform: translateY(1px); }
.mm-pg .mm-btn-outline { background: transparent; color: var(--mm-accent); }
.mm-pg .mm-btn-outline:hover { background: var(--mm-accent); color: #fff; }
.mm-pg .mm-btn-whats { background: var(--mm-whats); border-color: var(--mm-whats); color: #fff; }
.mm-pg .mm-btn-whats:hover { background: #188046; border-color: #188046; color: #fff; }
.mm-pg .mm-btn-claro { background: #fff; border-color: #fff; color: var(--mm-accent); }
.mm-pg .mm-btn-claro:hover { background: transparent; color: #fff; border-color: #fff; }
.mm-pg .mm-btn-sm { padding: 9px 16px; font-size: 14px; }
.mm-pg .mm-btn-bloco { width: 100%; }

/* ---------- Ícone em caixa ---------- */
.mm-pg .mm-icone-box { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--mm-accent); background: color-mix(in srgb, var(--mm-accent), transparent 88%); }
.mm-pg .mm-icone-box.whats { color: var(--mm-whats); background: rgba(31, 157, 85, .12); }

/* ---------- Card de benefício (ícone + texto) ---------- */
.mm-pg .mm-beneficio { height: 100%; background: #fff; border: 1px solid var(--mm-borda); border-radius: var(--mm-raio); padding: 22px 18px; box-shadow: var(--mm-sombra); text-align: center; transition: transform .2s, box-shadow .2s; }
.mm-pg .mm-beneficio:hover { transform: translateY(-3px); box-shadow: var(--mm-sombra-hover); }
.mm-pg .mm-beneficio .mm-icone-box { margin-bottom: 12px; }
.mm-pg .mm-beneficio h3 { font-size: 16px; margin: 0 0 6px; color: var(--heading-color, #3e5055); }
.mm-pg .mm-beneficio p { margin: 0; font-size: 14px; color: var(--mm-suave); line-height: 1.55; }

/* ---------- Card com imagem (realizações, serviços, publicações) ---------- */
.mm-pg .mm-item { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mm-borda); border-radius: var(--mm-raio); overflow: hidden; box-shadow: var(--mm-sombra); transition: transform .25s, box-shadow .25s; }
.mm-pg .mm-item:hover { transform: translateY(-4px); box-shadow: var(--mm-sombra-hover); }
.mm-pg .mm-item-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #f3f5f7; overflow: hidden; }
.mm-pg .mm-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mm-pg .mm-item-img.contain img { object-fit: contain; }
.mm-pg .mm-item:hover .mm-item-img img { transform: scale(1.04); }
.mm-pg .mm-item-corpo { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.mm-pg .mm-item-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--mm-suave); }
.mm-pg .mm-item-meta i { color: var(--mm-accent); margin-right: 4px; }
.mm-pg .mm-item-titulo { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0; color: var(--heading-color, #3e5055); }
.mm-pg .mm-item-titulo a { color: inherit; text-decoration: none; }
.mm-pg .mm-item:hover .mm-item-titulo { color: var(--mm-accent); }
.mm-pg .mm-item-texto { margin: 0; font-size: 14px; color: var(--mm-suave); line-height: 1.6; }
.mm-pg .mm-item-acoes { margin-top: auto; padding-top: 6px; }
.mm-pg .mm-item-link { font-weight: 700; font-size: 14px; color: var(--mm-accent); text-decoration: none; }
.mm-pg .mm-item-link::after { content: " \2192"; }
.mm-pg .mm-preco { font-size: 20px; font-weight: 800; color: #086a20; }

/* ---------- Faixa de chamada (CTA) ---------- */
.mm-pg .mm-cta { border-radius: 18px; padding: 44px 40px; color: #fff; background: linear-gradient(135deg, var(--mm-accent) 0%, color-mix(in srgb, var(--mm-accent) 70%, #000) 100%); box-shadow: 0 16px 40px color-mix(in srgb, var(--mm-accent), transparent 70%); }
.mm-pg .mm-cta h2 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.mm-pg .mm-cta p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 16px; }
.mm-pg .mm-cta-acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Modal (Bootstrap) ---------- */
.mm-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.mm-modal .modal-header { border-bottom: 1px solid #edf0f3; padding: 18px 24px; }
.mm-modal .modal-title { font-weight: 700; color: var(--heading-color, #3e5055); }
.mm-modal .modal-body { padding: 24px; }
.mm-modal .modal-footer { border-top: 1px solid #edf0f3; padding: 16px 24px; gap: 10px; }
.mm-modal .mm-modal-texto { color: #3d4348; line-height: 1.75; font-size: 15px; }
.mm-modal .mm-modal-texto img { max-width: 100%; height: auto; border-radius: 10px; }
.mm-modal .mm-modal-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #6b7680; margin-bottom: 16px; }
.mm-modal .mm-modal-meta i { color: var(--accent-color, #3980AC); margin-right: 4px; }
.mm-modal .mm-chip { display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent-color, #3980AC); background: color-mix(in srgb, var(--accent-color, #3980AC), transparent 90%); }
.mm-modal .mm-btn-whats { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; border: 0; background: #1f9d55; color: #fff; font-weight: 700; }
.mm-modal .mm-btn-whats:hover { background: #188046; color: #fff; }
.mm-modal .mm-btn-fechar { padding: 10px 20px; border-radius: 8px; border: 1.5px solid #dfe5ea; background: #fff; color: #3d4348; font-weight: 600; }
.mm-modal .mm-btn-fechar:hover { border-color: var(--accent-color, #3980AC); color: var(--accent-color, #3980AC); }

/* Galeria do modal */
.mm-galeria .carousel-item { background: #f3f5f7; border-radius: 12px; overflow: hidden; }
.mm-galeria .carousel-item img,
.mm-galeria .carousel-item video { display: block; margin: 0 auto; max-width: 100%; max-height: 480px; width: auto; height: auto; object-fit: contain; }
.mm-galeria .carousel-control-prev,
.mm-galeria .carousel-control-next { width: 44px; height: 44px; top: 50%; transform: translateY(-50%); margin: 0 10px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); opacity: 1; }
.mm-galeria .carousel-control-prev i,
.mm-galeria .carousel-control-next i { color: #3d4348; font-size: 20px; }
.mm-miniaturas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.mm-miniaturas button { width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f3f5f7; opacity: .65; transition: opacity .2s, border-color .2s; }
.mm-miniaturas button img { width: 100%; height: 100%; object-fit: cover; }
.mm-miniaturas button.active,
.mm-miniaturas button:hover { opacity: 1; border-color: var(--accent-color, #3980AC); }

/* ---------- Paginação ---------- */
.mm-pg .mm-paginacao { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 36px 0 0; }
.mm-pg .mm-paginacao a,
.mm-pg .mm-paginacao span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1.5px solid var(--mm-borda); background: #fff; color: var(--mm-texto); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.mm-pg .mm-paginacao a:hover { border-color: var(--mm-accent); color: var(--mm-accent); }
.mm-pg .mm-paginacao .atual { background: var(--mm-accent); border-color: var(--mm-accent); color: #fff; }

/* ---------- Estado vazio ---------- */
.mm-pg .mm-vazio { text-align: center; padding: 48px 24px; background: #fff; border: 1px dashed var(--mm-borda); border-radius: var(--mm-raio); }
.mm-pg .mm-vazio i { font-size: 40px; color: var(--mm-accent); }
.mm-pg .mm-vazio h3 { font-size: 20px; margin: 12px 0 6px; color: var(--heading-color, #3e5055); }
.mm-pg .mm-vazio p { color: var(--mm-suave); margin: 0 0 18px; }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
  .mm-pg .mm-card { padding: 22px 18px; }
  .mm-pg .mm-cta { padding: 32px 22px; text-align: center; }
  .mm-pg .mm-cta-acoes { justify-content: center; margin-top: 20px; }
  .mm-pg .mm-titulo { font-size: 25px; }
}
@media (max-width: 575px) {
  .mm-pg .mm-item-corpo { padding: 14px; }
  .mm-pg .mm-item-titulo { font-size: 15px; }
  .mm-pg .mm-cta-acoes .mm-btn { width: 100%; }
}
