/* HAM OTAGH v1.0.13 — DESKTOP HERO + BRAND ORDER ONLY
   Scope: desktop hero presentation and visible Ham Otagh wordmark order.
   No forms, APIs, listings, translations, geo data, pricing, auth or dashboard logic are changed.
*/

/* Keep the English brand name LTR even when the page itself is RTL. */
.brand-word,
.brand-text {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  flex-direction: row !important;
  white-space: nowrap !important;
}

.brand-word .brand-ham,
.brand-text .brand-ham {
  order: 1 !important;
  color: #111 !important;
}

.brand-word .brand-gap,
.brand-text .brand-gap {
  order: 2 !important;
}

.brand-word .brand-otagh,
.brand-text .brand-otagh {
  order: 3 !important;
  color: var(--pink) !important;
}

/* Desktop only. Mobile/tablet rules from the existing site remain untouched. */
@media (min-width: 901px) {
  .hero {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    width: min(1420px, 100%) !important;
    aspect-ratio: 1200 / 630 !important;
    min-height: 650px !important;
    max-height: 760px !important;
    margin-inline: auto !important;
    overflow: hidden !important;
    background:
      linear-gradient(120deg, rgba(255,255,255,.94), rgba(255,247,251,.80) 48%, rgba(255,255,255,.70)),
      #fff !important;
  }

  /* The approved hero artwork now spans the whole hero instead of a narrow half-column. */
  .hero-visual {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .hero-visual img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: .70 !important;
    transform: none !important;
  }

  /* Soft luxury veil: keeps the full artwork visible while making text/search readable. */
  .hero-visual::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 50% 46%, rgba(255,255,255,.90) 0 20%, rgba(255,255,255,.70) 42%, rgba(255,255,255,.40) 68%, rgba(255,255,255,.20) 100%),
      linear-gradient(115deg, rgba(255,255,255,.62), rgba(255,244,250,.42)) !important;
  }

  .hero-visual::after {
    z-index: 1 !important;
    opacity: .62 !important;
    right: -120px !important;
    bottom: -170px !important;
    width: 420px !important;
    height: 420px !important;
  }

  /* Move the entire content over the artwork and balance it in the center. */
  .hero-copy {
    position: relative !important;
    z-index: 3 !important;
    width: min(860px, calc(100% - 80px)) !important;
    min-height: 100% !important;
    margin-inline: auto !important;
    padding: 58px 30px 52px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero .eyebrow {
    margin-inline: auto !important;
  }

  .hero h1 {
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 auto 14px !important;
    font-size: clamp(44px, 4.5vw, 68px) !important;
    line-height: 1.12 !important;
    text-align: center !important;
  }

  body[dir="rtl"] .hero h1,
  body[dir="rtl"] .hero .lead,
  body[dir="rtl"] .hero .eyebrow {
    text-align: center !important;
  }

  .hero .lead {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto 22px !important;
    text-align: center !important;
    color: #4f4f59 !important;
  }

  /* Wider, balanced selector card. Existing picker behaviour and IDs are untouched. */
  .hero-search {
    position: relative !important;
    z-index: 5 !important;
    width: min(780px, 100%) !important;
    margin-inline: auto !important;
    padding: 20px !important;
    gap: 14px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid rgba(237,10,100,.13) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 60px rgba(25,18,22,.13) !important;
    backdrop-filter: blur(12px) !important;
  }

  .hero-search > label,
  .hero-search > .picker-wrap,
  .hero-search > .neighborhood-field {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-search .neighborhood-field {
    grid-column: 1 / -1 !important;
  }

  .hero-search .field {
    min-height: 50px !important;
    width: 100% !important;
  }

  .hero-search .btn {
    min-height: 50px !important;
    width: 100% !important;
  }

  .hero-search .search-main {
    grid-column: auto !important;
  }

  .hero-trust {
    position: relative !important;
    z-index: 4 !important;
    justify-content: center !important;
    margin-top: 18px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.86) !important;
    box-shadow: 0 8px 26px rgba(17,17,24,.06) !important;
  }

  /* Keep decorative cards at the edges so they don't collide with the search box. */
  .hero-visual .verified-float {
    top: 28px !important;
    right: 28px !important;
    left: auto !important;
    z-index: 4 !important;
  }

  .hero-visual .whatsapp-float {
    left: 28px !important;
    right: auto !important;
    bottom: 28px !important;
    z-index: 4 !important;
  }
}
