/* Overrides that replace behaviour previously injected by WordPress plugins/JS. Keep tiny. */

/* Mobile menu: the hamburger becomes the X in place and closes the menu (theme.ts), so the overlay's own close button
   (floating top-left) is hidden; the header is lifted above the overlay (z 9999) while the menu is open so the X stays clickable. */
.corzo-overlay-menu-content .corzo-overlay-menu-close { display: none; }
.corzo-mobile-header:has(.corzo-mobile-menu-button.corzo-active) { z-index: 10000; }

/* ===== Spacing / rhythm fixes (all widths). The page builder left a few sections with no vertical padding and
   checklists set as back-to-back zero-margin paragraphs. ===== */

/* About: "Our Team" section had no padding at all — the heading sat on the grey band and the text on the footer. */
.corzo-body-wrapper .gdlr-core-pbf-section:has(.gdlr-core-title-item) {
  padding: 90px 0 80px;
}
/* About: the two "Our Team" paragraphs are divs with no spacing between them; the trailing empty one is dropped. */
.gdlr-core-text-box-item-content > div[dir="ltr"] { margin-bottom: 18px; line-height: 1.75; }
.gdlr-core-text-box-item-content > div[dir="ltr"]:last-child { margin-bottom: 0; }
.gdlr-core-text-box-item-content > div[dir="ltr"]:empty,
.gdlr-core-text-box-item-content > div[dir="ltr"]:has(> :only-child:empty) { display: none; }

/* Investment Criteria: ✓ lists — heading gets room below it, items get breathing room. */
.gdlr-core-no-p-space .gdlr-core-text-box-item-content p { line-height: 1.75; margin-bottom: 8px; }
.gdlr-core-no-p-space .gdlr-core-text-box-item-content p:has(> strong:only-child) { margin-bottom: 14px; }
.gdlr-core-text-box-item-content p:has(> strong:only-child) { margin-bottom: 16px; }

/* Services: "Financing Solutions" section ran straight into the dark CTA band (20px). */
.gdlr-core-pbf-wrapper[style*="padding: 0px 0px 20px 0px"] { padding-bottom: 70px !important; }

/* Contact: form section bottom was 35px before the footer. */
.gdlr-core-pbf-wrapper[style*="padding: 90px 0px 35px 0px"] { padding-bottom: 90px !important; }

@media (max-width: 767px) {
  .corzo-body-wrapper .gdlr-core-pbf-section:has(.gdlr-core-title-item) { padding: 60px 0 50px; }
  .gdlr-core-pbf-wrapper[style*="padding: 0px 0px 20px 0px"] { padding-bottom: 48px !important; }
  .gdlr-core-pbf-wrapper[style*="padding: 90px 0px 35px 0px"] { padding-bottom: 60px !important; }
}

/* About, phones: the 100px vertical divider between the photo and the grey band left a 135px empty gap. */
@media (max-width: 767px) {
  #gdlr-core-column-95747 .gdlr-core-divider-line { border-width: 48px !important; }
  #gdlr-core-column-95747 > .gdlr-core-pbf-column-content-margin { padding-bottom: 8px !important; }
}
