/* SWOMB homepage | 11-responsive.css: additive phone & tablet fixes.
   Loaded last. Only changes layout at or below the stated widths; desktop (>1100px) is untouched. */

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,canvas{max-width:100%}
pre,code{max-width:100%}
pre{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ---- tablet ---- */
@media(max-width:1100px){
  .wrap{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
}

/* ---- products: stack detail panel above the category card on small screens ---- */
@media(max-width:980px){
  .rk-left{display:contents}
  .rk-left .rk-rack{order:1}
  .rk-body .rk-det{order:2}
  .rk-left .rk-cat{order:3}
}

/* ---- phone ---- */
@media(max-width:700px){
  .wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  section{scroll-margin-top:118px}

  /* home: decorative floating chips overlapped the headline */
  .globe-badges,.gb-badge{display:none!important}
  /* home journey: keep the progress card clear of the buttons */
  .hero .wrap.hw{padding-bottom:128px}
  .hero .journey-note{left:16px!important;right:16px!important;width:auto!important;max-width:none!important}
  .hero .cta{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .hero .cta .btn{justify-content:center;text-align:center}

  /* back-to-top: smaller and translucent so it never hides text */
  #up{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:38px;height:38px;background:#121a2bd9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
  #up .ico{width:18px;height:18px}

  /* products */
  .rk-meta{flex-wrap:wrap}
  .rk-meta .tag{white-space:normal;line-height:1.4;border-radius:14px}
  .rk-det h3{font-size:clamp(21px,6.4vw,26px)}
  .rk-det>p,.rk-cat p{font-size:14.5px;line-height:1.7}
  .rk-act .btn{flex:1 1 auto;justify-content:center}
  .rk-nav{margin-left:auto}
  .rk-grp{font-size:10px;letter-spacing:.1em}

  /* clients slider: arrows no longer sit on top of the card */
  .client-slider{padding:0 0 58px}
  .client-track>div{flex-basis:100%}
  .client-slider .slider-arrow{top:auto;bottom:0;transform:none}
  .client-slider .slider-arrow.prev{left:calc(50% - 48px)}
  .client-slider .slider-arrow.next{right:calc(50% - 48px)}

  /* client globe & world map */
  .mapbox{
    border-radius:20px;
    margin-bottom:24px;
    min-height:300px;
  }
  #map{
    width:100%;
    aspect-ratio:1.15;
    min-height:300px;
    height:auto;
  }
  .mapleg{
    left:18px;
    top:18px;
    bottom:auto;
    font-size:11.5px;
    line-height:1.35;
    pointer-events:none;
  }
  .mapleg b{
    font-size:15px;
    margin-bottom:2px;
  }

  /* forms: 16px stops iOS zooming into fields */
  input,select,textarea{font-size:16px}
  .btn{min-height:44px}
}

/* ---- small phones ---- */
@media(max-width:380px){
  .rk-hero{height:180px}
  .rk-tabs button{padding:10px 13px}
}

/* ---- landscape phones ---- */
@media(max-height:480px) and (orientation:landscape){
  section{scroll-margin-top:80px}
}
