/* ================================================================
   Customer Journey Page  —  [bbi_journey]
   TBB brand: navy #0f2744 / blue #1b6fb0 / red #c0001e / white
   ================================================================ */

/* ── Theme overrides — journey page only ─────────────────────── */
.bbi-journey-page .tbb-article__title,
.bbi-journey-page .page-title,
.bbi-journey-page .entry-title {
    display: none !important;
}

/* ── Reset & wrap ─────────────────────────────────────────────── */
.bbi-journey {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f2744;
    line-height: 1.65;
    overflow-x: hidden;
}

.bbi-journey *, .bbi-journey *::before, .bbi-journey *::after {
    box-sizing: border-box;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.bbi-jrn-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    cursor: pointer;
}
.bbi-jrn-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.bbi-jrn-btn-primary {
    background: #c0001e;
    color: #fff;
}
.bbi-jrn-btn-secondary {
    background: #0f2744;
    color: #fff;
    margin-top: 28px;
}
.bbi-jrn-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
}
.bbi-jrn-btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── Hero ─────────────────────────────────────────────────────── */
.bbi-jrn-hero {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
}

.bbi-jrn-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,22,44,0.82) 0%,
        rgba(10,22,44,0.60) 55%,
        rgba(10,22,44,0.40) 100%
    );
}

.bbi-jrn-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
    padding: 48px 60px;
    color: #fff;
}

.bbi-jrn-hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin: 0 0 18px;
}

.bbi-jrn-hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 22px;
    letter-spacing: -0.02em;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bbi-jrn-hero-sub {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.82);
    margin: 0 0 36px;
    max-width: 480px;
}

/* ── Steps 1-6 ────────────────────────────────────────────────── */
.bbi-jrn-step {
    display: grid;
    grid-template-columns: 52% 1fr;
    min-height: 68vh;
}

.bbi-jrn-step--flip {
    grid-template-columns: 1fr 52%;
}

.bbi-jrn-step--flip .bbi-jrn-step-img { order: 2; }
.bbi-jrn-step--flip .bbi-jrn-step-text { order: 1; }

/* Image panel */
.bbi-jrn-step-img {
    position: relative;
    overflow: hidden;
    background: #d8dde4;
}

.bbi-jrn-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bbi-jrn-step:hover .bbi-jrn-step-img img {
    transform: scale(1.025);
}

/* Text panel */
.bbi-jrn-step-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    background: #fff;
    overflow: hidden;
}

.bbi-jrn-step--flip .bbi-jrn-step-text {
    background: #f6f8fa;
}

/* Ghost number */
.bbi-jrn-ghost-num {
    position: absolute;
    top: -0.18em;
    right: -0.06em;
    font-size: clamp(110px, 18vw, 180px);
    font-weight: 900;
    color: rgba(15,39,68,0.045);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.bbi-jrn-finale .bbi-jrn-ghost-num {
    color: rgba(255,255,255,0.08);
    top: auto;
    bottom: -0.12em;
    right: -0.04em;
}

/* Step label */
.bbi-jrn-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1b6fb0;
    margin: 0 0 12px;
}

/* Step headline */
.bbi-jrn-step-title {
    font-size: clamp(1.65rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    color: #0f2744;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Step body */
.bbi-jrn-step-body {
    font-size: 1.06rem;
    color: #3a4f63;
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

/* Red accent bar — left edge of text panel */
.bbi-jrn-step-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: #c0001e;
    border-radius: 0 2px 2px 0;
    opacity: 0.7;
}

/* ── Finale (Step 7) ──────────────────────────────────────────── */
.bbi-jrn-finale {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbi-jrn-finale-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5,15,32,0.35) 0%,
        rgba(5,15,32,0.72) 100%
    );
}

.bbi-jrn-finale-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 40px;
    max-width: 700px;
    color: #fff;
}

.bbi-jrn-finale-inner .bbi-jrn-step-label {
    color: rgba(255,255,255,0.72);
}

.bbi-jrn-finale-inner .bbi-jrn-step-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bbi-jrn-finale-inner .bbi-jrn-step-body {
    color: rgba(255,255,255,0.88);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
}

.bbi-jrn-finale-tag {
    margin-top: 28px;
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255,255,255,0.6);
}

/* ── CTA strip ────────────────────────────────────────────────── */
.bbi-jrn-cta-strip {
    background: #0f2744;
    text-align: center;
    padding: 80px 40px;
    color: #fff;
}

.bbi-jrn-cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: #fff;
}

.bbi-jrn-cta-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 36px;
}

.bbi-jrn-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bbi-jrn-hero-inner { padding: 40px 28px; }

    .bbi-jrn-step,
    .bbi-jrn-step--flip {
        grid-template-columns: 1fr;
    }

    .bbi-jrn-step-img { min-height: 55vw; max-height: 320px; order: 1 !important; }
    .bbi-jrn-step-text { order: 2 !important; padding: 44px 28px 52px; }
    .bbi-jrn-step-text::before { display: none; }
    .bbi-jrn-ghost-num { font-size: 100px; }

    .bbi-jrn-step-body { max-width: none; }

    .bbi-jrn-finale-inner { padding: 48px 24px; }

    .bbi-jrn-cta-strip { padding: 60px 24px; }
    .bbi-jrn-cta-btns { flex-direction: column; align-items: center; }
    .bbi-jrn-btn { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
    .bbi-jrn-hero { min-height: 70vh; }
    .bbi-jrn-hero-title { font-size: 2.2rem; }
    .bbi-jrn-hero-sub { font-size: 1rem; }
    .bbi-jrn-step { min-height: auto; }
    .bbi-jrn-step-img { max-height: 260px; }
    .bbi-jrn-step-text { padding: 36px 20px 44px; }
    .bbi-jrn-step-title { font-size: 1.55rem; }
}
