/* Site-wide fixes (loaded on every page) */

/* Mobile/tablet menu button: the theme's icon font has no "menu" glyph, so draw the three lines with CSS */
.mobile-nav-toggler{display:flex;align-items:center;justify-content:center;cursor:pointer;min-width:44px;min-height:44px}
.mobile-nav-toggler .icon-menu{display:flex;align-items:center;justify-content:center;width:26px;height:26px;color:#0D1057}
.mobile-nav-toggler .icon-menu::before{content:""!important;display:block;width:26px;height:20px;font-size:0;
  background:
    linear-gradient(currentColor,currentColor) top/100% 3px no-repeat,
    linear-gradient(currentColor,currentColor) center/100% 3px no-repeat,
    linear-gradient(currentColor,currentColor) bottom/100% 3px no-repeat;
  border-radius:2px}
.mobile-nav-toggler:hover .icon-menu{color:#DD131A}

/* Header phone button: the theme shows "Call Us +1 872..." only from 1440px. Below that, show a compact red
   button with the phone icon in a ring, next to the menu button; the whole button dials the number. */
@media (max-width:1439.98px){
  header .header-phone_box{display:flex!important;position:relative;align-items:center;justify-content:center;align-self:stretch;
    flex:0 0 auto;width:100px;min-height:95px;margin:0 18px 0 12px!important;padding:0!important;background:#DD131A;border-radius:0!important}
  header .header-phone_box>div:not(.header-phone_icon),header .header-phone_box strong{position:static!important;font-size:0!important;line-height:0!important;margin:0!important;padding:0!important}
  header .header-phone_box a[href^="tel:"]{position:absolute!important;inset:0;z-index:2;display:block;font-size:0;color:transparent!important}
  header .header-phone_box .header-phone_icon{position:static!important;display:flex!important;align-items:center;justify-content:center;
    width:54px;height:54px;margin:0!important;border:1px solid rgba(255,255,255,.55);border-radius:50%;color:#fff;font-size:22px;line-height:1;transition:background .2s}
  header .header-phone_box:hover .header-phone_icon{background:rgba(255,255,255,.12)}
}
@media (max-width:767px){
  header .header-phone_box{width:64px;min-height:70px;margin:0 8px 0 8px!important}
  header .header-phone_box .header-phone_icon{width:40px;height:40px;font-size:17px}
}
/* narrow phones: tighter gaps so logo, phone button and menu button stay on one row */
@media (max-width:420px){
  header .outer-box{margin-left:8px!important}
  header .header-phone_box{margin:0 6px 0 0!important}
  header .mobile-nav-toggler{margin-left:4px!important;margin-right:0!important}
}
@media (max-width:360px){
  header .logo-box img,header .logo img{max-width:130px!important;height:auto!important}
}

/* Footer columns: line up with the logo box / email box above, columns sized to their content and spread evenly */
@media (min-width:768px) and (max-width:1024px){
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:first-child{max-width:215px!important}
  footer .elementor-element-1cae27f6>.elementor-container{gap:24px!important}
}
@media (min-width:768px) and (max-width:860px){
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:first-child{max-width:185px!important}
}
@media (max-width:767px){
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column>.elementor-widget-wrap{padding-left:0!important;padding-right:0!important}
}
@media (min-width:768px){
  /* 3-track grid: left column at the left edge, middle column exactly centred, right column at the right edge */
  footer .elementor-element-1cae27f6>.elementor-container{display:grid!important;grid-template-columns:1fr auto 1fr;gap:40px;padding-right:16px;box-sizing:border-box}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column{width:max-content!important;flex:none!important}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:nth-child(1){justify-self:start}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:nth-child(2){justify-self:center}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:nth-child(3){justify-self:end}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:first-child{width:fit-content!important;max-width:400px}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column>.elementor-widget-wrap{display:block!important;padding-left:0!important;padding-right:0!important}
  footer .elementor-element-1cae27f6 .elementor-icon-list-items{display:block!important}
}
@media (min-width:1200px){
  /* wide screens: middle column nudged right and right column nudged left (up to 80px each) */
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:nth-child(2){position:relative;left:clamp(30px,4vw,80px)}
  footer .elementor-element-1cae27f6>.elementor-container>.elementor-column:nth-child(3){margin-right:clamp(30px,4vw,80px)!important}
}
