/* ==========================================================
   Riverport Business Club - About page
   hero > about (white) > benefits (grey) > format + agenda (white)
   > why join (grey) > useful links (dark) > member circles (white) > footer
   ========================================================== */

.ab-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); font-weight: 500; color: #3a3a3a; line-height: 1.65; }

/* About + at-a-glance card */
.ab-about__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.ab-glance {
  background: var(--grey); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-top: 3px solid var(--brand);
}
.ab-glance__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 1.1rem; }
.ab-glance__list { display: grid; gap: 0.85rem; margin-bottom: 1.6rem; }
.ab-glance__list li { display: flex; align-items: flex-start; gap: 0.8rem; font-weight: 600; color: #3a3a3a; line-height: 1.45; }
.ab-glance__list i { width: 1.25rem; flex-shrink: 0; text-align: center; color: var(--brand); margin-top: 0.15em; }

/* Benefits - copy left, portrait photo right with measured-overlap frame (§6y) */
.ab-benefits__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.ab-benefits__text { display: flex; flex-direction: column; align-items: flex-start; }
.ab-benefits__media { position: relative; display: grid; margin: 0 18px 18px 0; max-width: 460px; justify-self: end; width: 100%; }
.ab-benefits__media img { grid-area: 1 / 1; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ab-benefits__media::before { content: ""; grid-area: 1 / 1; z-index: 0; border: 2px solid #d4d4d4; border-radius: var(--radius-lg); transform: translate(18px, 18px); }

/* Format text + agenda */
.ab-format__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.ab-block + .ab-block { margin-top: 2rem; }
.ab-format__agenda .rp-subheading { margin-bottom: 1.1rem; }

/* Why join - compact icon tiles (homepage has the full cards) */
.ab-why__head { text-align: center; margin-bottom: var(--stack); }
.ab-why__head .rp-rule { margin-bottom: 0; }
.ab-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ab-why__grid li {
  display: flex; align-items: center; gap: 1rem; min-width: 0;
  background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  font-weight: 700; color: #3a3a3a; line-height: 1.35; box-shadow: var(--shadow-sm);
}
.ab-why__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--charcoal); color: var(--brand); font-size: 1.1rem; }

/* Useful links - dark panel lifted by the logo circles */
.ab-links {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 85% 20%, rgba(254, 104, 191, 0.22), transparent 55%),
    linear-gradient(135deg, #4d4d4d 0%, #3b3b3b 100%);
  color: var(--white);
}
.ab-links__circles { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; }
.ab-links__circles span { position: absolute; border-radius: 50%; width: 52%; aspect-ratio: 1; }
.ab-links__circles--main { width: clamp(300px, 36vw, 540px); right: clamp(-140px, -6vw, -40px); top: clamp(-170px, -10vw, -80px); }
.ab-links__circles--main span:nth-child(1) { left: 22%; top: 4%; background: rgba(255, 255, 255, 0.07); }
.ab-links__circles--main span:nth-child(2) { left: 6%; top: 40%; background: rgba(254, 104, 191, 0.4); }
.ab-links__circles--main span:nth-child(3) { left: 40%; top: 38%; background: rgba(147, 147, 147, 0.28); }
.ab-links__circles--small { width: clamp(140px, 14vw, 210px); left: clamp(-60px, -3vw, -20px); bottom: clamp(-80px, -5vw, -40px); }
.ab-links__circles--small span:nth-child(1) { left: 22%; top: 4%; background: rgba(255, 255, 255, 0.05); }
.ab-links__circles--small span:nth-child(2) { left: 6%; top: 40%; background: rgba(254, 104, 191, 0.22); }
.ab-links__circles--small span:nth-child(3) { left: 40%; top: 38%; background: rgba(147, 147, 147, 0.2); }

.ab-links__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ab-links__title { color: var(--white); font-size: var(--fs-h2); font-weight: 800; margin-bottom: 0.6em; }
.ab-links__head .rp-rule { margin-bottom: 1.25rem; }
.ab-links__text { color: #e4e4e4; margin: 0; max-width: 40ch; }

.ab-links__grid { display: grid; gap: 0.9rem; }
.ab-link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.15rem 1.35rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--white); text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ab-link:hover, .ab-link:focus-visible { background: rgba(255, 255, 255, 0.14); border-color: rgba(254, 104, 191, 0.7); transform: translateX(4px); }
.ab-link__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 1.1rem; box-shadow: 0 6px 18px rgba(254, 104, 191, 0.35); }
.ab-link__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.ab-link__title { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.ab-link__desc { color: #dadada; font-size: 0.95rem; line-height: 1.4; }
.ab-link__arrow { color: var(--brand); transition: transform 0.25s var(--ease); }
.ab-link:hover .ab-link__arrow { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ab-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ab-links__inner { grid-template-columns: minmax(0, 1fr); }
  .ab-links__circles--main { width: 300px; right: -120px; top: -120px; }
  .ab-links__circles--small { display: none; }
  .ab-about__grid, .ab-benefits__grid, .ab-format__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-benefits__media { margin: 0; max-width: none; justify-self: stretch; }
  .ab-benefits__media::before { display: none; }   /* overlap resolves to a clean stack */
  .ab-benefits__media img { aspect-ratio: 4 / 3; object-position: center 35%; }
}
@media (max-width: 640px) {
  .ab-link { padding: 1rem 1.1rem; gap: 0.9rem; }
  .ab-link__icon { width: 42px; height: 42px; font-size: 1rem; }
  .ab-why__grid { grid-template-columns: minmax(0, 1fr); }
}
