/* Final QA hardening: responsive containment, keyboard parity and safe wrapping. */
html{overflow-x:clip}
body,.sam-site,.sam-main{max-width:100%;overflow-x:clip}
:where(.sam-title,.sam-hero-copy h1,.sam-p12-hero h1,.sam-ref-hero h1,.sam-final-content h2,.sam-project-info h3,.sam-client-proof-card h3){overflow-wrap:break-word}
:where(.sam-copy,.sam-ref-hero p,.sam-p12-hero p,.sam-project-info p,.sam-client-proof-card p,.sam-contact-link strong,.sam-footer-contact-card strong){overflow-wrap:anywhere}
:where(.sam-btn,.sam-header-cta,.sam-header-order,.sam-p16-buy,.sam-p32-btn){white-space:normal;text-align:center;line-height:1.2}
.sam-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.sam-menu a:focus-visible,.sam-submenu-toggle:focus-visible{position:relative;z-index:2}
.sam-service-media,.sam-p12-card-media,.sam-project-card>a,.sam-team-card,.sam-solution-card{min-width:0}
.sam-service-media img,.sam-p12-card-media img,.sam-project-card img,.sam-team-card>img,.sam-solution-card>img{max-width:100%}
.sam-ref-tags,.sam-pills,.sam-check-list{max-width:100%}
.sam-ref-tags span,.sam-pills span,.sam-check-list span{overflow-wrap:anywhere}

@media(max-width:782px){
  body.admin-bar .sam-header{top:46px}
}
@media(max-width:700px){
  .sam-service-grid,.sam-project-grid,.sam-solution-grid,.sam-package-grid,.sam-team-grid,.sam-client-proof-grid{min-width:0;max-width:100%}
  .sam-service-card,.sam-project-card,.sam-solution-card,.sam-package-card,.sam-team-card,.sam-client-proof-card{min-width:0;max-width:100%}
  .sam-p32-actions,.sam-ref-actions,.sam-hero-actions{max-width:100%}
  .sam-p32-actions>a,.sam-ref-actions>a,.sam-hero-actions>a{max-width:100%}
  .sam-search-overlay{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .sam-mobile-nav{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:420px){
  .sam-title,.sam-p12-hero h1,.sam-ref-hero h1{hyphens:auto}
  .sam-client-proof-card,.sam-ref-info-card,.sam-ref-snapshot,.sam-ref-use-card{max-width:100%}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
}
