/* /realestate/assets/css/re-footer.css — Stage 4
   Styles for the dynamic footer (includes/re-footer-config.php → re_footer_render()).
   All classes are prefixed rxf- (no collisions with the legacy re-* rules).
   Contrast on #0f1f24: body text >= 7:1, links >= 7:1, small print >= 4.5:1 (WCAG 2.2 AA). */

.rxf { background: #0f1f24; color: #c9d4d9; font-family: var(--rx-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif); font-size: .875rem; line-height: 1.6; margin-top: 0; }
.rxf *, .rxf *::before, .rxf *::after { box-sizing: border-box; }
.rxf a { color: #dbe5e9; text-decoration: none; }
.rxf a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rxf a:focus-visible { outline: 2px solid #8fd0e0; outline-offset: 2px; border-radius: 2px; }
.rxf ul { list-style: none; margin: 0; padding: 0; }
.rxf p { margin: 0; }
.rxf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rxf-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 28px; }
.rxf-grid { display: grid; gap: 36px 40px; grid-template-columns: 2fr repeat(3, 1fr); }
@media (max-width: 1023px) { .rxf-grid { grid-template-columns: 1fr 1fr; } .rxf-brand { grid-column: 1 / -1; } }
@media (max-width: 560px)  { .rxf-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Brand block */
/* object-fit: contain — the old rule capped the width but fixed the height, which squashes any wide logo. */
.rxf-logo { display: inline-block; }
.rxf-logo img { display: block; height: var(--rxf-logo-h, 34px); width: auto; max-width: min(100%, 300px); object-fit: contain; object-position: left center; }
.rxf-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.rxf-about { margin-top: 12px; max-width: 46ch; color: #c9d4d9; }
.rxf-contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.rxf-addr { color: #c9d4d9; }
.rxf-k { display: inline-block; min-width: 68px; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: #d4b483; font-weight: 600; }
.rxf-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rxf-social a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .8125rem; font-weight: 500; }
.rxf-social a:hover { border-color: #fff; text-decoration: none; }
.rxf-back { display: inline-block; margin-top: 18px; font-size: .8125rem; color: #aebcc3; }

/* Link columns */
.rxf-h { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d4b483; margin-bottom: 14px; }
.rxf-col li + li { margin-top: 4px; }
.rxf-col a { display: inline-block; padding: 3px 0; min-height: 28px; }

/* Compliance notes */
.rxf-notes { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; font-size: .8125rem; color: #aebcc3; }
.rxf-notes strong { color: #dbe5e9; font-weight: 600; }
.rxf-notes a { text-decoration: underline; text-underline-offset: 3px; }

/* Bottom bar */
.rxf-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: .8125rem; color: #aebcc3; }
.rxf-copy a { color: #c9d4d9; text-decoration: underline; text-underline-offset: 3px; }
.rxf-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rxf-legal a { padding: 4px 0; }
.rxf-credit { color: #aebcc3; }
.rxf-credit a, .rxf-credit strong { color: #fff; font-weight: 600; }

/* The module's fixed 60px mobile bottom nav would otherwise cover the last line of the footer. */
@media (max-width: 899px) { .rxf { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { .rxf-bottom { flex-direction: column; align-items: flex-start; } }
@media print { .rxf { background: #fff; color: #000; } .rxf a { color: #000; } }
