.home-search {
  padding: clamp(1.15rem, 2.5vw, 1.65rem) 0;
  border-bottom: 1px solid var(--line);
  background: #f3fafc;
}

.home-search__inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.home-search__copy {
  min-width: 0;
}

.home-search__eyebrow {
  margin: 0 0 0.2rem;
  color: #8a650c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-search__copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 2.4vw, 1.65rem);
  line-height: 1.12;
}

.home-search__copy > p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.home-search .search-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.38rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
  align-items: center;
  border: 1px solid #bad4dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.home-search .search-box:focus-within {
  border-color: var(--river);
  outline: 3px solid rgba(0, 127, 150, 0.16);
  outline-offset: 2px;
}

.search-box__field {
  position: relative;
  min-width: 0;
}

.search-box__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--river-dark);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search-box__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--river-dark);
  transform: rotate(45deg);
  transform-origin: left center;
}

.home-search .search-box input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 0.9rem 0 2.75rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.home-search .search-box input:focus {
  outline: 0;
}

.home-search .search-box input::placeholder {
  color: #667b87;
  opacity: 1;
}

.home-search .search-box button {
  min-width: 116px;
  min-height: 50px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 8px;
  background: var(--river-dark);
  color: #fff;
  font: inherit;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: none;
}

.home-search .search-box button:hover {
  background: var(--river-deep);
}

@media (min-width: 820px) {
  .home-search__inner {
    grid-template-columns: minmax(230px, 0.72fr) minmax(420px, 1.28fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }
}

@media (max-width: 559px) {
  .home-search {
    padding-block: 1.05rem;
  }

  .home-search__inner {
    gap: 0.75rem;
  }

  .home-search .search-box {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.42rem;
  }

  .home-search .search-box button {
    width: 100%;
  }
}
