/* logo sizing: header about 50% larger than the template default; footer logo sits bottom-left */
.header .logo img{max-height:81px;max-width:300px}
.footer-con .logo img{max-height:81px;max-width:300px}
.footer-con .copyright_text{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.footer-con .footer-logo{order:-1;margin-right:auto}
@media (max-width:575px){
  .header .logo img{max-height:56px;max-width:200px}
}

/* desktop submenu: invisible bridge so the menu stays open while the pointer moves down to it, plus a short close delay so a slight slip does not shut it */
@media (min-width:992px){
  .navbar-nav > li.dropdown::after{content:"";position:absolute;left:-20px;right:-20px;top:100%;height:50px}
  .navbar-nav .dropdown-menu{top:100%;margin-top:22px}
  .navbar-nav > li.dropdown > .dropdown-menu{display:block;visibility:hidden;opacity:0;transition:opacity .2s ease,visibility 0s linear .5s}
  .navbar-nav > li.dropdown:hover > .dropdown-menu,
  .navbar-nav > li.dropdown:focus-within > .dropdown-menu,
  .navbar-nav > li.dropdown > .dropdown-menu.show{visibility:visible;opacity:1;transition-delay:0s}
}
/* no pointer triangle on top of the submenu */
.navbar-nav .drop-down-pages li:first-child a::before,
.navbar-nav .drop-down-pages li:first-child a:hover::before,
.navbar-nav .drop-down-pages .active:first-child > a::before{
  content:none!important;
  display:none!important;
  background-image:none;
  border:0;
}

/* menu stacks above the hero text (animated hero content created its own layer that showed through the mobile dropdown) */
.header{position:relative;z-index:1000}
.navbar-collapse{z-index:1001}
@media (max-width:991px){
  .navbar-collapse{background:#fff!important;z-index:1001}
  .navbar-collapse .navbar-nav,.navbar-collapse .dropdown-menu{background:#fff}
}

/* home services cards: four on one row, equal height, buttons aligned at the bottom */
#services .all_row{display:flex;flex-wrap:wrap}
#services .all_column{display:flex;margin-bottom:24px}
#services .pricing-box{display:flex;flex-direction:column;width:100%;height:100%;margin-bottom:0}
#services .pricing-box .primary_btn{margin-top:auto;align-self:flex-start}
@media (min-width:1200px){
  #services .container{max-width:1280px}
  #services .all_column{flex:0 0 25%;max-width:25%}
}
@media (min-width:992px) and (max-width:1199px){
  #services .all_column{flex:0 0 50%;max-width:50%}
}

/* hero entrance animation on page load */
@keyframes heroUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes heroIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@keyframes heroFade{from{opacity:0}to{opacity:1}}
.banner_content > *{opacity:0;animation:heroUp .7s cubic-bezier(.2,.7,.2,1) forwards}
.banner_content > :nth-child(1){animation-delay:.1s}
.banner_content > :nth-child(2){animation-delay:.25s}
.banner_content > :nth-child(3){animation-delay:.4s}
.banner_content > :nth-child(4){animation-delay:.55s}
.banner_content > :nth-child(5){animation-delay:.7s}
.banner-con .banner-image{opacity:0;animation:heroIn .9s cubic-bezier(.2,.7,.2,1) .3s forwards}
.banner-lefttoptriangle,.banner-rightbottomtriangle{opacity:0;animation:heroFade 1s ease .6s forwards}
@media (prefers-reduced-motion:reduce){
  .banner_content > *,.banner-con .banner-image,.banner-lefttoptriangle,.banner-rightbottomtriangle{animation:none;opacity:1}
}

/* inner pages: tighter title banner and contact/schedule sections (less empty space) */
.sub_banner_outer .sub-banner{padding:60px 0 90px}
.sub_banner_outer .sub-banner .sub_banner_content h1{margin-bottom:10px}
.contactform-con.contactform-con{padding:56px 0 64px}
.contactinfo-con.contactinfo-con{padding:56px 0 64px}
.contactform-con .contact_content h2,.contactinfo-con .contact_content h2{margin-bottom:28px}
.contactinfo-con .contact_content h5,.contactform-con .contact_content h5{margin-bottom:8px}
.contactinfo-con .contact-box{padding:28px 24px}
.contactinfo-con .contact-box .icon{min-height:0;margin-bottom:14px}
.contactinfo-con .em-prose p{margin-bottom:10px}
.em-hours-line{margin-top:28px}
@media (max-width:767px){
  .sub_banner_outer .sub-banner{padding:36px 0 64px}
  .contactform-con.contactform-con,.contactinfo-con.contactinfo-con{padding:36px 0 40px}
}
