/* ================================================================
   FIXEO — Hero Premium Upgrade
   Visual-only overrides. Zero logic changes.
   Targets: section#home.hero, .hero-content, .trust-section
   Injection: last CSS file → highest cascade priority
   Level: Uber / Fiverr Pro / Malt dark marketplace
   ================================================================ */

/* ── 1. HERO SECTION SHELL ── */
section#home.hero.hero-section,
section#home.hero {
  background: linear-gradient(160deg, #080817 0%, #0d0d1f 45%, #111228 100%) !important;
  min-height: auto !important;
  padding-top: calc(var(--navbar-h, var(--navbar-height, 72px)) + 52px) !important;
  padding-bottom: 68px !important;
  overflow: hidden !important;
}

/* Overlay: deeper, richer gradient */
section#home.hero .hero-overlay,
.hero-section .hero-overlay {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(225,48,108,0.14) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 70%, rgba(64,93,230,0.12) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 0%,  rgba(131,58,180,0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(8,8,23,0.3) 0%, rgba(13,13,31,0.5) 100%) !important;
  z-index: 1 !important;
}

/* Bubbles: slightly more visible */
section#home .hero-bubble { opacity: 0.55 !important; }
section#home .hero-blob   { opacity: 0.6  !important; }

/* ── 2. HERO CONTENT WRAPPER ── */
section#home .hero-content {
  max-width: 900px !important;
  gap: 20px !important;
  padding: 0 16px !important;
}

/* ── 3. H1 — PREMIUM TYPOGRAPHY ── */
section#home h1.hero-title,
section#home .hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem) !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.035em !important;
  color: #fff !important;
  margin: 0 auto 6px !important;
  max-width: 900px !important;
  text-wrap: balance !important;
}

/* Gradient highlight on second span of h1 */
section#home .hero-title span:last-child {
  background: linear-gradient(135deg, #E1306C 0%, #c0392b 40%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Subtle glow behind title */
section#home .hero-title::after {
  content: '';
  display: block;
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225,48,108,0.5), transparent);
  margin: 16px auto 0;
}

/* ── 4. SUBTITLE ── */
section#home .hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem) !important;
  color: rgba(255,255,255,0.72) !important;
  line-height: 1.7 !important;
  max-width: 680px !important;
  margin: 0 auto 4px !important;
  font-weight: 400 !important;
  letter-spacing: 0.005em;
}

/* ── 5. SEARCH BOX — PREMIUM CONTAINER ── */
#hero-quick-search,
#hero-quick-search.qsm-inline-host,
section#home #hero-quick-search {
  width: 100% !important;
  max-width: 820px !important;
  margin: 4px auto 0 !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.065) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
  overflow: visible !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}
#hero-quick-search:focus-within {
  border-color: rgba(225,48,108,0.35) !important;
  box-shadow:
    0 28px 72px rgba(0,0,0,0.32),
    0 0 0 3px rgba(225,48,108,0.1),
    inset 0 1px 0 rgba(255,255,255,0.09) !important;
}

/* ── 6. CTA — PUBLIER MA DEMANDE ── */
section#home .marketplace-secondary-entry {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
section#home .btn-secondary-marketplace {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 32px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  letter-spacing: 0.01em !important;
}
section#home .btn-secondary-marketplace:hover,
section#home .btn-secondary-marketplace:focus-visible {
  background: rgba(255,255,255,0.11) !important;
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}
section#home .marketplace-secondary-copy {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.42) !important;
  margin: 0 !important;
  letter-spacing: 0.01em !important;
}

/* ── 7. CTA — JE SUIS ARTISAN ── */
section#home .hero-artisan-entry {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
  padding: 16px 22px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
section#home .hero-artisan-entry-copy strong {
  display: block !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #fff !important;
}
section#home .hero-artisan-entry-copy span {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.48) !important;
  display: block !important;
  margin-top: 2px !important;
}
section#home .hero-artisan-entry-btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}
section#home .hero-artisan-entry-btn:hover {
  background: rgba(255,255,255,0.13) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* ── 8. TRUST SECTION — PREMIUM GLASS STRIP ── */
.trust-section {
  margin-top: 24px !important;
  padding: 0 !important;
}
.trust-section-inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 10px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}
.trust-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 10px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  cursor: default !important;
}
.trust-item:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.11) !important;
  color: #fff !important;
}
.trust-icon {
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
}

/* ── 9. MOBILE SOCIAL PROOF STRIP ── */
.mobile-social-proof {
  display: none !important; /* replaced by trust-section */
}
@media (max-width: 767px) {
  .mobile-social-proof {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    background: rgba(32,201,151,0.08) !important;
    border-top: 1px solid rgba(32,201,151,0.15) !important;
    border-bottom: 1px solid rgba(32,201,151,0.15) !important;
    color: #20c997 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
  }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

/* ── Desktop large (≥1200px) ── */
@media (min-width: 1200px) {
  section#home.hero {
    padding-top: calc(var(--navbar-h, var(--navbar-height, 72px)) + 64px) !important;
    padding-bottom: 80px !important;
  }
  section#home .hero-content {
    max-width: 960px !important;
    gap: 22px !important;
  }
  section#home h1.hero-title {
    font-size: clamp(3.6rem, 5.5vw, 5.4rem) !important;
  }
}

/* ── Tablet (768–1199px) ── */
@media (min-width: 768px) and (max-width: 1199px) {
  section#home h1.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 3.8rem) !important;
  }
  #hero-quick-search {
    max-width: 700px !important;
  }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
  section#home.hero {
    padding-top: calc(var(--navbar-h, var(--navbar-height, 64px)) + 32px) !important;
    padding-bottom: 52px !important;
  }
  section#home .hero-content {
    gap: 16px !important;
    padding: 0 8px !important;
  }
  section#home h1.hero-title {
    font-size: clamp(2.2rem, 10.5vw, 3rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em !important;
  }
  section#home .hero-title span:last-child {
    display: block !important;
  }
  section#home .hero-subtitle {
    font-size: 0.97rem !important;
    line-height: 1.65 !important;
    padding: 0 4px !important;
  }
  #hero-quick-search {
    border-radius: 18px !important;
    max-width: 100% !important;
  }
  section#home .btn-secondary-marketplace {
    padding: 13px 22px !important;
    font-size: 0.93rem !important;
    width: 100% !important;
    max-width: 380px !important;
  }
  section#home .hero-artisan-entry {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
    gap: 10px !important;
  }
  section#home .hero-artisan-entry-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 22px !important;
  }
  .trust-section-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 18px !important;
  }
  .trust-item {
    padding: 10px 8px !important;
    font-size: 0.76rem !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  section#home h1.hero-title {
    font-size: clamp(2rem, 9.5vw, 2.6rem) !important;
  }
}
