/* =========================================================
   Andreoli Advogados — estilos
   ========================================================= */
:root {
    --navy: #16293b;
    --ink: #111c27;
    --gold: #b28638;
    --gold-soft: #c9a463;
    --cream: #faf8f5;
    --beige: #f1ece4;
    --beige-strong: #ece4d8;
    --line: #e4ddd2;
    --muted: #5b6672;
    --white: #ffffff;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1060px;
    --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.container-narrow { max-width: 960px; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--sans); font-weight: 600; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 1rem 1.5rem; border: 1px solid transparent; border-radius: 1px;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.btn .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9c742d; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0e1c29; }
.btn-outline-light { border-color: rgba(250,248,245,.35); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(250,248,245,.06); }

/* ---------- Cabeçalho ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 248, 245, .9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 28, 39, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.brand-tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { font-size: .85rem; color: #3b4652; transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.main-nav a.btn, .main-nav a.btn:hover { color: #fff; }
.header-cta { text-transform: none; letter-spacing: 0; font-size: .85rem; padding: .7rem 1.1rem; }
.nav-cta-mobile { display: none !important; }
.menu-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--cream); overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .28;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(22,41,59,.92) 45%, rgba(22,41,59,.55) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 150px; padding-bottom: 80px; }
.badge {
    display: inline-block; border: 1px solid rgba(178,134,56,.6); color: var(--gold-soft);
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; padding: .5rem .85rem;
}
.hero h1 {
    color: var(--cream); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05;
    margin: 1.6rem 0 1.8rem; max-width: 720px; letter-spacing: -0.02em;
}
.underline { position: relative; display: inline-block; }
.underline::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
    background: var(--gold); opacity: .8; z-index: -1;
}
.hero-lead { max-width: 480px; font-size: 1.05rem; color: rgba(250,248,245,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    max-width: 572px; margin-top: 3.5rem; padding-top: 1.8rem;
    border-top: 1px solid rgba(250,248,245,.15);
}
.stat-value { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--gold-soft); line-height: 1.1; }
.stat-label { font-size: .78rem; color: rgba(250,248,245,.75); margin-top: .5rem; line-height: 1.45; }

/* ---------- Faixa rolante ---------- */
.marquee { background: var(--beige); border-block: 1px solid var(--line); overflow: hidden; padding: 1.3rem 0; }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; animation: marquee 40s linear infinite; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 2.5rem;
    font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(17,28,39,.7); white-space: nowrap;
}
.marquee .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: 110px 0; }
.section-beige { background: rgba(241,236,228,.6); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: var(--cream); }
.eyebrow { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head { max-width: 560px; margin-bottom: 4rem; }
.lead { color: var(--muted); margin-top: 1.4rem; font-size: .98rem; }
.section-navy .lead, .section-navy p { color: rgba(250,248,245,.82); }

/* Áreas de atuação */
.services { border-top: 1px solid var(--line); }
.service {
    display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 2.5rem;
    padding: 2.6rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.service-icon { color: var(--gold); display: inline-flex; margin-bottom: 1rem; }
.service-icon .icon { width: 24px; height: 24px; }
.service h3 { font-size: 1.4rem; }
.service-text { color: var(--muted); font-size: .88rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: #3b4652; padding: .22rem 0; }
.checklist .icon { color: var(--gold); width: 15px; height: 15px; margin-top: .25rem; }

/* Blocos lado a lado */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-body p:not(.eyebrow) { color: var(--muted); margin-top: 1.2rem; font-size: .95rem; }
.split-body h2 { margin-bottom: .2rem; }
.split-media img { width: 100%; object-fit: cover; }
.framed { position: relative; }
.framed::after {
    content: ""; position: absolute; inset: 14px -14px -14px 14px;
    background: var(--beige-strong); z-index: -1;
}
.framed { z-index: 0; }
.barlist { margin-top: 1.8rem; }
.barlist li { border-left: 2px solid var(--gold); padding: .15rem 0 .15rem 1rem; margin-bottom: .9rem; font-size: .88rem; color: var(--ink); }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2rem; background: #fff; border: 1px solid var(--line); }
.mini-card { padding: 1.3rem 1.2rem; border-bottom: 1px solid var(--line); }
.mini-card:nth-child(odd) { border-right: 1px solid var(--line); }
.mini-card:nth-last-child(-n+2) { border-bottom: 0; }
.mini-card h4 { font-family: var(--sans); font-weight: 600; font-size: .88rem; }
.split-body .mini-card p { font-size: .8rem; margin-top: .4rem; }

/* Escritório */
.split-office { grid-template-columns: .8fr 1.2fr; align-items: start; }
.split-office img { aspect-ratio: 503/683; }
.section-navy .split-body p:not(.eyebrow) { color: rgba(250,248,245,.82); font-size: .92rem; }
.signature { margin-top: 2rem; }
.signature-name { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-soft) !important; margin-top: 0 !important; }
.signature-role { font-size: .68rem !important; letter-spacing: .25em; text-transform: uppercase; margin-top: .3rem !important; color: rgba(250,248,245,.6) !important; }

/* Equipe */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; }
.team-card { padding: 2.6rem 2.6rem 2.8rem; border-bottom: 1px solid var(--line); }
.team-card:nth-child(odd) { border-right: 1px solid var(--line); }
.team-card h3 { font-size: 1.4rem; margin: 1.6rem 0 1.2rem; }
.team-card .card-text { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.team-card .checklist { margin-top: 1.4rem; }
.card-icon { color: var(--gold); display: inline-flex; }
.card-icon .icon { width: 22px; height: 22px; }
.card-icon-box { background: rgba(250,248,245,.08); padding: .6rem; }
.team-card-navy { background: var(--navy); color: var(--cream); }
.team-card-navy h3 { color: var(--cream); margin-top: 0; }
.team-card-navy .eyebrow { margin-top: 1.6rem; margin-bottom: .8rem; }
.team-card-navy .card-text { color: rgba(250,248,245,.82); }
.team-card-beige { background: var(--beige-strong); border-top: 2px solid var(--gold); }
.team-card-person { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; border-bottom: 0; }
.team-card-person:last-child { border-top: 2px solid var(--gold); }
.team-card-person h3 { margin: 0 0 .4rem; }
.team-card-person .eyebrow { margin-bottom: .6rem; }
.card-role { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.team-card-person h3 + .card-text { margin-top: 1rem; }
.card-foot { border-top: 1px solid rgba(17,28,39,.1); margin-top: 1.5rem; padding-top: 1.2rem; }
.team-card-navy .card-foot { border-color: rgba(250,248,245,.15); }
.card-foot-label { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.team-card-navy .card-foot-label { color: rgba(250,248,245,.6); }
.card-foot p:not(.card-foot-label) { font-size: .85rem; color: var(--ink); }
.team-card-navy .card-foot p:not(.card-foot-label) { color: var(--cream); }

.callout {
    display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem;
    background: var(--beige); border-left: 2px solid var(--gold); padding: 1.8rem;
}
.callout-icon { color: var(--gold); }
.callout-icon .icon { width: 22px; height: 22px; }
.callout p { flex: 1; font-size: .88rem; max-width: 500px; }
.callout .btn { margin-left: auto; }

/* Processo */
#processo h2 { margin-bottom: 2.6rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step { border-top: 1px solid var(--gold); padding-top: 1.4rem; }
.step-n { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-soft); }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: .9rem; margin: .7rem 0 .6rem; }
.step p { font-size: .82rem; color: var(--muted); }

/* Dúvidas */
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 3rem; }
.faq-head h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.3rem 0; font-size: .92rem; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--gold); display: inline-flex; transition: transform .25s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 2rem 1.4rem 0; }
.faq-answer p { color: var(--muted); font-size: .88rem; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.6rem); max-width: 380px; }
.contact .lead { max-width: 380px; }
.contact-list { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; font-size: .88rem; align-items: flex-start; }
.contact-list .icon { color: var(--gold); width: 18px; height: 18px; margin-top: .15rem; }
.contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: #fff; border: 1px solid var(--line); padding: 2rem 1.8rem; display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .5rem; }
.field span { font-size: .7rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: #3b4652; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: .9rem; color: var(--ink);
    background: var(--cream); border: 1px solid var(--line); border-radius: 0;
    padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178,134,56,.15); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111c27' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 14px; padding-right: 2.2rem; }
.field.invalid input, .field.invalid textarea { border-color: #b54a3a; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .72rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1rem; font-size: .85rem; border-left: 3px solid; }
.alert-ok { background: #eef5ee; border-color: #3f7d4a; color: #24502c; }
.alert-erro { background: #fbefec; border-color: #b54a3a; color: #7a2b20; }
.alert a { text-decoration: underline; }

/* Rodapé */
.site-footer { background: var(--navy); color: rgba(250,248,245,.75); padding: 3rem 0; font-size: .78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 380px; }
.footer-name { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); margin-bottom: .7rem; }
.footer-info { display: grid; gap: .5rem; text-align: right; }
.footer-info a:hover { color: var(--gold-soft); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
    .main-nav { gap: 1.2rem; }
    .service { grid-template-columns: 1fr 1.4fr; }
    .service .checklist { grid-column: 2; }
    .split { gap: 3rem; }
}

@media (max-width: 900px) {
    :root { --header-h: 62px; }
    .menu-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--cream); border-bottom: 1px solid var(--line);
        padding: .5rem 24px 1.5rem;
        transform: translateY(-110%); visibility: hidden;
        transition: transform .3s ease, visibility .3s;
        box-shadow: 0 20px 30px rgba(17,28,39,.08);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .main-nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav-cta-mobile { display: inline-flex !important; margin-top: 1.2rem; border-bottom: 0 !important; text-transform: none; letter-spacing: 0; font-size: .95rem !important; padding: .95rem !important; }
    body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
    body.menu-open .menu-open { display: none; }
    body.menu-open .menu-close { display: inline-flex; }
    .site-header { background: rgba(250,248,245,.97); }

    .section { padding: 80px 0; }
    .hero-content { padding-top: 72px; padding-bottom: 64px; }
    .hero::after { background: linear-gradient(180deg, rgba(22,41,59,.88) 0%, rgba(22,41,59,.95) 100%); }

    .split, .split-office, .contact, .faq-wrap { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: -1; }
    .split-office .split-media { max-width: 420px; }
    .framed { margin-right: 14px; }

    .team-grid { grid-template-columns: 1fr; }
    .team-card:nth-child(odd) { border-right: 0; }
    .team-card-person { border-bottom: 1px solid var(--line); }
    .team-card-person:last-child { border-bottom: 0; }

    .steps { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; }
    .faq-wrap { gap: 1.5rem; }
    .contact { gap: 3rem; }

    .callout { flex-wrap: wrap; }
    .callout p { flex-basis: calc(100% - 3rem); }
    .callout .btn { margin-left: calc(22px + 1.2rem); }
}

@media (max-width: 640px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .brand-name { font-size: 1rem; }
    .brand-tag { font-size: .56rem; letter-spacing: .18em; }

    .hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
    .hero-lead { font-size: .98rem; }
    .hero-actions .btn { width: 100%; }
    .stats { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; margin-top: 2.6rem; }
    .stat:first-child { grid-column: 1 / -1; }

    .section { padding: 64px 0; }
    .section-head { margin-bottom: 2.5rem; }

    .service { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
    .service .checklist { grid-column: auto; }
    .service-title { display: flex; align-items: center; gap: .8rem; }
    .service-icon { margin-bottom: 0; }
    .service h3 { font-size: 1.25rem; }

    .mini-grid { grid-template-columns: 1fr; }
    .mini-card:nth-child(odd) { border-right: 0; }
    .mini-card:nth-last-child(2) { border-bottom: 1px solid var(--line); }

    .team-card { padding: 2rem 1.4rem; }
    .team-card-person { grid-template-columns: 1fr; gap: 1rem; }
    .team-card h3 { font-size: 1.25rem; }

    .callout { padding: 1.4rem; }
    .callout p { flex-basis: 100%; }
    .callout .btn { margin-left: 0; width: 100%; white-space: normal; }

    .steps { grid-template-columns: 1fr; gap: 1.8rem; }

    .contact-form { padding: 1.5rem 1.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form .btn { width: 100%; }

    .footer-inner { flex-direction: column; }
    .footer-info { text-align: left; }
}

@media (max-width: 380px) {
    .stats { grid-template-columns: 1fr; }
    .header-inner { gap: .5rem; }
}
