/* Keep hidden form fields in the form's bounds, including RTL exports. */
form{position:relative}
.hp-field{position:absolute!important;left:auto!important;right:0!important;top:0!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;pointer-events:none}

/* Intrinsic media/text sizes must not widen grid or flex tracks. */
.site-logo{max-width:100%}
.ribbon{grid-template-columns:repeat(3,minmax(0,1fr))}
.ribbon>div,.hero-copy,.inner-hero-grid>*,.service-hero-content>*,.service-benefits>*,.scope-heading>*,.scope-cards>*,.landing-three>*,.landing-about>*,.landing-gallery>*,.process-month-grid>*,.knowledge-grid>*,.form-grid>*{min-width:0}
.ribbon span{overflow-wrap:anywhere}
form input,form textarea,form select{min-width:0;max-width:100%}
.contact-links a,.inner-lead,.crumb{overflow-wrap:anywhere}

/* Explicit icon geometry and viewport anchoring across every page. */
body .float{display:grid;place-items:center;position:fixed;z-index:60;box-sizing:border-box;padding:0;line-height:1;color:#fff;flex-shrink:0;touch-action:manipulation}
body .float svg{display:block;width:26px;height:26px;max-width:none;flex-shrink:0;pointer-events:none}
body .wa{left:max(16px,env(safe-area-inset-left));right:auto;bottom:calc(16px + env(safe-area-inset-bottom));width:52px;height:52px;background:#128547}
body .wa svg{fill:currentColor;stroke:none;width:28px;height:28px}
body .access-trigger{left:max(18px,env(safe-area-inset-left));right:auto;bottom:calc(82px + env(safe-area-inset-bottom));width:48px;height:48px;background:#071d30}
body .access-trigger svg,body .up svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body .up{right:max(16px,env(safe-area-inset-right));left:auto;bottom:calc(16px + env(safe-area-inset-bottom));width:48px;height:48px;background:#071d30}
body .float:focus-visible{outline:3px solid #d6ae75;outline-offset:4px}

/* A centered, evenly spaced mobile menu with an independent close target. */
#mobile-menu{inset:0;width:min(420px,100%);max-width:100%;margin:0 auto;overflow-x:hidden}
#mobile-menu .menu-top{position:relative;display:block;text-align:center;padding:26px 60px 22px}
#mobile-menu .menu-logo{width:170px;max-width:100%;margin-inline:auto}
#mobile-menu .menu-close{position:absolute;left:12px;top:22px;display:grid;place-items:center;padding:0}
#mobile-menu h2{font-size:24px}
#mobile-menu nav a{justify-content:center;text-align:center;border-right:3px solid transparent;border-left:3px solid transparent}
#mobile-menu nav a[aria-current=page]{border-right-color:#a77c42;border-left-color:#a77c42}
#mobile-menu .menu-bottom .btn{display:flex;justify-content:center;text-align:center;max-width:100%;white-space:normal}

@media(max-width:1100px){
 body header .nav{display:flex;justify-content:space-between;gap:12px}
 body header .nav>.brand{min-width:0;flex:0 1 185px;margin:0}
 body header .nav .site-logo{width:100%;max-width:185px}
 body header .nav>.mobile-menu-toggle{flex:0 0 auto;margin:0;justify-content:center}
}
@media(max-width:760px){
 html{overflow-x:clip}
 body{width:100%;min-width:0}
 main{min-width:0;max-width:100%;overflow-x:clip}
 .wrap{max-width:100%}
 .hero-grid,.inner-hero-grid,.service-hero-content,.service-jumps{min-width:0;max-width:100%}
 .ribbon>div{padding:18px 7px}
 .ribbon span{font-size:10px;letter-spacing:.5px}
 .landing-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .form-grid,.inner-page .contact-grid,.inner-page .inner-hero-grid{grid-template-columns:minmax(0,1fr)}
 .contact-grid form,.lead-form{min-width:0;max-width:100%}
 .lead-form .btn{min-width:0;max-width:100%;white-space:normal}
}
