/* Fundwise Wealth v1.0.4 — Premium Financial Trust design layer. */
:root {
    --navy: #061a33;
    --navy-2: #0b3355;
    --teal: #078f98;
    --teal-dark: #04747d;
    --aqua: #e3f5f3;
    --gold: #b99655;
    --gold-soft: #f6eedf;
    --ink: #14283d;
    --muted: #617487;
    --line: #d9e4e8;
    --soft: #f6f8f7;
    --ivory: #fbfaf6;
    --shadow: 0 22px 64px rgba(8, 35, 57, .10);
    --shadow-soft: 0 12px 36px rgba(8, 35, 57, .07);
    --radius: 22px;
}

html {
    scroll-padding-top: 94px;
}

body {
    background: #fff;
    color: var(--ink);
    text-rendering: optimizeLegibility;
}

::selection {
    background: #bfe8e5;
    color: var(--navy);
}

:focus-visible {
    outline: 3px solid rgba(7, 143, 152, .35);
    outline-offset: 3px;
}

/* Clear, light navigation keeps the approved navy/teal logo legible. */
.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(16, 45, 67, .09);
    box-shadow: 0 2px 18px rgba(7, 31, 51, .035);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 12px 38px rgba(7, 31, 51, .09);
}

.nav-wrap {
    min-height: 84px;
    gap: 22px;
}

.brand {
    width: 250px;
}

.brand img,
.admin-brand img,
.login-logo {
    width: 100%;
    height: auto;
    max-height: 67px;
    object-fit: contain;
    object-position: left center;
    filter: none;
}

.site-nav {
    gap: 21px;
}

.site-nav a {
    padding: 31px 0 27px;
    color: #344b61;
    font-weight: 720;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--navy);
    border-color: var(--teal);
}

.phone-link {
    color: var(--navy);
}

.phone-link span {
    color: #75879a;
}

.nav-actions .button {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: 0 9px 22px rgba(7, 143, 152, .18);
}

.menu-toggle {
    color: var(--navy);
}

.menu-toggle span {
    background: var(--navy);
}

.button {
    border-radius: 11px;
    box-shadow: 0 9px 24px rgba(6, 26, 51, .12);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
    box-shadow: 0 14px 30px rgba(6, 26, 51, .17);
}

.button-ghost {
    box-shadow: none;
}

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

.section {
    padding: 92px 0;
}

.section-soft {
    background: linear-gradient(180deg, #f7f9f9 0%, var(--ivory) 100%);
}

.section-head {
    gap: 38px;
    margin-bottom: 40px;
}

.section-head h1,
.section-head h2,
.content-block h1,
.content-block h2 {
    text-wrap: balance;
}

.section-head p,
.content-block > p {
    font-size: 15px;
}

/* Homepage opening: fixed 25/75 desktop composition with fast, click-to-load video. */
.hero {
    position: relative;
    padding: 28px 0 80px;
    background:
        radial-gradient(circle at 70% 18%, rgba(7, 143, 152, .20), transparent 34%),
        radial-gradient(circle at 14% 92%, rgba(185, 150, 85, .10), transparent 25%),
        linear-gradient(145deg, #05162d 0%, #082b50 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.opening-grid {
    position: relative;
    grid-template-columns: minmax(250px, 3fr) minmax(0, 9fr);
    gap: 20px;
}

.ad-panel,
.video-slider {
    min-height: 445px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 25px;
    box-shadow: 0 30px 70px rgba(0, 8, 20, .28);
}

.ad-panel::after {
    background: linear-gradient(180deg, rgba(3, 16, 34, .04) 15%, rgba(3, 16, 34, .94) 100%);
}

.ad-content {
    right: 24px;
    bottom: 25px;
    left: 24px;
}

.ad-content .badge {
    background: var(--gold);
    color: #fff;
}

.ad-content h2 {
    font-size: clamp(25px, 2.15vw, 31px);
    letter-spacing: -.025em;
}

.ad-content .button {
    color: var(--navy);
    box-shadow: none;
}

.video-slide {
    min-height: 445px;
}

.video-slide::after {
    background: linear-gradient(90deg, rgba(3, 17, 35, .94) 0%, rgba(3, 17, 35, .61) 49%, rgba(3, 17, 35, .12) 100%);
}

.video-slide-content {
    max-width: 650px;
}

.video-slide-content h2 {
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.play-button {
    width: 66px;
    height: 66px;
    transition: transform .2s ease, background .2s ease;
}

.play-button:hover {
    transform: scale(1.06);
    background: #e9f8f6;
}

.slider-controls button {
    width: 46px;
    height: 46px;
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}

.slider-controls button:hover {
    transform: translateY(-2px);
    background: rgba(7, 143, 152, .82);
}

.slider-dots {
    position: absolute;
    z-index: 5;
    right: 22px;
    top: 20px;
    display: flex;
    gap: 7px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.slider-dot.active {
    width: 25px;
    background: #fff;
}

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

.trust-grid {
    border-color: rgba(15, 54, 76, .10);
    border-radius: 19px;
    box-shadow: 0 22px 55px rgba(9, 37, 58, .12);
}

.trust-item {
    min-height: 104px;
    padding: 23px 25px;
}

.trust-icon {
    flex: 0 0 auto;
    border: 1px solid rgba(7, 143, 152, .08);
}

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

.trust-item span {
    line-height: 1.35;
}

/* Three editorial image panels — all content remains Admin-managed. */
.home-gallery-section {
    padding-top: 88px;
    background: linear-gradient(145deg, #05162d, #092d4f);
}

.home-gallery-heading {
    padding-bottom: 38px;
}

.home-gallery-heading p {
    color: #c9d7e3;
}

.home-gallery-card {
    min-height: clamp(400px, 32vw, 535px);
}

.home-gallery-card::after {
    background: linear-gradient(180deg, rgba(2,12,27,.02) 25%, rgba(2,12,27,.93) 100%);
}

.home-gallery-content a {
    border-radius: 9px;
}

/* Balanced card grids and clearer hierarchy. */
.services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 24px 22px;
    border-color: #dce6e9;
    border-radius: 17px;
    box-shadow: 0 1px 0 rgba(6, 26, 51, .02);
}

.service-card::before {
    background: linear-gradient(135deg, #e8f6f4, #f7f1e5);
}

.service-card p {
    flex: 1;
}

.service-card a {
    align-self: flex-start;
}

.service-icon {
    border-radius: 13px;
    background: linear-gradient(145deg, var(--navy), #0b3c60);
}

.image-card img {
    border-radius: 22px;
}

.image-badge {
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg, var(--navy), #0a3f61);
}

.process-grid {
    position: relative;
    gap: 20px;
}

.process-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 45px;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b9d8d8 12%, #b9d8d8 88%, transparent);
}

.process-card {
    position: relative;
    z-index: 1;
    padding: 25px 23px;
    border-radius: 17px;
    background: rgba(255,255,255,.98);
}

.process-card::before {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border: 7px solid #fff;
    border-radius: 50%;
    background: var(--aqua);
    box-shadow: 0 0 0 1px #cfe2e3;
    display: grid;
    place-items: center;
    font-size: 17px;
}

.section-dark {
    background:
        radial-gradient(circle at 80% 20%, rgba(7, 143, 152, .16), transparent 30%),
        var(--navy);
}

.eligibility-preview,
.mini-form {
    min-height: 370px;
}

.mini-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ivory);
}

.partner-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.partner-card {
    min-height: 90px;
    border-radius: 13px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    border-color: #a9d2d3;
    box-shadow: var(--shadow-soft);
}

.partner-card img {
    filter: saturate(.75);
    transition: filter .2s ease;
}

.partner-card:hover img {
    filter: saturate(1);
}

.faq-list {
    max-width: 920px;
}

.faq-item {
    border-bottom-color: #d9e4e8;
}

.faq-item button {
    padding: 23px 2px;
}

.faq-answer {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 2px;
    opacity: 0;
    transition: max-height .38s ease, opacity .28s ease, padding .38s ease;
}

.faq-item.open .faq-answer {
    max-height: 520px;
    padding: 0 2px 22px;
    opacity: 1;
}

.blog-card {
    box-shadow: 0 1px 0 rgba(6, 26, 51, .02);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.blog-card img {
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #bfd8db;
    box-shadow: var(--shadow-soft);
}

.blog-card:hover img {
    transform: scale(1.035);
}

/* Inner pages inherit the premium palette without hiding useful content. */
.page-hero {
    padding: 76px 0;
    background:
        radial-gradient(circle at 82% 10%, rgba(7, 143, 152, .23), transparent 29%),
        linear-gradient(135deg, #061a33, #0a3455);
}

.page-hero .section-head > div {
    max-width: 1020px;
}

.form-card,
.mini-form,
.side-card {
    border-color: #d9e4e8;
    box-shadow: var(--shadow-soft);
}

.field input,
.field select,
.field textarea {
    min-height: 48px;
    border-color: #c5d4dc;
}

.field textarea {
    min-height: 126px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(7, 143, 152, .10);
}

.privacy-promise {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.privacy-promise::before {
    content: "✓";
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--aqua);
    color: var(--teal-dark);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}

.eligibility-preview .privacy-promise {
    color: #d2e2ec;
}

.eligibility-preview .privacy-promise::before {
    background: rgba(255,255,255,.14);
    color: #9ce5df;
}

/* Conversion strip and footer. */
.contact-strip {
    background: linear-gradient(110deg, #073b58, #087f86);
}

.contact-strip h2 {
    text-wrap: balance;
}

.contact-strip-trust {
    display: block;
    margin-top: 10px;
    color: #d8eeed;
    font-size: 12px;
}

.site-footer {
    background:
        radial-gradient(circle at 12% 8%, rgba(7, 143, 152, .10), transparent 26%),
        #031126;
    color: #c4d2df;
}

.footer-grid {
    grid-template-columns: 1.55fr .68fr .8fr 1.15fr;
}

.footer-brand img {
    width: min(330px, 100%);
    height: auto;
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
    filter: none;
}

.footer-brand p {
    color: #b9c9d7;
}

.site-footer h3 {
    color: #fff;
    letter-spacing: .02em;
}

.site-footer a {
    color: #c4d2df;
}

.footer-bottom {
    align-items: end;
}

.footer-bottom-meta {
    max-width: 620px;
}

.developer-credit {
    border-color: rgba(138, 227, 223, .30);
    background: linear-gradient(135deg, rgba(7, 143, 152, .18), rgba(255,255,255,.045));
    color: #d0dde8;
}

.developer-credit a {
    background: rgba(7, 143, 152, .24);
    color: #a8f0eb;
}

/* Lightweight reveal: transform/opacity only and disabled for reduced motion. */
.js.reveal-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .62s cubic-bezier(.2,.7,.2,1), transform .62s cubic-bezier(.2,.7,.2,1);
}

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

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-soft);
    }
}

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

    .site-nav {
        gap: 15px;
    }

    .site-nav a {
        font-size: 12.5px;
    }

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

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

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

    .site-nav {
        top: 74px;
        background: rgba(255,255,255,.99);
        border-top: 1px solid var(--line);
        box-shadow: 0 22px 44px rgba(7, 31, 51, .12);
    }

    .site-nav a {
        color: var(--navy);
        border-bottom-color: var(--line);
    }

    .site-nav a:hover,
    .site-nav a.active {
        color: var(--teal-dark);
    }

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

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

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

    .process-grid::before {
        display: none;
    }

    .partner-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    html {
        scroll-padding-top: 75px;
    }

    .section {
        padding: 66px 0;
    }

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

    .hero {
        padding: 14px 0 57px;
    }

    .opening-grid {
        gap: 14px;
    }

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

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

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

    .slider-dots {
        top: 15px;
        right: 15px;
    }

    .trust-item {
        min-height: 92px;
        padding: 16px 13px;
    }

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

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

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

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

    .process-card {
        padding: 22px;
    }

    .eligibility-preview,
    .mini-form {
        min-height: 0;
    }

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

    .page-hero {
        padding: 55px 0;
    }

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

    .footer-brand img {
        width: min(310px, 100%);
    }

    .footer-bottom {
        align-items: start;
    }

    .footer-bottom-meta {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js.reveal-enabled [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .contact-strip,
    .mobile-actions,
    .video-modal {
        display: none !important;
    }

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