/* Site-wide HX footer (#hxf). Also used inside [hx_home]. */

/* Hide the theme / Elementor / Kite footer only — not wp_footer scripts, not #hxf. */
body.hx-new-footer > footer:not(#hxf),
body.hx-new-footer .site-footer,
body.hx-new-footer #footer,
body.hx-new-footer #colophon,
body.hx-new-footer .elementor-location-footer,
body.hx-new-footer .kt-footer,
body.hx-new-footer .kite-footer,
body.hx-new-footer #kt-footer,
body.hx-new-footer .teta-footer,
body.hx-new-footer .wp-site-blocks > footer,
body.hx-new-footer footer.wp-block-template-part,
body.hx-new-footer .wp-block-template-part[class*="footer"] {
  display: none !important;
}

#hxf {
  --rust: #C05133;
  --cream-2: #EDE4D4;
  --paper: #FFFBF5;
  --ink: #2A2420;
  --muted: #7A6E62;
  --line: #E6DAC8;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --page-pad: 20px;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin-top: 28px;
  padding: 28px 0 calc(28px + var(--safe-bot));
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}
#hxf *, #hxf *::before, #hxf *::after { box-sizing: border-box; }
#hxf a { color: var(--rust); }
#hxf img { max-width: 100%; display: block; }
#hxf .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-pad); display: block; }
#hxf .flogo { height: 56px; width: auto; margin-bottom: 12px; }
#hxf p { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--muted); max-width: 40ch; }
#hxf .flinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 18px; }
#hxf .flinks a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14.5px; }
#hxf .social { display: flex; gap: 10px; margin-bottom: 18px; }
#hxf .social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--rust); border: 1px solid var(--line); text-decoration: none; }
#hxf .social svg { width: 18px; height: 18px; }
#hxf .copy { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 0; }

/* Keep the listing sticky buy bar from covering the footer on phones. */
body.hx-listing-page #hxf { padding-bottom: calc(100px + var(--safe-bot)); }

@media (min-width: 769px) {
  #hxf { --page-pad: 24px; }
}
@media (min-width: 720px) {
  #hxf .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
}
@media (min-width: 1024px) {
  body.hx-listing-page #hxf { padding-bottom: calc(28px + var(--safe-bot)); }
}
