@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('../assets/fontes/dm-sans-latin-wght.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../assets/fontes/playfair-display-latin-wght.woff2') format('woff2'); }

:root {
    --cream: #f4ede2;
    --cream-soft: #faf7f1;
    --cream-deep: #e8dbc6;
    --sand: #d9c4a0;
    --terracotta: #ae5734;
    --terracotta-deep: #8f452b;
    --terracotta-soft: #ead3c5;
    --olive: #4f6c3b;
    --olive-deep: #344c2a;
    --olive-soft: #dbe2d1;
    --mustard: #c39d52;
    --mustard-deep: #ad8537;
    --mustard-soft: #eee0bf;
    --ink: #332f2a;
    --muted: #5f5951;
    --white: #fffdf8;
    --line: #ddd0bc;
    --shadow: 0 20px 55px rgba(86, 61, 38, 0.10);
    --shadow-soft: 0 10px 28px rgba(86, 61, 38, 0.07);
    --max: 1240px;
    --header-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; }
img { display: block; max-width: 100%; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--olive-deep);
    color: var(--white);
    font-weight: 800;
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 104px 0; overflow: hidden; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--olive-deep);
    font-weight: 600;
}
h1, h2 { text-wrap: balance; }
p { margin: 0; }

.gradient-title { color: var(--olive-deep); }

.section-heading { max-width: 780px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 {
    font-size: clamp(2.5rem, 4.4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.section-heading p {
    max-width: 700px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1rem;
}
.section-heading.center p { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--olive);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--mustard);
}

.button-primary, .button-secondary, .text-link {
    -webkit-tap-highlight-color: transparent;
}
.button-primary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--terracotta);
    color: var(--white);
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(174, 87, 52, .20);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button-primary:hover {
    transform: translateY(-2px);
    background: var(--terracotta-deep);
    box-shadow: 0 16px 32px rgba(143, 69, 43, .23);
}
.button-primary.light {
    background: var(--cream);
    color: var(--terracotta-deep);
    box-shadow: 0 12px 26px rgba(34, 43, 27, .14);
}
.button-primary.light:hover { background: var(--white); }
.button-arrow { font-size: 1.05rem; transition: transform .2s ease; }
.button-primary:hover .button-arrow { transform: translateX(3px); }

.button-secondary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(52, 76, 42, .25);
    border-radius: 999px;
    color: var(--olive-deep);
    background: rgba(255,253,248,.62);
    font-size: .9rem;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.button-secondary:hover {
    transform: translateY(-2px);
    background: var(--white);
    border-color: rgba(52, 76, 42, .42);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--terracotta-deep);
    font-weight: 800;
    transition: gap .2s ease, color .2s ease;
}
.text-link:hover { gap: 13px; color: var(--olive-deep); }

.header {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    background: rgba(255, 253, 248, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221, 208, 188, .82);
    transition: box-shadow .2s ease, background .2s ease;
}
.header.scrolled { box-shadow: 0 12px 30px rgba(86, 61, 38, .08); }
.header-container {
    width: min(calc(100% - 40px), 1380px);
    min-height: var(--header-h);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 28px;
}
.logo { display: inline-flex; align-items: center; min-width: 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.05; min-width: 0; }
.brand-name { font-size: 1.03rem; font-weight: 700; color: var(--terracotta); white-space: nowrap; }
.brand-meta { margin-top: 4px; font-size: .75rem; color: var(--olive); white-space: nowrap; }
.brand-crp { margin-top: 2px; font-size: .75rem; color: var(--olive); }

.nav { display: flex; align-items: center; justify-content: center; gap: 27px; }
.nav a {
    position: relative;
    padding: 27px 0 24px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    height: 2px;
    border-radius: 999px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--terracotta-deep); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-action { display: inline-flex; align-items: center; justify-content: flex-end; }
.header-action .button-primary { min-height: 44px; padding-inline: 18px; font-size: .79rem; }
.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    cursor: pointer;
}
.menu-button span { display: block; width: 19px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--olive-deep); transition: transform .2s ease, opacity .2s ease; }
.menu-button.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero, .page-hero {
    position: relative;
    min-height: 570px;
    display: grid;
    align-items: stretch;
    overflow: hidden;
    background: var(--cream);
}
.hero > picture, .page-hero > picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > picture img, .page-hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after, .page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(244,237,226,.28) 0%, rgba(244,237,226,.04) 55%, rgba(244,237,226,0) 100%);
    pointer-events: none;
}
.hero-container, .page-hero-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), var(--max));
    min-height: 570px;
    margin-inline: auto;
    display: flex;
    align-items: center;
}
.hero-content, .page-hero-content { width: min(630px, 100%); padding: 44px 0 58px; }
.hero-title, .page-hero-title {
    max-width: 690px;
    color: var(--olive-deep);
    font-size: clamp(3.45rem, 5vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.hero-title span, .page-hero-title span { display: block; }
.hero-subtitle, .page-hero-copy { max-width: 600px; margin-top: 20px; color: var(--ink); font-size: 1.08rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.page-hero .page-hero-content { max-width: 760px; }
.page-hero .page-hero-title { max-width: 720px; }

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 8px 15px 8px 9px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: var(--olive-deep);
    color: var(--white);
    box-shadow: 0 16px 32px rgba(52,76,42,.25);
    font-size: .78rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}
.floating-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(52,76,42,.28); }
.floating-whatsapp img { width: 34px; height: 34px; object-fit: contain; }

.footer { position: relative; padding: 58px 0 32px; background: var(--cream); border-top: 1px solid var(--line); overflow: hidden; }
.footer::before, .footer::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.footer::before { width: 340px; height: 340px; left: -230px; bottom: -280px; background: rgba(195,157,82,.13); }
.footer::after { width: 300px; height: 300px; right: -220px; top: -245px; background: rgba(174,87,52,.08); }
.footer-container { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .9fr; gap: 42px; align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 88px; height: 88px; }
.footer-brand .brand-name { font-size: 1.34rem; }
.footer-brand .brand-meta { font-size: .75rem; }
.footer-brand .brand-crp { font-size: .75rem; }
.footer-copy { max-width: 360px; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.footer-heading { margin-bottom: 12px; color: var(--olive-deep); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { width: fit-content; color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.footer-nav a:hover { color: var(--terracotta-deep); }
.footer-contact { display: grid; gap: 9px; }
.footer-contact a { color: var(--muted); font-size: .9rem; word-break: break-word; }
.footer-contact a:hover { color: var(--terracotta-deep); }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(221,208,188,.9); color: var(--muted); font-size: .85rem; }

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 17px; background: var(--white); overflow: hidden; }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 20px;
    background: transparent;
    color: var(--olive-deep);
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}
.faq-question:hover { background: var(--cream-soft); }
.faq-question .faq-plus { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--cream-deep); color: var(--terracotta-deep); transition: transform .2s ease; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.faq-answer-inner { overflow: hidden; padding: 0 20px; color: var(--muted); font-size: .9rem; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer-inner { padding-bottom: 18px; }

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--olive-deep); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cream); }

.nav-cta { display: none; }

@media (max-width: 1120px) {
    :root { --header-h: 76px; }
    .header-container { grid-template-columns: minmax(200px, 1fr) auto; gap: 18px; }
    .nav { grid-column: 1 / -1; }
    .nav a { font-size: .84rem; }
    .header-action { display: none; }
    .menu-button { display: block; justify-self: end; }
    .nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 18px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 34px rgba(86,61,38,.10);
    }
    .nav.open { display: flex; }
    .nav a { width: 100%; padding: 12px 11px; border-radius: 11px; }
    .nav a::after { display: none; }
    .nav a:hover, .nav a[aria-current="page"] { background: var(--cream); }
    .nav-cta {
        display: inline-flex;
        margin-top: 8px;
        padding: 12px 13px;
        border-radius: 12px;
        background: var(--terracotta);
        color: var(--white);
        font-size: .86rem;
        font-weight: 800;
        justify-content: center;
    }
    .nav-cta:hover { background: var(--terracotta-deep); }
    .hero-content, .page-hero-content { width: min(610px, 60%); }
    .hero-title, .page-hero-title { font-size: clamp(3.1rem, 6.2vw, 4.7rem); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 84px; }
    .container { width: calc(100% - 32px); }
    .section { padding: 80px 0; }
    .section-heading h2 { font-size: clamp(2.25rem, 10.5vw, 3.15rem); }
    .section-heading p { font-size: .94rem; }

    .header-container { width: calc(100% - 28px); min-height: 72px; }
    .brand-mark { width: 50px; height: 50px; }
    .brand-name { font-size: .95rem; }
    .brand-meta { font-size: .75rem; }
    .brand-crp { font-size: .75rem; }

    .hero, .page-hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: var(--cream);
    }
    .hero > picture, .page-hero > picture {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        order: 2;
    }
    .hero > picture img, .page-hero-image {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center;
    }
    .index-page .hero > picture img {
        height: 320px;
        object-position: center 42%;
    }
    .hero::after, .page-hero::after { display: none; }
    .hero-container, .page-hero-container {
        order: 1;
        width: 100%;
        min-height: 0;
        padding: 0;
    }
    .hero-content, .page-hero-content {
        width: min(calc(100% - 32px), 640px);
        margin-inline: auto;
        padding: 38px 0 44px;
    }
    .hero-title, .page-hero-title {
        max-width: 700px;
        font-size: clamp(2.55rem, 10.5vw, 3.5rem);
        line-height: 1.04;
        letter-spacing: -.04em;
    }
    .hero-subtitle, .page-hero-copy { margin-top: 16px; font-size: .98rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
    .hero-actions .button-primary, .hero-actions .button-secondary { width: 100%; }

    .floating-whatsapp { right: 14px; bottom: 14px; min-height: 48px; padding-right: 13px; }
    .floating-whatsapp img { width: 32px; height: 32px; }
    .floating-whatsapp span { display: none; }

    .footer { padding-top: 46px; }
    .footer-container { width: calc(100% - 32px); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid > :first-child { grid-column: auto; }
    .footer-brand .brand-mark { width: 76px; height: 76px; }
    .footer-bottom { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (min-width: 1121px) { .floating-whatsapp { display: none; } }
.footer-crisis { margin-top: 8px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.legal { background: var(--cream-soft); padding: 72px 0 96px; }
.legal-content { width: min(calc(100% - 32px), 760px); margin-inline: auto; }
.legal-content h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; }
.legal-content h2 { margin-top: 38px; font-size: 1.5rem; }
.legal-content p, .legal-content li { margin-top: 12px; color: var(--ink); font-size: 1rem; }
.legal-content ul { padding-left: 22px; }
.legal-updated { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.home-cta .button-primary, .practice-cta .button-primary, .contact-final .button-primary, .process-cta .button-primary, .about-cta .button-primary,
.home-cta .button-primary:hover, .practice-cta .button-primary:hover, .contact-final .button-primary:hover, .process-cta .button-primary:hover, .about-cta .button-primary:hover { box-shadow: none; }

@media (max-width: 900px) {
    .footer-nav { gap: 0; }
    .footer-nav a { padding-block: 10px; }
    .footer-contact { gap: 0; }
    .footer-contact a { padding-block: 10px; }
}

@media (max-width: 760px) {
    .sobre-page .page-hero-image { object-position: 62% 50%; }
    .atuacao-page .page-hero-image { object-position: center 68%; }
    .funcionamento-page .page-hero-image { object-position: center 62%; }
    .contato-page .page-hero-image { object-position: center 70%; }
}
