/* ==========================================================================
   André Romualdo Advocacia & Consultoria — site público
   Conceito: a assinatura "AR" dourada e a curva do retrato como fios condutores;
   títulos em Cinzel (capitulares lapidares, ecoando o "ANDRÉ ROMUALDO" do logotipo),
   textos em Raleway (leve e legível). Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --azul: #003756;
    --azul-profundo: #00283f;
    --dourado: #AF7E00;
    --dourado-claro: #d4a63a;   /* dourado para texto pequeno sobre azul (AA) */
    --cinza: #AEACAC;           /* apoio sobre fundo escuro */
    --branco: #FFFFFF;
    --papel: #f7f6f3;           /* off-white quente dos fundos */
    --tinta: #1d2830;           /* texto sobre claro */
    --tinta-suave: #545e66;     /* texto secundário sobre claro (AA 6:1) */
    --texto-sobre-azul: #d6dde2;
    --linha: #d9d6d0;
    --whatsapp: #1a8049;        /* só no botão flutuante */

    --serifada: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
    --sans: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --margem: max(1.25rem, calc((100% - 72rem) / 2));
    --secao: clamp(3.5rem, 9vw, 7rem);
    --onda: clamp(2.5rem, 7vw, 6.5rem);
    --foco: var(--azul);

    --onda-papel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f6f3' d='M0 120C200 60 420 20 700 26s480 34 740-26v120z'/%3E%3C/svg%3E");
    --onda-azul: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23003756' d='M0 120C200 60 420 20 700 26s480 34 740-26v120z'/%3E%3C/svg%3E");
    --onda-profunda: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%2300283f' d='M0 120C200 60 420 20 700 26s480 34 740-26v120z'/%3E%3C/svg%3E");
    --icone-whatsapp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5A10.5 10.5 0 0 0 2.9 17.2L1.5 22.5l5.4-1.4A10.5 10.5 0 1 0 12 1.5zm0 1.9a8.6 8.6 0 1 1-4.4 16l-.3-.2-3.1.8.8-3-.2-.3A8.6 8.6 0 0 1 12 3.4z'/%3E%3Cpath transform='translate(6.4 6.4) scale(.47)' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C9.61 21 2 13.39 2 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* ---------- Fontes (auto-hospedadas, licença SIL OFL) ---------- */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/cinzel-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/cinzel-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/raleway-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/raleway-latin-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/raleway-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/raleway-latin-600-normal.woff2') format('woff2');
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--papel);
    color: var(--tinta);
    font-family: var(--sans);
    font-size: 1.125rem;
    font-variant-numeric: lining-nums;   /* Raleway usa algarismos antigos por padrão */
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* Em páginas curtas (ex.: 404), main ocupa a sobra e o rodapé encosta no fim da tela.
   A sobra é absorvida pela última seção, para não abrir uma faixa clara antes do rodapé. */
main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

main > :last-child {
    flex-grow: 1;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    color: var(--azul);
    font-family: var(--serifada);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0.015em;
    text-wrap: balance;
}

/* Cinzel só tem maiúsculas e versaletes: corpo menor que uma serifada comum */
h1 {
    font-size: clamp(2.125rem, 5.6vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.8vw, 2.5rem);
    letter-spacing: 0.025em;
}

h3 {
    font-size: 1.3125rem;
    line-height: 1.3;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--azul);
    text-decoration-color: var(--dourado);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--foco);
    outline-offset: 3px;
}

.topo,
.hero,
.pagina-titulo,
.diferencial,
.cta,
.rodape {
    --foco: var(--dourado-claro);
}

.pular-conteudo {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1.1rem;
    background: var(--dourado-claro);
    color: var(--azul-profundo);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
}

.pular-conteudo:focus {
    transform: none;
    outline: 3px solid var(--branco);
}

/* Blocos de conteúdo: fundo de ponta a ponta, conteúdo limitado a 72rem */
.numeros,
.areas-resumo,
.como-trabalhamos,
.ultimos-posts,
.grupo-areas,
.area-servicos,
.contato,
.texto-legal,
.sobre-quem-somos,
.sobre-fundador,
.pilares,
.post,
.erro {
    padding: var(--secao) var(--margem);
}

.secao-cabecalho {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-bottom: 2.5rem;
}

.secao-cabecalho h2,
.secao-cabecalho p {
    margin: 0;
}

.link-destaque {
    font-weight: 600;
    text-decoration-thickness: 2px;
}

/* ---------- Botões ---------- */
.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.75rem 1.4rem;
    border: 0;
    border-radius: 2px;
    background: var(--azul);
    box-shadow: inset 0 -3px 0 var(--dourado);
    color: var(--branco);
    font: 600 1rem/1.25 var(--sans);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.botao:hover {
    background: var(--azul-profundo);
}

.botao--whatsapp::before {
    content: "";
    flex: none;
    width: 1.3em;
    height: 1.3em;
    background: currentColor;
    -webkit-mask: var(--icone-whatsapp) center / contain no-repeat;
    mask: var(--icone-whatsapp) center / contain no-repeat;
}

.botao--grande {
    min-height: 3.75rem;
    padding: 1rem 1.75rem;
    font-size: 1.125rem;
}

.botao--contorno {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--azul);
    color: var(--azul);
}

.botao--contorno:hover {
    background: var(--azul);
    color: var(--branco);
}

.hero .botao,
.cta .botao {
    background: var(--dourado-claro);
    box-shadow: none;
    color: var(--azul-profundo);
}

.hero .botao:hover,
.cta .botao:hover {
    background: #e4bd62;
}

/* ---------- Topo ---------- */
.topo {
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding: 0.85rem var(--margem);
    background: var(--azul);
    color: var(--branco);
}

.topo__marca {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 0.7rem;
    color: var(--branco);
    text-decoration: none;
}

.topo__assinatura {
    grid-row: 1 / 3;
    width: 3.4rem;
}

.topo__nome {
    align-self: end;
    font-family: var(--serifada);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.topo__descritor {
    align-self: start;
    color: var(--cinza);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.topo__menu-botao {
    display: none;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    background: transparent;
    color: var(--branco);
    font: 600 1rem/1 var(--sans);
    cursor: pointer;
}

.topo__menu-botao::before {
    content: "";
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.topo__menu-botao[aria-expanded="true"] {
    border-color: var(--dourado-claro);
}

.js .topo__menu-botao {
    display: inline-flex;
}

.topo__nav {
    flex-basis: 100%;
}

.js .topo__nav:not(.topo__nav--aberto) {
    display: none;
}

.topo__nav--aberto {
    display: block;
}

.topo__nav ul {
    margin: 0;
    padding: 0.25rem 0 0.75rem;
    list-style: none;
}

.topo__nav a {
    display: block;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--branco);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
}

.topo__nav a[aria-current="page"] {
    padding-left: 0.9rem;
    box-shadow: inset 3px 0 0 var(--dourado-claro);
    color: var(--dourado-claro);
    font-weight: 600;
}

/* ---------- Curvas entre seções (inspiradas no retrato com logo) ---------- */
/* Cada onda sobrepõe 2px o bloco vizinho e repete a cor dele numa faixa sólida de 3px
   na própria base: assim nenhum arredondamento de pixel (zoom, DPI fracionado) deixa
   um risco fino entre a curva e o bloco. */
.hero::after,
.pagina-titulo::after,
.diferencial::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    z-index: 2;
    height: calc(var(--onda) + 2px);
    background-image: var(--onda-papel), linear-gradient(var(--papel), var(--papel));
    background-position: top, bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% var(--onda), 100% 3px;
    pointer-events: none;
}

.diferencial::before,
.cta::before,
.rodape::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: calc(100% - 2px);
    left: 0;
    height: calc(var(--onda) + 2px);
    background-image: var(--onda-azul), linear-gradient(var(--azul), var(--azul));
    background-position: top, bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% var(--onda), 100% 3px;
    pointer-events: none;
}

.rodape::before {
    background-image: var(--onda-profunda), linear-gradient(var(--azul-profundo), var(--azul-profundo));
}

/* A onda do rodapé sobe var(--onda) sobre o fim do <main>. A faixa azul .cta já
   absorve isso no próprio padding; qualquer outro último bloco reserva o espaço. */
main > :last-child:not(.cta) {
    margin-bottom: var(--onda);
}

/* Blocos com margem inferior própria somam a onda em vez de perdê-la */
main > .paginacao:last-child,
main > .vazio:last-child {
    margin-bottom: calc(var(--secao) + var(--onda));
}

/* O aviso de blog vazio não estica: a sobra fica no papel, abaixo dele */
main > .vazio:last-child {
    flex-grow: 0;
}

/* "Leia também" tem fundo branco: o espaço vira padding para o branco chegar à onda */
main > .ultimos-posts:last-child {
    margin-bottom: 0;
    padding-bottom: calc(var(--secao) + var(--onda));
}

/* ---------- Home: hero ---------- */
.hero {
    position: relative;
    display: grid;
    gap: 2.5rem;
    overflow: hidden;
    padding: clamp(2.5rem, 7vw, 5rem) var(--margem) 0;
    background: var(--azul);
    color: var(--branco);
}

/* Assinatura dourada traçada uma única vez ao carregar */
.hero::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: calc(var(--margem) - 2.5rem);
    width: min(46rem, 115vw);
    aspect-ratio: 480 / 277;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
    opacity: 0.14;
    animation: assinar 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
    pointer-events: none;
}

@keyframes assinar {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.hero__conteudo {
    position: relative;
    z-index: 1;
}

.hero__sobretitulo {
    margin-bottom: 1.25rem;
    color: var(--cinza);
    font-size: 1.0625rem;
}

.hero__titulo {
    max-width: 15ch;
    margin-bottom: 1.5rem;
    color: var(--branco);
    font-size: clamp(2.375rem, 7.4vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
}

.hero__texto {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--texto-sobre-azul);
    font-size: 1.1875rem;
}

.hero__retrato {
    z-index: 1;
    justify-self: end;
    width: min(82%, 24rem);
    margin-top: 1rem;
}

.hero__foto {
    aspect-ratio: 4 / 5;
    object-position: 50% 0;
}

/* ---------- Moldura do retrato ---------- */
/* Filete dourado deslocado atrás da foto + filete interno (passe-partout) e um véu
   azul na base, que assenta o fundo grafite da fotografia na paleta do site. */
.retrato {
    --deslocamento: clamp(0.75rem, 2vw, 1.25rem);
    position: relative;
    isolation: isolate;
}

.retrato::before {
    content: "";
    position: absolute;
    inset: calc(var(--deslocamento) * -1) calc(var(--deslocamento) * -1) var(--deslocamento) var(--deslocamento);
    z-index: -1;
    border: 1px solid var(--dourado-claro);
    pointer-events: none;
}

.retrato::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 40 63 / 0) 55%, rgb(0 40 63 / 0.5) 100%);
    pointer-events: none;
}

.retrato img {
    display: block;
    width: 100%;
    object-fit: cover;
    outline: 1px solid rgb(212 166 58 / 0.6);
    outline-offset: -0.75rem;
    box-shadow: 0 1.5rem 3rem -1.25rem rgb(0 20 32 / 0.55);
}

/* ---------- Home: números ---------- */
.numeros {
    display: grid;
    padding-top: clamp(2rem, 5vw, 3.5rem);
}

.numeros__item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--linha);
}

.numeros__item:first-child {
    border-top: 0;
}

.numeros__valor {
    color: var(--dourado);
    font-family: var(--serifada);
    font-size: 3.5rem;
    font-variant-numeric: lining-nums;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.numeros__rotulo {
    max-width: 18rem;
    color: var(--tinta-suave);
    font-size: 1rem;
    line-height: 1.45;
}

/* ---------- Áreas (lista-índice) ---------- */
.areas-resumo {
    background: var(--branco);
}

.grade-areas,
.pilares ul {
    display: grid;
    column-gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.grade-areas__item,
.pilares li {
    position: relative;
    padding: 1.5rem 0 1.75rem;
    border-top: 1px solid var(--linha);
}

.grade-areas__item::before,
.pilares li::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 2.5rem;
    height: 3px;
    background: var(--dourado);
    transition: width 0.3s ease;
}

.grade-areas__item:hover::before,
.grade-areas__item:focus-within::before {
    width: 100%;
}

.grade-areas h3 {
    margin-bottom: 0.4rem;
    font-size: 1.375rem;
    line-height: 1.3;
}

.grade-areas h3 a {
    color: var(--azul);
    text-decoration: none;
}

.grade-areas h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.grade-areas p,
.pilares p {
    margin: 0;
    color: var(--tinta-suave);
}

.grupo-areas + .grupo-areas {
    padding-top: 0;
}

.aviso-criminal {
    margin: 0;
    padding: 0 var(--margem) var(--secao);
    color: var(--tinta-suave);
}

.aviso-criminal::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    margin-right: 0.75rem;
    vertical-align: middle;
    background: var(--dourado);
}

/* ---------- Home: diferencial ---------- */
.diferencial {
    position: relative;
    display: grid;
    gap: 2.5rem;
    padding: var(--secao) var(--margem) calc(var(--secao) + var(--onda));
    background: var(--azul);
    color: var(--texto-sobre-azul);
}

.diferencial h2 {
    max-width: 20ch;
    color: var(--branco);
}

.diferencial__texto p {
    max-width: 40rem;
    margin: 0;
}

/* O "balanço": a vivência bancária lida como um extrato — origem no cabeçalho,
   um lançamento por linha e o fecho com o sublinhado duplo dos totais contábeis.
   A assinatura AR espia por cima do painel, longe do texto. */
.diferencial__balanco {
    position: relative;
    isolation: isolate;
    align-self: end;
    margin-top: 3rem;
    padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem) 2rem;
    border-top: 3px solid var(--dourado-claro);
    background: var(--azul-profundo);
}

.diferencial__balanco::before {
    content: "";
    position: absolute;
    top: -6.25rem;
    right: -0.5rem;
    z-index: -1;
    width: min(15rem, 60%);
    aspect-ratio: 480 / 277;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
    opacity: 0.4;
    pointer-events: none;
}

.diferencial__origem {
    margin: 0 0 1rem;
    color: var(--dourado-claro);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
}

.diferencial__lancamentos {
    margin: 0;
    border-bottom: 4px double var(--dourado-claro);
}

.diferencial__lancamentos div {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(174, 172, 172, 0.28);
}

.diferencial__lancamentos dt {
    color: var(--branco);
    font-family: var(--serifada);
    font-size: 1.3125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.diferencial__lancamentos dd {
    margin: 0;
    color: var(--texto-sobre-azul);
    font-size: 1rem;
    line-height: 1.5;
}

/* ---------- Home: como trabalhamos (sequência real de etapas) ---------- */
.como-trabalhamos .secao-cabecalho p {
    color: var(--tinta-suave);
}

.como-trabalhamos__etapas {
    display: grid;
    gap: 0 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: etapa;
}

.como-trabalhamos__etapas li {
    position: relative;
    padding: 4.25rem 0 1.5rem;
    border-top: 1px solid var(--linha);
    counter-increment: etapa;
}

.como-trabalhamos__etapas li::before {
    content: counter(etapa);
    position: absolute;
    top: 0.6rem;
    left: 0;
    color: var(--dourado);
    font-family: var(--serifada);
    font-size: 3rem;
    font-variant-numeric: lining-nums;
    font-weight: 600;
    line-height: 1;
}

.como-trabalhamos__etapas h3 {
    margin-bottom: 0.4rem;
}

.como-trabalhamos__etapas p {
    margin: 0;
    color: var(--tinta-suave);
}

/* ---------- Posts ---------- */
.ultimos-posts {
    background: var(--branco);
}

.ultimos-posts > h2 {
    margin-bottom: 2rem;
}

.grade-posts {
    display: grid;
    gap: 3rem 2rem;
}

main > .grade-posts {
    padding: 2.5rem var(--margem) 3rem;
}

.grade-posts__item {
    min-width: 0;
}

.grade-posts__destaque {
    grid-column: 1 / -1;
    min-width: 0;
}

.card-post {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-post__capa {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.1rem;
    background: var(--linha);
    object-fit: cover;
}

.card-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.card-post__categoria {
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-decoration: none;
}

.card-post__categoria:hover {
    text-decoration: underline;
}

.card-post__data {
    color: var(--tinta-suave);
}

.card-post__titulo {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    font-weight: 500;   /* títulos longos: traço mais leve lê melhor em caixa-alta */
    line-height: 1.38;
    letter-spacing: 0.01em;
}

.card-post__titulo a {
    color: var(--tinta);
    text-decoration: none;
}

.card-post__titulo a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card-post:hover .card-post__titulo a {
    text-decoration: underline;
    text-decoration-color: var(--dourado);
    text-decoration-thickness: 2px;
}

.card-post__resumo {
    margin: 0;
    color: var(--tinta-suave);
    font-size: 1rem;
}

.grade-posts__destaque .card-post__titulo {
    font-size: clamp(1.4375rem, 3vw, 1.875rem);
    line-height: 1.3;
}

.filtro-categorias {
    padding: 2rem var(--margem) 0;
}

.filtro-categorias ul {
    display: flex;
    gap: 0 1.75rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--linha);
    list-style: none;
    scrollbar-width: thin;
}

.filtro-categorias a {
    display: block;
    margin-bottom: -1px;
    padding: 0.85rem 0;
    border-bottom: 3px solid transparent;
    color: var(--tinta-suave);
    text-decoration: none;
    white-space: nowrap;
}

.filtro-categorias a:hover {
    color: var(--azul);
}

.filtro-categorias a[aria-current="page"] {
    border-bottom-color: var(--dourado);
    color: var(--azul);
    font-weight: 600;
}

.paginacao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 var(--margem) var(--secao);
    padding-top: 1.5rem;
    border-top: 1px solid var(--linha);
}

.paginacao__posicao {
    color: var(--tinta-suave);
}

.paginacao__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.1rem;
    box-shadow: inset 0 0 0 1px var(--azul);
    font-weight: 600;
    text-decoration: none;
}

.paginacao__link:hover {
    background: var(--azul);
    color: var(--branco);
}

.paginacao__link--anterior {
    order: -1;
}

.paginacao__link--proximo {
    order: 1;
}

.vazio {
    align-self: start;
    max-width: 40rem;
    margin: 2.5rem var(--margem) var(--secao);
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--dourado);
    background: var(--branco);
    color: var(--tinta-suave);
}

.vazio p {
    margin: 0;
}

.vazio p:first-child {
    margin-bottom: 0.4rem;
    color: var(--azul);
    font-family: var(--serifada);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ---------- Post ---------- */
.aviso-previa {
    margin: 0;
    padding: 0.9rem var(--margem);
    border-bottom: 2px solid var(--dourado);
    background: #fff3d1;
    color: #4d3800;
    font-weight: 600;
}

.post {
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.post__cabecalho {
    max-width: 46rem;
    margin: 0 auto 2.5rem;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.post__categoria {
    font-weight: 600;
}

.post__data {
    color: var(--tinta-suave);
}

.post__cabecalho h1 {
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 4.4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: 0.01em;
}

.post__capa {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post__conteudo {
    max-width: 40rem;   /* ~68 caracteres por linha */
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
}

.post__conteudo > :first-child {
    margin-top: 0;
}

.post__conteudo p,
.post__conteudo ul,
.post__conteudo ol {
    margin: 0 0 1.25em;
}

.post__conteudo h2 {
    margin: 2em 0 0.6em;
    font-size: 1.625rem;
    line-height: 1.3;
}

.post__conteudo h3 {
    margin: 1.75em 0 0.5em;
    font-size: 1.25rem;
}

.post__conteudo ul,
.post__conteudo ol {
    padding-left: 1.25em;
}

.post__conteudo li {
    margin-bottom: 0.4em;
}

.post__conteudo li::marker {
    color: var(--azul);   /* marcadores são texto de 18 px: dourado não atinge AA */
}

.post__conteudo blockquote {
    margin: 2em 0;
    padding: 0.25em 0 0.25em 1.5rem;
    border-left: 3px solid var(--dourado);
    color: var(--azul);
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.5;
}

.post__conteudo img {
    display: block;
    margin: 2em 0;
}

.post__conteudo strong {
    font-weight: 600;
}

.post__autor {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 1.25rem;
    max-width: 40rem;
    margin: 3.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--linha);
}

.post__autor::before {
    content: "";
    grid-row: 1 / 3;
    width: 4.5rem;
    aspect-ratio: 480 / 277;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
}

.post__autor-nome {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 1rem;
    margin: 0;
    color: var(--azul);
    font-family: var(--serifada);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.post__autor-oab {
    color: var(--tinta-suave);
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 400;
}

.post__aviso {
    margin: 0.25rem 0 0;
    color: var(--tinta-suave);
    font-size: 0.9375rem;
}

/* ---------- Chamada final ---------- */
.cta {
    position: relative;
    padding: var(--secao) var(--margem);
    background: var(--azul);
    color: var(--texto-sobre-azul);
    text-align: center;
}

.cta h2 {
    margin: 0 auto 0.75rem;
    max-width: 24ch;
    color: var(--branco);
}

.cta h2::before {
    content: "";
    display: block;
    width: 7rem;
    aspect-ratio: 480 / 277;
    margin: 0 auto 1.25rem;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
}

.cta p {
    margin-bottom: 2rem;
}

/* ---------- Páginas internas ---------- */
.pagina-titulo {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--margem) calc(clamp(2.5rem, 6vw, 4.5rem) + var(--onda));
    background: var(--azul);
    color: var(--texto-sobre-azul);
}

.pagina-titulo::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -4rem;
    width: min(30rem, 70%);
    aspect-ratio: 480 / 277;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
    opacity: 0.12;
    transform: translateY(-60%);
    pointer-events: none;
}

.pagina-titulo h1 {
    position: relative;
    max-width: 22ch;
    margin-bottom: 0.75rem;
    color: var(--branco);
}

.pagina-titulo p {
    position: relative;
    max-width: 40rem;
    margin: 0;
    font-size: 1.1875rem;
}

.pagina-titulo .pagina-titulo__trilha {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.pagina-titulo a {
    color: var(--dourado-claro);
}

.area-servicos {
    display: grid;
    gap: 1rem 3rem;
}

.area-servicos ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-servicos li {
    position: relative;
    padding: 1rem 0 1rem 2.25rem;
    border-bottom: 1px solid var(--linha);
}

.area-servicos li::before {
    content: "";
    position: absolute;
    top: 1.95rem;
    left: 0;
    width: 1.25rem;
    height: 2px;
    background: var(--dourado);
}

.contato {
    display: grid;
    gap: 3.5rem;
}

.contato__canais {
    min-width: 0;
}

.contato dl {
    margin: 2rem 0 0;
}

.contato__canal {
    padding: 1rem 0;
    border-bottom: 1px solid var(--linha);
}

.contato dt {
    color: var(--tinta-suave);
    font-size: 0.9375rem;
}

.contato dd {
    margin: 0.2rem 0 0;
    color: var(--azul);
    font-size: 1.375rem;   /* e-mail e telefone em Raleway: Cinzel poria o endereço em maiúsculas */
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contato__processo ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: passo;
}

.contato__processo li {
    position: relative;
    padding: 1.1rem 0 1.1rem 3.25rem;
    border-bottom: 1px solid var(--linha);
    counter-increment: passo;
}

.contato__processo li::before {
    content: counter(passo);
    position: absolute;
    top: 0.65rem;
    left: 0;
    color: var(--dourado);
    font-family: var(--serifada);
    font-size: 2.25rem;
    font-variant-numeric: lining-nums;
    font-weight: 600;
    line-height: 1;
}

.texto-legal > * {
    max-width: 40rem;
    margin-right: auto;
    margin-left: auto;
}

.texto-legal h2 {
    margin-top: 2.25rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.sobre-quem-somos {
    display: grid;
    gap: 1rem 3rem;
}

.sobre-quem-somos__texto {
    max-width: 44rem;
}

.sobre-quem-somos__texto p:first-child {
    color: var(--azul);
    font-size: clamp(1.3125rem, 2.6vw, 1.625rem);
    font-weight: 500;
    line-height: 1.45;
}

.sobre-fundador {
    display: grid;
    gap: 2.5rem;
    background: var(--branco);
}

.sobre-fundador__retrato {
    margin: var(--deslocamento) var(--deslocamento) 0 0;
}

.sobre-fundador__retrato::before {
    border-color: var(--dourado);
}

.sobre-fundador__foto {
    aspect-ratio: 3 / 4;
    object-position: 50% 12%;
}

.sobre-fundador__texto h2 {
    margin-bottom: 0.25rem;
}

.sobre-fundador__oab {
    margin-bottom: 1.5rem;
    color: var(--tinta-suave);
    font-size: 1rem;
}

.sobre-fundador__texto h3 {
    margin: 2rem 0 0.5rem;
}

.sobre-fundador__texto ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sobre-fundador__texto li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.75rem;
    border-bottom: 1px solid var(--linha);
    font-size: 1rem;
}

.sobre-fundador__texto li::before {
    content: "";
    position: absolute;
    top: 1.3rem;
    left: 0;
    width: 0.9rem;
    height: 2px;
    background: var(--dourado);
}

.pilares h2 {
    margin-bottom: 2rem;
}

.pilares h3 {
    margin-bottom: 0.4rem;
}

.pilares blockquote {
    max-width: 40rem;
    margin: var(--secao) auto 0;
    color: var(--azul);
    font-size: clamp(1.5rem, 3.4vw, 2.125rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
}

.pilares blockquote::before {
    content: "";
    display: block;
    width: 6rem;
    aspect-ratio: 480 / 277;
    margin: 0 auto 1rem;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
}

.erro {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 12vw, 8rem);
}

.erro::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: 1rem;
    width: min(28rem, 70%);
    aspect-ratio: 480 / 277;
    background: url('/assets/img/assinatura-ar.png') center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.erro h1 {
    max-width: 20ch;
}

.erro p {
    position: relative;
    max-width: 36rem;
    color: var(--tinta-suave);
}

.erro .erro__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ---------- Rodapé ---------- */
.rodape {
    position: relative;
    display: grid;
    gap: 2rem;
    padding: var(--secao) var(--margem) calc(var(--secao) + 3rem);
    background: var(--azul-profundo);
    color: var(--cinza);
    font-size: 1rem;
}

.rodape p {
    margin: 0;
}

.rodape a {
    color: var(--branco);
    text-decoration-color: var(--dourado-claro);
}

.rodape__marca {
    min-width: 0;
}

.rodape__assinatura {
    display: block;
    width: 6rem;
    margin-bottom: 1rem;
}

.rodape__nome {
    color: var(--branco);
    font-family: var(--serifada);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.rodape__oab {
    margin-top: 0.25rem;
}

.rodape__contatos {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rodape__notas {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-flutuante {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    box-shadow: 0 6px 18px rgba(0, 40, 63, 0.3);
    color: var(--branco);
    text-decoration: none;
}

.whatsapp-flutuante::before {
    content: "";
    width: 30px;
    height: 30px;
    background: currentColor;
    -webkit-mask: var(--icone-whatsapp) center / contain no-repeat;
    mask: var(--icone-whatsapp) center / contain no-repeat;
}

.whatsapp-flutuante:hover {
    background: #146a3c;
}

.whatsapp-flutuante:focus-visible {
    outline: 3px solid var(--branco);
    outline-offset: 0;
    box-shadow: 0 0 0 6px var(--azul);
}

.whatsapp-flutuante__rotulo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==========================================================================
   Tablet (≥ 48rem)
   ========================================================================== */
@media (min-width: 48rem) {
    .topo {
        flex-wrap: nowrap;
    }

    .js .topo__menu-botao {
        display: none;
    }

    .topo__nav {
        flex-basis: auto;
    }

    .js .topo__nav:not(.topo__nav--aberto) {
        display: block;
    }

    .topo__nav ul {
        display: flex;
        gap: 1.6rem;
        padding: 0;
    }

    .topo__nav a {
        padding: 0.5rem 0;
        border-top: 0;
        color: var(--texto-sobre-azul);
        font-size: 1rem;
    }

    .topo__nav a:hover {
        color: var(--branco);
        box-shadow: inset 0 -2px 0 rgba(212, 166, 58, 0.6);
    }

    .topo__nav a[aria-current="page"] {
        padding-left: 0;
        box-shadow: inset 0 -2px 0 var(--dourado-claro);
        color: var(--branco);
    }

    .hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        align-items: end;
        gap: 2rem;
    }

    .hero__conteudo {
        align-self: center;
        padding-bottom: calc(var(--onda) + 2rem);
    }

    .hero__retrato {
        width: 100%;
        max-width: 30rem;
    }

    .hero__foto {
        aspect-ratio: 2 / 3;
    }

    .numeros {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .numeros__item {
        display: block;
        padding: 0.5rem 1.5rem 0.5rem 2rem;
        border-top: 0;
        border-left: 1px solid var(--linha);
    }

    .numeros__item:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .numeros__valor {
        display: block;
        margin-bottom: 0.75rem;
        font-size: clamp(3.75rem, 6.5vw, 5.75rem);
    }

    .grade-areas,
    .pilares ul,
    .como-trabalhamos__etapas,
    .grade-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grade-posts__destaque .card-post:has(.card-post__capa) {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        grid-template-rows: 1fr auto auto 1fr;
        column-gap: 2.5rem;
    }

    .grade-posts__destaque .card-post__capa {
        grid-row: 1 / 5;
        margin: 0;
    }

    .grade-posts__destaque .card-post__meta {
        grid-row: 2;
        align-self: end;
    }

    .grade-posts__destaque .card-post__titulo {
        grid-row: 3;
    }

    .grade-posts__destaque .card-post__resumo {
        grid-row: 4;
    }

    .diferencial {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: center;
        gap: 4rem;
    }

    .area-servicos,
    .sobre-quem-somos {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .contato {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5rem;
    }

    .sobre-fundador {
        grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
        align-items: start;
        gap: 4rem;
    }

    .sobre-fundador__foto {
        aspect-ratio: 2 / 3;
    }

    .rodape {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
        padding-bottom: var(--secao);
    }
}

/* ==========================================================================
   Desktop (≥ 72rem)
   ========================================================================== */
@media (min-width: 72rem) {
    .topo__nav ul {
        gap: 2.25rem;
    }

    .grade-areas,
    .grade-posts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .como-trabalhamos__etapas {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero__conteudo {
        padding-bottom: calc(var(--onda) + 4rem);
    }

    .diferencial__lancamentos div {
        grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr);
        align-items: baseline;
        gap: 1.5rem;
    }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
