/* City page hero (Oct 2026): the city's own photo with a local search on top, and the neighborhoods
   underneath. Selecting one types its search and moves "your business" pin there. Built by
   scripts/build-service-pages.js from each city's data (visual.local); animated by js/local-hero.js.
   Without the script it shows the first search, complete and still. */
.lh { --lh-a: #7851a9; --lh-b: #1d2a52; display: grid; gap: 16px; min-width: 0; }
.lh-panel { position: relative; aspect-ratio: 4 / 4.3; max-width: 100%; border-radius: clamp(20px, 2.2vw, 28px); background: var(--lh-b); isolation: isolate; }
.lh-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lh-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--lh-b) 72%, transparent) 100%); }
.lh-tag { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #14131f; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.lh-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lh-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lh-a) 30%, transparent); }

.lh-card { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; overflow: hidden; border-radius: 18px; background: #fff; color: #14131f;
  box-shadow: 0 22px 44px -18px rgba(10, 10, 30, .55); }
.lh-q { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 15px; border-bottom: 1px solid #ebeaf1; font-size: 15px; }
.lh-q svg { flex: none; color: #6b6a7d; }
.lh-q b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-caret { flex: none; width: 1.5px; height: 18px; margin-left: -7px; background: var(--brand, #7851a9); opacity: 0; }
.lh.is-live .lh-caret { opacity: 1; animation: lhBlink 1s steps(1) infinite; }
@keyframes lhBlink { 50% { opacity: 0; } }

.lh-map { position: relative; height: 104px; overflow: hidden; background: #eef0f5; }
.lh-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lh-map .st { stroke: #fff; stroke-width: 5; fill: none; }
.lh-map .wa { fill: #bcd5ec; }
.lh-map .rd { stroke: color-mix(in srgb, var(--lh-a) 75%, #fff); stroke-width: 7; fill: none; stroke-linecap: round; }
.lh-pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #9a98ae; border: 2px solid #fff; transform: translate(-50%, -50%);
  transition: left .7s cubic-bezier(.22, 1, .36, 1), top .7s cubic-bezier(.22, 1, .36, 1); }
.lh-pin.you { z-index: 2; width: 22px; height: 22px; background: var(--brand, #7851a9); border-width: 3px; box-shadow: 0 6px 14px -4px rgba(60, 30, 110, .6); }
.lh-pin.you::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--brand, #7851a9); opacity: 0; animation: lhPing 2.2s ease-out infinite; }
@keyframes lhPing { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.lh-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-items: center; padding: 13px 15px 14px; transition: opacity .35s, transform .35s; }
.lh-res.out { opacity: 0; transform: translateY(6px); }
.lh-fav { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #f1ecf8; color: var(--brand, #7851a9); font-size: 13px; font-weight: 700; }
.lh-res strong { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.lh-res strong small { padding: 2px 7px; border-radius: 6px; background: #f1ecf8; color: var(--brand, #7851a9); font-size: 11px; font-weight: 600; white-space: nowrap; }
.lh-meta { font-size: 13px; color: #6b6a7d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 9px; }
.lh-acts span { padding: 6px 12px; border: 1px solid #ebeaf1; border-radius: 999px; color: var(--brand, #7851a9); font-size: 12.5px; font-weight: 600; }

.lh-pick { display: grid; gap: 10px; }
.lh-pick > p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted, #6b7280); }
.lh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lh-chip { padding: 8px 15px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; background: var(--surface, #fff); color: var(--text, #1a1a1a); font: 500 14px/1.3 inherit; font-family: inherit; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.lh-chip:hover { border-color: color-mix(in srgb, var(--brand, #7851a9) 45%, #e5e7eb); }
.lh-chip[aria-pressed="true"] { background: var(--black, #0a0a0a); border-color: var(--black, #0a0a0a); color: var(--bg, #fff); }
.lh-chip:focus-visible { outline: 2px solid var(--brand, #7851a9); outline-offset: 2px; }
.lh-credit { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted, #6b7280); }
.lh-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* "See pricing" as a quiet link beside the main button, so the hero has one clear action. */
.hx-ctas .hx-textlink { align-self: center; margin-left: 10px; color: var(--text, #1a1a1a); font-weight: 600; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); transition: text-decoration-color .2s; }
.hx-ctas .hx-textlink:hover { text-decoration-color: currentColor; }

/* Wide: the search card hangs over the photo's left edge, into the gap beside the words. */
@media (min-width: 861px) {
  .lh-card { left: -44px; right: auto; width: min(360px, 88%); bottom: 26px; }
  .lh-map { height: 116px; }
}
@media (max-width: 860px) {
  .lh { margin-top: 6px; }
  .lh-panel { aspect-ratio: 4 / 4.4; }
}
@media (prefers-reduced-motion: no-preference) {
  .lh-panel { animation: hxTileIn 1.1s .15s var(--hx-ease, ease) both; }
  .lh-card { animation: hxRise .9s .45s var(--hx-ease, ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .lh-pin, .lh-res { transition: none; }
  .lh-pin.you::after, .lh.is-live .lh-caret { animation: none; }
}

/* The headline sits beside the photo, so it runs a size down from the other service pages and keeps
   "Web design for" on one line instead of leaving "Web" on its own. */
.hx-split:has(.lh) .hx-title { font-size: clamp(2.5rem, 4.3vw, 4.1rem); }
.hx-ctas .hx-textlink { display: inline-flex; align-items: center; align-self: stretch; }
/* Phones: the neighborhoods in two even columns, so none is left alone on the last row. */
@media (max-width: 560px) {
  .lh-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-chip { text-align: center; padding-inline: 10px; }
}
.hx-ctas .hx-textlink { margin: 0 0 0 10px !important; }   /* a generic link rule elsewhere adds a top margin */
