/* CB site extras: mobile hardening. Loaded after the main styles. Remove this file to restore the original behaviour. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* single-column grids may not be wider than the screen (min-content of children) */
@media(max-width:980px){
  .work-card,.contact,.hero-grid{grid-template-columns:minmax(0,1fr)}
  .work-card>*,.contact>*,.hero-grid>*{min-width:0}
}
@media(max-width:520px){
  .tiles,.reason,.reasons{grid-template-columns:minmax(0,1fr)}
  .tiles>*,.reason>*,.reasons>*{min-width:0}
}
img,video,svg,iframe{max-width:100%}
h1,h2,h3,p,li,a,label{overflow-wrap:anywhere}
.chips{max-width:100%}
/* comfortable touch targets for footer links and the form controls */
.footer-links a{display:inline-flex;align-items:center;min-height:44px;padding-inline:6px}
.footer-links{gap:12px 18px}
@media(pointer:coarse){
  .field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select{min-height:44px;font-size:max(16px,1.2rem)}
  .nav-links a{min-height:44px}
}
/* mobile menu never taller than the screen (landscape phones) */
@media(max-width:980px){
  .nav-links{max-height:calc(100vh - var(--header-h));max-height:calc(100dvh - var(--header-h));overflow-y:auto;overscroll-behavior:contain}
}
/* very short landscape screens: the hero shouldn't force a full height */
@media(max-height:520px) and (orientation:landscape){
  .hero{min-height:0}
  .visual-dome{height:min(60vh,360px)}
}
/* WhatsApp box always fits */
.wa-box{max-width:calc(100vw - 32px)}
.tabs a,.fin a,.back{min-height:44px;display:inline-flex;align-items:center}
.site-footer .cb-credit,.fin+.cb-credit{margin:0}
footer a{min-height:44px;display:inline-flex;align-items:center}

/* כשבוט ה-AI פעיל, הוא מחליף את חלונית הוואטסאפ (הבוט כולל כפתור וואטסאפ) */
html.cb-bot-on .wa-widget,html.cb-bot-on .wa-fab{display:none!important}
