/*
 * Block by Block Split Screen, front end styles.
 * Colors are driven by CSS custom properties set inline from the admin options:
 * --page-bg, --text, --heading-font, --body-font, --left-accent, --right-accent.
 * Each half exposes a scoped --accent so buttons, eyebrows, checks and arrows
 * pick up the correct color automatically.
 */

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

html,
body {
    margin: 0;
    padding: 0;
}

.bbb-body {
    background: var(--page-bg, #0d1626);
    color: var(--text, #ffffff);
    font-family: var(--body-font, "Inter", "Helvetica Neue", Arial, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
}

.bbb-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Top bar ---------- */

.bbb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    /* Fixed bar height so the logo size never shifts the Contact button. */
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 0 clamp(20px, 4vw, 56px);
}

.bbb-logo {
    /* Taken out of flow and centered on the fixed bar height, so resizing the
       logo only affects the logo and leaves the Contact button in place. */
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    top: 50%;
    display: inline-flex;
    align-items: center;
    transform: translate(var(--logo-mx, 0px), calc(-50% + var(--logo-my, 0px)));
}

.bbb-logo-img {
    height: var(--logo-h, clamp(34px, 4vw, 48px));
    width: auto;
}

.bbb-logo-text {
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: 800;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    letter-spacing: 0.01em;
    color: var(--text, #ffffff);
}

.bbb-contact {
    display: inline-flex;
    align-items: center;
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text, #ffffff);
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bbb-contact:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* ---------- Split halves ---------- */

.bbb-split {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}

.bbb-half {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(96px, 12vh, 140px) clamp(24px, 4vw, 64px) clamp(56px, 8vh, 88px);
    background-color: var(--page-bg, #0d1626);
    overflow: hidden;
}

/* Hairline divider between the two halves on desktop. */
.bbb-half.bbb-left::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 5;
}

.bbb-left {
    --accent: var(--left-accent, #3fa7e0);
}

.bbb-right {
    --accent: var(--right-accent, #c9a24b);
}

.bbb-half-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    text-align: left;
}

/* Eyebrow with icon and accent underline. */
.bbb-eyebrow-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: clamp(18px, 3vh, 28px);
}

.bbb-eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 14px;
}

.bbb-eyebrow-icon .bbb-ico {
    width: 44px;
    height: 44px;
    display: block;
}

.bbb-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.bbb-eyebrow {
    display: inline-block;
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 10px;
    position: relative;
}

.bbb-eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.bbb-title {
    margin: 0 0 clamp(14px, 2.4vh, 22px);
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: var(--title-weight, 800);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--text, #ffffff);
}

.bbb-subtitle {
    margin: 0 0 clamp(24px, 3.6vh, 36px);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 42ch;
}

/* Checklist. */
.bbb-list {
    list-style: none;
    margin: 0 0 clamp(28px, 4vh, 40px);
    padding: 0;
    display: grid;
    gap: 14px;
}

.bbb-list-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.92);
}

.bbb-check {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--accent);
    margin-top: 1px;
}

.bbb-check .bbb-ico {
    width: 23px;
    height: 23px;
    display: block;
}

.bbb-list-text {
    line-height: 1.45;
}

/* Actions. */
.bbb-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.bbb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b1018;
    background: var(--accent);
    padding: 17px 34px;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-align: center;
}

.bbb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    filter: brightness(1.06);
}

.bbb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text, #ffffff);
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.bbb-link-text {
    position: relative;
    padding-bottom: 2px;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.25s ease;
}

.bbb-link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.bbb-link:hover .bbb-link-text {
    background-size: 100% 2px;
}

.bbb-link:hover .bbb-link-arrow {
    transform: translateX(4px);
}

/* ---------- OR badge on the seam ---------- */

.bbb-or {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page-bg, #0d1626);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 8px rgba(13, 22, 38, 0.55), 0 16px 38px rgba(0, 0, 0, 0.5);
}

.bbb-or-text {
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- Trust bar ---------- */

.bbb-trust {
    background: #f4f6f9;
    color: #1c2533;
    padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 56px);
}

.bbb-trust-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(28px, 4vw, 56px);
}

.bbb-trust-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bbb-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    color: #1c2533;
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.08);
    margin-bottom: 18px;
}

.bbb-trust-icon .bbb-ico {
    width: 30px;
    height: 30px;
    display: block;
}

.bbb-trust-icon .bbb-icon-img {
    width: 32px;
    height: 32px;
}

.bbb-trust-heading {
    margin: 0 0 8px;
    font-family: var(--heading-font, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #16202f;
}

.bbb-trust-text {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.55;
    color: #51607a;
    max-width: 30ch;
}

/* ---------- Footer ---------- */

.bbb-footer {
    background: #0a111d;
    color: rgba(255, 255, 255, 0.75);
    padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 56px);
}

.bbb-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.bbb-footer-text {
    margin: 0;
    font-size: 0.92rem;
}

.bbb-footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.bbb-footer-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.bbb-footer-link:hover {
    color: #ffffff;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
    .bbb-trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(28px, 5vw, 44px);
    }
}

/* ---------- Mobile, stack the halves ---------- */

@media (max-width: 860px) {
    .bbb-split {
        flex-direction: column;
    }

    .bbb-half {
        flex: 1 1 auto;
        min-height: 78vh;
        padding: clamp(84px, 16vh, 120px) clamp(22px, 7vw, 36px) clamp(48px, 9vh, 72px);
    }

    /* First half keeps extra top room for the absolute top bar. */
    .bbb-half.bbb-left {
        padding-top: clamp(104px, 18vh, 136px);
    }

    .bbb-half.bbb-left::after {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 1px;
    }

    .bbb-half-inner {
        max-width: 540px;
        margin: 0 auto;
    }

    /* OR badge sits centered on the horizontal seam between the stacked halves. */
    .bbb-or {
        top: 50%;
        left: 50%;
    }

    .bbb-topbar {
        height: 68px;
        padding: 0 22px;
    }

    .bbb-logo {
        left: 22px;
    }

    .bbb-contact {
        padding: 9px 16px;
        font-size: 0.74rem;
    }

    .bbb-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Small phones ---------- */

@media (max-width: 520px) {
    .bbb-trust-inner {
        grid-template-columns: 1fr;
    }

    .bbb-btn {
        width: 100%;
    }

    .bbb-actions {
        width: 100%;
        align-items: stretch;
    }

    .bbb-link {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbb-contact,
    .bbb-btn,
    .bbb-link,
    .bbb-link-text,
    .bbb-link-arrow,
    .bbb-footer-link {
        transition: none;
    }
}
