/* Tôrres Gadêlha Advocacia — estilos globais */
:root {
  --bg: #f8f5f2;
  --bg-alt: #f0ebe4;
  --surface: #ffffff;
  --ink: #2a1c1f;
  --ink-soft: #5e5153;
  --line: #e2d9cd;
  --wine: #6f202d;
  --wine-deep: #4f1520;
  --wine-soft: #f3e7e8;
  --gold: #cb992a;
  --gold-light: #e9c86d;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(42, 28, 31, .04), 0 12px 32px -12px rgba(42, 28, 31, .14);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--wine); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 10vw, 128px) 0; }
.alt { background: var(--bg-alt); }

/* Eyebrow + section headings */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.h2 { font-size: clamp(38px, 5.2vw, 58px); }
.h2 em { font-style: italic; color: var(--wine); font-weight: 500; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } .section-head.split .lede { margin: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: var(--radius); font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn-gold { background: var(--gold); color: var(--wine-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn svg { width: 18px; height: 18px; }

/* Logo (vetorial, nítido em qualquer tela) */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--gold); line-height: .92; font-family: var(--sans); }
.logo b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.logo small { font-size: 9.5px; letter-spacing: .42em; margin-top: 4px; font-weight: 400; }
.logo.lg b { font-size: 30px; }
.logo.lg small { font-size: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 242, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(42,28,31,.35); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav { display: none; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--wine); transition: right .25s; }
.nav a:hover, .nav a.active { color: var(--wine); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.header .btn { padding: 11px 20px; font-size: 14px; }
.header-cta { display: none; }
.menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
@media (min-width: 960px) { .nav, .header-cta { display: flex; } .menu-btn { display: none; } }

.drawer { position: fixed; inset: 76px 0 0; background: var(--bg); z-index: 49; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; overflow-y: auto; }
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.drawer a:not(.btn) { font-family: var(--serif); font-size: 30px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 24px; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -15vw; top: -30%; width: 70vw; height: 160%; background: radial-gradient(closest-side, rgba(203,153,42,.07), transparent 75%); pointer-events: none; }
@media (max-width: 959px) { .hero::before { display: none; } }
.hero-grid { display: grid; gap: 48px; position: relative; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.55fr 1fr; align-items: end; gap: 72px; } }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 500; line-height: 1.02; }
.hero h1 em { color: var(--wine); font-style: italic; }
.hero .lede { margin: 28px 0 36px; font-size: clamp(17px, 1.6vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-quote { border-left: 2px solid var(--gold); padding: 6px 0 6px 26px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; color: var(--wine); margin: 0; }
.hero-meta { display: flex; gap: 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 46px; font-weight: 600; color: var(--wine); line-height: 1; font-variant-numeric: lining-nums; }
.stat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--surface); }
.marquee ul { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; width: max-content; animation: slide 40s linear infinite; }
.marquee li { font-family: var(--serif); font-size: 22px; color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee li::after { content: "✦"; color: var(--gold); font-size: 13px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sobre */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.25fr; gap: 88px; } }
.about-text p { color: var(--ink-soft); font-size: 18px; }
.about-text p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 74px; line-height: .8; padding: 8px 12px 0 0; color: var(--wine); font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.pill-list li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }

/* BLF */
.blf { background: var(--wine); color: #f6ece6; position: relative; overflow: hidden; }
.blf::after { content: "BLF"; position: absolute; right: -2vw; bottom: -6vw; font-family: var(--serif); font-size: clamp(180px, 30vw, 420px); font-weight: 700; color: rgba(255,255,255,.04); line-height: 1; pointer-events: none; }
.blf .eyebrow { color: var(--gold-light); }
.blf .h2, .blf h3 { color: #fff; }
.blf .h2 em { color: var(--gold-light); }
.blf .lede, .blf p { color: rgba(246,236,230,.82); }
.blf strong { color: var(--gold-light); font-weight: 600; }
.steps { display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-top: 56px; position: relative; z-index: 1; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--wine); padding: 36px 32px 40px; transition: background .25s; }
.step:hover { background: #7a2633; }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--gold-light); letter-spacing: .1em; }
.step h3 { font-size: 30px; margin: 14px 0 12px; }
.step p { margin: 0; font-size: 16px; }

/* Áreas */
.area-feature { display: grid; gap: 28px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
@media (min-width: 900px) { .area-feature { grid-template-columns: 1fr 1.3fr; gap: 64px; padding: 56px; } }
.area-feature h3 { font-size: clamp(32px, 3.6vw, 42px); }
.area-feature p { color: var(--ink-soft); margin: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; transition: border-color .25s, transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--wine); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 22px; height: 22px; }
.card h4 { font-size: 23px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.biz { margin-top: 24px; display: grid; gap: 28px; padding: 40px; border-radius: var(--radius); background: var(--ink); color: #efe6e2; }
@media (min-width: 900px) { .biz { grid-template-columns: 1fr 1.6fr; padding: 56px; gap: 64px; } }
.biz h3 { color: #fff; font-size: clamp(30px, 3.4vw, 40px); }
.biz p { color: rgba(239,230,226,.75); margin: 14px 0 0; }
.biz ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 640px) { .biz ul { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.biz li { padding: 16px 0 16px 28px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; font-size: 16px; }
.biz li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 1px; background: var(--gold); }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 88px; } .faq-grid .section-head { position: sticky; top: 120px; align-self: start; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--wine); }
.faq summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s, background .3s, border-color .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] .plus { background: var(--wine); border-color: var(--wine); color: #fff; }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { color: var(--ink-soft); padding: 0 56px 28px 0; margin: 0; }

/* Equipe */
.team { display: grid; gap: 20px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.member .portrait { aspect-ratio: 4 / 3.4; background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); display: grid; place-items: center; position: relative; overflow: hidden; }
.member .portrait img { width: 100%; height: 100%; object-fit: cover; }
.member .portrait span { font-family: var(--serif); font-size: 88px; font-weight: 500; color: var(--gold-light); letter-spacing: .02em; }
.member .portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(233,200,109,.35); pointer-events: none; }
.member .info { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.member h3 { font-size: 28px; }
.member .role { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin: 8px 0 6px; }
.member .focus { font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; }
.member a.li { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; color: var(--ink); align-self: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.member a.li:hover { color: var(--wine); border-color: var(--wine); }
.member a.li svg { width: 16px; height: 16px; }

/* Blog */
.posts { display: grid; gap: 20px; }
@media (min-width: 860px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-decoration: none; display: flex; flex-direction: column; min-height: 300px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.post:hover { border-color: var(--wine); transform: translateY(-3px); box-shadow: var(--shadow); }
.post h3 { font-size: 27px; margin: 4px 0 14px; }
.post p { font-size: 15px; color: var(--ink-soft); }
.post .meta { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.post .meta b { color: var(--wine); font-weight: 600; }
.more { display: inline-flex; margin-top: 36px; color: var(--wine); font-weight: 600; text-decoration: none; gap: 8px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Contato */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.channels { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.channels li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.channels .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; }
.channels .ico svg { width: 20px; height: 20px; }
.channels small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); margin-bottom: 2px; }
.channels a { text-decoration: none; }
.channels a:hover { color: var(--wine); }
.channels address { font-style: normal; color: var(--ink-soft); font-size: 15px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form h3 { font-size: 30px; margin-bottom: 6px; }
.form > p { color: var(--ink-soft); font-size: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
label { font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); background: #fff; box-shadow: 0 0 0 3px rgba(111,32,45,.12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); font-weight: 400; margin: 4px 0 22px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--wine); }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: #eef5ee; color: #24502a; font-size: 15px; }
.form-status.show { display: block; }

/* CTA + Footer */
.cta { background: var(--bg-alt); text-align: center; padding: clamp(64px, 9vw, 104px) 0; }
.cta .h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta p { color: var(--ink-soft); margin: 0 auto 32px; max-width: 54ch; }
.cta .hero-actions { justify-content: center; }
.footer { background: var(--wine-deep); color: rgba(246,236,230,.78); padding: 72px 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; font-weight: 700; }
.footer address { font-style: normal; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .social { display: flex; gap: 10px; margin-top: 22px; }
.footer .social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; }
.footer .social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer .social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(246,236,230,.55); }

/* WhatsApp flutuante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.35); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; }

/* Revelação ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Páginas do blog */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 500; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs a { text-decoration: none; color: var(--wine); }
.article { max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(72px, 8vw, 112px); }
.article-head { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 0; }
.article-head h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 600; margin: 8px 0 24px; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-soft); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.byline .av { width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: var(--gold-light); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.byline b { color: var(--ink); display: block; }
.article p { font-size: 19px; line-height: 1.75; color: #3d2f32; }
.article p.intro { font-family: var(--serif); font-size: clamp(21px, 3vw, 26px); line-height: 1.45; color: var(--ink); }
.article h2 { font-size: 32px; margin: 48px 0 14px; }
.article-foot { margin-top: 56px; padding: 32px; background: var(--bg-alt); border-radius: var(--radius); display: grid; gap: 18px; }
.article-foot h3 { font-size: 26px; }
.article-foot .hero-actions { gap: 10px; }
.disclaimer { font-size: 13px; color: var(--ink-soft); margin-top: 40px; font-style: italic; }
