/* ==========================================================
   Riverport Business Club - homepage
   hero > intro (white) > why join (grey) > testimonial (dark)
   > member circles include (white) > footer (dark)
   ========================================================== */

/* ---------- Hero ---------- */
.rp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(560px, calc(92vh - var(--header-h) - 46px), 780px);
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  color: var(--white);
}
.rp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(35, 35, 35, 0.66) 0%, rgba(35, 35, 35, 0.38) 50%, rgba(35, 35, 35, 0.1) 100%);
}
.rp-hero__inner { position: relative; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.rp-hero__inner .rp-btn { text-shadow: none; }
.rp-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.25rem; font-weight: 700; font-size: 1rem; color: var(--brand); }
.rp-hero__title { font-size: var(--fs-h1); font-weight: 800; color: var(--white); max-width: 20ch; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
.rp-hero__sub { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.6; max-width: 50ch; color: #f1f1f1; margin-bottom: 2.5rem; }
.rp-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Logo-circle motif */
.rp-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; }
.rp-hero__circles span { position: absolute; border-radius: 50%; width: 50%; aspect-ratio: 1; }
.rp-hero__circles span:nth-child(1) { left: 15%; top: 10%; background: rgba(255, 255, 255, 0.14); }
.rp-hero__circles span:nth-child(2) { left: 6%; top: 40%; width: 46%; background: rgba(254, 104, 191, 0.2); }
.rp-hero__circles span:nth-child(3) { left: 36%; top: 38%; background: rgba(147, 147, 147, 0.4); }

/* ---------- Intro ---------- */
.rp-intro__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.rp-intro__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.rp-intro__lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); font-weight: 500; color: #3a3a3a; line-height: 1.65; max-width: 52ch; margin-bottom: 2rem; }

/* Measured-overlap frame (§6y) */
.rp-intro__media { position: relative; display: grid; min-width: 0; margin-right: 18px; margin-bottom: 18px; }
.rp-intro__media img { grid-area: 1 / 1; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.rp-intro__media::before { content: ""; grid-area: 1 / 1; z-index: 0; border: 2px solid #d4d4d4; border-radius: var(--radius-lg); transform: translate(18px, 18px); }

/* Supporting copy as three short columns - keeps the section low and scannable */
.rp-intro__points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--grey-line);
}
.rp-intro__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font-size: 1.15rem; margin-bottom: 1.1rem; }
.rp-intro__title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; }
.rp-intro__point p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--ink); }

/* ---------- Why join ---------- */
.rp-why__head { text-align: center; margin-bottom: var(--stack); }
.rp-why__head .rp-rule { margin-bottom: 0; }
.rp-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }

.rp-why__item {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 3vw, 2.5rem) clamp(1.6rem, 3vw, 2.25rem) clamp(2.1rem, 3.2vw, 2.6rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Logo-circle motif tucked into the top-right corner */
.rp-why__item::before, .rp-why__item::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; transition: transform 0.4s var(--ease); }
.rp-why__item::before { width: 150px; height: 150px; top: -70px; right: -48px; background: #f4f4f4; }
.rp-why__item::after  { width: 110px; height: 110px; top: -58px; right: 38px; background: rgba(147, 147, 147, 0.1); }
/* Pink base bar that draws in on hover */
.rp-why__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0.18); transform-origin: left; transition: transform 0.35s var(--ease); }

.rp-why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rp-why__item:hover::before { transform: scale(1.12); }
.rp-why__item:hover .rp-why__bar { transform: scaleX(1); }

.rp-why__title { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem); font-weight: 800; margin-bottom: 0.65rem; }
.rp-why__item p { margin: 0; color: var(--ink); font-size: 1rem; }

/* Icon badge echoes the logo: pink circle overlapping a grey one */
.rp-why__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 0 1.6rem; }
.rp-why__icon::before { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; right: -12px; top: -8px; background: rgba(254, 104, 191, 0.28); }
.rp-why__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--charcoal); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15); }
.rp-why__icon i { position: relative; z-index: 1; font-size: 1.4rem; color: var(--brand); }

/* ---------- Testimonial slider ---------- */
.rp-testimonial { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 6vw, 4.5rem); color: var(--white); text-align: center; }
.rp-testimonial__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rp-testimonial::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(50, 50, 50, 0.82); }
.rp-testimonial__inner { display: flex; flex-direction: column; align-items: center; }
.rp-testimonial__mark { font-size: 1.7rem; color: var(--brand); margin-bottom: 1.1rem; }

.rp-tslider { width: 100%; max-width: 980px; margin-bottom: 1.75rem; }
.rp-tslider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; align-items: stretch;
}
.rp-tslider__track::-webkit-scrollbar { display: none; }
.rp-tslider__slide {
  flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-inline: clamp(0.25rem, 3vw, 2rem);
}
.rp-tslider__quote { margin: 0 0 1.1rem; }
.rp-tslider__quote p { font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem); line-height: 1.6; font-weight: 500; margin: 0; }
.rp-tslider__quote p + p { margin-top: 0.7em; }
.rp-tslider__cite { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.rp-tslider__name { font-weight: 800; font-size: 1.05rem; }
.rp-tslider__biz { color: #dcdcdc; font-size: 0.95rem; }

.rp-tslider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.rp-tslider__controls[hidden] { display: none; }
.rp-tslider__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
  transition: background-color 0.2s var(--ease);
}
.rp-tslider__btn:hover { background: rgba(255, 255, 255, 0.25); }
.rp-tslider__dots { display: flex; gap: 0.5rem; }
.rp-tslider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.25s var(--ease), background-color 0.25s var(--ease); }
.rp-tslider__dot[aria-current="true"] { width: 26px; background: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rp-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .rp-hero { min-height: clamp(500px, 80vh, 660px); text-align: center; }
  .rp-hero::before { background: rgba(35, 35, 35, 0.5); }
  .rp-hero__inner { display: flex; flex-direction: column; align-items: center; }
  .rp-hero__title, .rp-hero__sub { margin-inline: auto; }
  .rp-hero__actions { justify-content: center; }
  .rp-hero__circles { display: none; }

  .rp-intro__top { grid-template-columns: minmax(0, 1fr); }
  .rp-intro__media { order: -1; margin: 0; }
  .rp-intro__media::before { display: none; }   /* overlap resolves to a clean stack */
  .rp-intro__points { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .rp-intro__point { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.1rem; }
  .rp-intro__icon { grid-row: span 2; margin: 0; }
}

@media (max-width: 640px) {
  .rp-tslider__quote p { font-size: 0.975rem; line-height: 1.55; }
  .rp-tslider__slide { padding-inline: 0; }
  .rp-hero__actions { flex-direction: column; width: 100%; }
  .rp-hero__actions .rp-btn { width: 100%; }
  .rp-intro__text { align-items: center; text-align: center; }
  .rp-intro__text .rp-rule { margin-inline: auto; }
  .rp-intro__text .rp-btn { width: 100%; }
  .rp-why__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .rp-intro__point { grid-template-columns: minmax(0, 1fr); }
  .rp-intro__icon { grid-row: auto; margin-bottom: 0.9rem; }
}
