/* ══════════════════════════════════════════════════════════
   WHY JOIN US / CP BENEFITS — premium light real-estate redesign
   Soft white → sky-blue gradient, glassmorphism, blueprint art,
   animated stats, 3D hover, modern CTA panel.
   Brand accents: sky blue (--sky) + orange (--orange)
   ══════════════════════════════════════════════════════════ */

.cpbp-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 130px 0;
    background: linear-gradient(165deg, #ffffff 0%, #f3f9ff 40%, #e6f3fd 75%, #dcedfb 100%);
}

/* ── decorative background layer ─────────────────────────── */
.cpbp-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.cpbp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .38;
    animation: cpbpDrift 16s ease-in-out infinite;
}
.cpbp-blob.b1 { width: 420px; height: 420px; left: -140px; top: -120px; background: radial-gradient(circle, var(--sky, #0ea5e9), transparent 70%); }
.cpbp-blob.b2 { width: 380px; height: 380px; right: -120px; top: 10%; background: radial-gradient(circle, var(--orange, #f97316), transparent 70%); animation-delay: -5s; }
.cpbp-blob.b3 { width: 460px; height: 460px; left: 30%; bottom: -220px; background: radial-gradient(circle, var(--sky, #0ea5e9), transparent 70%); opacity: .28; animation-delay: -9s; }

@keyframes cpbpDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(22px,-24px) scale(1.06); }
}

/* dotted grids */
.cpbp-dots {
    position: absolute;
    background-image: radial-gradient(rgba(9,115,186,.28) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    opacity: .55;
    animation: cpbpFloat 10s ease-in-out infinite;
}
.cpbp-dots.d1 { width: 220px; height: 220px; right: 6%; top: 6%; }
.cpbp-dots.d2 { width: 180px; height: 180px; left: 4%; bottom: 10%; animation-delay: -4s; }

@keyframes cpbpFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* blueprint building outlines */
.cpbp-blueprint { position: absolute; opacity: .3; animation: cpbpFloat 13s ease-in-out infinite; }
.cpbp-blueprint.tl { left: -20px; top: -10px; width: 220px; animation-delay: -2s; }
.cpbp-blueprint.br { right: -20px; bottom: -14px; width: 260px; transform: scaleX(-1); animation-delay: -7s; }

/* abstract wave */
.cpbp-wave { position: absolute; left: 0; width: 100%; opacity: .5; }
.cpbp-wave.top { top: 0; }
.cpbp-wave.bottom { bottom: 0; transform: scaleY(-1); }

/* twinkling particles */
.cpbp-particle { position: absolute; border-radius: 50%; animation: cpbpTwinkle 3.6s ease-in-out infinite; }
@keyframes cpbpTwinkle { 0%,100%{opacity:.25;transform:scale(.8);} 50%{opacity:1;transform:scale(1.2);} }

/* ── header ───────────────────────────────────────────────── */
.cpbp-section .cpbp-header { position: relative; z-index: 2; text-align: center; margin-bottom: 56px; }

/* ── animated stats row ───────────────────────────────────── */
.cpbp-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 64px;
}

.cpbp-stat {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 16px 40px rgba(9,115,186,.10);
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.cpbp-stat:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(9,115,186,.18); }

.cpbp-stat-icon {
    width: 46px; height: 46px; margin: 0 auto 14px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--sky, #0ea5e9), var(--orange, #f97316));
    color: #fff; font-size: 1.4rem;
    box-shadow: 0 10px 24px rgba(9,115,186,.25);
}

.cpbp-stat-num {
    font-family: var(--font-display, 'Urbanist'), sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--text, #0f172a);
    line-height: 1.1;
}
.cpbp-stat-label { font-size: .82rem; color: var(--text3, #64748b); margin-top: 4px; }

/* ── benefit cards grid ───────────────────────────────────── */
.cpbp-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    perspective: 1200px;
}

.cpbp-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 22px;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.75);
    box-shadow: 0 14px 40px rgba(9,115,186,.09);
    overflow: hidden;
    transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
    transform-style: preserve-3d;
}

.cpbp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--sky, #0ea5e9), var(--orange, #f97316));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}

/* shine sweep */
.cpbp-card::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    transition: left .7s ease;
    pointer-events: none;
}

.cpbp-card:hover {
    transform: translateY(-12px) rotateX(3deg) scale(1.015);
    box-shadow: 0 30px 70px rgba(9,115,186,.20), 0 0 0 1px rgba(9,115,186,.10);
}
.cpbp-card:hover::before { transform: scaleX(1); }
.cpbp-card:hover::after { left: 130%; }

.cpbp-icon-wrap {
    position: relative;
    width: 68px; height: 68px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--sky, #0ea5e9), var(--orange, #f97316));
    box-shadow: 0 12px 28px rgba(9,115,186,.28);
    margin-bottom: 22px;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.cpbp-card:hover .cpbp-icon-wrap {
    transform: scale(1.12) rotate(-4deg);
}
.cpbp-icon-wrap iconify-icon { position: relative; z-index: 1; }

.cpbp-card h4 {
    font-family: var(--font-display, 'Urbanist'), sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 10px;
}
.cpbp-card p { color: var(--text3, #64748b); font-size: .92rem; line-height: 1.7; margin: 0; }

/* ── CTA panel ────────────────────────────────────────────── */
.cpbp-cta {
    position: relative;
    z-index: 2;
    margin-top: 70px;
    border-radius: 28px;
    padding: 56px 60px;
    background: linear-gradient(120deg, var(--sky, #0ea5e9) 0%, var(--sky-dark, #0284c7) 45%, var(--orange, #f97316) 130%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(9,115,186,.28);
}

.cpbp-cta::before,
.cpbp-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    filter: blur(2px);
}
.cpbp-cta::before { width: 260px; height: 260px; right: -80px; top: -100px; }
.cpbp-cta::after { width: 180px; height: 180px; left: -60px; bottom: -80px; }

.cpbp-cta-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
    opacity: .5;
}

.cpbp-cta-text { position: relative; z-index: 1; max-width: 560px; }
.cpbp-cta-text h3 {
    font-family: var(--font-display, 'Urbanist'), sans-serif;
    color: #fff; font-size: 1.7rem; font-weight: 800; margin: 0 0 10px;
}
.cpbp-cta-text p { color: rgba(255,255,255,.9); font-size: .98rem; line-height: 1.6; margin: 0; }

.cpbp-cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

.cpbp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    transition: all .35s cubic-bezier(.22,1,.36,1);
    cursor: pointer;
    border: none;
}
.cpbp-btn.primary { background: #fff; color: var(--sky-dark, #0284c7); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.cpbp-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.22); }
.cpbp-btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.cpbp-btn.ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .cpbp-stats { grid-template-columns: repeat(2, 1fr); }
    .cpbp-cta { padding: 42px 34px; }
}
@media (max-width: 576px) {
    .cpbp-section { padding: 90px 0; }
    .cpbp-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cpbp-stat { padding: 22px 14px; }
    .cpbp-stat-num { font-size: 1.5rem; }
    .cpbp-card { padding: 32px 24px; }
    .cpbp-cta { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
    .cpbp-blueprint { width: 140px !important; }
    .cpbp-dots { width: 120px !important; height: 120px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .cpbp-blob, .cpbp-dots, .cpbp-blueprint, .cpbp-particle { animation: none !important; }
    .cpbp-card, .cpbp-stat { transition: none !important; }
}
