/* ================= Financial Service Online — global styles ================= */
:root {
    --ink: #38233D;
    --muted: #806C80;
    --paper: #FFFCF8;
    --canvas: #FAF5EE;
    --line: #E5DCD4;

    --navy: #302035;
    --blue: #B85C38;
    --cyan: #F5DED1;
    --lime: #C5D3B5;
    --gold: #E6D3A3;

    --shadow: 0 24px 70px rgba(56, 35, 61, .10);
    --radius: 24px;
}
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.65;
    overflow-x: hidden
}

a {
    text-decoration: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08
}

p {
    color: var(--muted)
}

.container-xl {
    max-width: 1220px
}

.section {
    padding: 104px 0;
    position: relative
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3.7rem);
    letter-spacing: -.055em
}

.section-text {
    font-size: 1.04rem;
    max-width: 660px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase
}

.eyebrow:before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--blue)
}

.btn-main,
.btn-lightx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    padding: 14px 21px;
    font-weight: 800;
    transition: .25s
}

.btn-main {
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    box-shadow: 0 12px 24px rgba(40, 104, 223, .18)
}

.btn-main:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: translateY(-2px)
}

.btn-lightx {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line)
}

.btn-lightx:hover {
    border-color: var(--blue);
    color: var(--blue)
}

.nav-wrap {
    position: fixed;
    z-index: 9990;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px max(24px, calc((100vw - 1220px)/2));
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(220, 228, 237, .8);
    backdrop-filter: blur(16px);
    transition: .25s
}

.nav-wrap.scrolled {
    box-shadow: 0 10px 30px rgba(20, 36, 58, .08)
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 800;
    white-space: nowrap
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--lime);
    border-radius: 12px;
    font-size: 1.2rem
}

.nav-linkx {
    padding: 10px 13px;
    color: #627186;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 9px
}

.nav-linkx:hover,
.nav-linkx.active {
    color: var(--blue);
    background: #edf3ff
}

.mobile-menu {
    display: none;
    position: fixed;
    z-index: 9989;
    top: 72px;
    left: 12px;
    right: 12px;
    background: #fff;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow)
}

.mobile-toggle {
    display: none !important
}

.hero {
    min-height: 760px;
    padding: 160px 0 100px;
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden
}

.hero:before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    right: -100px;
    top: 60px;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, .025), 0 0 0 130px rgba(255, 255, 255, .02)
}

.hero:after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    background: var(--blue);
    filter: blur(120px);
    opacity: .35;
    right: 16%;
    top: 20%
}

.hero .container {
    position: relative;
    z-index: 1
}

.hero .eyebrow {
    color: var(--lime)
}

.hero .eyebrow:before {
    background: var(--lime)
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: 1.02;
    max-width: 760px;
    letter-spacing: -.055em
}

.hero-title .highlight {
    color: var(--lime);
    font-style: italic
}

.hero .section-text {
    color: rgba(255, 255, 255, .72);
    max-width: 590px
}

.hero .btn-lightx {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .28)
}

.hero .btn-lightx:hover {
    background: #fff;
    color: var(--navy)
}

.hero-ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 42px;
    color: rgba(255, 255, 255, .72);
    font-size: .85rem
}

.hero-ticker span {
    display: flex;
    align-items: center;
    gap: 8px
}

.hero-board {
    background: #fff;
    color: var(--ink);
    border-radius: 22px;
    padding: 25px;
    max-width: 420px;
    margin-left: auto;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .25);
    transform: rotate(2deg)
}

.board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px
}

.board-tag {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--blue);
    text-transform: uppercase
}

.board-total {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.06em
}

.board-chart {
    height: 140px;
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 16px 8px 0;
    border-bottom: 1px solid var(--line)
}

.board-chart span {
    flex: 1;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, #7cb8f4, #2868df)
}

.board-chart span:nth-child(1) {
    height: 35%
}

.board-chart span:nth-child(2) {
    height: 52%
}

.board-chart span:nth-child(3) {
    height: 43%
}

.board-chart span:nth-child(4) {
    height: 70%
}

.board-chart span:nth-child(5) {
    height: 62%
}

.board-chart span:nth-child(6) {
    height: 90%
}

.board-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    font-size: .82rem
}

.board-metric b {
    display: block;
    color: var(--navy);
    font-size: 1.2rem
}

.hero-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--lime);
    color: var(--navy);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 800;
    margin-top: 18px
}

.intro-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: start
}

.intro-side {
    position: sticky;
    top: 120px
}

.intro-side .section-title {
    font-family: "Playfair Display", serif
}

.intro-copy {
    padding: 32px 0;
    border-top: 1px solid var(--line)
}

.mission-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px
}

.mission-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 16px;
    min-height: 180px
}

.mission-card .about-icon {
    font-size: 1.6rem;
    margin-bottom: 18px
}

.mission-card h5 {
    font-size: 1rem
}

.mission-card p {
    font-size: .87rem;
    margin: 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 42px
}

.section-head .section-text {
    max-width: 390px
}

.service-shell {
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 22px;
    align-items: start
}

.service-tabs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: sticky;
    top: 105px
}

.service-tab {
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    padding: 15px 17px;
    border-radius: 12px;
    font-weight: 800;
    color: #6b7a8d;
    transition: .2s
}

.service-tab:hover {
    background: #fff;
    color: var(--blue)
}

.service-tab.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px rgba(16, 36, 61, .14)
}

.service-area {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 15px 40px rgba(18, 39, 66, .04)
}

.category-layout {
    display: none
}

.category-layout.active {
    display: block
}

.category-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--line)
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: #edf3ff;
    display: grid;
    place-items: center;
    font-size: 1.6rem
}

.category-head h3 {
    margin: 0 0 6px
}

.category-head p {
    font-size: .9rem
}

.loan-road,
.shield-grid,
.invest-row,
.wealth-path,
.payment-phone,
.debt-flow,
.home-plan,
.auto-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px
}

.loan-item,
.shield-card,
.invest-card,
.wealth-step,
.pay-row,
.debt-card,
.home-room,
.auto-card {
    background: #f5f8fc;
    border: 1px solid #e6edf5;
    border-radius: 15px;
    padding: 19px;
    min-width: 0
}

.loan-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px
}

.loan-index {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #e1ebff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 800
}

.service-title {
    font-size: 1rem;
    margin: 0 0 8px
}

.service-desc {
    font-size: .85rem;
    line-height: 1.65;
    margin: 0 0 12px
}

.service-btn {
    font-size: .8rem;
    font-weight: 800;
    color: var(--blue)
}

.service-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px
}

.wealth-step,
.pay-row {
    display: flex;
    gap: 14px
}

.wealth-step .service-emoji,
.pay-row .service-emoji {
    flex: 0 0 35px
}

.phone-frame {
    display: none
}

.benefit-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px
}

.benefit-feature {
    background: var(--navy);
    color: #fff;
    border-radius: 22px;
    padding: 36px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.benefit-feature p {
    color: rgba(255, 255, 255, .7);
    max-width: 500px
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.benefit {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px
}

.benefit h4 {
    font-size: 1rem
}

.benefit p {
    font-size: .84rem;
    margin: 0
}

.process-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 50px
}

.process-step {
    padding: 25px 22px 0 0;
    position: relative
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-top: -46px;
    margin-bottom: 24px;
    box-shadow: 0 0 0 8px var(--canvas)
}

.process-step h4 {
    font-size: 1.1rem
}

.process-step p {
    font-size: .88rem
}

.quote-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px
}

.quote {
    background: #fff;
    border: 1px solid var(--line);
    padding: 25px;
    border-radius: 18px
}

.quote:first-child {
    background: #eaf2ff;
    border-color: #d7e5ff
}

.quote p {
    font-size: .9rem
}

.avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 800
}

.faq-layout {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 70px;
    align-items: start
}

.faq-side {
    position: sticky;
    top: 120px
}

.faq-list {
    display: grid;
    gap: 10px
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 20px
}

.faq-q {
    padding: 19px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-weight: 800;
    cursor: pointer
}

.faq-q i {
    color: var(--blue);
    transition: .2s
}

.faq-a {
    display: none;
    color: var(--muted);
    font-size: .9rem;
    padding: 0 30px 18px 0
}

.faq-item.open .faq-a {
    display: block
}

.faq-item.open .faq-q i {
    transform: rotate(45deg)
}

.newsletter {
    background: var(--cyan);
    border: 1px solid #c8e7e8;
    border-radius: 24px;
    padding: 38px
}

.newsletter .section-title {
    font-family: "Playfair Display", serif
}

.newsletter .form-card {
    background: #fff
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 22px
}

.contact-aside {
    background: var(--navy);
    color: #fff;
    padding: 34px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.contact-aside p {
    color: rgba(255, 255, 255, .7)
}

.contact-aside .info-card {
    display: flex;
    gap: 14px;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13)
}

.contact-aside .info-card:last-child {
    border: 0
}

.contact-aside h5 {
    font-size: .95rem;
    color: #fff
}

.contact-aside .text-muted {
    color: rgba(255, 255, 255, .72) !important
}

.info-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
    color: var(--lime);
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow)
}

.form-label {
    font-size: .85rem;
    font-weight: 800
}

.form-label span {
    color: #d45b5b
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 13px;
    font-size: .9rem
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem rgba(40, 104, 223, .12)
}

.cta {
    background: var(--blue);
    color: #fff;
    padding: 50px;
    border-radius: 22px;
    text-align: center
}

.cta p {
    color: rgba(255, 255, 255, .78);
    max-width: 650px;
    margin: auto
}

.cta .eyebrow {
    color: var(--lime)
}

.cta .eyebrow:before {
    background: var(--lime)
}

.cta .btn-main {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--navy)
}

footer {
    background: #0b192b;
    color: #fff;
    padding: 70px 0 28px
}

footer a {
    display: block;
    color: rgba(255, 255, 255, .65);
    margin: 10px 0;
    font-size: .9rem
}

footer a:hover {
    color: var(--lime)
}

footer p {
    color: rgba(255, 255, 255, .65)
}

#preloader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 99999;
    display: grid;
    place-items: center;
    transition: .45s
}

#preloader.hide {
    opacity: 0;
    visibility: hidden
}

.loader-card {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: #fff;
    display: grid;
    place-items: center
}

.loader-mark {
    font-size: 2rem;
    color: var(--blue)
}

#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--lime);
    z-index: 10000
}

.toast-area {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 99999;
    display: grid;
    gap: 10px
}

.toast-note {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    animation: toastIn .3s
}

.toast-note i {
    color: #18845c
}

@keyframes toastIn {
    from {
        transform: translateX(110%);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

.modal-content {
    border: 0;
    border-radius: 18px
}

.modal-header {
    border-bottom: 1px solid var(--line)
}

@media(max-width:991px) {

    .nav-links,
    .nav-wrap>.d-flex>.btn-main {
        display: none !important
    }

    .mobile-toggle {
        display: inline-flex !important
    }

    .hero {
        padding: 135px 0 80px
    }

    .hero-board {
        margin: 15px auto 0;
        transform: none
    }

    .intro-layout,
    .faq-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .intro-side,
    .faq-side {
        position: static
    }

    .mission-stack {
        grid-template-columns: repeat(3, 1fr)
    }

    .benefit-layout {
        grid-template-columns: 1fr
    }

    .service-shell {
        grid-template-columns: 1fr
    }

    .service-tabs {
        position: static;
        flex-direction: row;
        overflow: auto;
        padding-bottom: 5px
    }

    .service-tab {
        white-space: nowrap
    }

    .process-layout {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 38px
    }

    .process-step {
        padding-top: 20px
    }

    .quote-grid {
        grid-template-columns: 1fr 1fr
    }

    .quote:first-child {
        grid-column: span 2
    }
}

@media(max-width:575px) {
    .section {
        padding: 72px 0
    }

    .hero-title {
        font-size: 3.15rem
    }

    .hero-board {
        padding: 19px
    }

    .mission-stack,
    .benefit-grid,
    .process-layout,
    .quote-grid,
    .loan-road,
    .shield-grid,
    .invest-row,
    .wealth-path,
    .payment-phone,
    .debt-flow,
    .home-plan,
    .auto-board {
        grid-template-columns: 1fr
    }

    .quote:first-child {
        grid-column: auto
    }

    .section-head {
        display: block
    }

    .service-area {
        padding: 18px
    }

    .category-head {
        align-items: flex-start
    }

    .newsletter {
        padding: 23px
    }

    .form-card {
        padding: 20px
    }

    .contact-aside {
        padding: 24px
    }

    .cta {
        padding: 34px 22px
    }

    .process-step {
        padding-right: 0
    }

    .process-layout {
        border-top: 0
    }

    .step-num {
        margin-top: 0;
        box-shadow: none
    }

    .hero-ticker {
        gap: 12px
    }

    .brand {
        font-size: .95rem
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}

/* ================= Multi-page additions ================= */
/* Compact hero for inner pages */
.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 168px 0 84px;
    position: relative;
    overflow: hidden
}

.page-hero:before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    right: -120px;
    top: 40px;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, .025), 0 0 0 130px rgba(255, 255, 255, .02)
}

.page-hero:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--blue);
    filter: blur(120px);
    opacity: .35;
    right: 12%;
    top: 15%
}

.page-hero .container {
    position: relative;
    z-index: 1
}

.page-hero .eyebrow {
    color: var(--lime)
}

.page-hero .eyebrow:before {
    background: var(--lime)
}

.page-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    letter-spacing: -.05em;
    max-width: 820px
}

.page-hero .section-text {
    color: rgba(255, 255, 255, .72)
}

/* Legal pages (privacy / terms) */
.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 38px;
    box-shadow: var(--shadow)
}

.legal-card p:last-child {
    margin-bottom: 0
}

/* Utility classes replacing former inline styles */
.btn-nav {
    padding: 10px 18px;
    font-size: .88rem
}

.btn-menu {
    padding: 9px 13px
}

.eyebrow-lime {
    color: var(--lime)
}

.btn-lime,
.btn-lime:hover {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--navy)
}

.stars {
    color: #d59b28
}

.link-blue {
    color: var(--blue)
}

.link-blue:hover {
    color: var(--navy)
}

.form-flat {
    box-shadow: none
}

.req-star {
    color: #b4543f
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14)
}

.footer-copy {
    color: rgba(255, 255, 255, .55)
}

/* Payments skeleton (kept hidden as in the original) */
.dot-ok {
    color: #18845c
}

.phone-bars {
    display: grid;
    gap: 10px
}

.phone-bar {
    height: 12px;
    background: #e7edf5;
    border-radius: 999px
}

.phone-bar.w70 {
    width: 70%
}

.phone-note {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    background: #f5f8fc
}

.pay-list {
    display: grid;
    gap: 13px;
    min-width: 0
}

.gauge {
    width: 100%;
    max-width: 170px;
    height: auto;
    display: block;
    margin-bottom: 8px
}

@media(max-width:575px) {
    .page-hero {
        padding: 130px 0 60px
    }

    .legal-card {
        padding: 22px
    }
}