/* =========================================================
   Neves & Lelis — Sociedade de Advogados
   Estilos principais
   ========================================================= */

:root {
  --gold:        #E4AB4E;
  --gold-bright: #F4CC67;
  --gold-deep:   #C8902F;
  --ink:         #14110d;   /* fundo principal (preto quente) */
  --ink-2:       #1c1813;   /* fundo seções alternadas */
  --ink-3:       #241f18;   /* cards */
  --line:        rgba(228, 171, 78, 0.18);
  --cream:       #f6f1e7;
  --muted:       #b9b0a0;
  --shadow:      0 18px 40px rgba(0, 0, 0, 0.45);
  --radius:      16px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gold { color: var(--gold); }
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: "—  "; color: var(--gold-deep); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 50px;
  font-weight: 600; font-size: 15px; letter-spacing: .3px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a1d05;
  box-shadow: 0 10px 26px rgba(228,171,78,.32);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(228,171,78,.5); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border-color: rgba(246,241,231,.32);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.3); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,211,102,.45); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s;
}
.header.scrolled {
  background: rgba(15, 12, 8, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
.nav-menu { display: none; }   /* off-canvas só aparece no mobile (media query abaixo) */
.nav .logo img { height: 46px; width: auto; transition: height .35s var(--ease); }
.header.scrolled .nav .logo img { height: 38px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--cream); position: relative; opacity: .85;
  transition: opacity .2s, color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, rgba(15,12,8,.82) 0%, rgba(15,12,8,.7) 40%, rgba(15,12,8,.96) 100%),
              url('../img/hero.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 30%, rgba(228,171,78,.18), transparent 70%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity:.5; transform: translateY(0); } to { opacity:1; transform: translateY(-18px); } }
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(34px, 6vw, 66px); margin-bottom: 22px; }
.hero h1 .gold { background: linear-gradient(120deg, var(--gold-bright), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 21px); color: #e9e2d4; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-ind {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-ind .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(246,241,231,.4); border-radius: 14px; position: relative;
}
.scroll-ind .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 3px;
  background: var(--gold); transform: translateX(-50%); animation: scrolly 1.6s infinite;
}
@keyframes scrolly { 0%{opacity:0; top:7px;} 40%{opacity:1;} 80%{opacity:0; top:20px;} 100%{opacity:0;} }

/* ---------- Stats ---------- */
.stats { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 56px 0; text-align: center; }
.stat .num { font-family:'Playfair Display',serif; font-size: clamp(36px, 5vw, 54px); color: var(--gold); font-weight: 700; }
.stat .num small { font-size: .55em; }
.stat .label { color: var(--muted); font-size: 15px; margin-top: 6px; letter-spacing: .4px; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ---------- Sobre ---------- */
.about { padding: 100px 0; }
.about .row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold);
  border-radius: var(--radius); z-index: -1; opacity: .7;
}
.about-text h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.about-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--cream); }
.about-list li svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Áreas / Serviços ---------- */
.areas { padding: 100px 0; background: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--ink-3), #1b1610);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::after {
  content:""; position:absolute; inset:0; border-radius: var(--radius); pointer-events:none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(228,171,78,.14), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(228,171,78,.5); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(228,171,78,.1); border: 1px solid var(--line);
  transition: transform .4s var(--ease), background .3s;
}
.card:hover .ico { transform: rotate(-6deg) scale(1.06); background: rgba(228,171,78,.18); }
.card .ico i {
  width: 30px; height: 30px; display: block; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta {
  padding: 110px 0; text-align: center;
  background: linear-gradient(rgba(15,12,8,.82), rgba(15,12,8,.9)), url('../img/cta-trucks.jpg') center/cover no-repeat fixed;
}
.cta h2 { font-size: clamp(28px, 4.6vw, 48px); margin-bottom: 18px; }
.cta p { color: #e9e2d4; max-width: 560px; margin: 0 auto 34px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: #0e0b07; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img.flogo { height: 52px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--muted); font-size: 15px; max-width: 320px; }
.footer h4 { color: var(--gold); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--gold); }
.footer .contact-line { display: flex; align-items: center; gap: 10px; color: var(--cream); margin-bottom: 12px; font-size: 15px; }
.footer .contact-line svg { width: 18px; height: 18px; fill: var(--gold); }
.footer .bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13.5px;
}

/* ---------- Float WhatsApp + back-to-top ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%{ transform: scale(1); opacity:.6; } 70%{ transform: scale(1.6); opacity:0; } 100%{ opacity:0; } }
.wa-float:hover { transform: scale(1.08); }

.to-top {
  position: fixed; right: 26px; bottom: 92px; z-index: 89;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: #2a1d05; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about .row { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { order: -1; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { background-attachment: scroll; }
  .cta { background-attachment: scroll; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: rgba(15,12,8,.98); backdrop-filter: blur(8px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s var(--ease);
    display: flex; flex-direction: column; gap: 26px; padding: 100px 34px 40px; z-index: 95;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 19px; opacity: .9; }
  .nav-menu .btn { justify-content: center; }
  .stats .grid { grid-template-columns: 1fr; gap: 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
  .footer .top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Respeita usuários que reduzem movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
