:root {
    /* Paleta — Advocacia Editorial */
    --ink: #0E1B2B;
    --ink-soft: #16283D;
    --paper: #F6F3EC;
    --surface: #FFFFFF;
    --brass: #A6763F;
    --brass-light: #C79A5E;
    --text: #20262E;
    --text-muted: #5B6472;
    --line: #DDD6C7;
    --line-dark: rgba(255,255,255,0.14);

    /* Tipografia */
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --fs-h1: clamp(2.5rem, 4.6vw, 4.2rem);
    --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
    --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
    --fs-body: 1.0625rem;

    --radius: 6px;
    --transition: all 0.25s ease;
    --shadow-soft: 0 20px 50px rgba(14, 27, 43, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    background-color: var(--paper);
    color: var(--text);
    line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; }

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass-light);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(199, 154, 94, 0.4);
}
.eyebrow--dark { color: var(--brass); border-bottom-color: var(--line); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--primary {
    background-color: var(--brass);
    color: var(--surface);
    border: 1px solid var(--brass);
}
.btn--primary:hover { background-color: var(--brass-light); border-color: var(--brass-light); }
.btn--outline {
    background-color: transparent;
    border: 1px solid var(--brass);
    color: var(--brass-light);
}
.btn--outline:hover { background-color: var(--brass); color: var(--surface); }
.btn--ghost {
    background: transparent;
    color: var(--surface);
    border: 1px solid rgba(255,255,255,0.24);
}
.btn--ghost:hover {
    border-color: var(--brass-light);
    color: var(--surface);
    background: rgba(255,255,255,0.08);
}

.link-arrow {
    font-weight: 600;
    color: var(--brass);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.link-arrow:hover { border-bottom-color: var(--brass); }

/* ---------- Cabeçalho ---------- */
.header {
    background-color: var(--ink);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line-dark);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.header__logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--surface);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.header__logo span { color: var(--brass-light); font-style: italic; font-weight: 500; }
.header__nav {
    display: none;
    gap: 32px;
    font-size: 0.9rem;
    color: #C7CDD6;
}
.header__nav a { transition: var(--transition); }
.header__nav a:hover { color: var(--brass-light); }
@media (min-width: 900px) {
    .header__nav { display: flex; margin-right: auto; margin-left: 48px; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 88px;
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: var(--surface);
}
.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}
@media (min-width: 992px) {
    .hero__content { grid-template-columns: 1.15fr 0.85fr; }
}
.hero__title {
    font-size: var(--fs-h1);
    color: var(--surface);
    margin: 20px 0 24px;
    font-weight: 600;
}
.hero__title em { font-style: italic; color: #C7CDD6; font-weight: 500; }
.hero__title span { color: var(--brass-light); font-style: italic; }
.hero__description {
    color: #C7CDD6;
    max-width: 46ch;
    margin-bottom: 32px;
    font-size: 1.08rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.hero__note {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #8D97A6;
    letter-spacing: 0.02em;
}

/* Hero visual — dossiê */
.hero__visual { display: flex; justify-content: center; }
.dossier {
    width: 100%;
    max-width: 340px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    padding: 32px 28px;
    backdrop-filter: blur(2px);
}
.dossier__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--brass-light);
    text-transform: uppercase;
}
.dossier__mark {
    width: 88px;
    height: 88px;
    color: var(--brass-light);
    margin: 28px auto 20px;
    display: block;
}
.dossier__caption {
    text-align: center;
    color: #C7CDD6;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 24px;
}
.dossier__rule { height: 1px; background: var(--line-dark); margin-bottom: 20px; }
.dossier__stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.dossier__stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--surface);
}
.dossier__stats span {
    font-size: 0.75rem;
    color: #8D97A6;
}

/* ---------- Trust bar ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0;
}
@media (min-width: 768px) {
    .trust__grid { grid-template-columns: repeat(4, 1fr); }
}
.trust__item {
    text-align: center;
    border-left: 1px solid var(--line);
    padding: 4px 12px;
}
.trust__item:first-child { border-left: none; }
.trust__item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
}
.trust__item span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Seções genéricas ---------- */
.section-title { font-size: var(--fs-h2); margin: 10px 0 14px; max-width: 24ch; }
.section-subtitle { color: var(--text-muted); max-width: 56ch; margin-bottom: 44px; }
.expertise, .process, .testimonials, .faq { padding: 88px 0; }
.process { background: var(--surface); }
.faq { background: var(--surface); }

/* ---------- Áreas de atuação ---------- */
.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.expertise__card {
    background: var(--surface);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
}
.expertise__card:not(.expertise__card--cta):hover {
    background: #FBFAF7;
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(166, 118, 63, 0.12);
}
.expertise__index {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--brass);
    margin-bottom: 14px;
}
.expertise__card h3 { margin-bottom: 12px; font-size: var(--fs-h3); }
.expertise__card p { color: var(--text-muted); font-size: 0.95rem; }
.expertise__card--cta {
    background: var(--ink);
    color: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.expertise__card--cta h3 { color: var(--surface); }
.expertise__card--cta p { color: #C7CDD6; margin-bottom: 18px; }

/* ---------- Como funciona ---------- */
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px 32px;
    margin-top: 20px;
}
.process__step { position: relative; padding-top: 8px; border-top: 2px solid var(--brass); }
.process__number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--brass);
    margin-bottom: 14px;
}
.process__step h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.process__step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Depoimentos ---------- */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
}
.testimonial__stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 16px; font-size: 0.9rem; }
.testimonial blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 18px;
}
.testimonial figcaption { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
    padding: 80px 0;
}
.cta-banner__content { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-banner__content h2 { color: var(--surface); margin-bottom: 16px; }
.cta-banner__content p { color: #C7CDD6; margin-bottom: 32px; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 780px; }
.faq__item {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.faq__item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--brass);
    transition: var(--transition);
    margin-left: 16px;
}
.faq__item[open] summary::after { content: '–'; }
.faq__item p { color: var(--text-muted); margin-top: 14px; max-width: 62ch; }

/* ---------- Rodapé ---------- */
.footer {
    background-color: var(--ink);
    color: var(--surface);
}
.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 64px 0 40px;
}
.footer h4 { color: var(--brass-light); margin-bottom: 16px; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
.footer p { color: #C7CDD6; margin-bottom: 6px; font-size: 0.92rem; }
.footer__brand { color: var(--surface); margin-bottom: 10px; font-size: 1.4rem; }
.footer__tagline { max-width: 32ch; margin-bottom: 16px; }
.footer__oab { font-family: var(--font-mono); font-size: 0.78rem; color: #8D97A6; }
.footer__bottom {
    border-top: 1px solid var(--line-dark);
    padding: 20px 24px;
    font-size: 0.8rem;
    color: #8D97A6;
}

/* ---------- WhatsApp flutuante ---------- */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 18px 8px 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.floating-wa:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.3);
}
.floating-wa__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: #25D366;
    border-radius: 50%;
    color: var(--surface);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}
.floating-wa__text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    .floating-wa__text { display: none; }
    .floating-wa__icon { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}