/* =========================================================================
   /find-projects — "Find Projects" (Find work - Pro only)
   Page-scoped styles. Ported from the design HTML (Aditya, 2026-08-25) and
   namespaced with `fp-` so nothing collides with the shared SiteShell chrome
   (header/footer come from the root layout, not from here).
   Responsive: desktop → tablet (980/820) → mobile (760/640).
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Roboto:wght@400;500;700&display=swap");

.fp-hero,
.fp-listing {
  --fp-navy: #171923;
  --fp-gold: #c5a063;
  --fp-gold-dark: #b08d4f;
  --fp-gold-soft: #f7efdf;
  --fp-gold-ink: #8a6a24;
  --fp-ink: #171923;
  --fp-ink-2: #3a3f4c;
  --fp-muted: #6b7280;
  --fp-muted-2: #9aa1ad;
  --fp-line: #e8eaee;
  --fp-line-2: #eef0f3;
  --fp-bg-soft: #f6f7f9;
  --fp-green-bg: #e7f5ee;
  --fp-green-ink: #0f8a54;
  --fp-r-sm: 6px;
  --fp-r: 12px;
  --fp-r-lg: 16px;
  --fp-t: all ease 400ms;
  --fp-shadow: 0 1px 2px rgba(23, 25, 35, 0.04);
  --fp-shadow-lift: 0 10px 30px -12px rgba(23, 25, 35, 0.18);
}

.fp-wrap {
  max-width: 1340px;
  margin: 0 auto;
  /* Longhand left/right ONLY. The listing <main> also has .fp-listing, which
     sets top/bottom padding — using the `padding` shorthand on either class
     would reset the other's sides. Keep them on separate axes. */
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- buttons ---------- */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--fp-r-sm);
  font-weight: 700;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: var(--fp-t);
  white-space: nowrap;
  cursor: pointer;
}
.fp-btn-gold {
  background: var(--fp-gold);
  color: var(--fp-navy);
  padding: 11px 20px;
}
/* Keep the label navy in EVERY state. These buttons are <a> tags, so the site's
   global `a:hover` (brand gold, specificity 0,1,1) would otherwise beat the base
   `.fp-btn-gold` color (0,1,0) and make the text gold-on-gold — invisible.
   Pinning all link states (0,2,0) wins and keeps the label readable on hover. */
.fp-btn-gold:link,
.fp-btn-gold:visited,
.fp-btn-gold:hover,
.fp-btn-gold:focus,
.fp-btn-gold:active {
  color: var(--fp-navy);
}
.fp-btn-gold:hover {
  background: var(--fp-gold-dark);
  transform: translateY(-1px);
}
.fp-btn-outline {
  background: #fff;
  color: var(--fp-navy);
  border-color: var(--fp-line);
  padding: 10px 18px;
}
.fp-btn-outline:hover {
  border-color: var(--fp-navy);
}

/* ---------- hero ---------- */
.fp-hero {
  background: var(--fp-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  font-family: "Roboto", system-ui, sans-serif;
}
.fp-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(197, 160, 99, 0.18), transparent 62%);
}
.fp-hero-in {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 56px;
  align-items: center;
}
.fp-hero-copy {
  max-width: 620px;
}
.fp-hero-visual {
  position: relative;
  justify-self: end;
}
.fp-hero-gif {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}
.fp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-gold);
  margin-bottom: 16px;
}
.fp-hero-tag svg {
  flex: 0 0 auto;
  opacity: 0.85;
}
.fp-hero h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
}
.fp-hero h1 em {
  font-style: normal;
  color: var(--fp-gold);
}
.fp-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 28px;
  max-width: 600px;
  line-height: 1.5;
}
.fp-hero-cta {
  margin-top: 2px;
}
.fp-hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.fp-hero-stats .fp-s {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-hero-stats .fp-s b {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.fp-hero-stats .fp-s span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* ---------- listing ---------- */
.fp-listing {
  /* top/bottom ONLY — left/right gutters come from .fp-wrap (see note there). */
  padding-top: 32px;
  padding-bottom: 72px;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--fp-ink);
}

/* toolbar */
.fp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-r);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--fp-shadow);
  /* The site header (.gf-hv2-header) is position:relative and scrolls away, so
     there is nothing sticky above the toolbar — pin it to the top (top:0) rather
     than 84px, which otherwise left a band of scrolled content above the bar. */
  position: sticky;
  top: 0;
  z-index: 20;
}
.fp-count {
  font-size: 14.5px;
  color: var(--fp-muted);
  white-space: nowrap;
}
.fp-count b {
  color: var(--fp-ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.fp-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fp-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-ctrl-label {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-muted);
}
.fp-select {
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-r-sm);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--fp-ink);
  background: #fff;
  outline: none;
  transition: var(--fp-t);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.fp-select:hover {
  border-color: var(--fp-muted-2);
}
.fp-select:focus {
  border-color: var(--fp-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 99, 0.15);
}
.fp-clear {
  background: none;
  border: none;
  color: var(--fp-gold-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 6px;
  font-family: "Manrope", system-ui, sans-serif;
  transition: var(--fp-t);
  cursor: pointer;
}
.fp-clear:hover {
  color: var(--fp-gold);
}

/* cards — wrapping flex (not a rigid grid) so a filtered result set with an
   odd/last/lone card is centered rather than stranded half-width with an empty
   column beside it. Full rows (2 cards) fill the width, so centering only kicks
   in on the sparse last row. */
.fp-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.fp-card {
  flex: 1 1 calc(50% - 9px);
  max-width: calc(50% - 9px);
  min-width: 0;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-r-lg);
  padding: 24px;
  background: #fff;
  box-shadow: var(--fp-shadow);
  transition: var(--fp-t);
  position: relative;
  display: flex;
  flex-direction: column;
}
.fp-card:hover {
  border-color: var(--fp-gold);
  box-shadow: var(--fp-shadow-lift);
  transform: translateY(-2px);
}
.fp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.fp-card-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fp-new-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--fp-green-bg);
  color: var(--fp-green-ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.fp-new-tag .fp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fp-green-ink);
}
.fp-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fp-bg-soft);
  border: 1px solid var(--fp-line-2);
  border-radius: 100px;
  padding: 5px 13px;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--fp-ink-2);
  transition: var(--fp-t);
}
.fp-cat-chip .fp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fp-gold);
}
.fp-posted {
  font-size: 12.5px;
  color: var(--fp-muted-2);
  white-space: nowrap;
  padding-top: 5px;
}
.fp-card-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--fp-ink);
  transition: color var(--fp-t);
}
/* Title goes gold when the card is hovered (matches the design's card hover). */
.fp-card:hover .fp-card-title {
  color: var(--fp-gold-dark);
}
.fp-budget {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 14px;
}
.fp-budget b {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--fp-navy);
}
.fp-budget span {
  font-size: 12.5px;
  color: var(--fp-muted);
  letter-spacing: 0.02em;
}
.fp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 14px;
}
.fp-meta .fp-m {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fp-ink-2);
  background: var(--fp-bg-soft);
  border: 1px solid var(--fp-line-2);
  border-radius: 100px;
  padding: 5px 12px;
  transition: var(--fp-t);
}
.fp-meta .fp-m:hover {
  border-color: var(--fp-gold);
  background: #fff;
}
.fp-meta .fp-m svg {
  color: var(--fp-muted-2);
  flex: 0 0 auto;
}
.fp-meta .fp-m b {
  font-weight: 500;
}
.fp-brief {
  font-size: 14.5px;
  color: var(--fp-ink-2);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-brief-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--fp-gold-ink);
}
.fp-brief-locked svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--fp-gold);
}
.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.fp-tag {
  background: var(--fp-bg-soft);
  border: 1px solid var(--fp-line-2);
  border-radius: var(--fp-r-sm);
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--fp-ink-2);
}
.fp-card-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  border-top: 1px solid var(--fp-line-2);
  padding-top: 16px;
  margin-top: auto;
}
.fp-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fp-card-actions .fp-btn {
  flex: 1;
}

/* empty + load more */
.fp-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--fp-line);
  border-radius: var(--fp-r-lg);
  padding: 56px 24px;
  text-align: center;
  background: var(--fp-bg-soft);
}
.fp-empty svg {
  color: var(--fp-muted-2);
  margin-bottom: 14px;
}
.fp-empty h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 19px;
  margin: 0 0 6px;
}
.fp-empty p {
  color: var(--fp-muted);
  font-size: 14.5px;
  margin: 0 auto 18px;
  max-width: 420px;
}
.fp-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .fp-hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fp-hero-copy {
    max-width: 640px;
  }
  /* Stacked below the title — center the visual instead of left-aligning it. */
  .fp-hero-visual {
    justify-self: center;
  }
  .fp-hero-gif {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 820px) {
  .fp-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .fp-count {
    order: -1;
  }
  .fp-controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .fp-ctrl {
    flex: 1 1 200px;
  }
  .fp-ctrl .fp-select {
    flex: 1;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .fp-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .fp-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .fp-hero-in {
    padding: 44px 0 52px;
  }
  .fp-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .fp-ctrl {
    width: 100%;
    flex: 0 0 auto;
  }
  .fp-clear {
    align-self: flex-end;
    padding: 6px 2px;
  }
  .fp-card {
    padding: 20px;
  }
  .fp-card-top {
    flex-direction: column;
    gap: 8px;
  }
  .fp-posted {
    padding-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fp-card:hover {
    transform: none;
  }
}
