/* VF Advogados — folha de estilos única do site */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 300; font-display: swap; src: url("/assets/fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }

:root {
  --black: #0E0F0F;
  --ink: #1A1C1C;
  --gray: #6B6B6B;
  --line: #D9D9D9;
  --paper: #F4F4F2;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header: 72px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--black); }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 136px); }
.dark { background: var(--black); color: var(--white); }
.paper { background: var(--paper); }

/* Rótulo com traço curto, como na placa da fachada */
.label { font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gray); }
.label::after { content: ""; display: block; width: 40px; height: 1px; margin-top: 12px; background: currentColor; }
.dark .label { color: var(--line); }

/* Botões */
.btn { display: inline-block; padding: 14px 28px; border: 1px solid var(--black); background: var(--black); color: var(--white); font-size: .84rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.btn:hover { background: transparent; color: var(--black); }
.dark .btn { border-color: var(--white); background: var(--white); color: var(--black); }
.dark .btn:hover { background: transparent; color: var(--white); }

/* Campo a preencher: fica visível de propósito até ser substituído */
.fill { padding: 0 6px; border: 1px dashed currentColor; font-size: .92em; white-space: normal; }

/* Cabeçalho */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); background: var(--black); color: var(--white); border-bottom: 1px solid var(--ink); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand img { width: auto; height: 38px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a:not(.btn) { padding-block: 6px; font-size: .94rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .2s; }
.nav a:not(.btn):hover { background-size: 100% 1px; }
.nav .btn { padding: 10px 18px; font-size: .74rem; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 7px auto; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header) 0 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 16px var(--gutter) 32px; background: var(--black); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav.open { visibility: visible; opacity: 1; }
  .nav a:not(.btn) { width: 100%; padding-block: 18px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 1.7rem; background: none; }
  .nav .btn { margin-top: 28px; padding: 14px 24px; font-size: .84rem; }
}

/* Hero: a composição da porta, com o reflexo diagonal do vidro */
.hero { position: relative; display: grid; place-items: center; min-height: 100svh; padding: calc(var(--header) + 40px) var(--gutter) 40px; overflow: hidden; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -20% auto -20% 8%; width: 26%; background: var(--white); opacity: .028; transform: skewX(-14deg); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: -20% 6% -20% auto; width: 12%; background: var(--white); opacity: .02; transform: skewX(-14deg); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(176px, 34vw, 340px); height: auto; }
.hero-rule { width: 160px; height: 1px; margin-block: clamp(32px, 5vh, 48px); background: var(--gray); }
.hero h1 { max-width: 17em; font-size: clamp(1.9rem, 4.4vw, 3.25rem); }
.hero .btn { margin-top: clamp(32px, 5vh, 44px); }
.hero-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; margin-top: clamp(40px, 7vh, 64px); font-size: .92rem; color: var(--line); }
.hero-names small { display: block; font-size: .72rem; letter-spacing: .18em; }

/* O Escritório */
.about { display: grid; gap: 32px clamp(40px, 8vw, 112px); }
.about h2 { margin-top: 28px; }
.about-text p + p { margin-top: 1.1em; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; } .about-text { padding-top: 46px; } }

/* Áreas */
.section-head h2 { margin-top: 28px; }
.areas { display: grid; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area { padding: clamp(28px, 3.4vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.area svg { width: 36px; height: 36px; fill: none; stroke: var(--black); stroke-width: 1.1; stroke-linecap: square; stroke-linejoin: miter; }
.area h3 { margin-top: 22px; font-size: 1.6rem; }
.area p { margin-top: 12px; font-size: 1rem; color: var(--gray); }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.more-areas { display: grid; gap: 12px; margin-top: 40px; }
.more-areas p { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); }
.more-areas ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.more-areas li { color: var(--ink); }
.more-areas li:not(:last-child)::after { content: "·"; margin-inline: 12px; color: var(--gray); }

/* Advogados */
.lawyers { display: grid; gap: 1px; margin-top: clamp(40px, 6vw, 64px); background: var(--ink); border: 1px solid var(--ink); }
.lawyer { display: flex; flex-direction: column; background: var(--black); }
.portrait { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--ink); color: var(--gray); font: 500 clamp(3.5rem, 8vw, 5.5rem)/1 var(--serif); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.lawyer-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3.4vw, 40px); }
.lawyer h3 { font-size: 1.9rem; }
.oab { font-size: .78rem; font-weight: 500; letter-spacing: .2em; color: var(--line); }
.lawyer-link { margin-top: auto; padding-top: 10px; font-size: .84rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-underline-offset: 6px; }
@media (min-width: 720px) { .lawyers { grid-template-columns: repeat(2, 1fr); } }

/* Contato */
.contact { display: grid; gap: 40px clamp(40px, 7vw, 96px); }
.contact h2 { margin-top: 28px; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-list div { display: grid; gap: 2px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); }
.contact-list a { text-underline-offset: 4px; }
.contact .btn { margin-top: 32px; }
.map { min-height: 340px; border: 1px solid var(--line); background: var(--paper); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 6fr; } }

/* Páginas internas */
.page-top { padding-block: calc(var(--header) + clamp(56px, 9vw, 104px)) clamp(48px, 7vw, 80px); }
.page-top h1 { margin-top: 28px; font-size: clamp(2.5rem, 6vw, 4.25rem); }
.page-top .oab { display: block; margin-top: 16px; font-size: .86rem; }
.back { display: inline-block; margin-bottom: 40px; font-size: .92rem; color: var(--line); text-underline-offset: 4px; }
.profile { display: grid; gap: 40px clamp(40px, 7vw, 96px); }
.profile .portrait { aspect-ratio: 4 / 5; }
.profile-block + .profile-block { margin-top: 44px; }
.profile-block h2 { margin-bottom: 16px; font-size: 1.9rem; }
.profile .btn { margin-top: 44px; }
@media (min-width: 900px) { .profile { grid-template-columns: 4fr 7fr; } .profile-side { position: sticky; top: calc(var(--header) + 32px); align-self: start; } }
.prose { max-width: 720px; }
.prose h2 { margin-block: 2em .5em; font-size: 1.8rem; }
.prose p + p, .prose ul { margin-top: 1em; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--gray); }
.prose a { text-underline-offset: 3px; }

/* Rodapé */
.footer { padding-block: clamp(56px, 7vw, 80px) 32px; border-top: 1px solid var(--ink); }
.footer-grid { display: grid; gap: 36px clamp(32px, 6vw, 80px); }
.footer-logo { width: 150px; height: auto; }
.footer h2 { margin-bottom: 12px; font: 500 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--line); }
.footer li + li { margin-top: 6px; }
.footer a { text-underline-offset: 4px; }
.footer small { display: block; font-size: .76rem; letter-spacing: .12em; color: var(--line); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); font-size: .86rem; color: var(--line); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.1fr 1.2fr 1.2fr .8fr; } }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--white); background: var(--black); color: var(--white); transition: background-color .2s, color .2s; }
.wa-float:hover { background: var(--white); color: var(--black); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* Entrada ao rolar: só existe com JS ativo e movimento permitido */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.motion .reveal.in { opacity: 1; transform: none; }

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

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

/* Ajustes finais */
h1, h2, h3 { text-wrap: balance; }
.portrait { aspect-ratio: 4 / 5; }
@media (min-width: 1000px) {
  .lawyer { flex-direction: row; }
  .lawyer .portrait { flex: 0 0 44%; aspect-ratio: auto; min-height: 380px; }
}
@media (max-width: 719px) { .portrait { aspect-ratio: 4 / 3; } }
.header .btn { border-color: var(--white); background: transparent; color: var(--white); }
.header .btn:hover { background: var(--white); color: var(--black); }
