/* Identidade do logotipo oficial: preto + dourado metálico, letreiro em sans geométrica */
:root {
  --black: #050505;
  --black-2: #141210;
  --gold: #e3a823;        /* dourado principal do logo */
  --gold-light: #ffd966;
  --gold-dark: #7d5408;   /* dourado legível sobre o concreto */
  --gold-grad: linear-gradient(135deg, #ffe07a 0%, #e9b02a 40%, #c98a12 70%, #f2c955 100%);
  --ink: #161514;
  --muted: #45443f;  /* mais escuro para manter a leitura sobre o concreto */
  /* Fundo cor de concreto: cinza neutro-frio em degradê + textura leve de cimento */
  --bg: #c2c1bd;      /* cor de reserva */
  --bg-grad: url("assets/concreto.png"), linear-gradient(180deg, #d3d2cf 0%, #b7b6b1 100%);
  --bg-alt: #c9c8c4;  /* citações e destaques dentro do texto */
  --surface: #ffffff; /* cards e formulários continuam brancos para destacar */
  --line: #dddad3;
  --radius: 4px;
  --head: "Montserrat", "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background-color: var(--bg); background-image: var(--bg-grad); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: #fff; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
.center { text-align: center; }

.eyebrow { font-family: var(--head); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin: 0 0 .9rem; }

/* Filete dourado com balança — como sob o letreiro do logo */
h2.center::after {
  content: ""; display: block; width: 240px; height: 22px; margin: 16px auto 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99d1c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M7 20h10M4 7h16'/%3E%3Cpath d='M6 7l-3 6.5a3 3 0 0 0 6 0L6 7Zm12 0-3 6.5a3 3 0 0 0 6 0L18 7Z'/%3E%3C/svg%3E") center / 22px 22px no-repeat,
    linear-gradient(90deg, transparent, var(--gold)) left center / calc(50% - 20px) 2px no-repeat,
    linear-gradient(90deg, var(--gold), transparent) right center / calc(50% - 20px) 2px no-repeat;
}

/* Botões */
.btn { display: inline-block; background: var(--gold-grad); color: #111; text-decoration: none; padding: .85rem 1.6rem; border-radius: var(--radius); border: 0; transition: filter .2s, transform .2s; cursor: pointer; font: 700 .9rem var(--head); letter-spacing: .03em; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-light); filter: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .82rem; }

/* Cabeçalho */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5,5,5,.97); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(227,168,35,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { width: 66px; height: auto; }
.brand-text { font-family: var(--head); font-weight: 500; font-size: 1.05rem; letter-spacing: .03em; }
.brand-text b { font-weight: 800; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { color: #ece7dd; text-decoration: none; font-size: .92rem; }
.menu a:not(.btn):hover { color: var(--gold-light); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { background: var(--black); /* mesmo preto do fundo do logo, para fundir a imagem */
  color: #e6e1d8; padding: clamp(60px, 10vw, 120px) 0; border-bottom: 2px solid transparent; border-image: var(--gold-grad) 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero-grid .lockup { order: 2; }
.hero-inner { max-width: 640px; }
.hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.1rem; max-width: 600px; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.lockup { text-align: center; }
.lockup img {
  width: 100%; max-width: 520px; margin: 0 auto;
  /* suaviza as bordas da foto para fundir com o fundo preto */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.lockup-names { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: #bdb6a8; margin: 6px 0 0; line-height: 2; }

/* Seções */
.section { padding: clamp(64px, 9vw, 110px) 0; }
/* faixas alternadas: sombreado em degradê sobre o cinza de fundo */
.section-alt { background: linear-gradient(180deg, rgba(0,0,0,.025) 0%, rgba(0,0,0,.075) 100%); }
.section-dark { background: var(--black); color: #e6e1d8; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose p { color: var(--muted); margin: 0 0 1.1rem; }
.values { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.values li { padding-left: 1.2rem; border-left: 2px solid var(--gold); color: var(--muted); }
.values strong { color: var(--ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.cards-featured { margin-top: 2.8rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.4); border-color: var(--gold); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 50%; background: #0d0d0d; display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card.card-featured { background: #0d0d0d; border-color: rgba(227,168,35,.35); }
.card-featured h3 { color: var(--gold-light); }
.card-featured p { color: #cfc8bb; }
.card-featured .icon { background: var(--gold-grad); }
.card-featured .icon svg { stroke: #111; }

/* Equipe */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 2.8rem; }
.person { display: flex; gap: 22px; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.team-more { margin-top: 2.2rem; }

/* Foto com fallback para as iniciais (se a foto não existir, a img se remove) */
.photo { position: relative; overflow: hidden; display: grid; place-items: center; background: #0d0d0d; color: var(--gold); font-family: var(--head); font-weight: 800; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.photo { border-radius: 50%; }

/* Página dos advogados */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.profile:last-of-type { border-bottom: 0; }
.profile:nth-of-type(even) { grid-template-columns: 1fr 340px; }
.profile:nth-of-type(even) .portrait { order: 2; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); font-size: 4.5rem; box-shadow: 0 24px 50px -30px rgba(0,0,0,.55); outline: 1px solid rgba(227,168,35,.5); outline-offset: 10px; }
.profile h2 { margin-bottom: .2rem; }
.profile .oab { font-size: .95rem; }
.profile .role { font-family: var(--head); font-weight: 600; color: var(--ink); margin: 0 0 1.2rem; }
.profile .bio p { color: var(--muted); margin: 0 0 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1.4rem 0; }
.tags li { font: 600 .8rem var(--head); padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.profile-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; filter: none; }
.profile .post-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 1.6rem; }
.profile .post-card a { padding: 18px 20px; }
.profile .post-card p { display: none; }
.todo { background: #fff7d6; border: 1px dashed #c98a12; color: #6b4e08; padding: .2rem .5rem; border-radius: 3px; font-size: .9em; }
.avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; background: #0d0d0d; color: var(--gold); display: grid; place-items: center; font-family: var(--head); font-size: 1.5rem; font-weight: 800; border: 2px solid var(--gold); }
.person h3 { margin-bottom: .1rem; }
.oab { font-family: var(--head); color: var(--gold-dark); font-weight: 700; letter-spacing: .06em; font-size: .85rem; margin: 0 0 .6rem; }
.person p:not(.oab) { color: var(--muted); margin: 0; font-size: .95rem; }
.person p.social { margin-top: .6rem; font-size: .88rem; }
.person p.social a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.person p.social a:hover { text-decoration: underline; }

/* Contato */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.3rem; }
.contact-list span { display: block; font-family: var(--head); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); border-top: 3px solid var(--gold); padding: clamp(22px, 4vw, 34px); display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf7; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form .invalid { border-color: #b3403a; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }

.map iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(.5); }

/* Rodapé */
.footer { background: var(--black); color: #a39d92; font-size: .85rem; padding: 36px 0 28px; text-align: center; border-top: 1px solid rgba(227,168,35,.3); }
.footer-logo { width: 230px; margin: 0 auto 10px;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.footer-names { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #e6e1d8; margin: 0 0 1.2rem; }
.footer-inner p { margin: .3rem 0; }

/* Artigos — listagem */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.8rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.4); }
.post-card a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px; text-decoration: none; color: inherit; }
.post-card h3 { font-size: 1.15rem; margin: .6rem 0 .5rem; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 1.2rem; flex: 1; }
.post-area { font-family: var(--head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.post-meta { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }
.post-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.more-link { margin-top: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2rem; }
.chip { font: 600 .82rem var(--head); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: #0d0d0d; color: var(--gold-light); border-color: #0d0d0d; }

/* Cabeçalho das páginas internas */
.page-head { background: var(--black); color: #e6e1d8; padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px); border-bottom: 2px solid transparent; border-image: var(--gold-grad) 1; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 860px; }
.page-head .eyebrow { color: var(--gold); }
.page-head p { max-width: 720px; margin: 0; }
.crumbs { font-size: .82rem; margin-bottom: 1.2rem; color: #a39d92; }
.crumbs a { color: var(--gold-light); text-decoration: none; }

/* Artigo */
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem; color: #bdb6a8; margin-top: 1rem; }
.article-meta strong { color: #fff; font-weight: 600; }
.article-body { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0; font-size: 1.07rem; line-height: 1.8; }
.article-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2.2rem 0 .8rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--gold); background: var(--bg-alt); color: var(--muted); }
.article-body a { color: var(--gold-dark); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1.1rem 1.3rem; margin: 2rem 0; background: var(--bg-alt); font-size: .98rem; }
.author-box { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; margin-top: 2.6rem; }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.1rem; }
.author-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.author-box strong { color: var(--ink); }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 1.6rem; }
.article-cta { background: #0d0d0d; color: #e6e1d8; border-radius: var(--radius); padding: 1.6rem; margin-top: 2rem; text-align: center; }
.article-cta h3 { color: #fff; margin-bottom: .4rem; }
.article-cta p { margin: 0 0 1.1rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgba(0,0,0,.4); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Responsivo */
@media (max-width: 960px) {
  .cards, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .lockup { order: 0; }
  .lockup img { max-width: 380px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 8px 16px 20px; border-bottom: 1px solid rgba(227,168,35,.35); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu .btn { margin-top: 14px; text-align: center; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .team { grid-template-columns: 1fr; }
  .profile, .profile:nth-of-type(even) { grid-template-columns: 1fr; }
  .profile:nth-of-type(even) .portrait { order: 0; }
  .portrait { width: min(280px, calc(100% - 24px)); margin: 0 auto; }
}
@media (max-width: 520px) {
  .cards, .post-grid { grid-template-columns: 1fr; }
  .person { flex-direction: column; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  .lockup-names { font-size: .64rem; letter-spacing: .06em; }
  .footer-names { font-size: .72rem; }
}
