#lang[hidden],#langbuttons[hidden]{display:none!important}#footer .footer-main{padding-top:10px;padding-bottom:10px}#footer .footer-wave{height:18px!important}#footer .footer-bottom{padding-top:5px;padding-bottom:5px}#footer p{margin:4px 0}#footer h4{margin-bottom:5px}#footer .footer-brand .logo{height:42px}#footer .footer-main a{line-height:1.35}input[type=checkbox]{width:auto!important;height:auto!important;min-height:0!important;display:inline-block!important;vertical-align:middle;margin:0 6px 0 0}input[hidden]{display:none!important}@media(max-width:760px),(max-height:650px){#footer .footer-main{gap:8px;padding:8px 3%}#footer .footer-bottom{gap:5px}}



html,body{width:100%;height:auto!important;min-height:100%;margin:0;overflow:visible!important}
body{display:block!important;height:auto!important;min-height:100vh!important}
body>#themebar,body>header{position:relative!important;top:auto!important}
body>main#app{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto}
body>footer#footer{position:relative!important;max-height:none!important;overflow:hidden!important}
body>a#wa-float{position:fixed!important;inset:auto 20px 20px auto!important;transform:none!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;max-width:56px!important;max-height:56px!important;padding:0!important;margin:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#087e48!important;color:white!important;z-index:10000!important;box-sizing:border-box!important}
body>a#wa-float>svg{display:block!important;width:34px!important;height:34px!important;fill:#fff!important;flex:none!important}
@media(max-width:760px),(max-height:650px){body>a#wa-float{inset:auto 12px 12px auto!important}}

/* ---- Readability fixes (all sizes) ---- */
.contact-form label:has(>input[type=checkbox]){display:flex!important;align-items:flex-start;gap:8px;text-align:left}
.contact-form label:has(>input[type=checkbox])>input{margin:2px 0 0!important;flex:none}
.owner-contact{display:flex;flex-direction:column;gap:4px}
.map-placeholder,.map-placeholder a{font-size:clamp(16px,1.6vw,22px)!important;line-height:1.35}

/* ---- Mobile layout (<=650px) ---- */
@media(max-width:650px){
  /* Open menu: vertical list, sub-pages listed under their parent */
  header nav.open{flex-direction:column;align-items:stretch;gap:0;width:100%;padding:4px 0 8px}
  header nav.open .navitem{width:100%;border-top:1px solid var(--line)}
  header nav.open .navitem>a{display:block;padding:11px 14px;text-align:left;border-radius:8px}
  header nav.open .dropdown{display:block;position:static;box-shadow:none;background:transparent;min-width:0;padding:0 0 6px 18px}
  header nav.open .dropdown a{padding:7px 14px;font-size:.92em}

  /* Home hero: text first, illustration below it instead of underneath the text */
  .reference-home .rh-hero{display:block;min-height:0;margin:0;padding:22px 5% calc(53vw + 22px);background:url(assets/hero-machinery.png) center bottom/100% auto no-repeat,var(--hero)}
  .reference-home .rh-hero>div{width:auto}
  .reference-home .rh-hero p{max-width:none}
  .reference-home .rh-hero h1{font-size:clamp(28px,8.5vw,36px);line-height:1.15}
  .reference-home .rh-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px}

  .reference-home .rh-stats{grid-template-columns:1fr 1fr}
  .reference-home .rh-stats>div{justify-content:flex-start;padding:10px 12px}
  .reference-home .rh-industries{grid-template-columns:repeat(2,1fr)}
  .reference-home .rh-reports{grid-template-columns:1fr 1fr}
  .reference-home .rh-reports>div:first-child,.reference-home .rh-reports>.btn{grid-column:1/-1}

  /* Contact: office card stacks so the address is not cut off */
  .office{grid-template-columns:1fr;min-height:0}
  .office .map-placeholder{min-height:120px}
  .contact-benefits div{border-right:0}
}

/* ---- Services page icons (same style as home page service badges) ---- */
.service-grid .card .svc-media{grid-row:span 3;position:relative;display:block;min-width:0}
.service-grid .card .svc-media>img{display:block;width:100%;height:100%}
.svc-badge{position:absolute;left:8px;bottom:8px;width:38px;height:38px;border-radius:50%;background:var(--surface);display:grid;place-items:center;box-shadow:0 2px 8px #0003;color:#f07800}
.svc-badge img{width:30px!important;height:30px!important;min-height:0!important;border-radius:50%;object-fit:contain}
.svc-badge svg{width:21px;height:21px}
.flow-icon{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface);box-shadow:0 2px 8px #0002;color:#f07800}
.flow-icon svg{width:23px;height:23px}

/* ---- Mobile header: menu button on the right ---- */
@media(max-width:650px){
  header>#menu{order:2;margin-left:auto}
  header>.controls{order:1}
  header>nav{order:3}
}
