/* BrimllyFinance public site – uniform nav, pages, auth */

.bf-site-page {
    background: #eef2f7;
    min-height: calc(100vh - 72px);
}

.bf-site-header .navbar {
    box-shadow: 0 2px 12px rgba(13, 59, 102, 0.15);
}

.bf-site-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    margin: 0 0.15rem;
}

.bf-site-nav .nav-link:hover,
.bf-site-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.bf-site-header .bf-site-login-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.bf-site-header .bf-site-login-btn:hover,
.bf-site-header .bf-site-login-btn:focus {
    color: var(--bf-primary);
    background: #fff;
    border-color: #fff;
}

.bf-site-footer {
    background: var(--bf-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0 1rem;
    margin-top: auto;
}

.bf-footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.bf-footer-brand span {
    color: #7dd3fc;
}

.bf-footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.bf-footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bf-footer-links li {
    margin-bottom: 0.4rem;
}

.bf-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.bf-footer-links a:hover {
    color: #7dd3fc;
}

.bf-footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Page hero banner */
.bf-page-hero {
    background: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-accent) 100%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    text-align: center;
}

.bf-page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.bf-page-hero p {
    margin: 0 auto;
    max-width: 600px;
    opacity: 0.9;
    font-size: 1.05rem;
}

.bf-page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* Home */
.bf-home-hero-full {
    background: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-accent) 55%, #1e88c9 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bf-home-hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.bf-home-hero-full .inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.bf-home-hero-full h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.bf-home-hero-full .lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.bf-home-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.bf-home-hero-btns .btn {
    min-width: 170px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.bf-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bf-value-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(13, 59, 102, 0.06);
}

.bf-value-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13,59,102,0.1), rgba(26,107,181,0.12));
    color: var(--bf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bf-value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bf-primary);
    margin-bottom: 0.5rem;
}

.bf-value-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.bf-mission-block {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(13, 59, 102, 0.06);
    margin-bottom: 2rem;
}

.bf-mission-block h2 {
    color: var(--bf-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bf-mission-block p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.bf-mission-block p:last-child {
    margin-bottom: 0;
}

.bf-cta-strip {
    background: linear-gradient(135deg, var(--bf-primary), var(--bf-accent));
    color: #fff;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.bf-cta-strip h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bf-cta-strip p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* About */
.bf-about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.bf-about-section.reverse .bf-about-text {
    order: 2;
}

.bf-about-section.reverse .bf-about-visual {
    order: 1;
}

.bf-about-visual {
    background: linear-gradient(135deg, rgba(13,59,102,0.08), rgba(26,107,181,0.12));
    border-radius: 14px;
    padding: 2.5rem;
    text-align: center;
}

.bf-about-visual i {
    font-size: 4rem;
    color: var(--bf-accent);
    margin-bottom: 1rem;
}

.bf-about-text h2 {
    color: var(--bf-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bf-about-text p {
    color: #475569;
    line-height: 1.7;
}

.bf-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.bf-stat-pill {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.bf-stat-pill .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bf-accent);
}

.bf-stat-pill .lbl {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Contact */
.bf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.bf-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bf-contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bf-contact-info-card i {
    color: var(--bf-accent);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.bf-contact-info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bf-primary);
    margin: 0 0 0.25rem;
}

.bf-contact-info-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.bf-contact-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(13, 59, 102, 0.06);
}

/* Register split */
.bf-register-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.bf-register-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: start;
}

.bf-register-aside {
    background: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-accent) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 2rem;
}

.bf-register-aside h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bf-register-step {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bf-register-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.bf-register-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(13, 59, 102, 0.08);
}

.bf-required {
    color: #dc3545;
    font-weight: 700;
}

.bf-optional {
    color: #64748b;
    font-weight: 400;
    font-size: 0.875em;
}

.bf-register-form-card .bf-form-field {
    display: flex;
    flex-direction: column;
}

.bf-register-form-card .form-label {
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.bf-register-form-card .bf-field-footer {
    display: block;
    min-height: 1.25rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Privacy / legal */
.bf-legal-content {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.7;
}

.bf-legal-content h2 {
    color: var(--bf-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.bf-legal-content h2:first-child {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .bf-about-section,
    .bf-about-section.reverse {
        grid-template-columns: 1fr;
    }

    .bf-about-section.reverse .bf-about-text,
    .bf-about-section.reverse .bf-about-visual {
        order: unset;
    }

    .bf-contact-grid,
    .bf-register-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .bf-login-partial .btn {
        width: 100%;
        margin: 0.25rem 0 !important;
    }
}
