/* Reel Home Loans — replica shims: interactive states React normally handles,
   plus resets so the WordPress wrapper doesn't interfere with the replica markup. */

/* Strip theme/WP layout padding so the replica controls the full page. */
.rhl-replica .wp-site-blocks,
.rhl-replica main.wp-block-group { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.rhl-replica .wp-block-post-content { max-width: none !important; }

/* Prevent stray horizontal scroll on mobile ("slides back and forth").
   `clip` stops horizontal scrolling without creating a scroll container,
   so sticky positioning keeps working. */
body.rhl-replica { overflow-x: clip; }
.rhl-replica .wp-site-blocks { overflow-x: clip; }

/* Some CTA rows in the reference use `flex justify-center gap-3` with no
   wrap; two nowrap buttons overflow narrow screens. Let them wrap on mobile. */
@media (max-width: 640px) {
  .rhl-replica .flex.justify-center.gap-3,
  .rhl-replica .flex.flex-wrap.gap-3,
  .rhl-replica .flex.items-center.gap-4 { flex-wrap: wrap; }
}

/* Sticky header: solid forest gradient after scroll (matches the React scrolled state). */
header.rhl-scrolled {
  background-color: transparent !important;
  background-image: linear-gradient(160deg, #093420, #154D31) !important;
  box-shadow: 0 24px 60px -24px rgba(9, 52, 32, 0.45) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Mobile menu (built by replica.js). */
.rhl-mobile-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background-image: linear-gradient(160deg, #093420, #154D31);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px -24px rgba(9, 52, 32, 0.55);
}
.rhl-mobile-menu.is-open { display: block; }
.rhl-mobile-menu a {
  display: block; padding: 0.75rem 0; color: #fff; font-family: "Outfit", sans-serif;
  font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.rhl-mobile-menu a:hover { color: #F2AE2A; }
.rhl-mobile-menu .rhl-mm-cta {
  margin-top: 1rem; background: #F2AE2A; color: #2D1F05; text-align: center;
  border-radius: 6px; border-bottom: 0; text-transform: uppercase; letter-spacing: 0.03em;
}
.rhl-mobile-menu .rhl-mm-apply {
  margin-top: 0.6rem; text-align: center; color: #fff; border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.03em;
}
.rhl-mobile-menu .rhl-mm-apply:hover { background: rgba(255,255,255,0.12); color: #fff; }
