/*
Theme Name: Benner Marques Advocacia
Theme URI: https://benner.naorcrm.com.br
Author: Benner Marques Advocacia e Assessoria Jurídica
Description: Tema institucional premium preto e dourado, página única com seções ancoradas.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: benner-marques
*/

:root {
  --bg: oklch(0.105 0.008 82);
  --fg: oklch(0.94 0.012 85);
  --card: oklch(0.13 0.009 82);
  --gold: oklch(0.72 0.105 77);
  --gold-deep: oklch(0.58 0.11 72);
  --muted: oklch(0.69 0.018 82);
  --border: oklch(0.28 0.018 79);
  --paper: oklch(0.955 0.015 87);
  --paper-muted: oklch(0.44 0.015 74);
  --paper-border: oklch(0.82 0.025 81);
  --ink: oklch(0.16 0.015 72);
  --whatsapp: oklch(0.67 0.18 145);
  --shadow-gold: 0 10px 40px -10px color-mix(in oklch, var(--gold) 45%, transparent);
  --display: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: 5rem; }
em { color: var(--gold); }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.75rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .75rem 1.75rem; font-size: .875rem; font-weight: 500; letter-spacing: .04em; cursor: pointer; border: 1px solid transparent; transition: all .25s; text-align: center; }
.btn-premium { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--bg); box-shadow: var(--shadow-gold); }
.btn-premium:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { border-color: var(--gold); color: var(--gold); min-height: 2.5rem; padding: .5rem 1rem; font-size: .72rem; text-transform: uppercase; }
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn svg { width: 1rem; height: 1rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: color-mix(in oklch, var(--bg) 90%, transparent); backdrop-filter: blur(20px); }
.site-header .container { height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.site-header .logo img { height: 3rem; width: auto; }
.main-nav { display: none; gap: 1.5rem; }
.nav-link { font-size: .85rem; color: var(--muted); transition: color .2s; }
.nav-link:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn-outline { display: none; }
.menu-toggle { background: none; border: 0; color: var(--gold); padding: .5rem; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 1rem 1.25rem; }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: .75rem 0; font-size: .875rem; }
.mobile-nav a.accent { color: var(--gold); }
@media (min-width: 640px) { .header-actions .btn-outline { display: inline-flex; } }
@media (min-width: 1024px) { .main-nav { display: flex; } .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; } }

/* Hero */
.intro-section { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding-top: 5rem; min-height: 100svh; display: flex; }
.intro-bg { position: absolute; inset: 0; }
.intro-portrait { position: absolute; bottom: 0; right: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 8%, color-mix(in oklch, var(--bg) 70%, transparent) 50%, color-mix(in oklch, var(--bg) 20%, transparent)); }
.intro-fade { position: absolute; inset: auto 0 0 0; height: 13rem; background: linear-gradient(to top, var(--bg), transparent); }
.intro-content { position: relative; z-index: 2; display: flex; align-items: flex-end; width: 100%; padding-bottom: 5rem; padding-top: 3.5rem; }
.hero-text { max-width: 36rem; animation: reveal 1s ease both; }
.hero-text .eyebrow-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.line { display: inline-block; height: 1px; width: 2.5rem; background: var(--gold); }
.hero-text h1 { font-size: 2.5rem; line-height: 1.1; }
.hero-text h1 span { color: var(--gold); }
.hero-lead { margin-top: 1.5rem; font-family: var(--display); font-size: 1.5rem; line-height: 1.5; max-width: 28rem; }
.hero-sub { margin-top: 1.25rem; max-width: 28rem; font-size: .9rem; line-height: 1.75rem; color: color-mix(in oklch, var(--fg) 80%, transparent); }
.hero-text .btn { margin-top: 2rem; width: 100%; }
@media (min-width: 640px) { .hero-text h1 { font-size: 3.75rem; } .hero-lead { font-size: 1.875rem; } .hero-text .btn { width: auto; } }
@media (min-width: 768px) {
  .intro-portrait { width: 65%; object-position: 50% 28%; }
  .hero-veil { background: linear-gradient(to right, var(--bg) 35%, color-mix(in oklch, var(--bg) 62%, transparent) 60%, transparent); }
  .intro-content { align-items: center; }
}
@media (min-width: 1024px) { .hero-text h1 { font-size: 4.5rem; } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Trajetória */
.section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.bio-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .bio-grid { grid-template-columns: .85fr 1.15fr; gap: 3rem; } }
.bio-figure { position: relative; margin: 0 auto; width: 100%; max-width: 28rem; }
.biography-portrait { aspect-ratio: 4/5; width: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(1) brightness(.85);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent), linear-gradient(to top, transparent, #000 25%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent), linear-gradient(to top, transparent, #000 25%); mask-composite: intersect; }
.bio-figure figcaption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--muted); }
.bio-text h2 { margin-top: 1rem; font-size: 2.25rem; }
.bio-text .lead { margin-top: 1rem; font-family: var(--display); font-size: 1.25rem; line-height: 1.6; }
.bio-text .small { margin-top: 1.25rem; color: var(--muted); }
.stats { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.stats strong { font-family: var(--display); font-size: 1.5rem; color: var(--gold); font-weight: 400; }
.stats p { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* Expandir (details) */
.expand { margin-top: 1rem; }
.expand summary { list-style: none; cursor: pointer; color: inherit; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: .4rem; align-items: center; }
.expand summary::-webkit-details-marker { display: none; }
.expand .body { padding-top: 1.25rem; font-size: .875rem; line-height: 1.75rem; display: grid; gap: 1.25rem; }
.expand[open] summary .label-closed, .expand:not([open]) summary .label-open { display: none; }
.expand[open] { display: flex; flex-direction: column-reverse; }
.chev { width: 1rem; height: 1rem; transition: transform .2s; }
details[open] > summary .chev { transform: rotate(180deg); }

/* Accordion */
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.3; }
.section-head p { margin-top: 1rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-title { display: flex; align-items: center; gap: 1rem; font-family: var(--display); font-size: 1.5rem; }
.acc-title svg { width: 1.5rem; height: 1.5rem; color: var(--gold); flex-shrink: 0; stroke-width: 1; }
.acc-sm > summary { font-family: var(--display); font-size: 1.25rem; }
.acc-faq > summary { font-family: var(--display); font-size: 1.125rem; padding: 1rem 0; }
.acc-body { padding-bottom: 1.5rem; color: var(--muted); font-size: .9rem; line-height: 1.75rem; }
.practice-desc { max-width: 56rem; padding-bottom: 1.25rem; color: var(--muted); font-size: .875rem; line-height: 1.75rem; }
.practice-item > summary { flex-wrap: wrap; padding-bottom: 0; }
.practice-item .practice-desc { flex-basis: 100%; margin: 0; }
.expectation { color: var(--gold); font-weight: 500; font-size: .875rem; margin-bottom: 1.25rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 768px) { .check-list.cols { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; gap: .75rem; font-size: .875rem; line-height: 1.75rem; color: var(--muted); }
.check-list li strong { color: var(--fg); font-weight: 500; }
.check { width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; margin-top: .35rem; }
.closing { margin-top: 1.5rem; font-family: var(--display); font-size: 1.25rem; line-height: 1.6; color: var(--gold); max-width: 48rem; }

/* Planejamento (claro) */
.section-light { background: var(--paper); color: var(--ink); padding: 4rem 0; }
@media (min-width: 768px) { .section-light { padding: 5rem 0; } }
.section-light .eyebrow, .section-light em { color: var(--gold-deep); }
.plan-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: .7fr 1.3fr; gap: 4rem; } }
.plan-grid h2 { margin-top: 1rem; font-size: 1.875rem; color: var(--ink); }
@media (min-width: 768px) { .plan-grid h2 { font-size: 2.25rem; } }
.plan-img { margin-top: 1.75rem; aspect-ratio: 4/3; width: 100%; max-width: 24rem; object-fit: cover; object-position: 50% 65%; }
.tabs { min-width: 0; color: var(--paper-muted); }
.tab-list { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--paper-border); height: 3rem; }
.tab-btn { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 1rem; color: var(--paper-muted); cursor: pointer; }
.tab-btn[aria-selected="true"] { border-color: var(--gold-deep); color: var(--ink); }
.tab-panel { margin-top: 1.75rem; }
.tab-panel[hidden] { display: none; }
.tab-panel .kicker { font-size: .75rem; text-transform: uppercase; font-weight: 500; color: var(--gold-deep); }
.tab-panel h3 { margin-top: .75rem; font-size: 1.5rem; line-height: 1.35; color: var(--ink); }
@media (min-width: 768px) { .tab-panel h3 { font-size: 1.875rem; } }
.tab-panel .small { margin-top: 1rem; }
.points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.points li { display: flex; gap: .75rem; font-size: .875rem; }
.points .check { color: var(--gold-deep); margin-top: .2rem; }
.tab-panel .btn { margin-top: 1.25rem; min-height: 2.75rem; padding: .5rem 1rem; }

/* Escritório */
.office-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .office-grid { grid-template-columns: .75fr 1.25fr; gap: 4rem; } }
.office-grid h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.35; }
@media (min-width: 768px) { .office-grid h2 { font-size: 2.25rem; } }
.office-cards { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .office-cards { grid-template-columns: 1fr 1fr; } .check-list.sm2 { grid-template-columns: 1fr 1fr; } }
.office-cards h3 { font-size: 1.25rem; color: var(--gold); }
.office-cards .hl { margin-top: .75rem; font-family: var(--display); font-size: 1.125rem; line-height: 1.6; }
.office-cards .small { margin-top: .75rem; color: var(--muted); }
.values-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.values-grid strong { color: var(--gold); font-weight: 500; display: block; }
.values-grid p { margin-top: .5rem; }
.mt-9 { margin-top: 2.25rem; }

/* FAQ */
.faq-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .65fr 1.35fr; } }
.faq-grid h2 { font-size: 2.25rem; }

/* Contato */
.contact { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3.5rem 0; text-align: center; }
.contact .inner { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.contact .shield { width: 2rem; height: 2rem; color: var(--gold); margin: 0 auto; stroke-width: 1; }
.contact .eyebrow { margin-top: 1.75rem; }
.contact h2 { margin: 1.25rem auto 0; max-width: 48rem; font-size: 1.875rem; line-height: 1.25; }
@media (min-width: 768px) { .contact h2 { font-size: 2.25rem; } }
.contact p.muted { margin: 1.75rem auto 0; max-width: 36rem; line-height: 1.75rem; }
.contact .btn { margin-top: 1.75rem; }

/* Footer */
.site-footer { padding: 3rem 0; }
.footer-row { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .footer-row { flex-direction: row; justify-content: space-between; align-items: flex-end; } .footer-links { align-items: flex-end; } }
.site-footer img { height: 3.5rem; width: auto; }
.site-footer .tag { margin-top: 1.25rem; max-width: 24rem; font-size: .875rem; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: var(--muted); }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a:hover { color: var(--gold); }
.footer-links svg { width: 1rem; height: 1rem; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); }

.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-gold); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 1.5rem; height: 1.5rem; }

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