/* KRALLAR GROUP — shared responsive rules, loaded after page-level CSS. */
:root{--kg-content-max:1440px}
html,body{max-width:100%;overflow-x:clip}
.container{width:100%;max-width:var(--kg-content-max);margin-left:auto;margin-right:auto;padding-left:clamp(18px,3.2vw,64px);padding-right:clamp(18px,3.2vw,64px)}
main,section,article,aside,header,footer{min-width:0}
img,video,iframe{max-width:100%}
pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
table{max-width:100%;display:block;overflow-x:auto}
input,select,textarea{max-width:100%;min-width:0}
button,.btn{touch-action:manipulation}
/* Flexible grids must not force horizontal overflow on intermediate widths. */
.intro-grid,.form-grid,.about-box,.split,.index-intro-grid,.region-split,.references-premium-head,.cs-content{min-width:0}
.expertise-item,.project-row,.process-grid,.why-grid,.blog-grid,.site-pages-grid,.footer-top,.reference-logo-wall,.gallery-grid,.scope-grid,.cap-grid,.related-cards{min-width:0}
.expertise-text,.project-text,.service-rich-content,.service-story-text,.content-block,.blog-card,.footer-col{min-width:0;overflow-wrap:anywhere}
/* Large desktop / 2K / 4K: use available width without endlessly stretching text. */
@media(min-width:1600px){:root{--kg-content-max:1560px}.container{max-width:var(--kg-content-max)}.site-header .main-nav{gap:clamp(18px,1.6vw,30px)}.site-header .main-nav a{font-size:clamp(13px,.78vw,16px)}.hero-title{max-width:15ch}.hero-desc,.service-hero p{max-width:64ch}}
@media(min-width:2200px){:root{--kg-content-max:1680px}.container{max-width:var(--kg-content-max)}body{font-size:17px}.site-header{padding-top:26px;padding-bottom:26px}.site-header.is-scrolled{padding-top:18px;padding-bottom:18px}.section,.intro,.expertise,.projects,.process,.why,.blog,.contact-form-wrap{padding-top:clamp(120px,7vw,180px);padding-bottom:clamp(120px,7vw,180px)}}
/* Laptop and tablet landscape */
@media(max-width:1100px){.site-header .main-nav{gap:14px}.site-header .header-row{gap:16px}.footer-top{gap:32px}.project-text{padding:clamp(28px,4vw,54px)}.cs-content{gap:32px;padding:clamp(28px,4vw,54px)}}
@media(max-width:1024px){.main-nav,.site-header .main-nav{display:none!important}.menu-toggle{display:flex!important}.header-cta .btn-ghost{display:none!important}.intro-grid,.form-grid,.about-box,.split,.index-intro-grid,.references-premium-head,.cs-content{grid-template-columns:1fr!important;gap:32px}.expertise-item{grid-template-columns:1fr minmax(0,1fr);gap:24px}.expertise-num{display:none}.project-row,.project-row.is-reverse{grid-template-columns:1fr;direction:ltr}.project-media{min-height:clamp(240px,45vw,440px)}.process-grid,.cap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}.service-hero{min-height:540px;padding-top:130px}.service-body{padding-top:52px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.container{padding-left:20px;padding-right:20px}.site-header{padding:14px 0}.site-header.is-scrolled{padding:11px 0}.header-row{gap:12px}.site-header .header-row>.logo.brand{min-width:0;max-width:calc(100% - 56px)}.site-header .header-row>.logo.brand .brand-logo{width:40px;height:40px;flex:0 0 40px}.site-header .header-row>.logo.brand .brand-name{font-size:14px}.site-header .header-row>.logo.brand .brand-name span{font-size:9px}.menu-toggle{width:44px;height:44px;flex:0 0 44px;align-items:center;justify-content:center}.hero{min-height:0;min-height:88svh;padding-top:112px;padding-bottom:48px;justify-content:flex-end}.hero-content{padding-bottom:38px}.hero-title{font-size:clamp(38px,8.6vw,64px);max-width:100%;overflow-wrap:normal}.hero-desc{font-size:15px;line-height:1.55}.hero-actions{gap:10px;margin-top:24px}.hero-actions .btn{min-height:48px}.hero-footer{gap:12px}.section,.gallery,.cta,.service-body,.contact-form-wrap{padding-top:76px;padding-bottom:76px}.intro,.expertise,.projects,.process,.why,.blog{padding-top:82px;padding-bottom:82px}.section-head{gap:20px;margin-bottom:42px}.project-text{padding:30px 20px}.project-media{min-height:260px}.case-study{min-height:0}.cs-content{padding:32px 20px}.service-hero{min-height:500px;padding:116px 0 58px}.service-hero .hero-content{padding-inline:20px}.service-hero h1,.hero h1{font-size:clamp(34px,8vw,58px)}.service-story-row{grid-template-columns:1fr!important;gap:20px!important}.service-story-row .service-inline-photo{order:-1!important;width:100%!important;float:none!important;margin:0!important}.service-rich-content p{font-size:15px;line-height:1.75}.footer-top{gap:28px 20px}.footer-bottom{gap:12px}.site-pages-head{display:block}.site-pages-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trust-grid>div:nth-child(2n){border-right:0}.sticky-mobile-cta{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:120;background:rgba(8,9,11,.96);backdrop-filter:blur(14px);border-top:1px solid var(--kg-border);padding-bottom:env(safe-area-inset-bottom)}.sticky-mobile-cta a{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px 5px;font-size:11px;line-height:1.25}.whatsapp-float{right:14px;bottom:82px}.mobile-drawer{max-width:100vw;overflow-y:auto;overscroll-behavior:contain;padding-top:calc(env(safe-area-inset-top) + 14px);padding-bottom:calc(env(safe-area-inset-bottom) + 18px)}body{padding-bottom:calc(62px + env(safe-area-inset-bottom))}}
@media(max-width:600px){.process-grid,.cap-grid,.gallery-grid,.scope-grid,.footer-top,.blog-grid,.related-cards{grid-template-columns:1fr}.trust-grid{grid-template-columns:1fr}.trust-grid>div{border-right:0;border-bottom:1px solid var(--kg-border)}.group-head{grid-template-columns:1fr;gap:10px}.service-group{padding:42px 0 52px}.service-row{align-items:flex-start;gap:12px;padding:18px 4px}.service-name{font-size:15px}.service-arrow{white-space:nowrap}.related-cards a{min-height:70px}.site-pages-grid{grid-template-columns:1fr}.reference-logo-wall{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-logo-item{min-height:120px;padding:18px 12px}.reference-logo-item img{height:56px}.form-fields{grid-template-columns:1fr}.field.full{grid-column:auto}.final-cta-contact{flex-direction:column;gap:12px}.sticky-mobile-cta a{font-size:10px;letter-spacing:0}}
@media(max-width:390px){.container{padding-left:16px;padding-right:16px}.site-header .header-row>.logo.brand .brand-logo{width:35px;height:35px;flex-basis:35px}.site-header .header-row>.logo.brand .brand-name{font-size:12px}.site-header .header-row>.logo.brand .brand-name span{font-size:8px;letter-spacing:.1em}.hero{min-height:86svh;padding-top:100px}.hero-title{font-size:clamp(32px,8.8vw,38px)}.hero-kicker{font-size:9px;letter-spacing:.1em}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{width:100%;justify-content:center}.mobile-drawer>nav>a{font-size:clamp(16px,5vw,21px)}}
@media(orientation:landscape) and (max-height:520px) and (max-width:900px){.hero{min-height:620px;padding-top:100px}.mobile-drawer{padding-top:8px;padding-bottom:8px}.mobile-drawer>nav>a{padding:7px 0;font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* HEADER DESKTOP FIX — keep the phone CTA out of navigation text flow. */
@media (min-width:1025px){
  .site-header .header-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:clamp(10px,1.2vw,18px)!important;
    min-width:0!important;
  }
  .site-header .header-row>.logo{
    flex:0 0 auto!important;
    min-width:0!important;
    white-space:nowrap!important;
  }
  .site-header .main-nav{
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;
    justify-content:center!important;
    align-items:center!important;
    gap:clamp(8px,.85vw,14px)!important;
    white-space:nowrap!important;
  }
  .site-header .main-nav a{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font-size:clamp(10px,.72vw,12px)!important;
    letter-spacing:-.02em!important;
  }
  .site-header .header-cta{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .site-header .header-cta .btn{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    padding:11px 12px!important;
    font-size:10px!important;
    letter-spacing:.045em!important;
  }
}
@media (min-width:1600px){
  .site-header .container.header-row{max-width:1560px!important;padding-left:clamp(28px,2.5vw,44px)!important;padding-right:clamp(28px,2.5vw,44px)!important}
}
@media (min-width:1025px) and (max-width:1450px){
  .site-header .header-cta .btn-ghost{display:none!important}
  .site-header .main-nav{gap:clamp(7px,.7vw,11px)!important}
  .site-header .main-nav a{font-size:10px!important}
}


/* FINAL HOMEPAGE HEADER SCALE — readable navigation, phone and quote button. */
@media (min-width:1025px) {
  .site-header .header-row {
    gap: clamp(12px, 1.15vw, 20px) !important;
  }
  .site-header .header-row > .logo.brand {
    gap: 9px !important;
    flex: 0 0 auto !important;
  }
  .site-header .header-row > .logo.brand .brand-logo {
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px !important;
  }
  .site-header .header-row > .logo.brand .brand-name {
    font-size: 16px !important;
    letter-spacing: .09em !important;
  }
  .site-header .header-row > .logo.brand .brand-name span {
    font-size: 9px !important;
  }
  .site-header .main-nav {
    flex: 1 1 auto !important;
    gap: clamp(10px, .95vw, 17px) !important;
    justify-content: center !important;
  }
  .site-header .main-nav > a,
  .site-header .main-nav .nav-dropdown-toggle {
    font-size: clamp(12px, .9vw, 14px) !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
  }
  .site-header .header-cta {
    gap: 10px !important;
    flex: 0 0 auto !important;
  }
  .site-header .header-cta .btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 11px 13px !important;
    font-size: clamp(12px, .82vw, 14px) !important;
    letter-spacing: .015em !important;
  }
  .site-header .header-cta .btn-primary {
    min-height: 44px !important;
    padding: 12px 18px !important;
    font-size: clamp(12px, .82vw, 14px) !important;
    letter-spacing: .04em !important;
  }
}

/* Compact desktop widths: keep the phone visible and use balanced spacing. */
@media (min-width:1025px) and (max-width:1450px) {
  .site-header .header-row > .logo.brand .brand-logo {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
  }
  .site-header .header-row > .logo.brand .brand-name {
    font-size: 14px !important;
  }
  .site-header .main-nav {
    gap: clamp(8px, .65vw, 11px) !important;
  }
  .site-header .main-nav > a,
  .site-header .main-nav .nav-dropdown-toggle {
    font-size: 11.5px !important;
  }
  .site-header .header-cta .btn-ghost {
    display: inline-flex !important;
    font-size: 11.5px !important;
    padding-inline: 9px !important;
  }
  .site-header .header-cta .btn-primary {
    font-size: 11.5px !important;
    padding-inline: 12px !important;
  }
}
