/* Fundwise Wealth v1.0.6 — MSME-first business finance design layer. */
:root {
    --navy: #061a33;
    --navy-2: #0a3152;
    --navy-3: #0e4661;
    --teal: #078f98;
    --teal-dark: #056f78;
    --aqua: #dff4f1;
    --gold: #c79542;
    --gold-soft: #f6ead3;
    --ink: #12283d;
    --muted: #5d7183;
    --line: #d8e4e7;
    --soft: #f4f7f6;
    --ivory: #fbfaf5;
    --shadow: 0 24px 70px rgba(5, 31, 51, .12);
    --shadow-soft: 0 14px 38px rgba(5, 31, 51, .08);
    --ease-premium: cubic-bezier(.22, .75, .18, 1);
}

body {
    background: #fff;
    font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

.section {
    padding: 94px 0;
}

.section-head h1,
.section-head h2,
.content-block h1,
.content-block h2,
.msme-intro-copy h2,
.sector-copy h2,
.faq-intro h2 {
    letter-spacing: -.045em;
    line-height: 1.06;
    text-wrap: balance;
}

.section-head h2,
.content-block h2,
.msme-intro-copy h2,
.sector-copy h2,
.faq-intro h2 {
    font-size: clamp(35px, 4.2vw, 56px);
}

.eyebrow {
    letter-spacing: .16em;
}

.site-header {
    background: rgba(255, 255, 255, .965);
    border-color: rgba(6, 26, 51, .09);
}

.nav-wrap {
    min-height: 86px;
}

.brand {
    width: 268px;
}

.brand img {
    max-height: 69px;
}

.site-nav a {
    padding-block: 32px 28px;
}

.nav-actions .button {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-color: var(--teal);
}

.button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 10px;
    transition: transform .22s var(--ease-premium), box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.button::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, .22) 50%, transparent 78%);
    transform: translateX(-125%);
    transition: transform .58s var(--ease-premium);
}

.button:hover::after {
    transform: translateX(125%);
}

/* First fold: Admin-managed 25/75 promotional and video composition. */
.msme-hero {
    padding: 26px 0 80px;
    background:
        radial-gradient(circle at 76% 16%, rgba(4, 149, 157, .22), transparent 33%),
        radial-gradient(circle at 12% 92%, rgba(199, 149, 66, .10), transparent 25%),
        linear-gradient(145deg, #041429 0%, #082e51 100%);
}

.msme-hero::before {
    opacity: .75;
    background-size: 52px 52px;
}

.opening-grid {
    gap: 22px;
}

.ad-panel,
.video-slider,
.video-slide {
    min-height: 500px;
}

.ad-panel,
.video-slider {
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 32px 80px rgba(0, 9, 23, .32);
}

.ad-panel picture img,
.ad-panel > img {
    object-position: center;
    transition: transform 1.2s var(--ease-premium);
}

.ad-panel:hover picture img,
.ad-panel:hover > img {
    transform: scale(1.025);
}

.ad-panel::after {
    background: linear-gradient(180deg, rgba(2, 12, 26, .01) 30%, rgba(2, 12, 26, .97) 100%);
}

.ad-content {
    right: 26px;
    bottom: 27px;
    left: 26px;
}

.ad-content .badge {
    padding: 7px 11px;
    background: var(--gold);
    font-size: 10px;
}

.ad-content h2 {
    margin-top: 14px;
    font-size: clamp(27px, 2.25vw, 34px);
}

.video-slide::after {
    background: linear-gradient(90deg, rgba(2, 15, 31, .97) 0%, rgba(2, 15, 31, .78) 39%, rgba(2, 15, 31, .20) 71%, rgba(2, 15, 31, .05) 100%);
}

.video-slide img {
    transition: transform 7.4s linear;
}

.video-slide[aria-hidden="false"] img {
    transform: scale(1.035);
}

.video-slide-content {
    left: clamp(30px, 5vw, 68px);
    bottom: clamp(34px, 6vw, 64px);
    max-width: 655px;
}

.video-slide-content h2 {
    max-width: 650px;
    font-size: clamp(38px, 4.35vw, 60px);
    line-height: 1.01;
}

.video-slide-content p {
    max-width: 590px;
    font-size: 15px;
}

.play-button {
    position: relative;
    width: 70px;
    height: 70px;
}

.play-button::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: inherit;
    animation: msme-play-pulse 2.6s ease-out infinite;
}

@keyframes msme-play-pulse {
    0% { opacity: .65; transform: scale(.86); }
    70%, 100% { opacity: 0; transform: scale(1.2); }
}

.trust-bar {
    margin-top: -36px;
}

.trust-grid {
    border-radius: 20px;
}

.trust-item {
    min-height: 108px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #daf4f0, #edf8f3);
    color: var(--teal-dark);
    font-size: 13px;
}

.trust-icon b {
    font: inherit;
}

/* Business-need selector immediately explains the MSME positioning. */
.msme-intro {
    position: relative;
    overflow: hidden;
    background: var(--ivory);
}

.msme-intro::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    top: -245px;
    left: -180px;
    border: 1px solid rgba(7, 143, 152, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(7, 143, 152, .025), 0 0 0 110px rgba(7, 143, 152, .018);
}

.msme-intro-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: clamp(45px, 7vw, 100px);
    align-items: center;
}

.msme-intro-copy h2,
.faq-intro h2 {
    margin: 0 0 20px;
    color: var(--navy);
}

.msme-intro-copy > p,
.faq-intro > p {
    color: var(--muted);
    font-size: 16px;
}

.msme-signal {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 29px;
}

.msme-signal span {
    padding: 8px 11px;
    border: 1px solid #d7e1de;
    border-radius: 99px;
    background: rgba(255, 255, 255, .8);
    color: #415b69;
    font-size: 11px;
    font-weight: 750;
}

.need-panel {
    padding: 28px;
    border: 1px solid rgba(14, 57, 78, .11);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.need-kicker {
    display: block;
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.need-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.need-grid a {
    min-height: 142px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #fafbf8);
    text-decoration: none;
    transition: transform .24s var(--ease-premium), border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.need-grid a:hover {
    transform: translateY(-4px);
    border-color: #9bc9c8;
    background: #fff;
    box-shadow: 0 14px 32px rgba(5, 45, 61, .09);
}

.need-grid b {
    display: block;
    margin-bottom: 13px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .12em;
}

.need-grid span,
.need-grid small {
    display: block;
}

.need-grid span {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.need-grid small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

/* Editorial focus panels use Admin-managed images and copy. */
.home-gallery-section {
    padding: 94px 0 0;
    background:
        radial-gradient(circle at 78% 10%, rgba(7, 143, 152, .18), transparent 31%),
        linear-gradient(145deg, #041429, #092f50);
}

.home-gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 60px;
    align-items: end;
    padding-bottom: 42px;
}

.home-gallery-heading h2 {
    max-width: 760px;
    font-size: clamp(36px, 4.5vw, 58px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.home-gallery-heading p {
    max-width: 480px;
}

.home-gallery-grid {
    gap: 2px;
}

.home-gallery-card {
    min-height: clamp(440px, 37vw, 590px);
    border-radius: 0;
}

.home-gallery-card img {
    transition: transform .8s var(--ease-premium), filter .5s ease;
}

.home-gallery-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.home-gallery-content {
    right: 28px;
    bottom: 32px;
    left: 28px;
}

.home-gallery-content h3 {
    font-size: clamp(25px, 2.6vw, 36px);
}

.home-gallery-content p {
    max-width: 430px;
}

.home-gallery-content a {
    background: rgba(255, 255, 255, .95);
    color: var(--navy);
}

.msme-services {
    background: #fff;
}

.msme-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.section > .container > .services-grid:not(.msme-service-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.msme-service-grid .service-card {
    min-height: 310px;
    padding: 28px;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 21px;
    color: #a0b0ba;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.msme-service-grid .service-card::before {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #e0f4f1, #f6ead3);
}

.msme-service-grid .service-icon {
    background: linear-gradient(145deg, #061a33, #0d4561);
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Industry context builds trust without claiming a lender relationship. */
.sector-section {
    padding: 94px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(199, 149, 66, .15), transparent 25%),
        radial-gradient(circle at 86% 80%, rgba(7, 143, 152, .22), transparent 28%),
        #071c33;
    color: #fff;
}

.sector-layout {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    gap: clamp(55px, 8vw, 110px);
    align-items: center;
}

.sector-copy h2 {
    margin: 0 0 20px;
    color: #fff;
}

.sector-copy p {
    margin-bottom: 28px;
    color: #c9d8e5;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.sector-item {
    min-height: 112px;
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .025);
    transition: background .22s ease, transform .22s var(--ease-premium);
}

.sector-item:hover {
    background: rgba(7, 143, 152, .16);
    transform: translateY(-2px);
}

.sector-item b,
.sector-item span {
    display: block;
}

.sector-item b {
    margin-bottom: 16px;
    color: #e3bb73;
    font-size: 10px;
    letter-spacing: .14em;
}

.sector-item span {
    color: #eef5f8;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.msme-about .about-grid {
    gap: clamp(50px, 8vw, 105px);
}

.msme-about .image-card img {
    height: 610px;
    object-position: center;
}

.motion-image {
    overflow: visible;
}

.motion-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 26px -22px -26px 28px;
    border: 1px solid #c5d7d6;
    border-radius: 22px;
}

.motion-image img {
    transition: transform .7s var(--ease-premium);
}

.motion-image:hover img {
    transform: translate3d(0, -5px, 0);
}

.image-badge {
    right: -28px;
    bottom: 36px;
    background: linear-gradient(145deg, #061a33, #0b405c);
}

.msme-process {
    overflow: hidden;
}

.msme-process .process-grid::before {
    height: 2px;
    background: linear-gradient(90deg, transparent, #78bbb8 12%, #c7a15e 50%, #78bbb8 88%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s .25s var(--ease-premium);
}

.msme-process.is-visible .process-grid::before {
    transform: scaleX(1);
}

.msme-process .process-card {
    min-height: 245px;
    box-shadow: 0 1px 0 rgba(6, 26, 51, .02);
}

.msme-process .process-card::before {
    border-color: #fff;
    background: linear-gradient(145deg, #dff4f1, #f7edda);
}

.msme-tools {
    position: relative;
    background:
        radial-gradient(circle at 85% 20%, rgba(7, 143, 152, .20), transparent 27%),
        linear-gradient(145deg, #041429, #082d4d);
}

.msme-tools .feature-grid {
    gap: 28px;
}

.msme-tools .eligibility-preview,
.msme-tools .tool-card {
    min-height: 430px;
    border-radius: 25px;
}

.msme-tools .eligibility-preview {
    background: linear-gradient(145deg, rgba(7, 143, 152, .94), #07516a);
}

.tool-card {
    padding: clamp(30px, 5vw, 52px);
}

.tool-card h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.tool-card p,
.tool-card small {
    color: var(--muted);
}

.tool-card small {
    display: block;
    margin-top: 18px;
    font-size: 11px;
}

.institution-section .partner-card {
    background: rgba(255, 255, 255, .88);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(310px, .7fr) minmax(0, 1.3fr);
    gap: clamp(55px, 8vw, 110px);
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 120px;
}

.faq-intro .button {
    margin-top: 18px;
}

.faq-layout .faq-list {
    max-width: none;
}

.faq-layout .faq-item:first-child {
    border-top: 1px solid var(--line);
}

.faq-layout .faq-item button {
    padding: 25px 4px;
}

.msme-insights .blog-card {
    border-radius: 16px;
}

.msme-insights .blog-card img {
    height: 235px;
}

.contact-strip {
    background:
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .12), transparent 23%),
        linear-gradient(110deg, #07354f, #087d82);
}

.footer-brand p {
    max-width: 390px;
}

/* Performance-friendly staggered motion: opacity and transform only. */
.js.reveal-enabled [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .58s var(--ease-premium), transform .58s var(--ease-premium);
    transition-delay: var(--reveal-delay, 0ms);
}

.js.reveal-enabled [data-reveal].is-visible [data-reveal-group] > *,
.js.reveal-enabled [data-reveal].is-visible[data-reveal-group] > * {
    opacity: 1;
    transform: none;
}

@supports (content-visibility: auto) {
    .msme-services,
    .sector-section,
    .msme-about,
    .msme-process,
    .msme-tools,
    .institution-section,
    .msme-faq,
    .msme-insights {
        content-visibility: auto;
        contain-intrinsic-size: auto 820px;
    }
}

@media (max-width: 1180px) {
    .brand {
        width: 230px;
    }

    .site-nav {
        gap: 14px;
    }

    .msme-intro-grid {
        grid-template-columns: .85fr 1.15fr;
        gap: 45px;
    }

    .section > .container > .services-grid:not(.msme-service-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-wrap {
        min-height: 74px;
    }

    .brand {
        width: min(230px, 58vw);
    }

    .site-nav {
        top: 74px;
    }

    .ad-panel,
    .video-slider,
    .video-slide {
        min-height: 430px;
    }

    .msme-intro-grid,
    .sector-layout,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .home-gallery-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .msme-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section > .container > .services-grid:not(.msme-service-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sector-copy {
        max-width: 680px;
    }

    .faq-intro {
        position: static;
        max-width: 700px;
    }
}

@media (max-width: 640px) {
    .section,
    .sector-section {
        padding: 68px 0;
    }

    .brand {
        width: min(218px, 68vw);
    }

    .msme-hero {
        padding: 14px 0 58px;
    }

    .opening-grid {
        gap: 15px;
    }

    .ad-panel {
        min-height: 360px;
    }

    .video-slider,
    .video-slide {
        min-height: 395px;
    }

    .video-slide-content {
        bottom: 27px;
        left: 23px;
        right: 23px;
    }

    .video-slide-content h2 {
        max-width: 92%;
        font-size: 31px;
    }

    .video-slide-content p {
        max-width: 88%;
    }

    .play-button {
        width: 56px;
        height: 56px;
    }

    .trust-bar {
        margin-top: -24px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-item {
        min-height: 104px;
        padding: 15px 12px;
    }

    .trust-item strong {
        font-size: 12.5px;
    }

    .trust-item span {
        font-size: 10.5px;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 11px !important;
    }

    .msme-intro-grid {
        gap: 34px;
    }

    .msme-intro-copy h2,
    .sector-copy h2,
    .faq-intro h2,
    .section-head h2,
    .content-block h2 {
        font-size: 34px;
    }

    .need-panel {
        padding: 16px;
    }

    .need-grid {
        grid-template-columns: 1fr;
    }

    .need-grid a {
        min-height: 0;
    }

    .home-gallery-section {
        padding-top: 68px;
    }

    .home-gallery-heading h2 {
        font-size: 36px;
    }

    .home-gallery-card {
        min-height: 410px;
    }

    .msme-service-grid {
        grid-template-columns: 1fr;
    }

    .section > .container > .services-grid:not(.msme-service-grid) {
        grid-template-columns: 1fr;
    }

    .msme-service-grid .service-card {
        min-height: 0;
    }

    .sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sector-item {
        min-height: 104px;
        padding: 15px;
    }

    .msme-about .image-card img {
        height: 455px;
    }

    .motion-image::before {
        right: -8px;
        left: 18px;
    }

    .image-badge {
        right: -5px;
    }

    .msme-tools .eligibility-preview,
    .msme-tools .tool-card {
        min-height: 0;
    }

    .faq-layout {
        gap: 30px;
    }

    .msme-insights .blog-card img {
        height: 215px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .play-button::after {
        display: none;
    }

    .video-slide img,
    .motion-image img,
    .ad-panel picture img,
    .ad-panel > img,
    .js.reveal-enabled [data-reveal-group] > * {
        opacity: 1;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .msme-intro::before {
        display: none;
    }

    [data-reveal-group] > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
