/* Homepage V2 source-owned overrides.
 * The authored Vite/Tailwind frontend source is not present in this checkout.
 * Keep this file scoped to the homepage hero and remove/migrate it when the
 * canonical frontend source is restored. Do not copy generated bundle CSS here.
 */

.home-hero-v2 {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  background: #fffaf2;
}

.home-hero-v2-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-v2-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: translateY(-3%) scale(1.065);
  transform-origin: center top;
}

.home-hero-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(255 250 242 / 4%) 0%, rgb(255 250 242 / 2%) 52%, rgb(255 250 242 / 84%) 86%, #fffaf2 100%);
}

.home-hero-v2-inner {
  width: min(100%, 88rem);
  min-height: 620px;
  margin-inline: auto;
  padding: clamp(4rem, 7vw, 6rem) 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-hero-v2-copy {
  width: min(100%, 64rem);
  margin-inline: auto;
  text-align: center;
}

.home-hero-v2-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.5rem, 5vw, 4.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-hero-v2-title-accent {
  display: inline;
  color: #d97706;
}

.home-hero-v2-lead {
  max-width: 52rem;
  margin: 1.35rem auto 0;
  color: #475569;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.9;
  text-wrap: balance;
}

.home-hero-v2-proof {
  max-width: 58rem;
  margin: .55rem auto 0;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.8;
}

.home-hero-v2-search {
  width: min(100%, 72rem);
  margin: 2rem auto 0;
}

.home-hero-v2 .homepage-desktop-search {
  position: relative;
  width: 100%;
}

.home-hero-v2 .hero-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .85fr) auto;
  gap: .55rem;
  width: 100%;
  padding: .55rem;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 1.75rem;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 24px 65px rgb(15 23 42 / 14%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-hero-v2 .hero-input {
  min-width: 0;
  min-height: 4.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid rgb(226 232 240 / 92%);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 90%);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.home-hero-v2 .hero-input:focus-within {
  border-color: rgb(245 158 11 / 72%);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 13%);
}

.home-hero-v2 .hero-input-label {
  display: block;
  margin-bottom: .2rem;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.1;
}

.home-hero-v2 .hero-input-control {
  width: 100%;
  min-width: 0;
  height: 1.9rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
}

.home-hero-v2 .hero-input-control::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 500;
}

.home-hero-v2-search-button {
  min-width: 9.5rem;
  min-height: 4.55rem;
  border: 0;
  border-radius: 1.2rem;
  padding: 0 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(135deg, #ffb223 0%, #f59e0b 100%);
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgb(217 119 6 / 22%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.home-hero-v2-search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgb(217 119 6 / 27%);
  filter: saturate(1.04);
}

.home-hero-v2-search-button:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 3px;
}

.home-hero-v2-search-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.home-hero-v2-shortcuts {
  width: min(100%, 64rem);
  margin: 1.2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.home-hero-v2-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .42rem .85rem;
  border: 1px solid rgb(217 119 6 / 16%);
  border-radius: 9999px;
  background: rgb(255 255 255 / 68%);
  color: #475569;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.home-hero-v2-shortcut:hover {
  border-color: rgb(217 119 6 / 36%);
  background: rgb(255 255 255 / 88%);
  color: #0f172a;
}

@media (max-width: 1023px) {
  .home-hero-v2 {
    min-height: 700px;
  }

  .home-hero-v2-inner {
    min-height: 700px;
    padding: 3.75rem 1.25rem 2.75rem;
    justify-content: flex-start;
  }

  .home-hero-v2-title {
    font-size: clamp(2.2rem, 9vw, 3.35rem);
    line-height: 1.08;
  }

  .home-hero-v2-lead {
    max-width: 40rem;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-hero-v2-proof {
    max-width: 38rem;
    margin-top: .5rem;
    font-size: .85rem;
    line-height: 1.65;
  }

  .home-hero-v2-search {
    margin-top: 1.5rem;
  }

  .home-hero-v2 .hero-search-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .home-hero-v2-search-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 3.75rem;
  }

  .home-hero-v2-shortcuts {
    margin-top: 1rem;
    gap: .4rem;
  }

  .home-hero-v2-shortcut {
    min-height: 2rem;
    padding: .35rem .7rem;
    font-size: .8rem;
  }
}

@media (max-width: 767px) {
  .home-hero-v2 {
    min-height: 760px;
  }

  .home-hero-v2-inner {
    min-height: 760px;
    padding: 3rem 1rem 2.25rem;
  }

  .home-hero-v2-media img {
    object-position: center;
    transform: translateY(-4%) scale(1.08);
  }

  .home-hero-v2-title {
    max-width: 22rem;
    margin-inline: auto;
    font-size: clamp(2rem, 10vw, 2.65rem);
    letter-spacing: -0.035em;
  }

  .home-hero-v2-lead {
    max-width: 23rem;
    font-size: .95rem;
    line-height: 1.7;
  }

  .home-hero-v2-proof {
    max-width: 24rem;
    font-size: .8rem;
    line-height: 1.6;
  }

  .home-hero-v2-search {
    margin-top: 1.25rem;
  }

  .home-hero-v2 .hero-search-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
    padding: .45rem;
    border-radius: 1.35rem;
  }

  .home-hero-v2 .hero-input {
    min-height: 3.8rem;
    border-radius: 1rem;
    padding: .55rem .85rem;
  }

  .home-hero-v2-search-button {
    grid-column: auto;
    min-height: 3.65rem;
    border-radius: 1rem;
  }

  .home-hero-v2-shortcuts {
    max-width: 25rem;
  }

  .home-hero-v2::after {
    background:
      linear-gradient(180deg, rgb(255 250 242 / 2%) 0%, rgb(255 250 242 / 3%) 48%, rgb(255 250 242 / 84%) 84%, #fffaf2 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-v2-search-button,
  .home-hero-v2-shortcut,
  .home-hero-v2 .hero-input {
    transition: none;
  }

  .home-hero-v2-search-button:hover {
    transform: none;
  }
}

/* The autocomplete panel must escape the hero box and paint above the next
 * homepage section. The hero artwork itself remains bounded by its picture. */
.home-hero-v2 {
  overflow: visible;
  z-index: 10;
}

.home-hero-v2-search,
.home-hero-v2 .homepage-desktop-search {
  position: relative;
  z-index: 20;
}

.home-hero-v2 .homepage-search-command {
  z-index: 100;
}