/* ===== Bre Meador — Global Formatting Optimizations ===== */
/* Widen the site-wide default content width (theme default was only ~600px, which read too narrow) */
:root, body { --wp--style--global--content-size: 820px; }

/* Comfortable spacing between paragraphs & list items (theme had reset these to 0) */
.entry-content p, .entry-content li,
.wp-site-blocks p.wp-block-paragraph { margin-bottom: 1.25em; }
.entry-content li { margin-bottom: 0.5em; }

/* Readable line length for body text — pages AND homepage/template sections */
.entry-content p,
.wp-site-blocks p.wp-block-paragraph:not(.has-text-align-center) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---- Mobile optimization ---- */
@media (max-width: 781px) {
  .entry-content p,
  .wp-site-blocks p.wp-block-paragraph:not(.has-text-align-center) {
    max-width: 100%;
    line-height: 1.6;
  }
  .wp-block-columns.alignwide, .wp-block-group.alignwide { padding-left: 16px; padding-right: 16px; }
}

/* ===== Spacing: headings & images (added) ===== */
.entry-content h2.wp-block-heading,
.wp-block-post-content h2.wp-block-heading { margin-bottom: 0.9em; }
.entry-content h3.wp-block-heading,
.wp-block-post-content h3.wp-block-heading { margin-bottom: 0.65em; }
.entry-content figure.wp-block-image,
.wp-block-post-content figure.wp-block-image { margin-top: 1.75em; margin-bottom: 1.75em; }
@media (max-width: 781px) {
  .entry-content figure.wp-block-image,
  .wp-block-post-content figure.wp-block-image { margin-top: 1.25em; margin-bottom: 1.25em; }
}

/* ===== Fix mobile menu: visible links on the white overlay ===== */
.wp-block-navigation__responsive-container.is-menu-open a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  color: #16233f !important;
}
.wp-block-navigation__responsive-container.is-menu-open { background-color: #ffffff !important; }

/* ===== Mobile accessibility and responsive media ===== */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gutena-forms-field,
.gutena-forms-container input,
.gutena-forms-container select,
.gutena-forms-container textarea {
  min-height: 44px;
}
.wp-block-image picture,
.wp-block-image picture img {
  max-width: 100%;
  height: auto;
}



/* ===== Enforce accessible form control height ===== */
.gutena-forms-container input.gutena-forms-field,
.gutena-forms-container select.gutena-forms-field,
.gutena-forms-container textarea.gutena-forms-field {
  min-height: 44px !important;
  height: auto !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}



/* ===== Final accessible Gutena field sizing ===== */
body .wp-block-gutena-form-field input.gutena-forms-field,
body .wp-block-gutena-form-field select.gutena-forms-field,
body .wp-block-gutena-form-field textarea.gutena-forms-field {
  min-height: 44px !important;
  height: 44px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
body .wp-block-gutena-form-field textarea.gutena-forms-field {
  height: auto !important;
}

/* ===== Homepage final consultation buttons: equal width ===== */
@media (max-width: 600px) {
  body.home .wp-block-buttons:has(a[href*="homebuyer-consultation"]):has(a[href*="listing-appointment"]) .wp-block-button {
    width: min(337px, 100%);
  }
  body.home .wp-block-buttons:has(a[href*="homebuyer-consultation"]):has(a[href*="listing-appointment"]) .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: nowrap;
  }
}


/* ===== Bre: 2026-08-28 audit readability refinements ===== */
body.page-id-4067 .bre-idx--calculator .bre-idx__eyebrow,
body.page-id-4067 .bre-idx--calculator .bre-idx__disclosure {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

@media (max-width: 781px) {
  body.home .bm-intro p,
  body.home .bm-video-band p,
  body.home .bm-services .bm-section-sub,
  body.home .bm-why p {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
}

@media (min-width: 782px) {
  header.wp-block-template-part .wp-block-navigation__submenu-icon,
  footer.wp-block-template-part .wp-block-navigation__submenu-icon {
    min-width: 24px !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  header.wp-block-template-part .wp-block-navigation__submenu-icon svg,
  footer.wp-block-template-part .wp-block-navigation__submenu-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
}
