/* =====================================================================
   Create & Associates – BeTheme (Muffin Group) fixes, home page only.
   Loaded automatically by create-kit.php when the active theme is BeTheme.
   Purpose: hero edge to edge (no white border), full animation visible,
   theme header floating over the hero, small logo hidden during the intro.
   If a selector doesn't match your BeTheme version, check it in the browser
   inspector and adjust; everything is scoped to body.home.
   ===================================================================== */

/* ---------- 1. No white border: remove BeTheme padding, max-width and column gaps
   around the sections that hold the Create shortcodes.
   :has() finds them automatically; .cr-fullwidth is the fallback class you can add
   to the BeBuilder section (Section > Advanced > Custom class). ---------- */
body.home #Content{padding-top:0!important;padding-bottom:0!important}
body.home .mcb-section:has(.cr-hero),
body.home .mcb-section:has(.cr-sections),
body.home .mcb-section.cr-fullwidth{padding:0!important;margin:0!important;background-image:none}
body.home .mcb-section:has(.cr-hero) .section_wrapper,
body.home .mcb-section:has(.cr-sections) .section_wrapper,
body.home .mcb-section.cr-fullwidth .section_wrapper{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
body.home .mcb-section:has(.cr-hero) :is(.mcb-wrap,.mcb-wrap-inner,.mcb-column,.mcb-column-inner,.column_attr,.mcb-item-column-inner),
body.home .mcb-section:has(.cr-sections) :is(.mcb-wrap,.mcb-wrap-inner,.mcb-column,.mcb-column-inner,.column_attr,.mcb-item-column-inner),
body.home .mcb-section.cr-fullwidth :is(.mcb-wrap,.mcb-wrap-inner,.mcb-column,.mcb-column-inner,.column_attr,.mcb-item-column-inner){
  --mfn-column-gap-left:0px;--mfn-column-gap-right:0px;--mfn-column-gap-top:0px;--mfn-column-gap-bottom:0px;
  margin:0!important;padding:0!important;width:100%!important;max-width:none!important;border:0!important;background-image:none}
/* empty paragraphs and line breaks the Column item's editor adds (about 15px above the hero) */
body.home .mcb-section:has(.cr-hero) :is(.column_attr,.mcb-column-inner) > p:empty,
body.home .mcb-section:has(.cr-sections) :is(.column_attr,.mcb-column-inner) > p:empty,
body.home .mcb-section:has(.cr-hero) :is(.column_attr,.mcb-column-inner) > br,
body.home .mcb-section:has(.cr-sections) :is(.column_attr,.mcb-column-inner) > br{display:none!important}
/* "Full width ex. mobile" adds side padding on phones: remove it here too */
@media (max-width:767px){
  body.home .mcb-section:has(.cr-hero) .section_wrapper,
  body.home .mcb-section:has(.cr-sections) .section_wrapper,
  body.home .mcb-section.cr-fullwidth .section_wrapper{padding-left:0!important;padding-right:0!important}
}
/* the kit's own breakout isn't needed once the section is full width */
body.home .mcb-section .cr-breakout{width:100%;max-width:100%;margin-left:0;margin-right:0}

/* ---------- 2. Full animation visible: BeTheme must not clip or shrink the hero ---------- */
body.home .mcb-section:has(.cr-hero),
body.home .mcb-section:has(.cr-hero) :is(.section_wrapper,.mcb-wrap,.mcb-wrap-inner,.mcb-column,.mcb-column-inner,.column_attr){overflow:visible!important;height:auto!important;min-height:0!important}
body.home .cr-hero{min-height:100svh}

/* ---------- 3. Header floats over the hero (transparent until it becomes sticky) ---------- */
body.home #Header_wrapper{position:absolute;top:0;left:0;right:0;z-index:40;background:transparent!important;background-image:none!important}
body.home #Header_wrapper #Header{background:transparent!important;min-height:0!important}
body.home #Top_bar:not(.is-sticky){background:transparent!important;box-shadow:none!important}
/* BeTheme's page title bar (Subheader). Better: turn it off in the page's options; this is the backup. */
body.home #Subheader{display:none!important}

/* ---------- 4. Small logo: hidden while the hero logo animates, then fades in ---------- */
body.home #logo,body.home .logo-main{transition:opacity .6s}
html.cr-intro body.home #logo,html.cr-intro body.home .logo-main,html.cr-intro body.home .logo-mobile{opacity:0}

/* ---------- 5. Boxed site layout: let the home page hero reach the window edges ---------- */
body.home.layout-boxed #Wrapper{max-width:none!important;width:100%!important;box-shadow:none}

/* ---------- 6. Sticky header: land "Get to know us" just below it ---------- */
body.home #who-we-are{scroll-margin-top:110px}
