/* ══════════════════════════════════════════════
   Eduardo Rodrigues Advocacia — main.css
   assets/css/main.css
══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0e0e0d;
  --bg2:        #141413;
  --bg3:        #1c1c1a;
  --gold:       #b8975a;
  --gold-lt:    #d4b47a;
  --cream:      #f0ebe0;
  --muted:      #7a7568;
  --border:     rgba(184,151,90,0.18);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;
  --nav-w:      260px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--cream); font-family: var(--font-sans); font-weight: 300; overflow-x: hidden; font-size: 16px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ══ SIDEBAR ══ */
#sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--nav-w); height: 100vh;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 40px 32px; z-index: 100; overflow-y: auto;
  transition: transform .4s cubic-bezier(.77,0,.175,1);
}
.logo-wrap { margin-bottom: 40px; }
.logo-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; color: var(--cream); letter-spacing: .04em; line-height: 1.4; }
.logo-img img { max-width: 180px; height: auto; }
.logo-sub  { font-size: .72rem; font-weight: 500; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-top: 6px; }
.oab       { font-size: .68rem; color: var(--muted); letter-spacing: .08em; margin-top: 3px; }

nav ul { list-style: none; }
nav ul li { margin-bottom: 2px; }
nav ul li a {
  display: block; font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 8px 0; position: relative; transition: color .25s;
}
nav ul li a::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 0; background: var(--gold); transition: height .25s;
}
nav ul li a:hover, nav ul li a.active { color: var(--gold-lt); }
nav ul li a:hover::before, nav ul li a.active::before { height: 14px; }

.sidebar-contact { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.sidebar-contact p { font-size: .72rem; letter-spacing: .06em; color: var(--muted); line-height: 1.9; }
.sidebar-contact a { color: var(--muted); text-decoration: none; transition: color .2s; }
.sidebar-contact a:hover { color: var(--gold); }
.sidebar-social { display: flex; gap: 14px; margin-top: 14px; }
.sidebar-social a { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.sidebar-social a:hover { color: var(--gold); }

/* ══ HAMBURGER ══ */
#hamburger { display: none; position: fixed; top: 20px; right: 20px; z-index: 200; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
#hamburger span { display: block; width: 28px; height: 1px; background: var(--cream); transition: transform .3s, opacity .3s; }
#hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══ MAIN ══ */
#content { margin-left: var(--nav-w); min-height: 100vh; }

/* ══ HERO ══ */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1800&q=80'); background-size: cover; background-position: center 30%; filter: brightness(.22) saturate(.6); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(14,14,13,0.93) 35%, rgba(14,14,13,0.55) 100%); }
.hero-line { position: absolute; top: 0; right: 120px; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, var(--border), transparent); }

.hero-label { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; animation: fadeUp .8s .2s both; position: relative; }
.hero-heading { font-family: var(--font-serif); font-size: clamp(3.5rem, 7vw, 7.5rem); font-weight: 300; line-height: 1.05; color: var(--cream); max-width: 820px; animation: fadeUp .8s .35s both; position: relative; }
.hero-heading em { font-style: italic; color: var(--gold-lt); }
.hero-sub { margin-top: 32px; font-size: 1.05rem; font-weight: 300; color: var(--muted); max-width: 520px; line-height: 1.85; animation: fadeUp .8s .5s both; position: relative; }

.hero-tribunais { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; animation: fadeUp .8s .6s both; position: relative; }
.tribunal-badge { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 6px 14px; }

.hero-cta { margin-top: 48px; display: flex; gap: 24px; align-items: center; animation: fadeUp .8s .65s both; position: relative; }
.btn-primary { display: inline-block; padding: 15px 38px; background: transparent; border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .3s, color .3s; cursor: pointer; }
.btn-primary:hover { background: var(--gold); color: var(--bg); }
.btn-link { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .25s; }
.btn-link:hover { color: var(--cream); }

.hero-scroll { position: absolute; bottom: 40px; right: 56px; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; animation: fadeIn 1s 1s both; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 48px; background: var(--gold); animation: grow 1.5s 1.5s infinite; }

/* ══ SECTIONS ══ */
section { padding: 110px 80px; }
section:nth-child(even), section.bg-alt { background: var(--bg2); }
.section-tag { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-family: var(--font-serif); font-size: clamp(2.6rem, 4.5vw, 4.8rem); font-weight: 300; line-height: 1.1; color: var(--cream); max-width: 640px; }
.section-title em { font-style: italic; color: var(--gold-lt); }
.section-body { margin-top: 28px; font-size: 1rem; font-weight: 300; color: var(--muted); line-height: 1.9; max-width: 580px; }
.text-center { text-align: center; }

/* ══ SOBRE ══ */
.sobre-img-banner { margin-top: 48px; width: 100%; height: 300px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.sobre-img-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: brightness(.38) saturate(.5); }
.sobre-img-banner .quote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; }
.sobre-img-banner .quote p { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.8vw, 2.6rem); font-weight: 300; font-style: italic; color: var(--cream); text-align: center; line-height: 1.4; max-width: 580px; }
.sobre-img-banner .quote p em { color: var(--gold-lt); }

.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border: 1px solid var(--border); }
.sobre-card { padding: 40px 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .3s; }
.sobre-card:hover { background: rgba(184,151,90,0.03); }
.sobre-card h3 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400; color: var(--cream); margin-bottom: 14px; }
.sobre-card p { font-size: .97rem; color: var(--muted); line-height: 1.9; }
.card-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; color: rgba(184,151,90,0.15); line-height: 1; margin-bottom: 16px; }

/* ══ AREAS ══ */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--border); }
.area-card { padding: 44px 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .3s; position: relative; overflow: hidden; }
.area-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .4s; }
.area-card:hover { background: rgba(184,151,90,0.04); }
.area-card:hover::after { width: 100%; }
.area-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 300; color: rgba(184,151,90,0.18); line-height: 1; margin-bottom: 20px; }
.area-card h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; color: var(--cream); margin-bottom: 14px; }
.area-card p { font-size: .95rem; color: var(--muted); line-height: 1.88; }
.area-tribunais { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.area-tribunais span { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 4px 10px; }

/* ══ NÚMEROS ══ */
.numeros-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--border); }
.numero-item { padding: 48px 24px; border-right: 1px solid var(--border); text-align: center; }
.num { font-family: var(--font-serif); font-size: 4.2rem; font-weight: 300; color: var(--gold-lt); line-height: 1; }
.num-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ══ DIFERENCIAIS ══ */
.diferenciais-inner { display: flex; gap: 80px; align-items: flex-start; }
.diff-left { flex: 0 0 380px; }
.diff-right { flex: 1; }
.diff-img { margin-top: 36px; width: 100%; height: 200px; overflow: hidden; border: 1px solid var(--border); }
.diff-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) saturate(.4) sepia(.3); }
.diff-list { list-style: none; margin-top: 40px; }
.diff-item { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); transition: padding-left .3s; }
.diff-item:hover { padding-left: 8px; }
.diff-item:first-child { border-top: 1px solid var(--border); }
.diff-icon { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.diff-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.diff-item h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.diff-item p { font-size: .95rem; color: var(--muted); line-height: 1.82; }

/* ══ EQUIPE ══ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.team-card .photo { width: 100%; aspect-ratio: 3/4; background: var(--bg3); border: 1px solid var(--border); position: relative; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.3) brightness(.85); transition: transform .5s, filter .5s; }
.team-card:hover .photo img { transform: scale(1.04); filter: grayscale(.1) brightness(.9); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,13,.9) 0%, transparent 50%); }
.team-card .info { padding: 20px 0 0; }
.team-card h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; color: var(--cream); }
.team-card .role { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.team-card .bio { font-size: .95rem; color: var(--muted); line-height: 1.82; margin-top: 12px; }

/* ══ CLIENTES ══ */
.clients-list { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 56px; border: 1px solid var(--border); }
.client-item { flex: 0 0 calc(100% / 4); padding: 38px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-serif); font-size: 1.15rem; color: var(--muted); font-style: italic; transition: color .25s, background .25s; }
.client-item:hover { color: var(--cream); background: rgba(184,151,90,0.04); }

/* ══ INSTAGRAM ══ */
.insta-widget-wrap { margin-top: 48px; }
.insta-placeholder-msg { margin-top: 48px; padding: 40px; border: 1px dashed var(--border); text-align: center; }
.insta-placeholder-msg p { font-size: .95rem; color: var(--muted); line-height: 1.7; }
.insta-cta { margin-top: 32px; }

/* ══ CONTATO ══ */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.big-text { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 300; line-height: 1.15; color: var(--cream); margin-top: 20px; }
.big-text em { font-style: italic; color: var(--gold-lt); }
.sub-text { font-size: 1rem; color: var(--muted); line-height: 1.85; margin-top: 20px; max-width: 420px; }
.contato-details { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contato-item { display: flex; gap: 16px; align-items: flex-start; }
.contato-item svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 3px; }
.contato-item span { font-size: .95rem; color: var(--muted); line-height: 1.7; }
.contato-item a { color: var(--muted); text-decoration: none; transition: color .2s; }
.contato-item a:hover { color: var(--gold); }
.ci-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }
.contato-cnpj { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--border); }
.contato-cnpj p { font-size: .82rem; letter-spacing: .06em; color: var(--muted); line-height: 1.85; }
.contato-cnpj strong { color: var(--cream); font-weight: 400; }

.contato-form, .contato-form-wrap form { display: flex; flex-direction: column; gap: 14px; padding-top: 48px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.form-group input, .form-group select, .form-group textarea { background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 12px 0; color: var(--cream); font-family: var(--font-sans); font-size: .97rem; font-weight: 300; outline: none; transition: border-color .25s; resize: none; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--bg2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { margin-top: 16px; }
.form-lgpd { font-size: .75rem; color: var(--muted); margin-top: 12px; line-height: 1.65; }

/* ══ FOOTER ══ */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 80px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-brand .f-name { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--cream); }
.footer-brand .f-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.footer-cols { display: flex; gap: 56px; }
.footer-col h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: .72rem; letter-spacing: .08em; color: var(--muted); opacity: .5; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

/* ══ WA FLOAT ══ */
.wa-float { position: fixed; bottom: 32px; right: 32px; z-index: 99; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 24px rgba(37,211,102,.3); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,.45); }
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* ══ ANIMATIONS ══ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.4); opacity: .4; } }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .diferenciais-inner { flex-direction: column; gap: 48px; }
  .diff-left { flex: none; width: 100%; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .numeros-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-w: 0px; }
  #sidebar { transform: translateX(-280px); width: 280px; }
  #sidebar.open { transform: translateX(0); }
  #hamburger { display: flex; }
  #content { margin-left: 0; }
  #hero, section { padding: 80px 28px; }
  footer { padding: 40px 28px; }
  .areas-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .client-item { flex: 0 0 50%; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .numeros-grid { grid-template-columns: 1fr 1fr; }
}
