/* Scoped shared UI fixes, 1.2.0. */
@media(min-width:1025px) and (max-width:1400px){
 #masthead .site-main-header-inner-wrap{grid-template-columns:auto minmax(0,1fr) auto!important;column-gap:14px!important}
 #masthead .site-header-main-section-center{min-width:0;justify-content:center}
 #masthead #site-navigation .primary-menu-container>ul{gap:0!important}
 #masthead #site-navigation .primary-menu-container>ul>li>a{padding-left:10px!important;padding-right:10px!important;font-size:15px!important}
 #masthead .spx-hr{gap:12px!important}
 #masthead .spx-ct{gap:7px!important}
 #masthead .spx-call{display:none!important}
 #masthead .spx-tel{font-size:15px!important}
 #masthead .custom-logo{max-width:150px!important}
}
@media(min-width:1401px){#masthead .site-main-header-inner-wrap{column-gap:16px}}
@media(max-width:700px){
 .sp-service .sps-wrap{width:100%!important;max-width:100%!important;padding-left:20px!important;padding-right:20px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
 .sp-service .sps-wrap .sps-wrap{padding-left:0!important;padding-right:0!important}
}
/* Checked labels remain dark on yellow; panel/radio rules are untouched. */
.sp-service[id][id] .sps-check-switcher .sps-tabs label.sps-tab{color:#1c2333!important}
.sprf-floating-call{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:10020;display:flex;align-items:center;justify-content:center;width:58px;height:58px;border:0;border-radius:50%;background:#f6b800;color:#1c2333;box-shadow:0 8px 24px #1c23332b;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.sprf-floating-call svg{width:26px;height:26px}
.sprf-floating-call:hover,.sprf-floating-call:focus-visible{background:#1c2333;color:#f6b800;transform:translateY(-2px)}
.sprf-floating-call:focus-visible{outline:2px solid #1c2333;outline-offset:4px}
.sprf-callback-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(1000px,calc(100vw - 40px));max-width:1000px;max-height:calc(100dvh - 40px);border:0;border-radius:26px;background:#f6b800;color:#1c2333;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #1c23334d}
.sprf-callback-dialog:not([open]){display:none}
.sprf-callback-dialog::backdrop{background:#1c233385;backdrop-filter:blur(5px)}
.sprf-callback-dialog .sp-request-section{padding:0!important;background:transparent!important}
.sprf-callback-dialog .sp-request-wrap{padding:0!important}
.sprf-callback-dialog .sp-request-card{margin:0!important;box-shadow:none!important}
.sprf-callback-close{position:sticky;top:12px;float:right;margin:12px 12px -52px 0;z-index:5;width:40px;height:40px;border:1px solid #1c233333;border-radius:50%;background:#f6b800;color:#1c2333;font:28px/1 Arial;cursor:pointer}
.sprf-callback-close:hover,.sprf-callback-close:focus-visible{background:#1c2333;color:#f6b800}
.sprf-callback-dialog .sprf-calendar{max-height:calc(100dvh - 24px);overflow:auto;z-index:10}
@media(max-width:600px){.sprf-callback-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:22px}.sprf-floating-call{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.sprf-floating-call{transition:none}}

.sprf-header-call{display:none;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border:0;border-radius:50%;padding:9px;background:#f6b800;color:#1c2333;cursor:pointer}.sprf-header-call svg{width:20px;height:20px}.sprf-header-call:hover,.sprf-header-call:focus-visible{background:#1c2333;color:#f6b800}.sprf-header-call:focus-visible{outline:2px solid #1c2333;outline-offset:3px}@media(max-width:1400px){#masthead .sprf-header-call{display:inline-flex}}
/* Kadence boxed pages have negative article margins on narrow screens. */
@media(max-width:700px){body.sps-service-page #main .entry{margin-left:0!important;margin-right:0!important;width:100%!important;max-width:100%!important}}

.sprf-callback-close{padding:0!important;box-sizing:border-box;min-width:40px!important;max-width:40px!important}
.sprf-callback-dialog .sp-w{width:100%!important;max-width:100%!important;padding:0!important}
.sprf-callback-dialog .sp-request-panel{width:100%!important;max-width:100%!important;margin:0!important}

@media(min-width:1025px) and (max-width:1140px){body.sprf-callback-header #masthead .spx-ct .spx-ic:last-child{display:none!important}}
body.sprf-callback-floating #main-header .spx-call{display:none!important}

@media(min-width:1025px) and (max-width:1400px){
 body:not(.sprf-callback-floating) #masthead .spx-call{display:inline-flex!important;position:relative!important;align-items:center;justify-content:center;width:38px!important;min-width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f6b800!important}
 body:not(.sprf-callback-floating) #masthead .spx-call>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
 body:not(.sprf-callback-floating) #masthead .spx-call>s{width:38px!important;height:38px!important;margin:0!important;background-color:transparent!important}
}
@media(min-width:1025px) and (max-width:1140px){body:not(.sprf-callback-floating) #masthead .spx-ct .spx-ic:last-child{display:none!important}}

/* Approved behavior, 1.3.0: two phone buttons on mobile, blog modal on all screens. */
.sprf-floating-call{display:none!important}
#masthead .sprf-header-call{display:none!important}
@media(max-width:1024px){
 .sprf-floating-call{display:flex!important;right:16px;bottom:max(16px,env(safe-area-inset-bottom))}
 #mobile-header .sprf-header-call{display:inline-flex!important;box-sizing:border-box;width:44px;height:44px;min-width:44px;padding:10px;border:2px solid #f6b800;border-radius:50%;background:rgba(255,255,255,.85);color:#1c2333}
 #mobile-header .sprf-header-call:hover,#mobile-header .sprf-header-call:focus-visible{background:#1c2333;color:#f6b800}
 #mobile-header .site-header-section-right{gap:10px}
 body.sprf-callback-mobile_blog #mobile-header a.spx-call,body.sprf-callback-mobile_blog #mobile-header a.spx-mcall{display:none!important}
}
.sp-request-section[data-sp-request] .sp-request-contact-note{min-width:0}
.sp-request-section[data-sp-request] .sp-request-contact-note .sp-request-promise{margin-bottom:0}
.sp-request-section[data-sp-request] .sp-request-hours{margin:8px 0 0 30px;color:#1c2333;font:400 14px/1.5 Manrope,Arial,sans-serif;letter-spacing:normal}
@media(max-width:760px){
 .sp-request-section[data-sp-request] .sp-request-contact-note{margin-bottom:24px}
 .sp-request-section[data-sp-request] .sp-request-hours{margin-left:26px}
}
@media(min-width:761px) and (max-width:1050px){.sprf-callback-dialog .sp-request-copy{padding-right:40px}}
@media(max-width:760px){.sprf-callback-dialog .sp-request-section[data-sp-request] .sp-request-title{padding-right:40px}}
/* WordPress button:focus must not replace the brand colors after a touch. */
.sprf-floating-call,.sprf-floating-call:focus,.sprf-floating-call:active{padding:0!important;border:0!important;background:#f6b800!important;color:#1c2333!important}
.sprf-floating-call:focus-visible{background:#1c2333!important;color:#f6b800!important}
@media(hover:hover) and (pointer:fine){.sprf-floating-call:hover{background:#1c2333!important;color:#f6b800!important}}
.sp-request-section[data-sp-request] .sp-request-hours{text-wrap:balance}

/* 1.3.1: align to the existing 52 px header; let its own glass show through. */
@media(max-width:1024px){
 #mobile-header .sprf-header-call,#mobile-header .sprf-header-call:hover,#mobile-header .sprf-header-call:focus,#mobile-header .sprf-header-call:active{
  align-self:center!important;margin:4px 0!important;flex-shrink:0;opacity:1!important;
  background:transparent!important;background-image:none!important;border:2px solid #f6b800!important;color:#1c2333!important;
 }
 #mobile-header .sprf-header-call svg{opacity:1!important;stroke:currentColor}
}

/* Compact call dialog: only the upper mobile handset opens it. */
.sprf-phone-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:44px 24px 26px;border:1px solid #e0e4ec;border-radius:24px;background:#fff;color:#1c2333;text-align:center;font-family:Manrope,Arial,sans-serif;box-shadow:0 20px 70px #1c233330}
.sprf-phone-dialog:not([open]){display:none}
.sprf-phone-dialog::backdrop{background:#1c233380;backdrop-filter:blur(5px)}
.sprf-phone-dialog h2{margin:0 0 18px;font:700 24px/1.3 Manrope,Arial,sans-serif;color:#1c2333}
.sprf-phone-dialog .sprf-phone-number{display:block;font:700 clamp(20px,6vw,26px)/1.4 Manrope,Arial,sans-serif;color:#1c2333;text-decoration:none;white-space:nowrap}
.sprf-phone-dialog p{margin:12px 0 24px;font:400 14px/1.5 Manrope,Arial,sans-serif;color:#526078}
.sprf-phone-dialog .sprf-phone-close{position:absolute;right:12px;top:12px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#f4f5f7;color:#1c2333;font:26px/1 Arial;cursor:pointer}
.sprf-phone-dialog .sprf-phone-dial{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 28px;border-radius:999px;background:#f6b800;color:#1c2333;text-decoration:none;font:700 16px/1.4 Manrope,Arial,sans-serif}
.sprf-phone-dial svg{width:20px;height:20px}
.sprf-phone-dialog .sprf-phone-dial:hover,.sprf-phone-dialog .sprf-phone-dial:focus-visible{background:#1c2333;color:#f6b800}
.sprf-phone-dialog a:focus-visible,.sprf-phone-dialog button:focus-visible{outline:2px solid #f6b800;outline-offset:4px}
