/************** CALIREFI CLEANUP 2025 **************/

/* === HIDE ONLY AUTO WP PAGE TITLES === */
.page header.entry-header,
.page .entry-header,
.nv-page-title-wrap,
.nv-page-title,
.wp-block-post-title,
h1.entry-title,
h1.page-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === KEEP CONTENT H1s (YOUR FLOW HEADLINES) VISIBLE === */
.entry-content h1,
.nv-content-wrap .entry-content h1,
.site-content .entry-content h1,
.wp-block-post-content h1,
.elementor .elementor-widget-heading h1,
main .entry-content h1 {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

/* === REMOVE THEME GAP ABOVE CONTENT === */
.page .entry-content,
.nv-content-wrap,
.site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important; /* allow lightboxes to show */
}

/* === HIDE DEFAULT THEME FOOTER === */
footer.site-footer,
footer#colophon,
.elementor-location-footer,
#footer,
.site-info {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === CALIREFI CUSTOM FOOTER (sticky legal bar) === */
#cr-legal {
  box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
  background: #fff;
  padding: 8px 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}
#cr-legal a {
  color: #3fa673;
  text-decoration: none;
  margin: 0 6px;
}

/* === MOBILE TWEAKS FOR FOOTER HEIGHT === */
@media (max-width: 768px) {
  #cr-legal {
    font-size: 11.5px !important;
    padding: 6px 8px !important;
    line-height: 1.3 !important;
  }
  #cr-legal p {
    margin: 2px 0 !important;
  }
}

@media (max-width: 450px) {
  #cr-legal {
    font-size: 10.5px !important;
    padding: 5px 6px !important;
    line-height: 1.2 !important;
  }
}


