/* ═══════════════════════════════════════════════════
   Modelo Advocacia — style.css
   Criado por FRAMEUP · frameup.com.br
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #07090E;
  color: #F0EDE8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TOKENS ───────────────────────────────────── */
:root {
  --bg:      #07090E;
  --bg2:     #0D1020;
  --bg3:     #121528;
  --gold:    #C9A227;
  --gold-l:  #E4BC44;
  --gold-d:  #9A7B1C;
  --text:    #F0EDE8;
  --muted:   rgba(240,237,232,0.52);
  --faint:   rgba(240,237,232,0.22);
  --border:  rgba(201,162,39,0.14);
  --pill:    999px;
}

/* ── SCROLL & UTILS ───────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 2px; }

.serif  { font-family: 'Playfair Display', Georgia, serif; font-style: italic; }
.gold   { color: var(--gold); }

/* ── BARRA FRAMEUP ────────────────────────────── */
#frameup-bar {
  background: rgba(201,162,39,0.1);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .75rem; color: var(--muted); text-align: center;
}
#frameup-bar strong { color: var(--gold); }
#frameup-bar a { color: var(--gold); text-decoration: none; font-weight: 600; }
#frameup-bar a:hover { text-decoration: underline; }

/* ── NAVBAR ───────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,14,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.logo-adv {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  letter-spacing: .04em;
}
.logo-sub {
  font-size: .65rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-top: 1px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ham span { display: block; height: 1.5px; background: var(--text); }
.ham span:nth-child(1), .ham span:nth-child(2) { width: 22px; }
.ham span:nth-child(3) { width: 14px; }
#mob {
  display: none; position: fixed; inset-x: 0; top: 68px; z-index: 99;
  background: rgba(7,9,14,.98); padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}
#mob.on { display: block; }
#mob a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: .95rem; }

/* ── BOTÕES ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--pill); font-weight: 700; font-family: inherit;
  cursor: pointer; transition: transform .25s, box-shadow .25s;
  text-decoration: none; border: none; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #07090E; padding: 15px 34px; font-size: .95rem;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,162,39,.35); }
.btn-outline {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); padding: 15px 34px; font-size: .95rem;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-wpp { background: #25D366; color: #fff; padding: 15px 34px; font-size: .95rem; }
.btn-wpp:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,.3); }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: .82rem; }

/* ── BADGE ────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: var(--pill);
  font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.badge-gold { background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.25); color: var(--gold); }

/* ── LAYOUT ───────────────────────────────────── */
.section { padding: 104px 32px; }
.section-sm { padding: 72px 32px; }
.wrap { max-width: 1100px; margin: 0 auto; }
.surface { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.s-eyebrow { margin-bottom: 16px; }
.s-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -.025em;
}
.s-sub { color: var(--muted); font-size: .97rem; line-height: 1.85; margin-top: 14px; max-width: 540px; }
.center .s-sub { margin-left: auto; margin-right: auto; }

/* ── HERO ─────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.orb { position: absolute; border-radius: 50%; filter: blur(130px); pointer-events: none; opacity: .05; animation: orbP 10s ease-in-out infinite; }
@keyframes orbP { 0%,100% { opacity:.05; transform:scale(1); } 50% { opacity:.09; transform:scale(1.06); } }

.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 100px 48px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center;
  position: relative; z-index: 2;
}
.hero-tag { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem); font-weight: 900;
  line-height: 1.04; letter-spacing: -.03em; margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--muted); line-height: 1.82;
  max-width: 430px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-micro { margin-top: 14px; font-size: .78rem; color: var(--faint); display: flex; align-items: center; gap: 6px; }

/* ── FOTO DE AUTORIDADE — HERO ──────────────────── */
.hero-photo-col {
  position: relative;
  height: 600px;
  overflow: visible;
}
.hero-photo-ghost {
  position: absolute;
  inset: -40px -60px -40px -20px;
  z-index: 0;
  overflow: hidden;
  border-radius: 24px;
}
.hero-photo-ghost img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 10%;
  filter: blur(48px);
  opacity: .18;
  transform: scale(1.08);
}
.hero-photo-main {
  position: relative; z-index: 1;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(201,162,39,.15);
}
.hero-photo-main img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 8%;
  display: block;
}
.hero-photo-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
}

/* ── BALANÇA 3D PEQUENA — TOPO DIREITO ──────────── */
.hero-scale-3d {
  position: absolute;
  top: 88px;
  right: 40px;
  width: 220px;
  height: 220px;
  z-index: 10;
  pointer-events: none;
}
#hero3d-canvas {
  position: absolute;
  top: 0; left: 0;
  display: block;
  pointer-events: none;
}
/* Cartões flutuantes de autoridade */
.hero-float-card {
  position: absolute; z-index: 4;
  background: rgba(13,16,32,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(201,162,39,.08);
}
.hfc-1 {
  bottom: 28%; left: -28px;
  animation: floatCard 4s ease-in-out infinite;
}
.hfc-2 {
  bottom: 14%; right: -18px;
  animation: floatCard 4s ease-in-out infinite;
  animation-delay: -2s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
.hfc-icon { font-size: 1.3rem; flex-shrink: 0; }
.hfc-title { font-size: .82rem; font-weight: 700; color: #F0EDE8; line-height: 1.3; }
.hfc-sub { font-size: .71rem; color: var(--gold); margin-top: 2px; }

/* ── CREDENCIAIS ──────────────────────────────── */
.cred-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  max-width: 900px; margin: 0 auto;
}
.cred-item {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.cred-item:last-child { border-right: none; }
.cred-icon { font-size: 1.6rem; margin-bottom: 12px; }
.cred-title { font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.cred-desc { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ── AREAS DE ATUAÇÃO ─────────────────────────── */
.areas-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px;
}
.area-card {
  padding: 32px 28px; border-radius: 18px;
  background: var(--bg3); border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}
.area-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.area-card:hover { border-color: rgba(201,162,39,.4); transform: translateY(-4px); }
.area-card:hover::before { opacity: 1; }
.area-icon { font-size: 1.8rem; margin-bottom: 18px; }
.area-title { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.area-desc { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* ── SOBRE ────────────────────────────────────── */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sobre-visual {
  position: relative; padding: 48px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 24px;
}
.sobre-visual::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(201,162,39,.3), transparent 60%);
  pointer-events: none;
}
.sobre-quote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.5;
  color: rgba(240,237,232,.75);
}
.sobre-quote strong { color: var(--text); font-style: normal; }
.sobre-oab {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--faint); letter-spacing: .04em;
}
.sobre-list { display: flex; flex-direction: column; gap: 0; }
.sobre-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.sobre-item:last-child { border-bottom: none; }
.sobre-ico { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.sobre-item-title { font-weight: 700; font-size: .92rem; margin-bottom: 3px; }
.sobre-item-desc { font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* ── PROCESSO ─────────────────────────────────── */
.proc-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  margin-top: 64px; position: relative;
}
.proc-row::before {
  content: ''; position: absolute; top: 30px; left: 60px; right: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent); opacity: .4;
}
.proc-step { padding: 0 16px; text-align: center; }
.proc-num {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; margin: 0 auto 20px;
  color: var(--gold); position: relative; z-index: 2;
  transition: border-color .4s, box-shadow .4s;
}
.proc-step.active .proc-num {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(201,162,39,.3);
}
.proc-title { font-size: .93rem; font-weight: 800; margin-bottom: 8px; }
.proc-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }

/* ── DIFERENCIAIS ─────────────────────────────── */
.dif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.dif-left .s-title { text-align: left; }
.dif-left p { color: var(--muted); line-height: 1.8; font-size: .93rem; margin-top: 16px; max-width: 440px; }
.dif-list { display: flex; flex-direction: column; gap: 0; }
.dif-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.dif-item:last-child { border-bottom: none; }
.dif-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.2);
}
.dif-title { font-weight: 700; font-size: .92rem; margin-bottom: 3px; }
.dif-desc { font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* ── CTA FINAL ────────────────────────────────── */
.cta-box {
  border-radius: 24px; padding: 88px 56px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
              linear-gradient(135deg, rgba(201,162,39,.45), rgba(201,162,39,.1)) border-box;
  border: 1px solid transparent;
  animation: ctaGlow 5s ease-in-out infinite;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,162,39,.08), transparent 65%);
  pointer-events: none;
}
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 0 36px rgba(201,162,39,.08); }
  50%      { box-shadow: 0 0 72px rgba(201,162,39,.18); }
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  line-height: 1.1; margin: 16px 0 16px; position: relative;
}
.cta-sub { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 40px; position: relative; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 380px; margin: 0 auto; position: relative; }
.cta-actions .btn { width: 100%; padding: 18px; font-size: 1rem; }
.cta-micro { margin-top: 14px; font-size: .74rem; color: var(--faint); font-style: italic; position: relative; }

/* ── FOOTER ───────────────────────────────────── */
footer { padding: 48px 32px; border-top: 1px solid var(--border); }
.foot-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-links { display: flex; gap: 28px; }
.foot-links a { font-size: .78rem; color: var(--faint); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.foot-copy { font-size: .76rem; color: var(--faint); text-align: right; line-height: 1.6; }

/* ── WPP FLOAT ────────────────────────────────── */
#wpp {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.4); text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}
#wpp:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.wpp-ring { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: 0; animation: wppRing 2.5s ease-out infinite; }
@keyframes wppRing { 0% { transform:scale(1); opacity:.5; } 100% { transform:scale(1.85); opacity:0; } }

/* ── FOTO DO ADVOGADO ─────────────────────────── */
.advogado-photo-wrap {
  width: 260px; height: 320px; border-radius: 18px; overflow: hidden;
  border: 2px solid rgba(201,162,39,.4);
  box-shadow: 0 0 60px rgba(201,162,39,.18), 0 20px 60px rgba(0,0,0,.5);
  position: relative; z-index: 2;
}
.advogado-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  display: block;
}
.sobre-foto {
  width: 100%; border-radius: 18px; display: block;
  object-fit: cover; object-position: center top;
  border: 1px solid rgba(201,162,39,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  max-height: 520px;
}
.photo-placeholder {
  width: 100%; height: 100%;
  background: var(--bg3); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed rgba(201,162,39,.2);
  border-radius: 14px;
}
.photo-placeholder p {
  font-size: .75rem; color: var(--faint); text-align: center; line-height: 1.5;
}
.photo-name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: .97rem; color: var(--text); text-align: center; margin-top: 12px;
}
.photo-oab {
  font-size: .7rem; color: var(--gold); letter-spacing: .06em;
  text-transform: uppercase; text-align: center; margin-top: 3px;
}
.photo-placeholder-large {
  width: 100%; min-height: 280px;
  background: var(--bg3); border-radius: 16px;
  border: 2px dashed rgba(201,162,39,.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ── REVEAL & ANIMAÇÕES ───────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.fu { animation: fadeUp .7s ease forwards; opacity: 0; }
.d1 { animation-delay:.1s; } .d2 { animation-delay:.25s; }
.d3 { animation-delay:.4s;  } .d4 { animation-delay:.56s; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 80px 24px 48px; }
  .hero-photo-col {
    order: -1;
    position: relative;
    height: 280px;
    max-width: 220px;
    width: 100%;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 16px;
  }
  .hero-photo-main {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    border-radius: 16px;
  }
  .hero-photo-ghost { display: none; }
  .hero-float-card  { display: none; }
  .hero-scale-3d    { display: none; }
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .dif-grid { grid-template-columns: 1fr; gap: 48px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .proc-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .proc-row::before { display: none; }
  .cred-row { grid-template-columns: 1fr; }
  .cred-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cred-item:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .ham { display: flex; }
  footer { padding: 40px 24px; }
  .section { padding: 80px 24px; }
}
@media (max-width: 560px) {
  .areas-grid { grid-template-columns: 1fr; }
  .proc-row { grid-template-columns: 1fr; }
  .cta-box { padding: 56px 24px; }
  .hero-title { font-size: 2.6rem; }
}

/* ── Demo disclaimer ─────────────────────────────── */
.demo-disclaimer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 24px;
  text-align: center;
}
.demo-disclaimer p {
  font-size: .72rem;
  color: rgba(255,255,255,.28);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
}
.demo-disclaimer strong {
  color: rgba(255,255,255,.45);
  font-weight: 600;
}

/* ── Touch & accessibility ─────────────────────────── */
button, a { touch-action: manipulation; }
.ham { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
