/*
=================================================
FINANCEHUB — HOME FINAL
Visual aprovado: mockup 08/08/2026
Arquivo exclusivo da Home.
=================================================
*/

.financehub-home {
    --home-navy: #081a3d;
    --home-blue: #1559e8;
    --home-cyan: #0ea5e9;
    --home-text: #0c1a33;
    --home-muted: #5f6f88;
    --home-border: #d8e1ee;
    --home-soft: #f4f7fb;
    --home-white: #ffffff;
    --home-shadow: 0 14px 35px rgba(16, 39, 80, .06);
    margin: 0;
    color: var(--home-text);
    background: var(--home-soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.financehub-home *,
.financehub-home *::before,
.financehub-home *::after {
    box-sizing: border-box;
}

.financehub-home a {
    color: inherit;
}

.home-container {
    width: min(91%, 1420px);
    margin-inline: auto;
}

.home-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 11px 15px;
    border-radius: 10px;
    color: #fff;
    background: var(--home-navy);
    transform: translateY(-150%);
}

.home-skip-link:focus {
    transform: translateY(0);
}


/* HEADER */

.home-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--home-border);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
}

.home-header-inner {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 78px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
}

.home-brand img {
    display: block;
    width: 165px;
    height: auto;
}

.home-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.home-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #17233a;
    font-size: 14px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.home-navigation a:hover,
.home-navigation a.active {
    color: var(--home-blue);
    background: #edf3ff;
}

.home-menu-button {
    display: none;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    color: var(--home-navy);
    background: #fff;
    font-weight: 800;
}


/* REUSABLE */

.home-section {
    padding: 58px 0 70px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid #cad9f5;
    border-radius: 999px;
    color: var(--home-blue);
    background: #eef4ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 30px;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--home-navy);
    font-size: clamp(34px, 3.5vw, 48px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.home-section-heading p {
    margin: 0;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.7;
}


/* HERO */

.home-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--home-border);
    background:
        radial-gradient(circle at 8% 15%, rgba(21, 89, 232, .07), transparent 31%),
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, .06), transparent 27%),
        #f9fbfe;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    align-items: center;
    gap: 62px;
}

.home-hero-copy h1 {
    max-width: 690px;
    margin: 0 0 18px;
    color: var(--home-navy);
    font-size: clamp(46px, 4.7vw, 68px);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 790;
}

.home-hero-copy h1 span {
    display: block;
    color: var(--home-blue);
}

.home-hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.72;
}

.home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
}

.home-hero-stats > div {
    display: grid;
    grid-template-columns: 42px auto;
    align-items: center;
    gap: 10px;
}

.home-hero-stats > div > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--home-blue);
    background: #eaf1ff;
    font-size: 19px;
    font-weight: 900;
}

.home-hero-stats p {
    display: grid;
    margin: 0;
}

.home-hero-stats strong {
    color: var(--home-navy);
    font-size: 17px;
}

.home-hero-stats small {
    color: var(--home-muted);
    font-size: 11px;
}

.home-hero-search {
    position: relative;
    padding: 28px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(22, 44, 84, .08);
}

.home-search-field {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    min-height: 62px;
    padding: 0 16px;
    border: 1px solid #c8d5e9;
    border-radius: 12px;
    background: #fbfdff;
}

.home-search-field > span {
    color: #8b9ab1;
    font-size: 26px;
}

.home-search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--home-text);
    background: transparent;
    font: inherit;
    font-size: 16px;
}

.home-hero-search > p {
    margin: 13px 8px 0;
    color: var(--home-muted);
    font-size: 13px;
}

.home-search-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    color: #708097;
    font-size: 12px;
}

.home-search-hint a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--home-blue);
    background: #edf3ff;
    text-decoration: none;
    font-weight: 900;
}

.home-search-results {
    position: absolute;
    z-index: 30;
    left: 28px;
    right: 28px;
    top: calc(100% - 18px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 330px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(16, 39, 80, .16);
}

.home-search-results a {
    padding: 13px 14px;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fbfcff;
    text-decoration: none;
}

.home-search-results a:hover {
    border-color: #bdd0f4;
    background: #f2f6ff;
}

.home-search-results strong,
.home-search-results small {
    display: block;
}

.home-search-results strong {
    margin-bottom: 3px;
    color: var(--home-navy);
    font-size: 13px;
}

.home-search-results small {
    color: var(--home-muted);
    font-size: 11px;
}


/* CATEGORIES */

.home-categories {
    background: var(--home-soft);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.home-category-card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    min-height: 395px;
    padding: 25px 26px 23px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--home-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    border-color: #c6d6ef;
    box-shadow: 0 18px 42px rgba(16, 39, 80, .09);
}

.home-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.home-category-index,
.home-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-category-index {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--home-blue);
    background: #edf3ff;
    font-size: 12px;
    font-weight: 900;
}

.home-category-icon {
    width: 36px;
    height: 36px;
    color: var(--home-blue);
    font-size: 24px;
    font-weight: 900;
}

.home-category-card h3 {
    margin: 0 0 13px;
    color: var(--home-navy);
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.home-category-card p {
    margin: 0 0 20px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
}

.home-category-card ul {
    display: grid;
    gap: 9px;
    margin: 0 0 23px;
    padding: 0;
    list-style: none;
}

.home-category-card li {
    position: relative;
    padding-left: 18px;
    color: #33445e;
    font-size: 13px;
    line-height: 1.45;
}

.home-category-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-cyan);
}

.home-category-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e4eaf2;
    color: var(--home-blue);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}


/* FAQ */

.home-faq {
    border-top: 1px solid var(--home-border);
    background: #fff;
}

.home-faq-list {
    display: grid;
    gap: 10px;
    max-width: 940px;
    margin: 0 auto;
}

.home-faq-list details {
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #f9fbfe;
}

.home-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    color: var(--home-navy);
    cursor: pointer;
    font-weight: 780;
    list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
    display: none;
}

.home-faq-list summary span {
    color: var(--home-blue);
    font-size: 20px;
}

.home-faq-list details[open] summary span {
    transform: rotate(45deg);
}

.home-faq-list details > p {
    margin: 0 20px 18px;
    color: var(--home-muted);
    line-height: 1.65;
}

.home-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    margin-top: 48px;
    border: 1px dashed #c8d0dc;
    border-radius: 16px;
    color: #7b8797;
    background: #edf1f5;
}


/* FOOTER */

.home-footer {
    color: rgba(255,255,255,.72);
    background: #08265c;
}

.home-footer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.45fr) minmax(170px, .75fr) minmax(180px, .8fr) minmax(180px, .7fr);
    gap: 50px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.home-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 9px;
    background: #fff;
}

.home-footer-logo img {
    display: block;
    width: 160px;
    height: auto;
}

.home-footer-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.67);
    font-size: 13px;
    line-height: 1.65;
}

.home-footer h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 14px;
}

.home-footer nav {
    display: grid;
    gap: 8px;
}

.home-footer nav a {
    color: rgba(255,255,255,.70);
    font-size: 13px;
    text-decoration: none;
}

.home-footer nav a:hover {
    color: #fff;
}

.home-footer-status ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,.70);
    font-size: 13px;
}

.home-footer-disclaimer {
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.home-footer-disclaimer p {
    max-width: 1050px;
    margin: 0;
    color: rgba(255,255,255,.52);
    font-size: 11px;
    line-height: 1.55;
}

.home-footer-bottom .home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 62px;
    color: rgba(255,255,255,.58);
    font-size: 11px;
}

.home-footer-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 24px;
}

.home-footer-trust span {
    position: relative;
}

.home-footer-trust span + span::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 1px;
    height: 13px;
    background: rgba(255,255,255,.25);
    transform: translateY(-50%);
}


/* RESPONSIVE */

@media (max-width: 1180px) {
    .home-header-inner {
        grid-template-columns: 160px 1fr;
        gap: 18px;
    }

    .home-navigation a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr 440px;
        gap: 38px;
    }

    .home-category-card {
        grid-column: span 6;
    }

    .home-category-card:nth-child(n+5) {
        grid-column: span 6;
    }

    .home-category-card:last-child {
        grid-column: 4 / span 6;
    }
}

@media (max-width: 980px) {
    .home-header-inner {
        grid-template-columns: 1fr auto;
    }

    .home-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
    }

    .home-navigation {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-bottom: 14px;
    }

    .home-navigation.is-open {
        display: grid;
    }

    .home-navigation a {
        justify-content: flex-start;
    }

    .home-hero-grid,
    .home-section-heading {
        grid-template-columns: 1fr;
    }

    .home-hero-search {
        max-width: 760px;
    }

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

@media (max-width: 680px) {
    .home-container {
        width: min(92%, 560px);
    }

    .home-section {
        padding: 52px 0;
    }

    .home-hero {
        padding: 38px 0 34px;
    }

    .home-hero-copy h1 {
        font-size: clamp(40px, 13vw, 55px);
    }

    .home-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .home-hero-stats > div {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .home-hero-search {
        padding: 20px;
    }

    .home-search-results {
        position: static;
        grid-template-columns: 1fr;
        max-height: none;
        margin-top: 12px;
        padding: 8px;
    }

    .home-category-card,
    .home-category-card:nth-child(n+5),
    .home-category-card:last-child {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-footer-bottom .home-container {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 0;
    }

    .home-footer-trust {
        justify-content: flex-start;
    }

    .home-footer-trust span + span::before {
        display: none;
    }
}
