/* ==========================================================
   Riverport Business Club - Try Riverport First (/try-riverport-first/)
   search hero (homepage backdrop)
   > results (members first, then ads) OR why + advertise here
   > member circles > footer
   ========================================================== */

/* ---------- Search hero ---------- */
.trf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(520px, calc(80vh - var(--header-h) - 46px), 700px);
  padding-block: clamp(4rem, 9vw, 6.5rem);
  color: var(--white);
}
.trf-hero--compact { min-height: 0; padding-block: clamp(3rem, 6vw, 4.5rem); }
.trf-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.trf-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(35, 35, 35, 0.72) 0%, rgba(35, 35, 35, 0.45) 55%, rgba(35, 35, 35, 0.18) 100%);
}
.trf-hero__inner { position: relative; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.trf-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.1rem; font-weight: 700; font-size: 1rem; color: var(--brand); }
.trf-hero__title { font-size: var(--fs-h1); font-weight: 800; color: var(--white); max-width: 18ch; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 1.1rem; }
.trf-hero--compact .trf-hero__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.trf-hero__sub { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.6; max-width: 50ch; color: #f1f1f1; margin: 0 0 2rem; }

.trf-hero__circles { position: absolute; right: clamp(1.5rem, 5vw, 5rem); bottom: -36px; width: clamp(150px, 16vw, 230px); aspect-ratio: 1; z-index: -1; pointer-events: none; }
.trf-hero__circles span { position: absolute; border-radius: 50%; width: 50%; aspect-ratio: 1; }
.trf-hero__circles span:nth-child(1) { left: 15%; top: 10%; background: rgba(255, 255, 255, 0.14); }
.trf-hero__circles span:nth-child(2) { left: 6%; top: 40%; width: 46%; background: rgba(254, 104, 191, 0.2); }
.trf-hero__circles span:nth-child(3) { left: 36%; top: 38%; background: rgba(147, 147, 147, 0.4); }

/* Search bar */
.trf-search {
  position: relative; display: flex; align-items: center; gap: 0.5rem;
  max-width: 640px; padding: 0.45rem; border-radius: 999px;
  background: var(--white); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3); text-shadow: none;
}
.trf-search__icon { position: absolute; left: 1.35rem; color: var(--muted); pointer-events: none; }
.trf-search__input {
  flex: 1; min-width: 0; height: 3.25rem; padding: 0 0.75rem 0 3rem;
  border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 1.05rem; color: #2b2b2b;
  text-overflow: ellipsis;   /* long text/placeholder ends in ... rather than a cut-off word */
}
.trf-search__input::placeholder { color: #8a8a8a; opacity: 1; text-overflow: ellipsis; }
.trf-search__input:focus { outline: none; }
.trf-search:focus-within { box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(254, 104, 191, 0.45); }
.trf-search__input::-webkit-search-cancel-button { cursor: pointer; }
.trf-search__btn {
  flex-shrink: 0; height: 3.25rem; padding: 0 2rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: var(--white);
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.trf-search__btn:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(254, 104, 191, 0.4); }
.trf-search__btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Popular searches */
.trf-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.4rem; max-width: 640px; text-shadow: none; }
.trf-popular__label { font-size: 0.9rem; font-weight: 700; color: #f1f1f1; margin-right: 0.25rem; }
.trf-popular__chip {
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: var(--white); background: rgba(30, 30, 30, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--ease);
}
.trf-popular__chip:hover { background: var(--brand); color: var(--white); box-shadow: none; }

/* ---------- Results ---------- */
/* Scroll offset under the sticky header comes from the global scroll-padding-top */
.trf-results__head { margin-bottom: 2rem; }
.trf-results__head .rp-rule { margin-bottom: 1rem; }
.trf-results__head--sub { margin-top: var(--stack); }
.trf-results__title { font-size: var(--fs-h2); font-weight: 800; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.trf-results__title--sub { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.trf-results__intro { margin: 0; color: var(--muted); max-width: 60ch; }
.trf-results__head--centre { text-align: center; }
.trf-results__head--centre .trf-results__intro { margin-inline: auto; }

.trf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.trf-grid--best { grid-template-columns: minmax(0, 1fr); }

/* Riverport member card - large face photo for connection, smaller logo underneath */
.trf-card {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.5rem; align-items: center; min-width: 0;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--grey-line); box-shadow: var(--shadow-sm);
}
.trf-card--best { grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; padding: 1.75rem 2rem 1.75rem 1.75rem; border: 2px solid var(--brand); box-shadow: 0 16px 40px rgba(254, 104, 191, 0.14); }
.trf-card__media { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; min-width: 0; }
.trf-card__face {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; overflow: hidden;
  border-radius: 50%; background: var(--grey); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--grey-line);
  text-decoration: none; transition: box-shadow 0.25s var(--ease);
}
.trf-card--best .trf-card__face { box-shadow: 0 0 0 3px var(--brand); }
.trf-card__face:hover { box-shadow: 0 0 0 3px var(--charcoal); }
.trf-card__face img { width: 100%; height: 100%; object-fit: cover; }
.trf-card__face img.trf-card__face-logo { width: 72%; height: 72%; object-fit: contain; }
.trf-card__logo { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 120px; height: 54px; padding: 0.35rem 0.6rem; border-radius: 10px; background: var(--white); border: 1px solid var(--grey-line); text-decoration: none; }
.trf-card--best .trf-card__logo { max-width: 140px; height: 62px; }
.trf-card__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.trf-card__mono { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--charcoal); color: var(--white); font-size: 1.4rem; font-weight: 800; }

.trf-card__body { min-width: 0; }
.trf-card__tag { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: 0.8rem; font-weight: 800; line-height: 1.3; }
.trf-card__name { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 0 0 0.3rem; }
.trf-card--best .trf-card__name { font-size: var(--fs-h3); }
.trf-card__name a { color: #2b2b2b; text-decoration: none; }
.trf-card__name a:hover { color: var(--brand-deep); }
.trf-card__cat { margin: 0 0 0.5rem; font-weight: 700; color: var(--brand-deep); font-size: 0.95rem; }
.trf-card__contact { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.trf-card__contact i { color: var(--grey-brand); font-size: 0.85em; }
.trf-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
a.trf-card__btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; background: var(--grey); color: #2b2b2b; }
a.trf-card__btn i { color: var(--brand-deep); }
a.trf-card__btn:hover { background: #ececee; color: #1f1f1f; }
a.trf-card__btn--main { background: var(--btn); color: var(--white); }
a.trf-card__btn--main i { color: var(--brand); }
a.trf-card__btn--main:hover { background: var(--btn-dark); color: var(--white); }

/* Advertised listing - plainer than a member card (no logo or photo), soft greys with a hint of pink */
.trf-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1.1rem; }
.trf-ad {
  position: relative; min-width: 0; padding: 1.35rem 1.5rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8fa 100%);
  border: 1px solid var(--grey-line); border-top: 3px solid #e9cfe0;
}
.trf-ad__label { position: absolute; top: 1rem; right: 1rem; padding: 0.1rem 0.45rem; border: 1px solid #d8c3d0; border-radius: 4px; background: #ffffff; font-size: 0.72rem; font-weight: 700; line-height: 1.4; color: #8a7381; }
.trf-ad__name { margin: 0 2.75rem 0.25rem 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3; color: #2b2b2b; overflow-wrap: anywhere; }
.trf-ad__cat { margin: 0 0 0.45rem; font-size: 0.93rem; font-weight: 600; color: #8a5d78; }
.trf-ad__contact { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.9rem; font-size: 0.92rem; color: var(--muted); }
.trf-ad__contact i { color: var(--grey-brand); font-size: 0.85em; }
.trf-ad__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trf-ad__link {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 999px;
  background: #f3eff2; color: #2b2b2b; font-size: 0.9rem; font-weight: 700; text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.trf-ad__link i { color: #b07a9a; font-size: 0.85em; }
.trf-ad__link:hover { background: #ebe4e9; color: #1f1f1f; }

/* Pink button used for Join */
a.trf-pink { background: var(--brand); color: var(--white); }
a.trf-pink:hover { background: var(--brand-dark); color: var(--white); box-shadow: 0 10px 24px rgba(254, 104, 191, 0.35); }

/* No results */
.trf-none { max-width: 760px; margin-inline: auto; text-align: center; }
.trf-none__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--white); color: var(--grey-brand); font-size: 1.6rem; box-shadow: var(--shadow-sm); }
.trf-none__title { font-size: var(--fs-h2); font-weight: 800; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.trf-none > p { color: var(--muted); margin: 0 auto; max-width: 52ch; }
.trf-none a:not(.rp-btn) { color: #2b2b2b; font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.trf-none__join {
  position: relative; overflow: hidden; margin-top: 2.25rem; padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(ellipse at 100% 0%, rgba(254, 104, 191, 0.28), transparent 55%), linear-gradient(150deg, #4d4d4d 0%, #383838 100%);
}
.trf-none__join p { margin: 0 auto 1.5rem; max-width: 50ch; color: #e6e6e6; }
.trf-none__join .trf-none__q { margin-bottom: 0.4rem; font-size: var(--fs-h3); font-weight: 800; color: var(--white); }
.trf-none__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.trf-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: var(--stack); padding-top: 2rem; border-top: 1px solid var(--grey-line); }
.trf-next__link {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.75rem 1.35rem; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm); color: #2b2b2b; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.trf-next__link i { color: var(--brand-deep); }
.trf-next__link:hover { color: #1f1f1f; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- How it works (no search yet) ---------- */
.trf-how__head { text-align: center; margin-bottom: var(--stack); }
.trf-how__head .rp-rule { margin-bottom: 1rem; }
.trf-how__head p { margin: 0 auto; max-width: 70ch; color: #3a3a3a; font-size: 1.05rem; }
.trf-how__head strong { color: #2b2b2b; }
.trf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: trf; }
.trf-step { position: relative; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); counter-increment: trf; }
.trf-step::after { content: counter(trf); position: absolute; top: 1.25rem; right: 1.4rem; font-size: 2.4rem; font-weight: 800; line-height: 1; color: rgba(85, 85, 85, 0.12); }
.trf-step__icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 1.1rem; border-radius: 50%; background: var(--charcoal); color: var(--brand); font-size: 1.15rem; }
.trf-step__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.4rem; }
.trf-step p { margin: 0; color: #3a3a3a; line-height: 1.6; }
.trf-step--biz { background: var(--brand-tint); box-shadow: inset 0 0 0 1px rgba(254, 104, 191, 0.3); }
.trf-step--biz .trf-step__icon { background: var(--brand); color: var(--white); }
.trf-step a { color: #2b2b2b; font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Advertise here (dark band) ---------- */
.trf-adv {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem); color: var(--white);
  background: radial-gradient(ellipse at 90% 10%, rgba(254, 104, 191, 0.22), transparent 55%), linear-gradient(135deg, #4d4d4d 0%, #3a3a3a 100%);
}
.trf-adv__circles { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; width: clamp(240px, 26vw, 400px); left: clamp(-150px, -7vw, -60px); bottom: clamp(-170px, -9vw, -80px); }
.trf-adv__circles span { position: absolute; border-radius: 50%; width: 52%; aspect-ratio: 1; }
.trf-adv__circles span:nth-child(1) { left: 22%; top: 4%; background: rgba(255, 255, 255, 0.07); }
.trf-adv__circles span:nth-child(2) { left: 6%; top: 40%; background: rgba(254, 104, 191, 0.38); }
.trf-adv__circles span:nth-child(3) { left: 40%; top: 38%; background: rgba(147, 147, 147, 0.26); }
.trf-adv__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.trf-adv__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-weight: 700; color: var(--brand); }
.trf-adv__title { color: var(--white); font-size: var(--fs-h2); font-weight: 800; margin: 0 0 0.85rem; }
.trf-adv__intro p { color: #e6e6e6; max-width: 48ch; }
.trf-adv__price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.25rem 0 0; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--white) !important; }
.trf-adv__price span { font-size: 1rem; font-weight: 600; color: #d6d6d6; }
.trf-adv__panel { padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.trf-adv__list { display: grid; gap: 0.85rem; margin: 0 0 1.75rem; }
.trf-adv__list li { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.55; color: #f1f1f1; }
.trf-adv__list i { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; margin-top: 0.05rem; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 0.7rem; }
.trf-adv__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .trf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .trf-grid { grid-template-columns: minmax(0, 1fr); }
  .trf-adv__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .trf-hero { text-align: center; }
  .trf-hero::before { background: rgba(35, 35, 35, 0.55); }
  .trf-hero__inner { display: flex; flex-direction: column; align-items: center; }
  .trf-hero__title, .trf-hero__sub { margin-inline: auto; }
  .trf-hero__circles { display: none; }
  .trf-search { width: 100%; }
  .trf-popular { justify-content: center; }
}
@media (max-width: 640px) {
  .trf-steps { grid-template-columns: minmax(0, 1fr); }
  .trf-card, .trf-card--best { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem; }
  .trf-card__media { flex-direction: row; justify-content: center; gap: 1rem; }
  .trf-card__face { width: 140px; }
  .trf-card--best .trf-card__face { width: 160px; }
  .trf-card__body { text-align: center; }
  .trf-card__contact { justify-content: center; }
  .trf-adv__actions { flex-direction: column; }
  .trf-adv__actions .rp-btn { width: 100%; justify-content: center; }
  .trf-card__actions { flex-direction: column; }
  .trf-card__actions .rp-btn { width: 100%; justify-content: center; }
  .trf-none__actions { flex-direction: column; }
  .trf-none__actions .rp-btn { width: 100%; justify-content: center; }
  .trf-next { flex-direction: column; }
  .trf-next__link { justify-content: center; }
}
@media (max-width: 480px) {
  .trf-search { flex-direction: column; padding: 0.4rem; border-radius: 1.5rem; }
  .trf-search__input { width: 100%; flex: none; font-size: 1rem; }
  .trf-search__icon { top: 1.55rem; }
  .trf-search__btn { width: 100%; }
}
