/* Barrhaven Mortgages — Custom CSS (bright green v6/v7 publish).
   PASTE AS A FULL REPLACEMENT of the site Custom CSS field
   (Zoho Sites builder → Settings / Configuration → Custom CSS).
   Do not append this after the current CSS: this file already includes the
   existing desktop, form, social-icon, Agent Login, and mobile header rules.
   Palette: band/nav #17883C | light buttons #1B9E46 | header line #D6EEDF.
   Hero and form-submit buttons are white with #17883C text so they stay
   readable on the green bands. Agent Login colours are unchanged.
*/

footer,[data-footer]{display:none!important}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
h1.zpheading,h2.zpheading,.zpheading{font-family:Poppins,sans-serif!important}
body{background-image:none!important;background-color:#fff!important}

/* site-wide green buttons */
html body .bh a.p1,html body .bh a.p2,html body .bmb a.pill,html body .bmb a.pill.v,html body .bmb .pill,html body a.btn,html body .kb a.btn,html body .mb a.btn,html body .bmbsticky a,html body .bmbsticky a+a,html body .zpelem-lpform button,html body .zpelem-lpform input[type=submit],html body .zpbutton-container .zpbutton,html body a.zpbutton,html body button.zpbutton{background:#1B9E46!important;background-color:#1B9E46!important;color:#fff!important;border-color:#1B9E46!important}
html body .bh a.p1:hover,html body .bh a.p2:hover,html body .bmb a.pill:hover,html body .bmb a.pill.v:hover,html body .bmb .pill:hover,html body a.btn:hover,html body .kb a.btn:hover,html body .mb a.btn:hover,html body .bmbsticky a:hover,html body .bmbsticky a+a:hover,html body .zpelem-lpform button:hover,html body .zpelem-lpform input[type=submit]:hover,html body .zpbutton-container .zpbutton:hover,html body a.zpbutton:hover,html body button.zpbutton:hover{background:#15804a!important;background-color:#15804a!important;color:#fff!important}

/* ---- tweaks: header with dark logo, no generic social icons ---- */
[data-element-type="socialprofile"],.zpsocialprofile-container,.zpelem-socialprofile,.theme-header .zpsocialprofile-wrapper{display:none!important}
html body [data-headercontainer],html body .theme-header,html body .theme-header-topbar{background:#fff!important;background-color:#fff!important;background-image:none!important;box-shadow:none!important}
html body .theme-header-topbar{display:none!important}
html body .theme-header{border-bottom:1px solid #d6eedf!important;padding:10px 0!important}
/* Logo: use the dark header mark, but never let it blow past the header.
   mobileLogoAuto (added by the theme on small screens) is more specific than
   the old rule and forced height/width:auto, so the 722×220 image painted at
   intrinsic size. max-width:none disabled the theme's 75vw cap. */
html body .theme-header .zpcontainer .theme-branding-info .theme-logo-parent a img[data-zs-logo],
html body .theme-header .zpcontainer .theme-branding-info .theme-logo-parent a img[data-zs-logo].mobileLogoAuto{
  content:url(/logo-header-dark.png);
  height:54px!important;
  max-height:54px!important;
  width:auto!important;
  max-width:min(220px,calc(100vw - 72px))!important;
  object-fit:contain!important;
}
html body .theme-header .zpcontainer .theme-branding-info .theme-logo-parent,
html body .theme-header .zpcontainer .theme-branding-info .theme-logo-parent a,
html body .theme-header .zpcontainer .theme-branding-info .theme-logo-parent picture{
  max-width:min(220px,calc(100vw - 72px))!important;
  height:auto!important;
}
html body .theme-header .theme-menu a,html body .theme-header .theme-menu-name{color:#222!important;font-family:Poppins,sans-serif!important;font-weight:500!important;font-size:15px!important}
html body .theme-header .theme-menu-selected a,html body .theme-header .theme-menu-selected .theme-menu-name{color:#17883C!important;font-weight:600!important}
/* ---- tweaks: forms full width, labels above, buttons centered ---- */
html body .zpelem-lpform .zpform-outer li{display:block!important;width:100%!important}
html body .zpelem-lpform .zpform-label-container,html body .zpelem-lpform .zpform-field-container{display:block!important;width:100%!important;max-width:none!important;float:none!important}
html body .zpelem-lpform .zpform-label-container{margin-bottom:6px}
html body .zpelem-lpform input[type=text],html body .zpelem-lpform input[type=email],html body .zpelem-lpform input[type=tel],html body .zpelem-lpform select,html body .zpelem-lpform textarea{width:100%!important;max-width:none!important;box-sizing:border-box!important;background:#fff!important}
html body .zpelem-lpform .zpform-button{text-align:center!important}
html body .zpelem-lpform input[type=reset]{background:#3d3d3d!important;background-color:#3d3d3d!important;border-color:#3d3d3d!important;color:#fff!important}
html body .zpelem-lpform input[type=submit]{background:#1B9E46!important;background-color:#1B9E46!important}
html body .theme-header .theme-menu li,html body .theme-header .theme-menu li a,html body .theme-header .theme-menu-selected,html body .theme-header .theme-menu-selected a,html body .theme-header .theme-menu-content{background:transparent!important;background-color:transparent!important}
html body .theme-header .theme-menu-selected a{border-bottom:2px solid #17883C!important}
/* Agent Login button */
html body .theme-header .theme-menu a[href*="crm.zohocloud.ca/crm/org110002578040"], html body a[href*="crm.zohocloud.ca/crm/org110002578040"]{background:#00C972!important;background-color:#00C972!important;color:#04311d!important;font-weight:700!important;border-radius:8px!important;padding:10px 18px!important;text-decoration:none!important;border-bottom:0!important;display:inline-block!important}
html body .theme-header .theme-menu a[href*="crm.zohocloud.ca/crm/org110002578040"]:hover, html body a[href*="crm.zohocloud.ca/crm/org110002578040"]:hover{background:#00b566!important;background-color:#00b566!important;color:#04311d!important;text-decoration:none!important}
html body a[href*="crm.zohocloud.ca/crm/org110002578040"] .theme-menu-name{color:#04311d!important;font-weight:700!important}
@media (max-width:1024px){html body a[href*="crm.zohocloud.ca/crm/org110002578040"]{margin:6px 0!important;text-align:center!important}}

/* ---- mobile header: visible hamburger, no sideways scroll ---- */
html,body{max-width:100%}

@media (max-width:991px){
  html body .theme-header{
    position:relative!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  html body .theme-header .zpcontainer{
    min-width:0!important;
    max-width:calc(100% - 52px)!important;
    flex:1 1 auto!important;
  }
  html body .theme-header .zpcontainer .theme-branding-info{
    min-width:0!important;
    max-width:100%!important;
    flex:1 1 auto!important;
  }

  /* Theme sets this to flex:0 1 0, so a wide logo can shrink the burger to nothing. */
  html body .theme-header .theme-responsive-menu-area.zpcontainer{
    display:block!important;
    flex:0 0 auto!important;
    min-width:44px!important;
    width:auto!important;
    position:static!important;
    z-index:30!important;
    margin-inline-start:auto!important;
  }
  html body .theme-header .theme-responsive-menu-container,
  html body .theme-header .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container{
    display:block!important;
    width:28px!important;
    height:24px!important;
    margin:0 12px 0 auto!important;
    cursor:pointer;
  }

  /* Header was restyled to a white background, but it still has zpdark-header-portion,
     so the burger icon uses the dark-header colour — white on white. */
  html body .theme-header .theme-burger-icon,
  html body .theme-header .theme-burger-icon:before,
  html body .theme-header .theme-burger-icon:after,
  html body .zpdark-header-portion .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container .theme-burger-icon,
  html body .zpdark-header-portion .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container .theme-burger-icon:before,
  html body .zpdark-header-portion .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container .theme-burger-icon:after{
    background:#111!important;
  }
  html body .theme-header .theme-burger-icon.theme-close-icon,
  html body .zpdark-header-portion .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container .theme-burger-icon.theme-close-icon{
    background:transparent!important;
  }
  html body .theme-header .theme-burger-icon.theme-close-icon:before,
  html body .theme-header .theme-burger-icon.theme-close-icon:after,
  html body .zpdark-header-portion .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container .theme-burger-icon.theme-close-icon:before,
  html body .zpdark-header-portion .theme-responsive-menu-area.zpcontainer .theme-responsive-menu-container .theme-burger-icon.theme-close-icon:after{
    background:#111!important;
  }

  /* Full-width dropdown under the header (the burger column is only ~23px wide). */
  html body .theme-header .theme-responsive-menu.theme-menu-area,
  html body .theme-header .theme-responsive-menu-area .theme-responsive-menu{
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:100%!important;
    width:100%!important;
    max-width:100%!important;
    z-index:40!important;
    background:#fff!important;
    box-shadow:0 10px 24px rgba(0,0,0,.12);
  }
  html body .theme-header .theme-responsive-menu .theme-menu{
    background:#fff!important;
    width:100%!important;
    max-width:100%!important;
  }
  html body .theme-header .theme-responsive-menu .theme-menu>ul{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    margin:0!important;
    padding:8px 16px 16px!important;
    box-sizing:border-box!important;
  }
  html body .theme-header .theme-responsive-menu .theme-menu>ul>li{
    display:block!important;
    width:100%!important;
    margin:0!important;
  }
  html body .theme-header .theme-responsive-menu .theme-menu>ul>li>a{
    display:block!important;
    padding:14px 12px!important;
    color:#222!important;
    text-align:left!important;
    border-bottom:0!important;
  }
  html body .theme-header .theme-responsive-menu .theme-menu>ul>li>a .theme-menu-name{
    color:#222!important;
  }
  html body .theme-header .theme-responsive-menu .theme-menu a[href*="crm.zohocloud.ca/crm/org110002578040"]{
    display:block!important;
    text-align:center!important;
    margin:8px 0 4px!important;
  }

  /* If the page still overflows, keep the cookie bar and chat button inside the screen. */
  html body #bmb-cookie-banner{
    width:100%!important;
    max-width:100%!important;
    left:0!important;
    right:0!important;
    box-sizing:border-box!important;
  }
  html body #bmb-chat-launcher{
    right:16px!important;
    max-width:calc(100% - 32px)!important;
  }
}

/* White CTAs on bright-green bands (hero, Zoho forms, mobile sticky).
   Without these, the site-wide #1B9E46 button rule would sit green-on-green. */
html body .bm .hero a.btn,
html body .bm .win a.btn,
html body .bm .transform .col.featured a.btn,
html body .zpelem-lpform input[type=submit],
html body .zpelem-lpform button,
html body .zpelem-lpform .zpform-button input[type=submit]{
  background:#fff!important;background-color:#fff!important;color:#17883C!important;border-color:#fff!important;
}
html body .bm .hero a.btn:hover,
html body .bm .win a.btn:hover,
html body .bm .transform .col.featured a.btn:hover,
html body .zpelem-lpform input[type=submit]:hover,
html body .zpelem-lpform button:hover{
  background:#eef7f1!important;background-color:#eef7f1!important;color:#17883C!important;
}
html body .bmbsticky{background:#17883C!important;}
html body .bmbsticky a{background:transparent!important;background-color:transparent!important;color:#fff!important;border-color:transparent!important;}
html body .bmbsticky a+a{background:#fff!important;background-color:#fff!important;color:#17883C!important;border-color:#fff!important;}
html body .bmbsticky a:hover{background:rgba(0,0,0,.12)!important;background-color:rgba(0,0,0,.12)!important;color:#fff!important;}
html body .bmbsticky a+a:hover{background:#eef7f1!important;background-color:#eef7f1!important;color:#17883C!important;}