/* NABWORK v60 — clean, premium and data-driven public landing.
 * Desktop: no overlapping navigation, editorial directions with actual freelancer
 * services inside each category. Phone: approved hero photograph + title unchanged.
 * No banking, auth, orders or private data are styled or modified.
 */

/* Precise section actions instead of a redundant, oversized "all services" banner. */
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-head { align-items:center!important; gap:12px!important; }
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all,
#homeView:not(.nw-v26-catalog-mode) .nab-cat-intro .nw-v6-all-cat {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:4px!important;flex:0 0 auto!important;padding:7px 4px!important;
  width:auto!important;min-width:0!important;min-height:35px!important;
  border:0!important;border-radius:7px!important;background:transparent!important;
  color:#056add!important;box-shadow:none!important;
  font-size:12px!important;font-weight:850!important;line-height:1.25!important;
  white-space:nowrap!important;text-decoration:none!important
}
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all:hover,
#homeView:not(.nw-v26-catalog-mode) .nab-cat-intro .nw-v6-all-cat:hover {
  color:#034caa!important;background:#f1f7ff!important
}
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all:focus-visible,
#homeView:not(.nw-v26-catalog-mode) .nab-cat-intro .nw-v6-all-cat:focus-visible {
  outline:3px solid #91c6ff!important;outline-offset:2px
}
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-kicker,
#homeView:not(.nw-v26-catalog-mode) .nw-v42-discovery-desc,
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-note{display:none!important}
#homeView.nw-v26-catalog-mode .nw-v60-direction{display:none!important}

/* A category-led carousel: each cover opens the whole category; the real
 * freelancer offers beneath it open their own service details. */
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{
  display:flex!important;flex-direction:row!important;align-items:stretch!important;
  grid-template-columns:none!important;grid-auto-columns:auto!important;
  grid-auto-flow:initial!important;gap:16px!important;max-width:100%!important;
  scroll-snap-type:x mandatory!important;scroll-padding-left:2px!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch
}
#homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid::-webkit-scrollbar{display:none!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-direction{
  position:relative!important;display:flex!important;flex-direction:column!important;
  flex:0 0 calc((100% - 48px)/4)!important;width:calc((100% - 48px)/4)!important;
  min-width:0!important;max-width:none!important;height:268px!important;min-height:268px!important;
  scroll-snap-align:start!important;overflow:hidden!important;
  border:1px solid #e3ebf8!important;border-radius:16px!important;background:#fff!important;
  box-shadow:0 8px 22px rgba(14,54,107,.07)!important;
  transition:transform .18s ease,box-shadow .18s ease!important
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-direction:hover{
  transform:translateY(-2px)!important;box-shadow:0 14px 28px rgba(15,61,127,.12)!important
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-cover{
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;
  position:relative!important;isolation:isolate;overflow:hidden!important;
  width:100%!important;min-height:120px!important;height:120px!important;flex:0 0 120px!important;
  padding:13px 14px!important;border:0!important;border-radius:0!important;
  background-image:url('/visuals/nabwork-reference-services-v51.webp')!important;
  background-repeat:no-repeat!important;background-size:300% 200%!important;
  color:#fff!important;cursor:pointer!important;text-align:left!important
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-web{background-position:0% 0%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-design{background-position:50% 0%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-video{background-position:100% 0%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-social{background-position:0% 100%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-writing{background-position:50% 100%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-business{background-position:100% 100%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-photo-other{background-position:75% 0%!important}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-cover-shade{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(4,19,41,.83) 0%,rgba(4,19,41,.2) 63%,rgba(4,19,41,.03))
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-cover-label{
  position:relative;z-index:1;max-width:90%;font-size:15px;font-weight:880;
  line-height:1.32;letter-spacing:-.01em;text-shadow:0 1px 5px rgba(1,9,26,.25)
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-cover-arrow{
  position:relative;z-index:1;display:grid;place-items:center;
  width:29px;height:29px;flex:0 0 29px;border:1px solid rgba(255,255,255,.48);
  border-radius:50%;background:rgba(255,255,255,.18);font-size:16px;color:#fff
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-cover:hover .nw-v60-cover-arrow{background:#0667da}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-cover:focus-visible,
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-link:focus-visible{
  outline:3px solid #8dcaff!important;outline-offset:-3px
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-direction-body{
  min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;
  padding:10px 12px 11px
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-group-head{
  display:flex;align-items:center;justify-content:space-between;gap:4px;
  min-width:0;padding:0 0 5px;border-bottom:1px solid #eef2f9
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-group-head strong{
  min-width:0;max-width:69%;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:12px;font-weight:850;color:#172d4d
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-group-count{
  flex:0 0 auto;font-size:10px;font-weight:780;white-space:nowrap;color:#066bde
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-gig-list{
  display:flex;flex-direction:column;gap:3px;min-width:0;flex:1
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer{
  display:flex;align-items:center;min-width:0;border-radius:8px
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer:hover{background:#f1f7ff}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-link{
  display:flex!important;align-items:center;gap:7px!important;
  width:100%;min-width:0;min-height:40px!important;padding:2px 4px!important;
  text-align:left;cursor:pointer;border:0;background:transparent;border-radius:7px
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-avatar{
  flex:0 0 26px;display:grid;place-items:center;width:26px;height:26px;
  font-size:11px;font-weight:850;color:#0b5aa4;background:#e7f2ff;
  border-radius:50%
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-copy{
  display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;overflow:hidden
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-title{
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  font-size:10px;font-weight:820;line-height:1.28;color:#193553
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-name{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:9.5px;line-height:1.25;color:#627894
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-price{
  flex:0 0 auto;max-width:75px;color:#0b55ab;
  font-size:10.5px;font-weight:900;text-align:right;white-space:nowrap
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-more-count{
  display:block;flex:0 0 auto;font-size:9px;font-weight:780;
  color:#6782a4;line-height:1.25;padding-left:4px;margin-top:1px
}
#homeView:not(.nw-v26-catalog-mode) .nw-v60-gig-placeholder{
  display:flex;align-items:center;flex:1;margin:0;padding:5px;
  min-height:55px;color:#647a96;font-size:10.5px;line-height:1.5
}

/* Desktop header: fix the previous max-content grid that put "მეტი" under KA. */
@media(min-width:1400px){
  .nab-header .nab30-header-inner{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
    justify-content:space-between!important;max-width:1550px!important;
    width:calc(100% - 64px)!important;min-height:64px!important;
    padding:6px 0!important;column-gap:10px!important;row-gap:0!important
  }
  .nab-header .nab30-leading{
    display:flex!important;flex:1 1 auto!important;align-items:center!important;
    width:auto!important;max-width:none!important;min-width:0!important;
    gap:clamp(10px,1vw,20px)!important
  }
  .nab-header .nab30-leading>button .nabwork-exact-header-logo{
    width:clamp(140px,9.5vw,160px)!important;height:auto!important
  }
  .nab-header .nab-desktop-navigation{
    display:flex!important;align-items:center!important;gap:2px!important;
    flex:0 1 auto!important;white-space:nowrap!important;min-width:0!important
  }
  .nab-header .nab-nav-link{
    display:inline-flex!important;align-items:center!important;
    padding:7px 7px!important;font-size:11.5px!important;
    font-weight:780!important;min-height:38px!important
  }
  .nab-header .nab-nav-menu{position:relative!important;flex:0 0 auto!important}
  .nab-header .nab-nav-menu summary{cursor:pointer!important}
  .nab-header .nab30-controls{
    display:flex!important;align-items:center!important;
    flex:0 0 auto!important;gap:5px!important;margin-left:0!important;
    white-space:nowrap!important
  }
  .nab-header #langBtn{
    min-width:39px!important;width:39px!important;flex:0 0 39px!important;
    height:38px!important;min-height:38px!important;
    padding:0!important;font-size:12px!important;border-radius:11px!important
  }
  .nab-header #addGigBtn{
    min-height:38px!important;padding:0 13px!important;font-size:11px!important;
    border-radius:22px!important
  }
  .nab-header .nab30-account{
    display:flex!important;align-items:center!important;
    flex:0 1 auto!important;max-width:240px!important;min-width:0!important;
    justify-self:auto!important;overflow:hidden!important
  }
  .nab-header .nab30-account>div{display:flex!important;min-width:0!important;max-width:100%!important;gap:4px!important}
  .nab-header .nab30-account>div>button:first-child{
    min-width:0!important;max-width:170px!important;padding-inline:7px!important
  }
  .nab-header .nab30-account>div>button:first-child>span:nth-child(2){
    display:inline-block!important;min-width:0!important;max-width:85px!important;
    white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important
  }
  .nab-header .nab30-account>div>button:last-child{flex:0 0 auto!important;padding:7px!important}
}
@media(min-width:1400px) and (max-width:1670px){
  .nab-header .nab-nav-ai{display:none!important}
  .nab-header .nab30-controls>button.nab-header-aux{display:none!important}
  .nab-header .nab30-leading>button .nabwork-exact-header-logo{width:145px!important}
  .nab-header .nab30-header-inner{gap:8px!important}
}
@media(min-width:1080px) and (max-width:1399px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction{
    flex:0 0 calc((100% - 36px) / 3)!important;
    width:calc((100% - 36px) / 3)!important
  }
}
@media(min-width:1400px) and (max-width:1699px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction{
    flex:0 0 calc((100% - 42px)/4)!important;
    width:calc((100% - 42px)/4)!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{gap:14px!important}
}

/* Phone uses the previously approved current hero; below it, the
 * single carousel of category icons and grouped freelancer offers follows the reference. */
@media(max-width:1079px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction{
    flex:0 0 min(46vw,230px)!important;width:min(46vw,230px)!important;
    height:244px!important;min-height:244px!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{gap:12px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-cover{height:106px!important;min-height:106px!important;flex-basis:106px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction-body{padding:8px 9px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-cover-label{font-size:12px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-link{min-height:36px!important;gap:5px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-avatar{flex-basis:22px;width:22px;height:22px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-title{font-size:9.5px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-name{font-size:9px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-offer-price{font-size:9px;max-width:57px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-group-head strong{font-size:10.2px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-group-count{font-size:9px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v53-mobile-shortcuts{
    display:none!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro{align-items:center!important;gap:8px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-head{align-items:center!important}
}
@media(max-width:600px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction{
    flex:0 0 min(47.5vw,210px)!important;width:min(47.5vw,210px)!important;
    height:246px!important;min-height:246px!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-cover{height:106px!important;min-height:106px!important;flex-basis:106px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-cover-label{font-size:12px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-group-head strong{max-width:62%}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-gig-list{gap:2px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-more-count{font-size:8.7px}
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all,
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro .nw-v6-all-cat{
    font-size:10.5px!important;padding:6px 2px!important;min-height:33px!important
  }
  /* Move existing menu button into the same header row as the logo.
     The existing menu JS, login controls and overlay stay fully functional. */
  .nab-header .nab30-header-inner{
    padding:10px 12px 9px!important;grid-template-columns:minmax(0,1fr) auto!important;
    column-gap:8px!important;min-height:60px!important
  }
  .nab-header .nab30-leading>button .nabwork-exact-header-logo{
    width:clamp(114px,35vw,137px)!important;height:auto!important
  }
  .nab-header .nab30-controls{gap:5px!important;margin-right:44px!important}
  .nab-header .nab30-controls>div.nab-header-aux{
    display:flex!important;align-items:center!important
  }
  .nab-header .nab30-controls>button.nab-header-aux{display:none!important}
  .nab-header #langBtn{width:37px!important;min-width:37px!important;flex:0 0 37px!important;font-size:11px!important}
  .nab-header .nab-mobile-navigation{background:transparent!important;border:0!important;padding:0!important}
  .nab-header #nab29MobileToggle{
    position:absolute!important;top:12px!important;right:12px!important;z-index:12!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:37px!important;height:37px!important;min-height:37px!important;
    padding:0!important;border:1px solid #e1eaf8!important;border-radius:11px!important;
    background:#fff!important;color:transparent!important;font-size:0!important;
    box-shadow:none!important
  }
  .nab-header #nab29MobileToggle::before{
    content:"☰";display:block;color:#12345b;font-size:23px!important;
    line-height:1!important
  }
  .nab-header #mobileMenu{
    position:absolute!important;top:100%!important;right:12px!important;left:12px!important;
    z-index:12!important;width:auto!important;max-width:400px!important;margin-left:auto!important;
    max-height:72vh!important;overflow:auto!important;
    background:#fff!important;border:1px solid #e4ebf7!important;border-radius:15px!important;
    box-shadow:0 15px 30px rgba(14,48,97,.18)!important
  }
  .nab-header #mobileMenu.hidden{display:none!important}
  .nab-header #mobileMenu:not(.hidden){display:grid!important}
}
@media(prefers-reduced-motion:reduce){
  #homeView:not(.nw-v26-catalog-mode) .nw-v60-direction{transition:none!important}
}

/* Reference-sized two-line desktop hero; no changes to the approved phone hero. */
@media(min-width:1080px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw-v6-hero-grid{
    min-height:376px!important;padding-top:28px!important;padding-bottom:28px!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-copy{
    width:min(66%,840px)!important;max-width:840px!important
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle{
    font-size:clamp(34px,2.65vw,45px)!important;
    line-height:1.20!important;max-width:800px!important;
    margin-bottom:9px!important;letter-spacing:-.027em!important
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle .nw-v60-title-second{
    display:inline-block!important;white-space:nowrap!important
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle .nw-v40-emphasis{
    display:inline!important;color:#26bcff!important;-webkit-text-fill-color:#26bcff!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v40-desktop-subtitle{
    max-width:640px!important;margin-bottom:14px!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-hero-points{
    max-width:790px!important;gap:9px 15px!important;margin-top:15px!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-hero-points li{
    font-size:9.7px!important
  }
}
@media(min-width:1400px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-hero-points{
    flex-wrap:nowrap!important
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-hero-points li{
    white-space:nowrap!important
  }
}

/* The existing fixed paid AI launcher must not cover service cards.
   Functionality stays unchanged; this is only a compact visual treatment. */
#nabPaidAi:not(.nab-ai-open) #nabAiLaunch{
  width:51px!important;height:51px!important;min-width:51px!important;min-height:51px!important;
  padding:0!important;border-radius:50%!important;font-size:0!important;line-height:1!important;
  box-shadow:0 7px 19px rgba(8,78,169,.19)!important
}
#nabPaidAi:not(.nab-ai-open) #nabAiLaunch .nab-ai-paid-spark{
  display:block!important;font-size:26px!important;line-height:1!important
}
#nabPaidAi:not(.nab-ai-open) #nabAiLaunch:focus-visible{
  outline:3px solid #8fc5ff!important;outline-offset:3px!important
}
