/* =========================================================
   M3 CRED — HOME V2
   CSS completo da Home
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --navy: #06284d;
    --navy-deep: #041f3d;
    --green: #39f000;
    --green-dark: #17bd00;
    --white: #ffffff;
    --bg: #f4f8fc;
    --text: #08294f;
    --muted: #607895;
    --line: #d8e3ee;
    --shadow: 0 12px 32px rgba(6,40,77,.08);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.m3-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.m3-header {
    position: relative;
    z-index: 100;
    background: var(--navy-deep);
    color: #fff;
}

.m3-header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.m3-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.m3-brand img {
    display: block;
    width: 145px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.m3-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 27px;
}

.m3-nav a {
    position: relative;
    padding: 34px 0 30px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.m3-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    height: 3px;
    background: transparent;
    border-radius: 5px;
}

.m3-nav a:hover::after,
.m3-nav a.active::after {
    background: var(--green);
}

.m3-header-whatsapp {
    min-height: 49px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    background: var(--green);
    color: #06210a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(57,240,0,.12);
}

.m3-menu {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 42px;
    padding: 7px;
    border: 0;
    background: transparent;
}

.m3-menu span {
    display: block;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

/* =========================
   HERO
========================= */

.m3-hero {
    background: var(--navy);
    color: #fff;
}

.m3-hero-grid {
    min-height: 530px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.m3-hero-copy {
    min-width: 0;
    padding: 68px 45px 65px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.m3-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900;
}

.m3-pill span {
    color: var(--green);
    font-size: 18px;
}

.m3-hero h1 {
    margin: 0;
    font-size: clamp(45px, 5.1vw, 69px);
    line-height: .97;
    letter-spacing: -2.8px;
    font-weight: 900;
    text-transform: uppercase;
}

.m3-hero h1 strong { color: var(--green); }

.m3-hero-copy > p {
    max-width: 630px;
    margin: 25px 0 0;
    font-size: 16px;
    line-height: 1.55;
}

.m3-hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 650px;
    margin-top: 28px;
}

.m3-hero-points > div {
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-right: 17px;
    border-right: 1px solid rgba(255,255,255,.25);
}

.m3-hero-points > div + div { padding-left: 17px; }
.m3-hero-points > div:last-child { border-right: 0; }

.m3-hero-points b {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 23px;
}

.m3-hero-points span {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.m3-green-btn,
.m3-outline-btn {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease;
}

.m3-green-btn {
    background: var(--green);
    color: #061d08;
    box-shadow: 0 12px 28px rgba(57,240,0,.18);
}

.m3-outline-btn {
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
}

.m3-green-btn:hover,
.m3-outline-btn:hover,
.m3-header-whatsapp:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.m3-hero-btn {
    margin-top: 27px;
    align-self: flex-start;
}

.m3-hero-image {
    position: relative;
    min-width: 0;
    min-height: 530px;
    overflow: hidden;
}

.m3-hero-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.m3-chat-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 265px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 17px;
    background: rgba(4,31,61,.94);
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.m3-chat-card > div {
    font-size: 13px;
    font-weight: 600;
}

.m3-chat-card > div span,
.m3-chat-card strong { color: var(--green); }

.m3-chat-card p {
    margin: 10px 38px 0 0;
    font-size: 11px;
    line-height: 1.5;
}

.m3-chat-card > a {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #06210a;
    text-decoration: none;
    font-weight: 900;
}

/* =========================
   SEÇÕES
========================= */

.m3-section {
    padding: 70px 0;
}

.m3-how { background: #fff; }

.m3-heading {
    max-width: 390px;
    margin-bottom: 32px;
}

.m3-heading > span {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .4px;
}

.m3-heading h2 {
    margin: 8px 0 0;
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -.6px;
}

.m3-heading-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* COMO FUNCIONA */

.m3-steps {
    display: grid;
    grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr);
    gap: 12px;
    align-items: center;
}

.m3-step {
    min-width: 0;
    min-height: 170px;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(6,40,77,.035);
}

.m3-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m3-step-top i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #06210a;
    font-style: normal;
    font-weight: 900;
}

.m3-step-top b {
    color: var(--green-dark);
    font-size: 20px;
}

.m3-step h3 {
    margin: 19px 0 8px;
    font-size: 14px;
}

.m3-step p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.m3-step-arrow {
    text-align: center;
    color: #8aa1ba;
    font-size: 22px;
}

/* CARDS CLICÁVEIS */

.m3-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.m3-step.m3-card-link,
.m3-benefit-card,
.m3-solution-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.m3-step.m3-card-link:hover,
.m3-benefit-card:hover,
.m3-solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(6,40,77,.10);
    border-color: #b9cfe2;
}

/* VANTAGENS */

.m3-benefits { background: var(--bg); }

.m3-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}

.m3-benefits-grid article,
.m3-benefits-grid .m3-benefit-card {
    min-width: 0;
    padding: 25px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.m3-benefits-grid article > div,
.m3-benefits-grid .m3-benefit-card > div {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #e5fbdc;
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 900;
}

.m3-benefits-grid h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.m3-benefits-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* SOLUÇÕES */

.m3-solutions { background: #f4f8fc; }

.m3-solutions-grid {
    display: grid;
    grid-template-columns: 185px repeat(3, minmax(0,1fr));
    gap: 17px;
    align-items: stretch;
}

.m3-solutions-intro { padding-top: 5px; }

.m3-solutions-intro > span {
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 900;
}

.m3-solutions-intro h2 {
    margin: 8px 0 10px;
    font-size: 23px;
    line-height: 1.06;
}

.m3-solutions-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.m3-solution-card {
    min-width: 0;
    min-height: 190px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(6,40,77,.045);
}

.m3-solution-card.featured {
    background: #f3fff0;
    border-color: #bcecb3;
}

.m3-solution-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #e5fbdc;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 900;
}

.m3-solution-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
}

.m3-solution-card p {
    min-height: 43px;
    margin: 16px 0 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.m3-solution-card .m3-card-cta {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
}

/* ATENDIMENTO */

.m3-contact {
    padding: 0;
    background: #fff;
}

.m3-contact-grid {
    min-height: 255px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
}

.m3-contact-photo {
    align-self: end;
    height: 255px;
    overflow: hidden;
}

.m3-contact-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.m3-contact-copy > span {
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 900;
}

.m3-contact-copy h2 {
    margin: 7px 0;
    font-size: 29px;
    line-height: 1.08;
}

.m3-contact-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.m3-contact-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
}

.m3-contact-benefits span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

/* FAQ */

.m3-faq { background: #fff; }

.m3-narrow { max-width: 900px; }

.m3-faq-list { border-top: 1px solid var(--line); }

.m3-faq-list details { border-bottom: 1px solid var(--line); }

.m3-faq-list summary {
    position: relative;
    padding: 21px 42px 21px 0;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 800;
}

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

.m3-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 3px;
    top: 14px;
    color: var(--green-dark);
    font-size: 22px;
}

.m3-faq-list details[open] summary::after { content: "−"; }

.m3-faq-list p {
    margin: 0;
    padding: 0 42px 21px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* CTA FINAL */

.m3-final {
    padding: 56px 0;
    background: #fff;
}

.m3-final-box {
    min-height: 112px;
    padding: 25px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 12px;
    background: var(--navy-deep);
    color: #fff;
}

.m3-final-box span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

.m3-final-box h2 {
    margin: 7px 0 0;
    font-size: 24px;
}

.m3-final-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

/* FOOTER */

.m3-footer {
    background: var(--navy-deep);
    color: #fff;
}

.m3-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 35px;
    padding: 45px 0 34px;
}

.m3-footer-brand img {
    width: 125px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.m3-footer-brand p,
.m3-footer span,
.m3-footer a {
    color: #b8c9da;
    font-size: 11px;
    line-height: 1.5;
}

.m3-footer-brand p {
    max-width: 190px;
    margin: 0;
}

.m3-footer h4 {
    margin: 0 0 13px;
    font-size: 13px;
}

.m3-footer a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

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

.m3-footer-green {
    color: var(--green) !important;
    font-weight: 900;
}

.m3-footer-bottom {
    padding: 13px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    color: #8ea1b6;
    font-size: 10px;
}

/* WHATSAPP */

.m3-whatsapp-float {
    position: fixed;
    z-index: 9999;
    right: 22px;
    bottom: 22px;
    min-height: 52px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 30px;
    background: #20b86b;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.m3-whatsapp-float b { font-size: 20px; }

/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {
    .m3-nav { gap: 17px; }

    .m3-nav a { font-size: 12px; }

    .m3-header-whatsapp { padding: 0 14px; }
}

@media (max-width: 900px) {
    .m3-header-inner { min-height: 74px; }

    .m3-nav,
    .m3-header-whatsapp {
        display: none;
    }

    .m3-menu {
        display: block;
    }

    .m3-nav.open {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 18px;
        background: var(--navy-deep);
    }

    .m3-nav.open a { padding: 14px 0; }
    .m3-nav.open a::after { display: none; }

    .m3-hero-grid {
        grid-template-columns: 1fr;
    }

    .m3-hero-copy {
        padding: 55px 0 45px;
    }

    .m3-hero-image {
        min-height: 470px;
    }

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

    .m3-step-arrow { display: none; }

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

    .m3-solutions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .m3-solutions-intro {
        grid-column: 1 / -1;
    }

    .m3-contact-grid {
        grid-template-columns: 170px 1fr;
        padding-top: 20px;
    }

    .m3-contact-grid > .m3-green-btn {
        grid-column: 2;
        justify-self: start;
    }

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

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .m3-container {
        width: min(100% - 28px, 1180px);
    }

    .m3-brand img {
        width: 120px;
        max-height: 48px;
    }

    /* HERO */

    .m3-hero-copy {
        align-items: center;
        text-align: center;
        padding: 50px 0 42px;
    }

    .m3-pill {
        align-self: center;
        text-align: center;
    }

    .m3-hero h1 {
        width: 100%;
        text-align: center;
        font-size: 39px;
        line-height: 1.02;
        letter-spacing: -1.5px;
    }

    .m3-hero-copy > p {
        width: 100%;
        max-width: 360px;
        text-align: center;
        font-size: 16px;
    }

    /* PONTOS DO HERO — CORRIGIDO */
    .m3-hero-points {
        width: 100%;
        max-width: 360px;
        margin: 32px auto 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .m3-hero-points > div,
    .m3-hero-points > div + div {
        min-height: auto;
        padding: 0;
        border: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        text-align: center;
    }

    .m3-hero-points b {
        font-size: 27px;
        line-height: 1;
    }

    .m3-hero-points span {
        max-width: 180px;
        text-align: center;
        font-size: 14px;
        line-height: 1.3;
    }

    .m3-hero-btn {
        align-self: stretch;
        width: 100%;
        margin-top: 30px;
    }

    .m3-hero-image {
        min-height: 400px;
    }

    .m3-chat-card {
        right: 12px;
        bottom: 12px;
        width: 245px;
    }

    /* SEÇÕES */

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

    .m3-heading,
    .m3-heading-center {
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .m3-heading h2 {
        font-size: 27px;
        line-height: 1.15;
    }

    /* COMO FUNCIONA */

    .m3-steps {
        width: min(100%, 430px);
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .m3-step {
        min-height: 165px;
        padding: 28px 24px;
        text-align: center;
    }

    .m3-step-top {
        justify-content: space-between;
        text-align: center;
    }

    .m3-step h3 {
        text-align: center;
    }

    .m3-step p {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* VANTAGENS */

    .m3-benefits-grid {
        width: min(100%, 430px);
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr;
    }

    .m3-benefit-card {
        text-align: center;
        padding: 30px 24px;
    }

    .m3-benefit-card > div {
        margin-left: auto;
        margin-right: auto;
    }

    .m3-benefits-grid h3,
    .m3-benefits-grid p {
        text-align: center;
    }

    .m3-benefits-grid p {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    /* SOLUÇÕES */

    .m3-solutions-grid {
        width: min(100%, 430px);
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr;
    }

    .m3-solutions-intro {
        grid-column: auto;
        text-align: center;
    }

    .m3-solutions-intro h2 {
        font-size: 27px;
        line-height: 1.12;
    }

    .m3-solutions-intro p {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    .m3-solution-card {
        min-height: 205px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 28px 20px;
        text-align: center;
    }

    .m3-solution-card p {
        width: 100%;
        max-width: 330px;
        min-height: 0;
        margin-left: auto;
        margin-right: auto;
    }

    /* ATENDIMENTO */

    .m3-contact-grid {
        grid-template-columns: 1fr;
        padding-top: 25px;
        text-align: center;
    }

    .m3-contact-photo {
        width: 190px;
        height: 205px;
        margin: 0 auto;
    }

    .m3-contact-copy h2 {
        font-size: 27px;
    }

    .m3-contact-copy p {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .m3-contact-benefits {
        justify-content: center;
    }

    .m3-contact-grid > .m3-green-btn {
        grid-column: auto;
        width: 100%;
    }

    /* FAQ */

    .m3-faq .m3-heading {
        text-align: center;
    }

    .m3-faq-list summary {
        text-align: center;
        padding: 21px 38px 21px 10px;
        font-size: 15px;
        line-height: 1.4;
    }

    .m3-faq-list summary::after {
        right: 4px;
    }

    .m3-faq-list p {
        padding: 0 10px 21px;
        text-align: center;
    }

    /* CTA FINAL */

    .m3-final-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }

    .m3-final-box h2 {
        font-size: 22px;
    }

    .m3-final-actions {
        width: 100%;
        flex-direction: column;
    }

    .m3-final-actions a {
        width: 100%;
    }

    /* FOOTER */

    .m3-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .m3-footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .m3-footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    /* WHATSAPP */

    .m3-whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .m3-whatsapp-float span {
        display: none;
    }
}
