/* TradesFolks 18.4.153
   Canonical homepage gutter/rhythm + premium Custom Sourcing.
   This is the final authoritative spacing layer.
*/

.tf-homepage{
  --tf-canonical-gutter:28px;
  --tf-section-gap:14px;
}

/* ==========================================================
   CANONICAL HOMEPAGE OUTER WIDTH
   Matches hero slider: 28px each side on large desktop.
   ========================================================== */
.tf-homepage .country-network,
.tf-homepage .curated-b2b-market,
.tf-homepage .tf-sourcing-solutions,
.tf-homepage .tf-business-growth-services,
.tf-homepage .home-category-showcases,
.tf-homepage .festival-marketplace,
.tf-homepage .marketplace-products,
.tf-homepage .trade-advantage,
.tf-homepage .trending-products,
.tf-homepage .new-arrivals,
.tf-homepage .tf-rfq-enterprise,
.tf-homepage .commerce-offers,
.tf-homepage .tf-commerce-capabilities,
.tf-homepage .tf-industry-enterprise,
.tf-homepage .tf-process-enterprise,
.tf-homepage .tf-dual-cta-enterprise,
.tf-homepage .tf-insights-enterprise,
.tf-homepage .home-reels,
.tf-homepage .tf-content-enterprise,
.tf-homepage .tf-custom-sourcing-enterprise{
  box-sizing:border-box!important;
  width:calc(100% - (var(--tf-canonical-gutter) * 2))!important;
  max-width:none!important;
  margin-top:var(--tf-section-gap)!important;
  margin-right:auto!important;
  margin-bottom:var(--tf-section-gap)!important;
  margin-left:auto!important;
}

/* Inner shells never create a second gutter. */
.tf-homepage .country-network>.shell,
.tf-homepage .curated-b2b-market>.shell,
.tf-homepage .tf-sourcing-solutions>.shell,
.tf-homepage .tf-business-growth-services>.shell,
.tf-homepage .home-category-showcases>.shell,
.tf-homepage .festival-marketplace>.shell,
.tf-homepage .marketplace-products>.shell,
.tf-homepage .trade-advantage>.shell,
.tf-homepage .trending-products>.shell,
.tf-homepage .new-arrivals>.shell,
.tf-homepage .tf-rfq-enterprise>.shell,
.tf-homepage .commerce-offers>.shell,
.tf-homepage .tf-commerce-capabilities>.shell,
.tf-homepage .tf-industry-enterprise>.shell,
.tf-homepage .tf-process-enterprise>.shell,
.tf-homepage .tf-dual-cta-enterprise>.shell,
.tf-homepage .tf-insights-enterprise>.shell,
.tf-homepage .home-reels>.shell,
.tf-homepage .tf-content-enterprise>.shell,
.tf-homepage .tf-custom-sourcing-enterprise>.shell{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

/* Hero remains the canonical ruler. */
.tf-homepage .tf-home-v3{
  width:100%!important;
  margin:0!important;
}
.tf-homepage .tf-home-v3>.tf-home-v3-hero,
.tf-homepage .tf-home-v3>.tf-home-v3-trust,
.tf-homepage .tf-home-v3>.tf-home-v3-industries{
  box-sizing:border-box!important;
  width:calc(100% - (var(--tf-canonical-gutter) * 2))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.tf-homepage .tf-home-v3>.tf-home-v3-hero{
  margin-bottom:var(--tf-section-gap)!important;
}

/* Prevent accidental giant blank bands between the target major modules. */
.tf-homepage .country-network,
.tf-homepage .curated-b2b-market,
.tf-homepage .tf-sourcing-solutions,
.tf-homepage .tf-business-growth-services,
.tf-homepage .home-category-showcases,
.tf-homepage .festival-marketplace,
.tf-homepage .marketplace-products,
.tf-homepage .trade-advantage,
.tf-homepage .trending-products,
.tf-homepage .new-arrivals,
.tf-homepage .tf-rfq-enterprise,
.tf-homepage .commerce-offers,
.tf-homepage .tf-commerce-capabilities,
.tf-homepage .tf-industry-enterprise,
.tf-homepage .tf-process-enterprise,
.tf-homepage .tf-dual-cta-enterprise,
.tf-homepage .tf-insights-enterprise,
.tf-homepage .home-reels,
.tf-homepage .tf-content-enterprise,
.tf-homepage .tf-custom-sourcing-enterprise{
  scroll-margin-top:90px!important;
}

/* ==========================================================
   CUSTOM SOURCING — premium tri-panel CTA
   ========================================================== */
.tf-homepage .tf-custom-sourcing-enterprise{
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #dce5ef!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,191,47,.16),transparent 25%),
    linear-gradient(145deg,#f8fbff 0%,#eef4fa 100%)!important;
  box-shadow:0 16px 40px rgba(16,43,87,.06)!important;
}

.tf-homepage .tf-custom-sourcing-enterprise>.shell{
  padding:0!important;
}

.tf-homepage .tf-custom-sourcing-card{
  --rfq-yellow:#ffbd2f;
  --rfq-navy:#0b2d5d;
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) 190px minmax(300px,.82fr)!important;
  align-items:stretch!important;
  min-height:250px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:21px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.tf-homepage .tf-custom-sourcing-copy{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding:30px 18px 28px 30px!important;
}

.tf-homepage .tf-custom-sourcing-copy>span{
  display:inline-flex!important;
  width:max-content!important;
  min-height:27px!important;
  align-items:center!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#fff3cf!important;
  color:#a96d00!important;
  font-size:7px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
}

.tf-homepage .tf-custom-sourcing-copy h2{
  max-width:19ch!important;
  margin:12px 0 8px!important;
  color:#0b274f!important;
  font-size:clamp(27px,2.4vw,42px)!important;
  line-height:1.02!important;
  letter-spacing:-.042em!important;
  font-weight:850!important;
}

.tf-homepage .tf-custom-sourcing-copy>p{
  max-width:62ch!important;
  margin:0!important;
  color:#667b94!important;
  font-size:9.5px!important;
  line-height:1.45!important;
}

.tf-homepage .tf-custom-sourcing-points{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin-top:18px!important;
}
.tf-homepage .tf-custom-sourcing-points>span{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:30px!important;
  padding:0 9px 0 5px!important;
  border:1px solid #e1e9f2!important;
  border-radius:999px!important;
  background:#f8fbff!important;
  color:#38536f!important;
  font-size:7px!important;
  font-weight:800!important;
}
.tf-homepage .tf-custom-sourcing-points i{
  display:grid!important;
  width:21px!important;
  height:21px!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#e9f2ff!important;
  color:#176fd0!important;
  font-size:5.7px!important;
  font-style:normal!important;
  font-weight:900!important;
}

.tf-homepage .tf-custom-sourcing-visual{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,.18),transparent 34%),
    linear-gradient(150deg,#f59a17 0%,#ffbd2f 100%)!important;
}
.tf-homepage .tf-custom-sourcing-orbit{
  position:absolute!important;
  width:210px!important;
  height:210px!important;
  border:1px solid rgba(255,255,255,.42)!important;
  border-radius:50%!important;
  box-shadow:0 0 0 34px rgba(255,255,255,.10),0 0 0 68px rgba(255,255,255,.06)!important;
}
.tf-homepage .tf-custom-sourcing-icon{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  width:86px!important;
  height:86px!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.68)!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.88)!important;
  color:#0b2d5d!important;
  box-shadow:0 15px 30px rgba(105,61,0,.15)!important;
}
.tf-homepage .tf-custom-sourcing-icon svg{
  width:44px!important;
  height:44px!important;
  stroke:currentColor!important;
  stroke-width:2.1!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.tf-homepage .tf-custom-sourcing-visual>span{
  position:absolute!important;
  z-index:3!important;
  right:13px!important;
  bottom:12px!important;
  color:rgba(11,45,93,.82)!important;
  font-size:7px!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
}

.tf-homepage .tf-custom-sourcing-actions{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:13px!important;
  padding:26px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(61,119,190,.27),transparent 38%),
    linear-gradient(145deg,#08254e 0%,#0d3b76 100%)!important;
  color:#fff!important;
}
.tf-homepage .tf-custom-sourcing-actions>div small{
  display:block!important;
  color:#ffcb54!important;
  font-size:6.5px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
}
.tf-homepage .tf-custom-sourcing-actions>div strong{
  display:block!important;
  max-width:24ch!important;
  margin-top:6px!important;
  color:#fff!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:800!important;
}
.tf-homepage .tf-custom-sourcing-actions>a{
  display:flex!important;
  min-height:48px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:0 15px!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#ffbd2f,#f3a315)!important;
  color:#10284c!important;
  box-shadow:0 11px 22px rgba(0,0,0,.13)!important;
  font-size:8.5px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.tf-homepage .tf-custom-sourcing-actions>a b{
  display:grid!important;
  width:25px!important;
  height:25px!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#fff!important;
  font-size:10px!important;
}
.tf-homepage .tf-custom-sourcing-actions>em{
  color:#aebfd3!important;
  font-size:6.5px!important;
  line-height:1.35!important;
  font-style:normal!important;
}

/* ==========================================================
   RESPONSIVE GUTTER / RHYTHM
   ========================================================== */
@media(max-width:1279px){
  .tf-homepage{
    --tf-canonical-gutter:22px;
    --tf-section-gap:13px;
  }
  .tf-homepage .tf-custom-sourcing-card{
    grid-template-columns:minmax(0,1.3fr) 160px minmax(270px,.8fr)!important;
  }
}

@media(max-width:1023px){
  .tf-homepage{
    --tf-canonical-gutter:16px;
    --tf-section-gap:12px;
  }
  .tf-homepage .tf-custom-sourcing-card{
    grid-template-columns:minmax(0,1fr) 145px!important;
    grid-template-areas:"copy visual" "actions actions"!important;
  }
  .tf-homepage .tf-custom-sourcing-copy{grid-area:copy!important}
  .tf-homepage .tf-custom-sourcing-visual{grid-area:visual!important}
  .tf-homepage .tf-custom-sourcing-actions{
    grid-area:actions!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(250px,.65fr)!important;
    align-items:center!important;
    padding:15px 20px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions>em{display:none!important}
}

@media(max-width:820px){
  .tf-homepage{
    --tf-canonical-gutter:8px;
    --tf-section-gap:10px;
  }

  .tf-homepage .tf-custom-sourcing-enterprise{
    border-radius:17px!important;
  }
  .tf-homepage .tf-custom-sourcing-card{
    grid-template-columns:minmax(0,1fr) 94px!important;
    min-height:0!important;
    border-radius:16px!important;
  }
  .tf-homepage .tf-custom-sourcing-copy{
    padding:16px 8px 15px 16px!important;
  }
  .tf-homepage .tf-custom-sourcing-copy>span{
    min-height:23px!important;
    padding:0 8px!important;
    font-size:5.7px!important;
  }
  .tf-homepage .tf-custom-sourcing-copy h2{
    max-width:20ch!important;
    margin:8px 0 5px!important;
    font-size:20px!important;
  }
  .tf-homepage .tf-custom-sourcing-copy>p{
    display:-webkit-box!important;
    max-width:48ch!important;
    font-size:7px!important;
    line-height:1.35!important;
    overflow:hidden!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }
  .tf-homepage .tf-custom-sourcing-points{
    gap:5px!important;
    margin-top:10px!important;
  }
  .tf-homepage .tf-custom-sourcing-points>span{
    min-height:25px!important;
    padding-right:7px!important;
    font-size:5.5px!important;
  }
  .tf-homepage .tf-custom-sourcing-points>span:nth-child(3){
    display:none!important;
  }
  .tf-homepage .tf-custom-sourcing-points i{
    width:18px!important;
    height:18px!important;
    font-size:4.8px!important;
  }
  .tf-homepage .tf-custom-sourcing-orbit{
    width:120px!important;
    height:120px!important;
    box-shadow:0 0 0 20px rgba(255,255,255,.09),0 0 0 38px rgba(255,255,255,.05)!important;
  }
  .tf-homepage .tf-custom-sourcing-icon{
    width:56px!important;
    height:56px!important;
    border-radius:17px!important;
  }
  .tf-homepage .tf-custom-sourcing-icon svg{
    width:29px!important;
    height:29px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions{
    grid-template-columns:minmax(0,1fr) minmax(180px,.75fr)!important;
    gap:10px!important;
    padding:11px 13px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions>div small{font-size:5px!important}
  .tf-homepage .tf-custom-sourcing-actions>div strong{
    margin-top:4px!important;
    font-size:10.5px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions>a{
    min-height:38px!important;
    padding:0 10px!important;
    border-radius:10px!important;
    font-size:6.5px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions>a b{
    width:21px!important;
    height:21px!important;
  }
}

@media(max-width:560px){
  .tf-homepage{
    --tf-canonical-gutter:6px;
    --tf-section-gap:9px;
  }
  .tf-homepage .tf-custom-sourcing-card{
    grid-template-columns:minmax(0,1fr) 78px!important;
  }
  .tf-homepage .tf-custom-sourcing-copy{
    padding:13px 7px 12px 13px!important;
  }
  .tf-homepage .tf-custom-sourcing-copy h2{
    font-size:17px!important;
  }
  .tf-homepage .tf-custom-sourcing-points>span:nth-child(2){
    display:none!important;
  }
  .tf-homepage .tf-custom-sourcing-icon{
    width:48px!important;
    height:48px!important;
  }
  .tf-homepage .tf-custom-sourcing-icon svg{
    width:25px!important;
    height:25px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .tf-homepage .tf-custom-sourcing-actions>div{
    display:none!important;
  }
  .tf-homepage .tf-custom-sourcing-actions>a{
    width:100%!important;
  }
}

@media(max-width:380px){
  .tf-homepage{
    --tf-canonical-gutter:5px;
    --tf-section-gap:8px;
  }
  .tf-homepage .tf-custom-sourcing-card{
    grid-template-columns:1fr!important;
    grid-template-areas:"copy" "actions"!important;
  }
  .tf-homepage .tf-custom-sourcing-visual{
    display:none!important;
  }
}
