/* ==========================================================================
   Jennifer França · Advogada — folha de estilos
   Paleta e tipografia derivadas do papel timbrado usado nas petições.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/allura-latin-400-normal.woff2") format("woff2"); }

:root {
  --wine: #643e43;        /* faixa do timbrado */
  --wine-deep: #4a2c31;
  --rose: #e8cfd1;        /* monograma JF */
  --rose-soft: #f5e9ea;
  --mauve: #a9828a;       /* "ADVOGADA - OAB/SP" */
  --paper: #fbf8f7;
  --white: #fff;
  --ink: #2b2022;
  --muted: #6f6063;
  --line: #e6dcdc;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Allura", "Cormorant Garamond", cursive;

  --radius: 22px;
  --shadow: 0 24px 60px -28px rgba(74, 44, 49, .35);
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.55rem; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1140px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--mauve); margin-bottom: 18px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico { fill: currentColor; stroke: none; }

/* --- Faixa superior, como no timbrado --- */
.topband { height: 10px; background: var(--wine); }

/* --- Navegação --- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; }
.nav { width: min(1140px, 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 22px; box-shadow: 0 14px 40px -24px rgba(74, 44, 49, .4); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 40px; width: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font: 400 1.75rem/1 var(--script); color: var(--wine); }
.brand-sub { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: .95rem; }
.menu a:not(.btn) { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.menu a:not(.btn):hover { color: var(--wine); border-color: var(--wine); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: var(--wine); margin-inline: auto; transition: transform .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }

/* --- Botões --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 500 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 14px 30px -14px rgba(100, 62, 67, .8); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wine); }
.btn-light { background: var(--white); color: var(--wine); }

/* --- Início --- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.lead { font-size: 1.2rem; font-weight: 300; color: var(--muted); max-width: 34em; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .88rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 9px; }
.facts li::before, .card li::before { content: ""; width: 6px; height: 6px; background: var(--mauve); transform: rotate(45deg); flex: none; }

.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(170deg, var(--white) 30%, var(--rose-soft)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait > img { width: 100%; height: 100%; object-fit: cover; }
.portrait-art { position: absolute; inset: 0 0 18%; display: grid; place-items: center; padding: 8%; }
.portrait-art img { width: 100%; height: auto; }
.portrait figcaption { position: absolute; inset: auto 0 0; padding: 60px 26px 24px; background: linear-gradient(to top, rgba(74, 44, 49, .92), rgba(74, 44, 49, 0)); color: #fff; display: grid; gap: 6px; }
.cap-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.cap-text { font: 400 1.5rem/1.2 var(--serif); }

/* --- Seções --- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.container.section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 60px; align-items: end; margin-bottom: 44px; }
.aside { color: var(--muted); font-weight: 300; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px clamp(32px, 6vw, 90px); align-items: start; }
.split .aside { margin-top: 18px; max-width: 26em; }

/* --- Cartões das áreas --- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--wine); color: #fff; padding: 20px 26px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.card header .ico { width: 24px; height: 24px; color: var(--rose); }
.card-body { padding: 26px; }
.card p { color: var(--muted); font-size: .97rem; margin-top: 10px; }
.card ul { margin-top: 18px; display: grid; gap: 9px; font-size: .97rem; }
.card li { display: flex; align-items: center; gap: 12px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--wine); }
.more { display: inline-block; margin-top: 22px; font-size: .92rem; font-weight: 500; color: var(--wine); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.more::after { content: " \2192"; }

/* --- Como funciona (fundo vinho) --- */
.section-dark { background: var(--wine); color: #fff; }
.section-dark .eyebrow { color: var(--rose); }
.section-dark .aside { color: rgba(255, 255, 255, .75); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.num { font-size: .8rem; font-weight: 500; letter-spacing: .14em; color: var(--rose); padding-top: 8px; }
.steps p { color: rgba(255, 255, 255, .78); font-weight: 300; margin-top: 4px; }

/* --- A advogada --- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-mark { aspect-ratio: 1; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; padding: 18%; }
.about-mark img { width: 100%; height: auto; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: auto; }
.script-title { font: 400 clamp(3.2rem, 7vw, 4.6rem)/1.1 var(--script); color: var(--wine); letter-spacing: 0; margin-bottom: 18px; }
.about p + p { margin-top: 14px; }
.about p:not(.eyebrow) { max-width: 36em; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.info > div { padding: 20px 22px; }
.info > div + div { border-left: 1px solid var(--line); }
address { font-style: normal; }
dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); margin-bottom: 6px; }
.info dd { font: 500 1.2rem/1.3 var(--serif); }

/* --- Dúvidas --- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.7rem/1 var(--sans); color: var(--mauve); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 4px; color: var(--muted); }

/* --- Contato --- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 60px; align-items: center; background: var(--wine); color: #fff; border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.contact::after { content: "JF"; position: absolute; right: -10px; bottom: -70px; font: 600 17rem/1 var(--serif); letter-spacing: -.08em; color: rgba(255, 255, 255, .05); pointer-events: none; }
.contact .eyebrow { color: var(--rose); }
.contact p:not(.eyebrow) { margin-top: 16px; color: rgba(255, 255, 255, .8); font-weight: 300; max-width: 30em; }
.contact-list { position: relative; z-index: 1; display: grid; }
.contact-list > div { padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.contact-list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.contact-list dt { color: var(--rose); }
.contact-list dd { font: 500 1.3rem/1.3 var(--serif); overflow-wrap: anywhere; }
.contact-list a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* --- Rodapé --- */
.footer { border-top: 1px solid var(--line); padding-block: 44px 34px; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-sign { font: 400 2.3rem/1 var(--script); color: var(--wine); }
.footer-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mauve); margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; display: grid; gap: 8px; }

/* --- Páginas das áreas --- */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.page-hero h1 { max-width: 16em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 36px; }
.crumbs a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--wine); }
.topic p { color: var(--muted); font-size: .97rem; margin-top: 10px; }
.other-areas { display: flex; flex-wrap: wrap; gap: 12px; }
.other-areas a { display: inline-block; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font: 500 1.25rem/1.2 var(--serif); transition: border-color .2s, color .2s; }
.other-areas a:hover { border-color: var(--wine); color: var(--wine); }

/* --- Página de texto (privacidade) --- */
.prose { max-width: 760px; padding-block: clamp(40px, 7vw, 80px); }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }

/* --- Responsivo --- */
@media (max-width: 980px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav { border-radius: 28px; flex-wrap: wrap; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 6px 10px; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; width: 100%; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 820px) {
  .hero, .section-head, .split, .about, .contact, .cards { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; width: 100%; margin-inline: auto; }
  .about-mark { max-width: 260px; }
  .about-photo { max-width: 440px; }
  .info { grid-template-columns: 1fr; }
  .info > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .topics { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .brand-name { font-size: 1.5rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .nav-wrap, .actions, .nav-toggle { display: none; }
  .section-dark, .contact { background: none; color: var(--ink); }
}
