﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

.bm {
    --bg: var(--bg-base);
    --text: var(--text-primary);
    --text-dim: var(--text-secondary);
    font-family: 'Montserrat',sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* CONTAINER */
.bm-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

/* SECTIONS */
.bm-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
}

    .bm-section.active {
        opacity: 1;
        transform: translateY(0);
    }

.bm-alt {
    background: var(--bg-alt);
}

/* HERO */
.bm-hero {
    padding-top: 140px;
}

/* HEADINGS */
.bm-gradient-heading {
    font-size: clamp(32px,5vw,50px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
}
/* Dark theme renders this as solid white; light theme keeps the
   original white-to-blue gradient - see landing.css's own comment on
   .gradient-heading. */
[data-theme="light"] .bm-gradient-heading {
    background: linear-gradient(135deg,var(--text-primary),var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bm-subheadline {
    color: var(--text-dim);
    max-width: 850px;
    margin: 0 auto 35px;
    font-size: 18px;
}

.bm-subtitle {
    color: var(--text-dim);
    max-width: 850px;
    margin: 0 auto 35px;
    font-size: 16px;
    margin-top:20px;
}




.bm-trust-line {
    margin-top: 20px;
    color: var(--text-dim);
}

/* BUTTONS */
.bm-btn-primary {
    background: var(--cyan);
    color: #fff;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: .3s;
}

    .bm-btn-primary:hover {
        transform: translateY(-3px);
        color: #fff;
    }

.bm-btn-outline {
    border: 1px solid var(--border);
    padding: 16px 36px;
    border-radius: 8px;
    margin-left: 10px;
    color: var(--text); /* CHANGED: Was hardcoded to #fff */
    background: transparent;
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

    .bm-btn-outline:hover {
        border-color: var(--cyan);
        background: rgba(14, 165, 233, 0.06);
        transform: translateY(-3px);
    }

.bm-cta-group {
    margin-top: 25px;
}

/* ICON LIST */
/*.bm-icon-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 18px;
}

    .bm-icon-list li {
        background: var(--bg-card);
        border: 1px solid var(--border);
        padding: 18px 20px;
        border-radius: 14px;
        transition: .3s;
    }

        .bm-icon-list li:hover {
            transform: translateY(-6px);
            border-color: var(--cyan);
        }*/

.bm-icon-list {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 18px !important;
}

    .bm-icon-list li {
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        padding: 18px 20px !important;
        border-radius: 14px !important;
        transition: 0.3s !important;
        display: flex !important; /* flex container */
        align-items: flex-start !important; /* icon aligned with first line */
        gap: 15px !important; /* space between icon and text */
        text-align: left !important;
        position: relative !important;
    }

        .bm-icon-list li:hover {
            transform: translateY(-6px) !important;
            border-color: var(--cyan) !important;
        }

        .bm-icon-list li::before {
            content: "✓" !important;
            flex-shrink: 0 !important; /* prevents icon shrinking */
            width: 28px !important;
            height: 28px !important;
            border-radius: 50% !important;
            background: linear-gradient(135deg, var(--cyan), var(--cyan-dim)) !important;
            color: #fff !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-weight: bold !important;
            font-size: 14px !important;
        }

/* GRID */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
    margin-top: 50px;
}

.bm-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 16px;
    transition: .3s;
}

    .bm-card:hover {
        transform: translateY(-6px);
        border-color: var(--cyan);
    }

    .bm-card i {
        color: var(--cyan);
        margin-right: 10px;
        font-size:26px;
    }

/* FINAL */
.bm-final {
    background: linear-gradient(135deg,var(--bg-alt),var(--bg-card));
}

/* WAVE */
/*.bm-wave svg {
    width: 100%;
    height: 90px;
    display: block;
}*/

/* RESPONSIVE */
@media(max-width:992px) {
    .bm-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BRANCH MANAGEMENT — MOBILE RESPONSIVE (BM)
   SAFE SCOPED MOBILE CSS
===================================================== */

@media screen and (max-width: 768px) {

    /* ---------- Container ---------- */
    .bm-container {
        width: 100%;
        padding: 20px 15px;
        margin: 0 auto;
    }

    /* ---------- Sections ---------- */
    .bm-section {
        padding: 32px 15px;
    }

    /* ---------- HERO ---------- */
    .bm-hero {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .bm-gradient-heading {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .bm-subheadline {
        font-size: 1rem;
        line-height: 1.6;
        margin-top: 12px;
    }

    .bm-trust-line {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    /* ---------- CTA Buttons ---------- */
    .bm-cta-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
    }

    .bm-btn-primary,
    .bm-btn-outline {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    /* ---------- Lists ---------- */
    .bm-icon-list {
        list-style: none;
        padding-left: 0;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .bm-icon-list li {
            font-size: 0.95rem;
            line-height: 1.6;
            word-break: break-word;
        }

    /* ---------- Feature Grid ---------- */
    .bm-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .bm-card {
        padding: 16px;
        border-radius: 10px;
        text-align: center;
    }

        .bm-card i {
            font-size: 1.4rem;
        }

        .bm-card h3 {
            font-size: 1.05rem;
            margin-top: 8px;
            line-height: 1.4;
        }

        .bm-card p {
            font-size: 0.95rem;
            line-height: 1.5;
        }


    /* ---------- Wave Fix ---------- */
    .bm-wave svg {
        height: 60px;
    }
        .bm-wave svg path {
            fill: var(--bg-alt) !important; /* CHANGED: Overrides hardcoded #0B1422 */
        }

    /* ---------- Alternate Sections ---------- */
    .bm-alt {
        padding: 32px 15px;
    }

    .bm-final {
        padding-bottom: 40px;
    }
}


/* =====================================================
   SMALL PHONES (<480px)
===================================================== */

@media screen and (max-width: 480px) {

    .bm-gradient-heading {
        font-size: 1.4rem;
    }

    .bm-subheadline {
        font-size: 0.9rem;
    }

    .bm-card h3 {
        font-size: 1rem;
    }

    .bm-card p {
        font-size: 0.9rem;
    }

    .bm-btn-primary,
    .bm-btn-outline {
        font-size: 0.9rem;
        padding: 11px 0;
    }

    .bm-icon-list li {
        font-size: 0.9rem;
    }
}

/* ================= UNIFIED FAQ (Matches Index Page) ================= */
.bm-faq {
    max-width: 820px;
    margin: 40px auto 0;
    text-align: left;
}

.bm-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

    .bm-faq-item:hover {
        background: var(--bg-card-hover);
        border-color: var(--cyan);
    }

.bm-faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.bm-faq-icon {
    color: var(--text-secondary);
    font-size: 22px; /* Kept larger for the '+' icon */
    transition: transform 0.3s ease;
}

.bm-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left !important;
    opacity: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.bm-faq-item.active .bm-faq-answer {
    max-height: 500px !important;
    padding: 12px 20px 16px 20px;
    opacity: 1;
}

.bm-faq-item.active .bm-faq-icon {
    transform: rotate(45deg); /* Turns '+' into 'x' */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bm-faq {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .bm-faq-item {
        margin-bottom: 0;
    }

    .bm-faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .bm-faq-answer {
        padding: 0 16px;
        font-size: 0.9rem;
    }

    .bm-faq-item.active .bm-faq-answer {
        padding: 12px 16px;
    }
}