/* ============================================================
   WebDealz - Homepage hero (v2)   assets/css/wd-hero.css

   Search-first hero: category tabs + search + proof stats on the
   left, a live featured-listing panel on the right.
   Scoped to body.home so nothing leaks to other pages, and so the
   rules out-rank Tailwind's runtime utilities injected last in <head>.
   Palette: blue #0866F5 . navy #0B1F42 . yellow #FFB800 . orange #FF6B00
   ============================================================ */

/* ---------------- Shell ---------------- */
body.home .hero2 {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(2.2rem, 4vw, 3.6rem);
  background:
    radial-gradient(52% 72% at 4% -14%, rgba(8, 102, 245, .16), transparent 60%),
    radial-gradient(44% 58% at 102% 0%, rgba(255, 107, 0, .10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-bottom: 1px solid var(--wd-border);
}
body.home .hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 31, 66, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 70%);
}
body.home .hero2 > .container { position: relative; z-index: 1; }

body.home .hero2-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .5;
  pointer-events: none;
}
body.home .hero2-glow.g1 { width: 440px; height: 440px; left: -160px; top: -190px; background: radial-gradient(circle, rgba(8, 102, 245, .5), transparent 65%); }
body.home .hero2-glow.g2 { width: 380px; height: 380px; right: -150px; bottom: -200px; background: radial-gradient(circle, rgba(255, 184, 0, .35), transparent 65%); }

body.home .hero2-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.6rem);
}

/* ---------------- Copy ---------------- */
body.home .hero2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wd-navy);
  background: #fff;
  border: 1px solid var(--wd-border);
  box-shadow: var(--wd-shadow-xs);
  padding: .4rem .85rem;
  border-radius: 999px;
}
body.home .hero2-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wd-green);
  box-shadow: 0 0 0 3px rgba(18, 161, 80, .18);
  animation: hero2Pulse 2.2s ease-in-out infinite;
}
@keyframes hero2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

body.home .hero2-title {
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--wd-navy);
  margin: 1.05rem 0 0;
}
body.home .hero2-title .hl {
  background: linear-gradient(120deg, #0866F5 0%, #0B1F42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body.home .hero2-lead {
  color: var(--wd-muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  max-width: 560px;
  margin: 1.05rem 0 1.6rem;
}

/* ---------------- Search ---------------- */
body.home .hero2-search {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--wd-border);
  border-radius: 16px;
  padding: .42rem;
  box-shadow: 0 22px 54px -32px rgba(11, 31, 66, .55);
}
body.home .hero2-tabs {
  display: flex;
  gap: .2rem;
  padding: .12rem .12rem .5rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--wd-border);
  overflow-x: auto;
  scrollbar-width: none;
}
body.home .hero2-tabs::-webkit-scrollbar { display: none; }
body.home .hero2-tab {
  flex: none;
  padding: .42rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wd-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
body.home .hero2-tab:hover { color: var(--wd-navy); background: var(--wd-bg-soft); }
body.home .hero2-tab.is-on {
  color: #fff;
  background: var(--wd-grad-primary);
  box-shadow: 0 8px 16px -8px rgba(8, 102, 245, .7);
}

body.home .hero2-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
}
body.home .hero2-field > .bi-search {
  position: absolute;
  left: .85rem;
  z-index: 2;
  color: var(--wd-muted);
  font-size: .95rem;
  pointer-events: none;
}
body.home .hero2-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: .6rem .6rem .6rem 2.4rem;
  font-size: .92rem;
  color: var(--wd-heading);
}
body.home .hero2-field input::placeholder { color: var(--wd-muted); }
body.home .hero2-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 0;
  border-radius: 11px;
  padding: .6rem 1.15rem;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  background: var(--wd-grad-primary);
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(8, 102, 245, .75);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
body.home .hero2-go:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 14px 26px -10px rgba(8, 102, 245, .85); }

/* ---------------- Popular chips ---------------- */
body.home .hero2-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--wd-muted);
}
body.home .hero2-popular .lbl { font-weight: 700; color: var(--wd-text); }
body.home .hero2-popular a {
  color: var(--wd-navy);
  background: #fff;
  border: 1px solid var(--wd-border);
  padding: .26rem .72rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: .16s;
}
body.home .hero2-popular a:hover { border-color: var(--wd-primary); color: var(--wd-primary); background: var(--wd-primary-soft); }

/* ---------------- Proof stats ---------------- */
body.home .hero2-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.7rem;
  margin-top: 1.7rem;
}
body.home .hero2-proof-item { display: flex; flex-direction: column; }
body.home .hero2-proof-item strong { font-size: 1.3rem; font-weight: 800; color: var(--wd-navy); line-height: 1.1; }
body.home .hero2-proof-item strong .slash { color: var(--wd-muted); font-size: .9rem; font-weight: 700; }
body.home .hero2-proof-item span { font-size: .76rem; color: var(--wd-muted); font-weight: 600; }

/* ---------------- Visual panel ---------------- */
body.home .hero2-visual { position: relative; }
body.home .hero2-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--wd-border);
  border-radius: 22px;
  padding: 1.05rem;
  box-shadow: 0 40px 90px -42px rgba(11, 31, 66, .55);
}
body.home .hero2-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .2rem .3rem .85rem;
}
body.home .hero2-live {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--wd-heading);
}
body.home .hero2-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wd-green);
  box-shadow: 0 0 0 3px rgba(18, 161, 80, .18);
  animation: hero2Pulse 2.2s ease-in-out infinite;
}
body.home .hero2-count {
  font-size: .72rem;
  font-weight: 800;
  color: var(--wd-primary);
  background: var(--wd-primary-soft);
  border-radius: 999px;
  padding: .26rem .7rem;
  white-space: nowrap;
}

body.home .hero2-feature {
  display: block;
  border: 1px solid var(--wd-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  transition: .2s;
}
body.home .hero2-feature:hover { border-color: var(--wd-primary); box-shadow: var(--wd-shadow-md); transform: translateY(-2px); }
body.home .hero2-feature-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--wd-bg-soft); }
body.home .hero2-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
body.home .hero2-feature:hover .hero2-feature-media img { transform: scale(1.05); }
body.home .hero2-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: rgba(11, 31, 66, .9);
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
body.home .hero2-feature-body { padding: 1rem 1.1rem 1.1rem; }
body.home .hero2-feature-body .cat { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wd-primary); }
body.home .hero2-feature-body h3 { font-size: 1.05rem; line-height: 1.35; margin: .3rem 0 .7rem; color: var(--wd-heading); }
body.home .hero2-feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-top: .75rem;
  border-top: 1px solid var(--wd-border);
}
body.home .hero2-feature-foot .price { font-size: 1.3rem; font-weight: 800; color: var(--wd-heading); }
body.home .hero2-feature-foot .view { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--wd-primary); }
body.home .hero2-feature-foot .view i { transition: transform .18s; }
body.home .hero2-feature:hover .hero2-feature-foot .view i { transform: translateX(3px); }

body.home .hero2-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  margin-top: .9rem;
}
body.home .hero2-mini-item {
  background: var(--wd-bg-soft);
  border: 1px solid var(--wd-border);
  border-radius: 12px;
  padding: .65rem .5rem;
  text-align: center;
}
body.home .hero2-mini-item i { display: block; color: var(--wd-primary); font-size: 1rem; margin-bottom: .2rem; }
body.home .hero2-mini-item strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--wd-heading); line-height: 1.1; }
body.home .hero2-mini-item span { font-size: .68rem; color: var(--wd-muted); font-weight: 600; }

/* ---------------- Floating chips ---------------- */
body.home .hero2-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  border: 1px solid var(--wd-border);
  border-radius: 999px;
  padding: .5rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--wd-heading);
  box-shadow: 0 18px 40px -18px rgba(11, 31, 66, .55);
  white-space: nowrap;
}
body.home .hero2-float i { color: var(--wd-green); }
body.home .hero2-float.f1 { top: 1rem; left: -22px; animation: hero2Float 6.5s ease-in-out infinite; }
body.home .hero2-float.f2 { bottom: 1.4rem; right: -18px; animation: hero2Float 7.8s ease-in-out infinite; animation-delay: -2.6s; }
@keyframes hero2Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1199.98px) {
  body.home .hero2-grid { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; }
  body.home .hero2-eyebrow { margin-left: auto; margin-right: auto; }
  body.home .hero2-title,
  body.home .hero2-lead { margin-left: auto; margin-right: auto; }
  body.home .hero2-search { margin-left: auto; margin-right: auto; }
  body.home .hero2-popular,
  body.home .hero2-proof { justify-content: center; }
  body.home .hero2-panel { max-width: 560px; margin-left: auto; margin-right: auto; }
  body.home .hero2-float { display: none; }
}
@media (max-width: 575.98px) {
  body.home .hero2-field { flex-wrap: wrap; }
  body.home .hero2-field input { flex: 1 1 100%; padding-right: 1rem; }
  body.home .hero2-go { width: 100%; justify-content: center; margin-top: .25rem; }
}

@media print, (prefers-reduced-motion: reduce) {
  body.home .hero2-live .dot,
  body.home .hero2-eyebrow .dot,
  body.home .hero2-float { animation: none !important; }
}
