/* Filipe Queiroz Advogados — estilos comuns do site */
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/CormorantGaramond-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/CormorantGaramond-Italic-500.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-VF.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --grafite: #282D30;
  --bordo: #6E0813;
  --branco: #FFFFFF;
  --off-white: #F7F5F2;
  --cinza-apoio: #F0EFED;
  --cinza-faixa: #E3E0DB;
  --fonte-titulo: 'Cormorant Garamond', Georgia, serif;
  --fonte-corpo: 'Montserrat', system-ui, sans-serif;
  --largura: 1160px;
  --altura-cabecalho: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-wrap: break-word; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--fonte-corpo); font-weight: 400; font-size: 16px; line-height: 1.7; color: var(--grafite); background: var(--off-white); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; }
.apoio { font-size: .72rem; font-weight: 300; letter-spacing: .3em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }
.cabecalho :focus-visible, .rodape :focus-visible, .secao--escura :focus-visible { outline-color: #fff; }

.pular { position: absolute; left: -999px; top: 0; background: var(--bordo); color: #fff; padding: .6rem 1rem; z-index: 100; }
.pular:focus { left: 0; }

/* Seções */
.secao { padding: 5rem 1.5rem; }
.secao > .conteudo { max-width: var(--largura); margin: 0 auto; }
.secao--clara { background: var(--off-white); color: var(--grafite); }
.secao--escura { background: var(--grafite); color: #fff; }
.secao--primeira { padding-top: calc(var(--altura-cabecalho) + 4rem); }

/* Botões */
.botao { display: inline-block; padding: .85rem 1.5rem; font-family: var(--fonte-corpo); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.botao--bordo { background: var(--bordo); color: #fff; border-color: var(--bordo); }
.botao--bordo:hover { background: #570610; border-color: #570610; }
.botao--contorno { background: transparent; color: inherit; border-color: currentColor; }
.botao--contorno:hover { background: rgba(255, 255, 255, .1); }
.secao--clara .botao--contorno:hover { background: rgba(40, 45, 48, .06); }

/* Cabeçalho translúcido sobre o hero */
.cabecalho { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
/* fundo e desfoque num pseudo-elemento: backdrop-filter no próprio cabeçalho viraria o bloco contêiner da gaveta fixa */
.cabecalho::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40, 45, 48, .9), rgba(40, 45, 48, .55)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cabecalho__interno { max-width: var(--largura); margin: 0 auto; padding: 0 1.5rem; min-height: var(--altura-cabecalho); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cabecalho__logo { display: block; flex: none; line-height: 0; }
.cabecalho__logo img { height: 32px; width: auto; display: block; }

.menu { display: flex; align-items: center; gap: 1.6rem; font-size: .68rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.menu a { text-decoration: none; padding: .4rem 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu__item { position: relative; }
.menu__sub { display: none; position: absolute; top: 100%; left: -1rem; min-width: 12rem; padding: .6rem 1rem; background: var(--grafite); flex-direction: column; gap: .2rem; }
.menu__item:hover .menu__sub, .menu__item--aberto .menu__sub { display: flex; }
.menu__rotulo { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: .4rem 0; display: inline-block; }
.menu__rotulo::after { content: ''; display: inline-block; width: .4em; height: .4em; margin-left: .7em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.menu .botao { padding: .6rem 1rem; letter-spacing: .14em; }
.menu .botao:hover { text-decoration: none; }

.menu-botao { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.menu-botao span, .menu-botao span::before, .menu-botao span::after { display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; transition: transform .2s, background .2s; }
.menu-botao span::before, .menu-botao span::after { content: ''; position: absolute; left: 0; }
.menu-botao span::before { top: -6px; }
.menu-botao span::after { top: 6px; }
.menu-botao[aria-expanded="true"] span { background: transparent; }
.menu-botao[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Gaveta no celular */
@media (max-width: 899px) {
  .cabecalho__logo img { height: 24px; }
  .menu-botao { display: block; }
  .menu { position: fixed; top: var(--altura-cabecalho); right: 0; bottom: 0; width: min(86vw, 340px); background: var(--grafite); flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; font-size: .78rem; }
  .menu.menu--aberto { transform: none; visibility: visible; }
  .menu > a, .menu__item > .menu__rotulo { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); display: block; width: 100%; text-align: left; }
  .menu__rotulo { cursor: default; pointer-events: none; }
  .menu__rotulo::after { display: none; }
  .menu__sub { display: flex; position: static; padding: 0 0 .4rem 1rem; background: transparent; }
  .menu__sub a { padding: .7rem 0; display: block; }
  .menu .botao { margin-top: 1.5rem; text-align: center; padding: .9rem 1rem; }
}

/* Faixa de credenciais */
.faixa-credenciais { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--off-white); color: var(--grafite); }
.faixa-credenciais > div { padding: 1.4rem 1.6rem; font-size: .8rem; line-height: 1.5; }
.faixa-credenciais > div + div { border-left: 1px solid var(--cinza-faixa); }
.faixa-credenciais b { display: block; font-family: var(--fonte-titulo); font-size: 1.5rem; font-weight: 500; color: var(--bordo); margin-bottom: .15rem; }
@media (max-width: 899px) {
  .faixa-credenciais { grid-template-columns: 1fr 1fr; }
  .faixa-credenciais > div:nth-child(3) { border-left: 0; }
  .faixa-credenciais > div:nth-child(n+3) { border-top: 1px solid var(--cinza-faixa); }
}
@media (max-width: 520px) {
  .faixa-credenciais { grid-template-columns: 1fr; }
  .faixa-credenciais > div + div { border-left: 0; border-top: 1px solid var(--cinza-faixa); }
}

/* Rodapé */
.rodape { background: var(--grafite); color: #d9d7d3; padding: 3.5rem 1.5rem 2rem; font-size: .85rem; }
.rodape__interno { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.rodape__logo img { height: 36px; width: auto; display: block; }
.rodape p { margin: .35rem 0; }
.rodape a { text-decoration: underline; text-underline-offset: 3px; }
.rodape__id { font-size: .68rem; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.rodape__fim { max-width: var(--largura); margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .75rem; color: #a9a7a4; }
@media (max-width: 720px) { .rodape__interno { grid-template-columns: 1fr; } }

/* WhatsApp fixo */
.whatsapp-fixo { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem; background: var(--bordo); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.whatsapp-fixo:hover { background: #570610; }
.whatsapp-fixo svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (max-width: 520px) { .whatsapp-fixo { right: .75rem; bottom: .75rem; padding: .85rem 1rem; } }

/* Home */
.hero { position: relative; overflow: hidden; background: #1e2225; padding: calc(var(--altura-cabecalho) + 4rem) 1.5rem 4.5rem; min-height: 640px; display: flex; align-items: center; }
.hero__foto { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__veu { position: absolute; inset: 0; background: linear-gradient(90deg, #282D30 0%, #282D30 40%, rgba(40, 45, 48, .82) 52%, rgba(40, 45, 48, .15) 78%, transparent); }
.hero__conteudo { position: relative; z-index: 2; width: 100%; max-width: var(--largura); margin: 0 auto; }
.hero__conteudo > * { max-width: 520px; }
.hero__chamada { color: #d9c4c6; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.04; margin-bottom: 1rem; }
.hero h1 em { color: #e8d7d8; }
.hero__texto { color: #e4e2df; font-size: .9rem; max-width: 440px; margin: 0 0 1.6rem; }
.entradas { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 480px; margin-bottom: 1.2rem; }
.entrada { position: relative; display: block; padding: .9rem 1rem; font-size: .78rem; line-height: 1.45; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); transition: background .2s; }
.entrada:hover { background: rgba(255, 255, 255, .12); }
.entrada--cheia { background: var(--bordo); border-color: var(--bordo); }
.entrada--cheia:hover { background: #570610; }
.entrada b { display: block; font-family: var(--fonte-titulo); font-size: 1.3rem; font-weight: 500; margin-bottom: .2rem; }
.entrada__seta { position: absolute; top: .8rem; right: .9rem; }
.hero__id { color: #c9c6c2; font-size: .65rem; letter-spacing: .22em; margin: 0; }

@media (max-width: 899px) {
  /* foto em bloco no alto, véu só na transição para o texto */
  .hero { display: block; min-height: 0; padding: 0 0 3rem; background: #282D30; }
  .hero__foto { position: static; display: block; width: 100%; height: 340px; }
  .hero__veu { inset: 0 0 auto 0; height: 340px; background: linear-gradient(180deg, rgba(40, 45, 48, .55) 0, transparent 28%, transparent 55%, #282D30 100%); }
  .hero__conteudo { margin-top: -2.5rem; padding: 0 1.5rem; }
}
@media (max-width: 520px) { .entradas { grid-template-columns: 1fr; } }

.secao h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.secao .apoio { margin: 0 0 .8rem; color: var(--bordo); }
.secao--escura .apoio { color: #d9c4c6; }

.cartoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.cartao { background: #fff; border-top: 2px solid var(--bordo); box-shadow: 0 1px 0 var(--cinza-faixa); padding: 1.5rem 1.3rem; display: flex; flex-direction: column; }
.cartao h3 { font-size: 1.6rem; }
.cartao p { margin: 0 0 .8rem; font-size: .88rem; }
.cartao__link { margin-top: auto; padding-top: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bordo); text-decoration: none; }
.cartao__link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) { .cartoes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cartoes { grid-template-columns: 1fr; } }

.advogado { display: grid; grid-template-columns: 380px 1fr; gap: 3.5rem; align-items: center; }
.advogado__foto { width: 100%; height: auto; display: block; }
.advogado__texto p { color: #e4e2df; }
.advogado__livro { border-left: 2px solid var(--bordo); padding-left: 1rem; margin: 1.5rem 0; }
.advogado__livro .apoio { display: block; margin-bottom: .3rem; }
.advogado__livro i { font-family: var(--fonte-titulo); font-size: 1.3rem; line-height: 1.25; }
@media (max-width: 800px) { .advogado { grid-template-columns: 1fr; gap: 2rem; } .advogado__foto { max-width: 340px; } }

.secao > .conteudo--estreito { max-width: 820px; }
details { border-bottom: 1px solid var(--cinza-faixa); }
details:first-of-type { border-top: 1px solid var(--cinza-faixa); margin-top: 1.5rem; }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--fonte-titulo); font-size: 1.35rem; line-height: 1.25; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: .3rem; top: 1rem; font-family: var(--fonte-corpo); color: var(--bordo); }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 1.2rem; font-size: .92rem; max-width: 700px; }

.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contato p { color: #e4e2df; }
.botao--grande { padding: 1.1rem 2rem; font-size: .8rem; margin: .5rem 0 1.5rem; }
.contato__dados { font-style: normal; }
.contato__dados p { margin: .4rem 0; }
.contato__dados a { text-underline-offset: 3px; }
@media (max-width: 800px) { .contato { grid-template-columns: 1fr; gap: 2rem; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Páginas Pacientes e Médicos */
.topo { position: relative; overflow: hidden; background: #1e2225; padding: calc(var(--altura-cabecalho) + 3rem) 1.5rem 3.5rem; min-height: 420px; display: flex; align-items: center; }
.topo__foto { position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; object-position: center 25%; }
.topo__veu { position: absolute; inset: 0; background: linear-gradient(90deg, #282D30 0%, #282D30 48%, rgba(40, 45, 48, .8) 60%, rgba(40, 45, 48, .1) 85%, transparent); }
.topo__conteudo { position: relative; z-index: 2; width: 100%; max-width: var(--largura); margin: 0 auto; }
.topo__conteudo > * { max-width: 560px; }
.topo__chamada { color: #d9c4c6; margin: 0 0 1rem; }
.topo h1 { font-size: clamp(2.2rem, 4.6vw, 3.1rem); line-height: 1.06; margin-bottom: 1rem; }
.topo__texto { color: #e4e2df; font-size: .92rem; margin: 0 0 1.5rem; }
.topo__atalhos { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.topo__atalhos a { text-underline-offset: 5px; }

.tema { border-bottom: 1px solid var(--cinza-faixa); }
.tema > .conteudo > p.tema__intro { max-width: 720px; margin: 0 0 2rem; }
.tema__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tema__bloco { background: #fff; border-top: 2px solid var(--bordo); box-shadow: 0 1px 0 var(--cinza-faixa); padding: 1.5rem; }
.tema__bloco h3 { font-size: 1.45rem; }
.tema__bloco p, .tema__bloco li { font-size: .88rem; }
.tema__bloco p { margin: 0 0 .8rem; }
.tema__bloco ul { margin: 0; padding-left: 1.1rem; }
.tema__bloco li { margin-bottom: .4rem; }
.tema__saida { margin-top: 1.8rem; font-size: .92rem; max-width: 720px; }
.tema__saida a:not(.botao) { font-weight: 600; text-underline-offset: 4px; }
.chamada-final { text-align: center; }
.chamada-final .conteudo { max-width: 720px; }
.chamada-final p { color: #e4e2df; }

@media (min-width: 901px) {
  /* foto de perfil com o rosto à esquerda: afasta o véu do rosto */
  .topo__foto[src*="topo-civel"] { left: 46%; width: 54%; right: auto; }
  .topo__foto[src*="topo-civel"] ~ .topo__conteudo > * { max-width: min(560px, 44vw); }
  .topo__foto[src*="topo-civel"] + .topo__veu { background: linear-gradient(90deg, #282D30 0%, #282D30 46%, rgba(40, 45, 48, .7) 50%, rgba(40, 45, 48, 0) 57%); }
}
@media (max-width: 900px) {
  .topo { display: block; min-height: 0; padding: 0 0 2.5rem; background: #282D30; }
  .topo__foto { position: static; display: block; width: 100%; height: 300px; }
  .topo__veu { inset: 0 0 auto 0; height: 300px; background: linear-gradient(180deg, rgba(40, 45, 48, .55) 0, transparent 28%, transparent 55%, #282D30 100%); }
  .topo__conteudo { margin-top: -2.5rem; padding: 0 1.5rem; }
  .tema__grade { grid-template-columns: 1fr; }
}

/* O advogado e privacidade */
.advogado__topo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.advogado__foto { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center 20%; }
.politica h2 { font-size: 1.7rem; margin-top: 2rem; }
@media (max-width: 760px) {
  .advogado__topo { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Formulário de contato */
.formulario__campo, .formulario__aceite { margin: 0 0 1rem; }
.formulario label { display: block; font-size: .8rem; margin-bottom: .3rem; color: #e4e2df; }
.formulario label span { opacity: .7; }
.formulario input[type="text"], .formulario input[type="tel"], .formulario input[type="email"], .formulario select { width: 100%; box-sizing: border-box; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--grafite, #282D30); background: #fff; border: 1px solid #E3E0DB; border-radius: 0; }
.formulario__aceite label { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; }
.formulario__aceite input { margin-top: .25rem; flex: none; }
.formulario__aceite a, .formulario__estado a { color: inherit; text-underline-offset: 3px; }
.formulario__armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario .botao:disabled { opacity: .6; cursor: wait; }
.formulario__estado { margin: 0; padding: 1rem; border: 1px solid rgba(255, 255, 255, .4); }
.formulario__estado[hidden] { display: none; }
