/* TradesFolks 18.4.149
   Two premium sections, intentionally DIFFERENT layouts.

   A) Built for confident sourcing
      = large visual service cards inspired by premium marketplace service blocks.

   B) Focused sourcing for every business need
      = compact industry market tiles / icon grid.

   All selectors are isolated to their exact section classes.
*/

/* ==========================================================
   A) CONFIDENT SOURCING — LARGE COLOUR SERVICE CARDS
   ========================================================== */

.tf-homepage .tf-commerce-capabilities{
  background:
    radial-gradient(circle at 4% 0%,rgba(30,110,220,.08),transparent 25%),
    linear-gradient(180deg,#f8fbff 0%,#f3f7fc 100%)!important;
}

/* 3 large service cards */
.tf-homepage .tf-commerce-capabilities .tf-commerce-capabilities-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}

/* Each card has its own premium identity */
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card{
  --svc-bg1:#8fa3b5;
  --svc-bg2:#bcc7d0;
  --svc-ink:#ffffff;
  --svc-soft:rgba(255,255,255,.20);
  --svc-line:rgba(255,255,255,.28);
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 145px!important;
  grid-template-areas:"body visual"!important;
  min-height:250px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 88% 22%,rgba(255,255,255,.22),transparent 28%),
    linear-gradient(135deg,var(--svc-bg1) 0%,var(--svc-bg2) 100%)!important;
  box-shadow:0 16px 34px rgba(16,43,87,.10)!important;
  color:var(--svc-ink)!important;
  transition:transform .20s ease,box-shadow .20s ease!important;
}

/* Different colours – not same-card syndrome */
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card.is-trust{
  --svc-bg1:#8fa3b5;
  --svc-bg2:#b8c5d0;
}
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card.is-commerce{
  --svc-bg1:#f28a16;
  --svc-bg2:#ef6f13;
}
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card.is-discovery{
  --svc-bg1:#67405f;
  --svc-bg2:#9a5e88;
}
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card.is-secure{
  --svc-bg1:#ef6469;
  --svc-bg2:#ff8d91;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 22px 42px rgba(16,43,87,.15)!important;
}

/* Body sits left, illustration right */
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-body{
  grid-area:body!important;
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  padding:24px 8px 18px 24px!important;
  background:transparent!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-visual{
  grid-area:visual!important;
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  padding:18px!important;
  overflow:hidden!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* decorative soft wave / disc */
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-visual::before{
  content:""!important;
  position:absolute!important;
  width:170px!important;
  height:170px!important;
  right:-38px!important;
  bottom:-50px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 0 0 34px rgba(255,255,255,.045)!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-icon{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  width:94px!important;
  height:94px!important;
  place-items:center!important;
  border:0!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.17)!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 12px 24px rgba(0,0,0,.09)!important;
  backdrop-filter:blur(3px)!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-icon svg{
  width:49px!important;
  height:49px!important;
  stroke:#fff!important;
  stroke-width:2!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-visual>span{
  position:absolute!important;
  z-index:3!important;
  right:16px!important;
  bottom:20px!important;
  margin:0!important;
  color:rgba(255,255,255,.90)!important;
  font-size:7px!important;
  line-height:1.15!important;
  font-weight:800!important;
  text-align:center!important;
  letter-spacing:.03em!important;
}

/* hide old decorative mini bars for cleaner illustrated-card language */
.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-visual>i{
  display:none!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-top b{
  display:inline-flex!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 9px!important;
  border:1px solid rgba(255,255,255,.26)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:900!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-top span{
  display:inline-flex!important;
  min-height:26px!important;
  align-items:center!important;
  padding:0 8px!important;
  border:1px solid rgba(255,255,255,.25)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-size:6.5px!important;
  font-weight:850!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card h3{
  max-width:21ch!important;
  margin:24px 0 8px!important;
  color:#fff!important;
  font-size:22px!important;
  line-height:1.05!important;
  letter-spacing:-.025em!important;
  font-weight:820!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card p{
  display:-webkit-box!important;
  max-width:44ch!important;
  margin:0!important;
  color:rgba(255,255,255,.83)!important;
  font-size:9.5px!important;
  line-height:1.42!important;
  overflow:hidden!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-body>a{
  display:inline-flex!important;
  width:max-content!important;
  min-height:34px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin-top:auto!important;
  padding:0!important;
  border:0!important;
  color:#fff!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:850!important;
  text-decoration:none!important;
}

.tf-homepage .tf-commerce-capabilities .tf-commerce-capability-body>a span{
  display:grid!important;
  width:28px!important;
  height:28px!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#15345c!important;
  box-shadow:0 4px 10px rgba(0,0,0,.10)!important;
}

/* ==========================================================
   B) INDUSTRY COLLECTIONS — COMPACT MARKET TILES
   Completely different card architecture.
   ========================================================== */

.tf-homepage .tf-industry-enterprise{
  background:
    radial-gradient(circle at 95% 0%,rgba(255,191,47,.09),transparent 24%),
    linear-gradient(180deg,#f9fbfe 0%,#eef4fa 100%)!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card{
  --industry-accent:#0b67d8;
  --industry-soft:#eaf3ff;
  --industry-wash:#f4f9ff;
  position:relative!important;
  display:block!important;
  min-width:0!important;
  min-height:154px!important;
  overflow:hidden!important;
  padding:16px!important;
  border:1px solid #dce5ef!important;
  border-radius:16px!important;
  background:
    linear-gradient(145deg,#fff 0%,var(--industry-wash) 100%)!important;
  box-shadow:0 8px 20px rgba(16,43,87,.045)!important;
  color:#102b57!important;
  text-decoration:none!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-agri{
  --industry-accent:#15805b;--industry-soft:#e5f6ee;--industry-wash:#f0fbf6;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-fashion{
  --industry-accent:#7057c8;--industry-soft:#eeeaff;--industry-wash:#f7f5ff;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-mobility{
  --industry-accent:#2c71c3;--industry-soft:#e8f2fd;--industry-wash:#f3f8fe;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-wellness{
  --industry-accent:#a37510;--industry-soft:#fff4cf;--industry-wash:#fffaf0;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-services{
  --industry-accent:#117d9b;--industry-soft:#e5f5f9;--industry-wash:#f2fbfd;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-science{
  --industry-accent:#5368a7;--industry-soft:#ebeffa;--industry-wash:#f6f8fd;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-build{
  --industry-accent:#9a6336;--industry-soft:#f7ece3;--industry-wash:#fcf7f3;
}
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card.is-technology{
  --industry-accent:#216fce;--industry-soft:#e8f2fe;--industry-wash:#f3f8fe;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card:hover{
  transform:translateY(-2px)!important;
  border-color:color-mix(in srgb,var(--industry-accent) 28%,#dce5ef)!important;
  box-shadow:0 14px 28px rgba(16,43,87,.075)!important;
}

/* icon becomes compact badge, not a left illustration rail */
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-iconwrap{
  position:static!important;
  display:block!important;
  min-width:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  background:none!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-index{
  position:absolute!important;
  top:13px!important;
  right:13px!important;
  left:auto!important;
  width:27px!important;
  height:27px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--industry-soft)!important;
  color:var(--industry-accent)!important;
  font-size:7px!important;
  box-shadow:none!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-kicker{
  position:absolute!important;
  top:18px!important;
  left:68px!important;
  right:auto!important;
  bottom:auto!important;
  color:var(--industry-accent)!important;
  font-size:5.8px!important;
  text-align:left!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-icon{
  display:grid!important;
  width:42px!important;
  height:42px!important;
  place-items:center!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--industry-soft)!important;
  color:var(--industry-accent)!important;
  box-shadow:none!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-icon svg{
  width:23px!important;
  height:23px!important;
  stroke:currentColor!important;
  stroke-width:2.1!important;
}

/* Content no longer split into two columns */
.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content{
  display:flex!important;
  min-width:0!important;
  min-height:92px!important;
  flex-direction:column!important;
  padding:0!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content h3{
  margin:21px 0 0!important;
  color:#0f294d!important;
  font-size:14px!important;
  line-height:1.12!important;
  font-weight:820!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content p{
  margin:4px 0 0!important;
  color:#71839a!important;
  font-size:7.4px!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content>b{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-top:auto!important;
  padding-top:9px!important;
  border-top:1px solid #e5ebf2!important;
  color:var(--industry-accent)!important;
  font-size:7.4px!important;
  font-weight:850!important;
}

.tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content>b i{
  display:grid!important;
  width:20px!important;
  height:20px!important;
  place-items:center!important;
  border-radius:50%!important;
  background:var(--industry-soft)!important;
  color:var(--industry-accent)!important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(min-width:821px) and (max-width:1179px){
  .tf-homepage .tf-commerce-capabilities .tf-commerce-capabilities-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card{
    min-height:225px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:820px){
  /* service cards: horizontal app carousel */
  .tf-homepage .tf-commerce-capabilities .tf-commerce-capabilities-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:9px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capabilities-grid::-webkit-scrollbar{
    display:none!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card{
    grid-template-columns:minmax(0,1fr) 92px!important;
    flex:0 0 min(88vw,360px)!important;
    width:min(88vw,360px)!important;
    min-width:min(88vw,360px)!important;
    min-height:178px!important;
    border-radius:15px!important;
    scroll-snap-align:start!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-body{
    padding:14px 4px 12px 14px!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card h3{
    margin:14px 0 5px!important;
    font-size:15px!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-card p{
    font-size:7.5px!important;
    -webkit-line-clamp:2!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-icon{
    width:58px!important;
    height:58px!important;
    border-radius:17px!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-icon svg{
    width:31px!important;
    height:31px!important;
  }

  .tf-homepage .tf-commerce-capabilities .tf-commerce-capability-visual>span{
    right:8px!important;
    bottom:11px!important;
    font-size:5.5px!important;
  }

  /* industry: two compact columns on mobile, not same as service rail */
  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    overflow:visible!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card{
    min-width:0!important;
    width:auto!important;
    min-height:132px!important;
    padding:11px!important;
    border-radius:13px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-icon{
    width:36px!important;
    height:36px!important;
    border-radius:10px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-icon svg{
    width:20px!important;
    height:20px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-index{
    top:9px!important;
    right:9px!important;
    width:22px!important;
    height:22px!important;
    font-size:5.5px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-kicker{
    top:14px!important;
    left:54px!important;
    font-size:4.5px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content{
    min-height:78px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content h3{
    margin-top:15px!important;
    font-size:10.5px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content p{
    font-size:5.8px!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-content>b{
    padding-top:6px!important;
    font-size:5.8px!important;
  }
}

@media(max-width:430px){
  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .tf-homepage .tf-industry-enterprise .tf-industry-enterprise-card{
    min-height:126px!important;
    padding:10px!important;
  }
}
