/* REBA child overrides — keep live styles.css dominant; fix WP/Astra conflicts.
 * Layout: functions.php forces Astra's full-width/stretched layout (page-builder, no sidebar)
 * and dequeues Astra's own CSS on the front end. These rules are the safety net if a plugin
 * or cache re-adds Astra's container CSS: the old site's markup is full-bleed and sizes itself
 * with its own .container / .pw-1500 / .mw-1800 wrappers. */
#page.site,
#content.site-content,
#content.site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#content.site-content > .ast-container > #maincontent {
  display: block;
  width: 100%;
  max-width: none;
  /* no margin here: styles.css sets main margin-top: var(--header-height) on no-hero pages */
}
/* Hide any residual Astra header/footer chrome */
.ast-main-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap,
footer.site-footer .ast-footer-overlay {
  display: none !important;
}

/* Theme image paths: live CSS expects /images/* — map chrome assets */
#header .logo img,
.launch-menu .logo img,
.footer__logo img {
  width: 333px;
  max-width: 100%;
  height: auto;
}
#header .links .icon img,
#header .phone .icon img,
.footer__logins .login-icon img {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* MENU button without FA Pro */
.launch-menu-button::before {
  content: "☰";
  margin-right: 0.4em;
  font-style: normal;
}
.launch-menu-button .fa-bars { display: none; }
.launch-menu-close .fal { font-style: normal; }
.launch-menu-close::before { content: "✕"; font-size: 1.2em; }
.launch-menu-close .fal.fa-times-circle { display: none; }

.footer .city-silhouette img {
  max-width: 100%;
  height: auto;
}

.reba-form-placeholder {
  border: 1px dashed #ccc;
  padding: 1.5rem;
  background: #f1f1f1;
  margin: 1rem 0;
}
.reba-form-placeholder__note {
  margin: 0;
  font-family: var(--alt-font, 'Nunito Sans', sans-serif);
  font-size: 15px;
}

/* Tenant Turner slot — empty until URL supplied */
.reba-tenant-turner-placeholder[hidden] { display: none !important; }

/* ---- v1.3.2 responsive audit ---- */

/* Live's 500w hero crop (banner-1-sm.webp) is 404, so the home carousel never
 * paints and #home-banner stays solid navy on small phones. The temp srcset
 * points both widths at banner-1.webp, which would show the desktop sunset
 * behind the type. Hide the carousel at the same 500px breakpoint the old
 * srcset used. Tablet (768+) and desktop still show the photo. */
@media (max-width: 500px) {
  #home-banner-carousel {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Wide year-by-year calculator table: Bootstrap .table-responsive plus a
 * safety net so nowrap cells scroll instead of stretching the page. */
.reba-calc__table,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Embedded media and preformatted blocks shouldn't force a horizontal scroll. */
main iframe,
main video,
main embed,
main pre {
  max-width: 100%;
}

/* Contact / footer emails already use word-break on mailto; keep long
 * strings from overflowing on 360px columns. */
main a.email,
main a[href*="mailto"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* v1.3.9 — team-card emails on /about: live shows the full address on one
 * line at desktop. Cards are up to 360px from 992px, with
 * .team-member__contact-item a { white-space: nowrap }. The general mailto
 * overflow-wrap:anywhere above, plus a leftover <span class="d-lg-block">
 * in the imported markup, was splitting Jamison@ / Dustin@ mid-address.
 * Don't use overflow-wrap:anywhere here; match live at both breakpoints
 * (16px Inter, word-break:break-word, nowrap only from 992px). */
.team-member__contact-item a[href*="mailto"] {
  overflow-wrap: normal;
  word-break: break-word;
}
@media (min-width: 992px) {
  .team-member__contact-item a[href*="mailto"] {
    white-space: nowrap;
  }
}

/* ---- v1.3.3 ---- */
/* .container-fluid.pw-* only gains extra horizontal padding from 992px up, but
 * Bootstrap .row.g-5 uses a 3rem (48px) gutter (–24px margins). Below 992px the
 * 12px container-fluid padding isn't enough, so /phoenix-property-management
 * (and any similar row) grows the #page scroll width by ~12px. Live's shell
 * clips this; clip #content (not #page, so the fixed launch-menu is untouched)
 * and use the default 1.5rem gutter on those rows under the desktop breakpoint. */
#content.site-content,
#content.site-content > .ast-container {
  overflow-x: hidden;
  max-width: 100%;
}
@media (max-width: 991px) {
  .container-fluid > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}


/* ---- v1.3.4 ---- */
/* Home #testimonials used a third-party review stream on live. First-party
 * unwrap-testimonials (same markup as /testimonials) sit under Why Choose Us. */
#testimonials .unwrap-testimonials {
  margin-top: 10px;
}
#testimonials .unwrap-testimonials .blockquote {
  background: #fff;
  border-radius: 8px;
}

/* v1.3.6 — Fluent Forms submit buttons in the site's yellow, as the old site's form buttons:
   yellow (#eeb72d) with navy (#001329) text; hover/focus navy with yellow text. Anek Latin 20px/500, 11px radius, 46px tall.
   !important beats Fluent Forms' per-form inline colour (form.fluent_form_N .ff-btn-submit:not(.ff_btn_no_style)). */
.frm-fluent-form .ff-btn.ff-btn-submit,
.frm-fluent-form .ff-btn.ff-btn-submit:not(.ff_btn_no_style){
	background:var(--secondary,#eeb72d)!important;
	color:var(--primary,#001329)!important;
	border:1px solid var(--secondary,#eeb72d)!important;
	border-radius:11px!important;
	font-family:var(--secondary-font,'Anek Latin',sans-serif)!important;
	font-size:20px!important;
	font-weight:500!important;
	letter-spacing:.8px!important;
	line-height:1!important;
	text-transform:capitalize;
	min-height:46px;
	padding:12px 30px!important;
	box-shadow:none!important;
	opacity:1!important;
	cursor:pointer;
	transition:background-color .27s ease-out,color .27s ease-out,border-color .27s ease-out!important;
}
.frm-fluent-form .ff-btn.ff-btn-submit:hover,
.frm-fluent-form .ff-btn.ff-btn-submit:focus-visible,
.frm-fluent-form .ff-btn.ff-btn-submit:not(.ff_btn_no_style):hover,
.frm-fluent-form .ff-btn.ff-btn-submit:not(.ff_btn_no_style):focus-visible{
	background:var(--primary,#001329)!important;
	color:var(--secondary,#eeb72d)!important;
	border-color:var(--primary,#001329)!important;
	opacity:1!important;
}
/* Navy hover would vanish on navy sections: there it turns white with navy text. */
.bg-dark .frm-fluent-form .ff-btn.ff-btn-submit:hover,
.bg-dark .frm-fluent-form .ff-btn.ff-btn-submit:focus-visible{
	background:#fff!important;
	color:var(--primary,#001329)!important;
	border-color:#fff!important;
}
/* Free Rental Analysis "Back" step button: the site's white button. */
.frm-fluent-form .ff-btn.reba-back{
	background:#fff!important;color:var(--primary,#001329)!important;border:1px solid var(--primary,#001329)!important;
	border-radius:11px!important;font-family:var(--secondary-font,'Anek Latin',sans-serif)!important;font-size:20px!important;
	font-weight:500!important;letter-spacing:.8px;line-height:1!important;min-height:46px;padding:12px 30px!important;margin-right:10px;cursor:pointer;
}
.frm-fluent-form .ff-btn.reba-back:hover,.frm-fluent-form .ff-btn.reba-back:focus-visible{background:var(--secondary,#eeb72d)!important;border-color:var(--secondary,#eeb72d)!important;}

/* v1.3.6 — /amp-success thank-you links on the navy hero. */
#home-welcome .reba-amp-thanks a,#home-welcome .reba-amp-phone a{color:var(--secondary,#eeb72d);text-decoration:underline;}
#home-welcome .reba-amp-phone a{text-decoration:none;white-space:nowrap;}
/* v1.4.0 — AppFolio iframe styles removed; rentals grid CSS is assets/css/reba-rentals.css. */

/* v1.3.7 — Astra scroll-to-top kept in the markup (its script needs it) but never shown; the old site had none. */
#ast-scroll-top{display:none!important;}
