/* rw-footer.css (Hamza 12/2). Every value is Habitline's own footer, measured at 1440:
   chips use the social-button surface (--fill #e8e8e8, full round, 36px tall), labels the footer heading ink,
   links ink rgb(19,21,21), body rgb(73,77,77), 1200px row inside the footer's 60px column gap.
   Motion: 160ms ease-out background shift only, no scale or glow; off under reduced motion. */
.rwf-ai { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 30px 40px; width: 100%; }
.rwf-g { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rwf-h { margin: 0; font: 500 16px/19.2px "Google Sans Flex", "Google Sans Flex Placeholder", sans-serif; color: rgb(19, 21, 21); }
.rwf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rwf-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border: 0; border-radius: 100px; background: #e8e8e8; color: rgb(19, 21, 21); font: 500 15px/1 "Google Sans Flex", "Google Sans Flex Placeholder", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease-out; }
.rwf-chip:hover { background: #dcdcdc; }
.rwf-chip:focus-visible, .rwf-menu a:focus-visible { outline: 2px solid rgb(19, 21, 21); outline-offset: 2px; }
.rwf-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.rwf-ic svg { width: 15px; height: 15px; }
.rwf-split { position: relative; display: inline-flex; gap: 2px; }
.rwf-split__main { border-radius: 100px 0 0 100px; padding-right: 16px; }
.rwf-split__more { width: 36px; padding: 0; justify-content: center; border-radius: 0 100px 100px 0; }
.rwf-split__more svg { width: 16px; height: 16px; transition: transform 160ms ease-out; }
.rwf-split__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.rwf-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 2px; min-width: 210px; padding: 6px; border-radius: 20px; background: #fff; border: 1px solid rgba(19, 21, 21, .1); box-shadow: 0 8px 20px rgba(19, 21, 21, .05); }
.rwf-menu[hidden] { display: none; }
.rwf-menu a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 6px; border-radius: 14px; color: rgb(19, 21, 21); font: 500 15px/1 "Google Sans Flex", "Google Sans Flex Placeholder", sans-serif; text-decoration: none; transition: background-color 160ms ease-out; }
.rwf-menu a:hover { background: #f2f2f2; }
.rwf-menu .rwf-ic { background: #f2f2f2; }
.rwf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rwf-yt { display: grid !important; place-items: center; }
@media (max-width: 809.98px) {
  .rwf-ai { flex-direction: column; gap: 28px; }
  .rwf-chip { height: 40px; }
  .rwf-split__more { width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .rwf-chip, .rwf-menu a, .rwf-split__more svg { transition: none; } }

/* Round 2 (Hamza 12/2): swapped social glyphs fill Habitline's icon box (20px desktop, 16px phone) instead of a fixed size */
.rwf-yt svg { width: 100%; height: 100%; display: block; }
@media (max-width: 809.98px) {
  /* Ask AI chips: even 2x2 */
  .rwf-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rwf-chips .rwf-chip { width: 100%; }
  .rwf-ai > .rwf-g:first-child { width: 100%; }
  /* Footer link groups side by side: Quick links | Pages, then Support (Habitline stacks all three in one column) */
  footer .framer-1qm2nm { display: grid !important; grid-template-columns: 1fr 1fr; gap: 40px 20px !important; }
  footer .framer-1qm2nm > * { width: auto !important; min-width: 0; }
}

/* "Built by" + Rankwyre lockup (Hamza 12/2). 0.55rem gap = the house credit spacing (wasteboxinc standard). */
.rwf-credit { display: inline-flex !important; align-items: center; gap: .55rem; }
.rwf-credit__link { display: inline-flex; border-radius: 6px; transition: opacity 160ms ease-out; }
.rwf-credit__link:hover { opacity: .75; }
.rwf-credit__link:focus-visible { outline: 2px solid rgb(19, 21, 21); outline-offset: 3px; }
.rwf-credit__link img { display: block; height: 1.42em; width: auto; }
@media (prefers-reduced-motion: reduce) { .rwf-credit__link { transition: none; } }
/* Round 3 (Hamza 12/2): tighter gap, bigger lockup (32px tall = ~0.7 of the 44px footer brand logo) */
.rwf-credit { gap: 8px; }
.rwf-credit__link img { height: 32px; }
@media (max-width: 809.98px) { .rwf-credit__link img { height: 28px; } }

/* Legal links beside the credit (Hamza 12/2): same body colour and size as the credit text */
.rwf-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; margin-left: 28px; }
.rwf-legal a { color: rgb(73, 77, 77); text-decoration: none; transition: color 160ms ease-out; }
.rwf-legal a:hover { color: rgb(19, 21, 21); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 809.98px) { .rwf-legal { margin: 14px 0 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .rwf-legal a { transition: none; } }
/* Round 4: legal links share the credit line and its type; desktop link columns size to their longest link */
.rwf-credit { flex-wrap: wrap; }
.rwf-legal { font: inherit; color: inherit; margin-left: 20px; }
@media (max-width: 809.98px) { .rwf-legal { margin-left: 0; margin-top: 6px; } }
@media (min-width: 1200px) {
  footer .framer-1qm2nm { gap: 48px !important; }
  footer .framer-1qm2nm > * { width: max-content !important; flex: none !important; }
  footer .framer-1qm2nm a { white-space: nowrap; }
}
/* newsletter block -> "Book a call" (live footer copy) */
footer form.rwf-hide { display: none !important; }
footer .rwf-book { align-self: flex-start; flex: none; }
