/* ───────────────────────────────────────────────
   CBI (Citizenship-by-Investment) shared components
   Version: v1.0
   ─────────────────────────────────────────────── */

/* ── A. Hero Country Card ───────────────────── */

.cbi-hero {
    display: flex;
    align-items: flex-end;
    min-height: 80vh;
}

.cbi-hero .wrap {
    width: 100%;
    padding-bottom: var(--space-7);
}

.cbi-hero-card {
    background: rgba(15, 28, 46, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(242, 242, 240, 0.1);
    border-radius: var(--radius-3);
    padding: var(--space-4) var(--space-5);
    max-width: 520px;
    color: var(--color-off-white);
}

.cbi-hero-heading {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.cbi-hero-flag {
    width: 72px;
    height: auto;
    border-radius: var(--radius-1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.cbi-hero-card h1 {
    color: var(--color-off-white);
    font-size: var(--fs-h2);
    margin: 0;
}

.cbi-hero-region {
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(242, 242, 240, 0.7);
    margin-top: var(--space-1);
    margin-bottom: 0;
}

.cbi-hero-intro {
    font-size: var(--fs-small);
    /* line-height: 1.6; */
    color: rgba(242, 242, 240, 0.88);
    margin-top: var(--space-3);
    margin-bottom: 0;
}

.cbi-hero-card .btn {
    margin-top: var(--space-3);
}

/* ── B. Feature Cards ───────────────────────── */


.cbi-features h2 {
    margin-bottom: var(--space-2);
}

.cbi-features > .wrap > p {
    color: var(--color-muted);
    max-width: 80ch;
    margin-bottom: 0;
}

.cbi-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.cbi-feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid rgba(15, 28, 46, 0.1);
    border-radius: var(--radius-2);
    background: #fff;
    transition: transform 0.08s ease, box-shadow 0.2s ease;
}

.cbi-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 28, 46, 0.14);
}

.cbi-feature-icon {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
}

.cbi-feature-icon svg {
    width: 74px;
    height: 74px;
}

.cbi-feature-body {
    min-width: 0;
}

.cbi-feature-title {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--color-heading);
}

.cbi-feature-body p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ── C. Stats Bar ───────────────────────────── */



.cbi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--space-5);
    text-align: center;
}

.cbi-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    position: relative;
}

.cbi-stats-icon {
    width: 69px;
    height: 69px;
    margin-bottom: var(--space-1);
}

.cbi-stats-icon svg {
    width: 100%;
    height: 100%;
}

.cbi-stats-value {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--color-deep-green);
    margin: 0;
    line-height: 1.2;
}

.cbi-stats-sublabel {
    font-size: var(--fs-small);
    /* color: rgba(242, 242, 240, 0.55); */
    margin: 0;
    line-height: 1.3;
    min-height: 1.3em;
}

.cbi-stats-label {
    font-size: var(--fs-normal);
    font-weight: 500;
    line-height: 1.4;
    /* color: rgba(242, 242, 240, 0.75); */
    margin: 0;
    max-width: 20ch;
}

.cbi-stats-item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--space-5) / -2);
    width: 1px;
    height: 50%;
    background: var(--color-gold);
    transform: translateY(-50%);
}

.cbi-stats-item:last-child::after {
    display: none;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 980px) {
    .cbi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5) var(--space-4);
    }

    .cbi-stats-item::after {
        right: calc(var(--space-4) / -2);
    }

    .cbi-stats-item:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .cbi-hero {
        min-height: 70vh;
    }

    .cbi-hero .wrap {
        padding-bottom: var(--space-5);
    }

    .cbi-hero-card {
        max-width: none;
        padding: var(--space-4);
    }

    .cbi-hero-card h1 {
        font-size: clamp(22px, 5vw, 28px);
    }

    .cbi-feature-icon {
        width: 65px;
        height: 65px;
    }

    .cbi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .cbi-stats-item::after {
        right: calc(var(--space-4) / -2);
    }
}
