/* =========================================================
   BM Advocacia – Advocacia Estratégica
   ========================================================= */

:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --line-dark: rgba(255, 255, 255, .09);
  --text-on-dark: #ecebe6;
  --muted-on-dark: #a3a19a;

  --ivory: #f4f1ea;
  --ivory-2: #ebe6db;
  --paper: #fbfaf7;
  --line-light: rgba(20, 18, 14, .1);
  --text-on-light: #17171a;
  --muted-on-light: #5f5c55;

  --silver-1: #f1ede4;
  --silver-2: #c9c2b4;
  --silver-3: #8d877b;
  --metal: linear-gradient(135deg, #f3efe6 0%, #c8c0b0 38%, #8f897d 62%, #e4ddcf 100%);
  --wa: #25d366;
  --alert: #d9a441;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #c8c0b0; color: var(--ink); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.wa-ico { width: 1.25em; height: 1.25em; flex: none; }

em { font-style: italic; font-family: var(--serif); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500;
  color: var(--silver-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero .eyebrow::before { display: none; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--silver-2); box-shadow: 0 0 0 0 rgba(201,194,180,.6); animation: ping 2.4s infinite; }

h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3.15rem); letter-spacing: -.01em; line-height: 1.15;
}
h2 em { color: var(--silver-3); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--metal);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: .95em 1.5em; border-radius: 999px;
  font-size: .86rem; font-weight: 600; letter-spacing: .04em;
  background: var(--bg); color: var(--ink);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s, color .3s, border-color .3s;
  overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 14px 34px -14px rgba(200, 192, 176, .55); }
.btn-lg { padding: 1.1em 1.9em; font-size: .92rem; }
.btn-sm { padding: .7em 1.15em; font-size: .78rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-on-dark); border: 1px solid var(--line-dark); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); box-shadow: none; }
.btn-ghost .ico { transition: transform .35s var(--ease-out); }
.btn-ghost:hover .ico { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--text-on-dark); border: 1px solid rgba(201,194,180,.35); }
.btn-outline:hover { background: rgba(201,194,180,.1); box-shadow: none; }
.btn-outline .wa-ico { color: var(--wa); }

.section-light .btn-wa { background: var(--ink); color: var(--text-on-dark); }
.section-light .btn-wa .wa-ico { color: var(--wa); }
.section-light .btn-wa::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); }
.section-light .btn-wa:hover { box-shadow: 0 14px 30px -14px rgba(0,0,0,.55); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-content: center; gap: 28px; justify-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader-mark { position: relative; width: 92px; overflow: hidden; animation: fadeUp 1s var(--ease-out) both; }
.preloader-mark .shine, .emblem-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  mix-blend-mode: overlay; transform: translateX(-130%);
  animation: shine 1.6s .3s var(--ease) infinite;
}
.preloader-bar { width: 140px; height: 1px; background: var(--line-dark); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; background: var(--silver-2); transform-origin: left; animation: load 1.2s var(--ease) forwards; }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--metal); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .4s, height .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(11, 11, 12, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .brand img { height: 44px; }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: .8rem; letter-spacing: .08em; color: var(--muted-on-dark); transition: color .3s; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--silver-2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav a:hover, .nav a.is-active { color: var(--text-on-dark); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--muted-on-dark); transition: color .3s, border-color .3s, transform .3s; }
.icon-link:hover { color: var(--text-on-dark); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.icon-link .ico { width: 18px; height: 18px; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text-on-dark); transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(11,11,12,.97);
  display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 100px 28px 40px;
  clip-path: circle(0% at calc(100% - 42px) 42px); transition: clip-path .8s var(--ease-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 2rem; line-height: 1.3; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .06s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .12s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .18s; }
.mobile-menu .btn { align-self: flex-start; }
.mobile-insta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-on-dark); font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 560px; height: 560px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(201,194,180,.28), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { width: 480px; height: 480px; left: -180px; bottom: -160px; background: radial-gradient(circle, rgba(120,116,108,.3), transparent 70%); animation: drift 20s ease-in-out infinite alternate-reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after { /* grão sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 60px; }
.hero-title { margin: 22px 0 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.08; letter-spacing: -.015em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: metal 6s ease-in-out infinite;
}
.hero-sub { max-width: 560px; color: var(--muted-on-dark); font-size: 1.04rem; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero-badges li { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
.hero-badges .ico { width: 22px; height: 22px; color: var(--silver-2); margin-top: 2px; }
.hero-badges small { color: var(--muted-on-dark); font-size: .78rem; }
.hero-badges .badge-alert .ico { color: var(--alert); }

/* Hero animation (title lines slide up) */
.hero-anim { opacity: 0; transform: translateY(105%); }
.is-ready .hero-anim { animation: rise 1.1s var(--d, 0s) var(--ease-out) forwards; }
.hero-sub.hero-anim, .hero-ctas.hero-anim, .hero-badges.hero-anim, .eyebrow.hero-anim { transform: translateY(24px); }
.hero-visual.hero-anim { transform: scale(.94); }
.is-ready .hero-visual.hero-anim { animation-name: zoomIn; animation-duration: 1.6s; }

.hero-visual { display: grid; place-items: center; }
.emblem { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 5; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.emblem-ring { position: absolute; inset: -6%; border: 1px solid var(--line-dark); border-radius: 50% / 42%; animation: spin 40s linear infinite; }
.emblem-ring::before { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--silver-2); box-shadow: 0 0 18px 4px rgba(201,194,180,.5); }
.emblem-ring.r2 { inset: -14%; animation-duration: 60s; animation-direction: reverse; opacity: .6; }
.emblem-card {
  position: absolute; inset: 0; border-radius: 220px 220px 24px 24px;
  background: radial-gradient(120% 80% at 50% 0%, #26262a 0%, #141416 55%, #0e0e10 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; overflow: hidden;
}
.emblem-card::before { content: ""; position: absolute; inset: 14px; border-radius: 210px 210px 16px 16px; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.emblem-mono { width: 48%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); transform: translateZ(40px); }
.emblem-shine { animation-duration: 4.5s; opacity: .5; }
.emblem-caption { font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; text-align: center; color: var(--silver-2); line-height: 1.9; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-dark); border-radius: 20px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--silver-2); animation: cue 2s var(--ease) infinite; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line-dark); background: var(--ink-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.6rem); font-style: italic; color: var(--silver-2); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--silver-3); font-size: .8rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Light sections ---------- */
.section-light { background: var(--ivory); color: var(--text-on-light); }
.section-light .eyebrow { color: var(--silver-3); }
.section-light h2 em { color: #7d776b; }
.section-light .lead { color: var(--muted-on-light); }

section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }

/* ---------- Areas ---------- */
.finder { position: sticky; top: calc(var(--header-h) - 2px); z-index: 20; margin-bottom: 34px; padding: 14px; border-radius: 22px; background: rgba(244,241,234,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-light); box-shadow: 0 18px 40px -30px rgba(0,0,0,.4); }
.search { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line-light); border-radius: 14px; padding: 0 18px; transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: #8d877b; box-shadow: 0 0 0 4px rgba(141,135,123,.15); }
.search .ico { color: var(--muted-on-light); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 15px 0; font: inherit; font-size: .95rem; color: var(--text-on-light); }
.search input::placeholder { color: #9a968d; }
.tabs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .55em 1.1em; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--muted-on-light); border: 1px solid var(--line-light); background: transparent; transition: background .3s, color .3s, border-color .3s; }
.tab:hover { color: var(--text-on-light); border-color: rgba(20,18,14,.25); }
.tab.is-active { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }

.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.area-card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 34px); border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-light);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -40px rgba(0,0,0,.45);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s, opacity .4s;
}
.area-card:hover { transform: translateY(-4px); border-color: rgba(20,18,14,.18); box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.area-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(200,192,176,.32), transparent 60%); }
.area-card:hover .area-glow { opacity: 1; }
.area-head { position: relative; display: flex; align-items: center; gap: 18px; }
.area-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 16px; background: var(--ink); color: var(--silver-1); transition: transform .6s var(--ease-out); }
.area-icon .ico { width: 26px; height: 26px; }
.area-card:hover .area-icon { transform: rotate(-6deg) scale(1.05); }
.area-num { font-size: .7rem; letter-spacing: .25em; color: var(--silver-3); font-weight: 600; }
.area-head h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 500; margin-top: 2px; }
.area-desc { position: relative; color: var(--muted-on-light); font-size: .93rem; }
.services { position: relative; display: grid; gap: 2px; border-top: 1px solid var(--line-light); padding-top: 10px; }
.services a {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; margin: 0 -10px; border-radius: 10px;
  font-size: .95rem; font-weight: 500; color: var(--text-on-light); transition: background .25s, padding .35s var(--ease-out);
}
.services .chk { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: #e7e1d4; color: #3c3a35; }
.services span { flex: 1; }
.services .go { width: 16px; height: 16px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease-out); color: #3c3a35; }
.services a:hover, .services a:focus-visible { background: var(--ivory); padding-left: 14px; }
.services a:hover .go, .services a:focus-visible .go { opacity: 1; transform: none; }
.services a:hover .chk { background: var(--ink); color: var(--wa); }
.services li.is-match a { background: #efe8d8; }
.services li.is-match mark { background: #d9cdb3; color: inherit; border-radius: 3px; padding: 0 2px; }
.area-card .btn { margin-top: auto; }
.area-card.is-hidden { display: none; }
.services li.is-hidden { display: none; }

.no-results { margin-top: 30px; text-align: center; display: grid; justify-items: center; gap: 18px; padding: 40px 20px; border-radius: var(--radius); border: 1px dashed rgba(20,18,14,.25); }
.no-results[hidden] { display: none; }

/* ---------- Plantão ---------- */
.plantao { padding: clamp(60px, 8vw, 90px) 0; background: radial-gradient(80% 140% at 0% 50%, rgba(217,164,65,.14), transparent 60%), var(--ink-2); border-block: 1px solid var(--line-dark); }
.plantao-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.plantao-icon { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--alert); border: 1px solid rgba(217,164,65,.35); }
.plantao-icon .ico { width: 34px; height: 34px; }
.plantao-icon .ping { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--alert); animation: ring 2.2s var(--ease) infinite; }
.plantao .eyebrow { color: var(--alert); }
.plantao h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 8px 0 10px; }
.plantao h2 em { color: var(--alert); }
.plantao p:not(.eyebrow) { color: var(--muted-on-dark); max-width: 620px; }

/* ---------- About ---------- */
.about { background: var(--ink); }
.about-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-copy h2 { margin: 16px 0 26px; }
.about-copy p:not(.eyebrow) { color: var(--muted-on-dark); font-weight: 300; font-size: 1.04rem; }
.about-copy p + p { margin-top: 16px; }
.pillars { display: grid; gap: 14px; }
.pillar { position: relative; padding: 28px 30px 28px 92px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); transition: border-color .4s, background .4s, transform .5s var(--ease-out); }
.pillar:hover { border-color: rgba(201,194,180,.3); background: linear-gradient(180deg, rgba(201,194,180,.07), transparent); transform: translateX(6px); }
.pillar-num { position: absolute; left: 30px; top: 26px; font-family: var(--serif); font-size: 2.2rem; line-height: 1; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.pillar p { color: var(--muted-on-dark); font-size: .93rem; }

.steps { margin-top: clamp(80px, 10vw, 130px); }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps-list::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-dark) 15%, var(--line-dark) 85%, transparent); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step span { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(201,194,180,.35); font-family: var(--serif); font-size: 1.6rem; color: var(--silver-1); }
.step h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted-on-dark); font-size: .93rem; max-width: 300px; margin-inline: auto; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 36px); max-width: 980px; margin-inline: auto; }
.lawyer { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--text-on-dark); isolation: isolate; }
.lawyer-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: grayscale(.25) contrast(1.03); transform: scale(1.04); transition: transform 1.2s var(--ease-out), filter .8s; }
.lawyer:hover .lawyer-photo img { transform: scale(1.09); filter: grayscale(0) contrast(1.05); }
.lawyer::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,11,12,.55) 65%, rgba(11,11,12,.96) 100%); pointer-events: none; }
.lawyer-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.oab { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--silver-2); margin-bottom: 8px; }
.lawyer h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.lawyer-links { margin-top: 16px; }
.lawyer-links a { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: .8rem; background: rgba(11,11,12,.35); backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
.lawyer-links a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.lawyer-links .ico { width: 16px; height: 16px; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; text-align: center; background: radial-gradient(60% 90% at 50% 100%, rgba(201,194,180,.13), transparent 70%), var(--ink); }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.cta-mono { width: 70px; opacity: .9; margin-bottom: 10px; }
.cta h2 { max-width: 760px; }
.cta p { color: var(--muted-on-dark); margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: stretch; }
.contact-info h2 { margin: 16px 0 34px; }
.info-item { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.info-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ink); color: var(--silver-1); }
.info-ico .ico { width: 22px; height: 22px; }
.info-item h3 { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--silver-3); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.info-item p { font-size: 1.02rem; }
.info-item p a { font-weight: 600; font-size: 1.15rem; }
.alert-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; color: #9a6b12; }
.alert-line .ico { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link .ico { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.text-link:hover .ico { transform: translateX(4px); }
.open-status { font-size: .66rem; letter-spacing: .12em; padding: .35em .8em; border-radius: 999px; background: #e3ddd0; color: #5f5c55; }
.open-status.is-open { background: #d7efdf; color: #1f6b3d; }
.open-status.is-open::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1fa055; margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
.map { position: relative; min-height: 420px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-light); box-shadow: 0 30px 60px -40px rgba(0,0,0,.5); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05); transition: filter .6s; }
.map:hover iframe { filter: grayscale(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 70px 0 110px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted-on-dark); font-size: .88rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: var(--muted-on-dark); }
.footer-col h4 { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-on-dark); font-weight: 600; margin-bottom: 6px; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: .76rem; color: #75736d; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 110; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.is-ready .wa-float { opacity: 1; transform: none; transition-delay: 1.2s; }
.wa-btn { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.55); transition: transform .4s var(--ease-out); }
.wa-btn::before, .wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s var(--ease) infinite; }
.wa-btn::after { animation-delay: 1.2s; }
.wa-btn .wa-ico { width: 32px; height: 32px; }
.wa-float:hover .wa-btn { transform: scale(1.08) rotate(-8deg); }
.wa-tip { background: var(--paper); color: var(--text-on-light); font-size: .8rem; font-weight: 600; padding: .7em 1.1em; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .4s var(--ease-out); pointer-events: none; white-space: nowrap; }
.wa-float:hover .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.area-card.reveal.is-visible:hover { transform: translateY(-4px); }

/* ---------- Keyframes ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes zoomIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shine { 0% { transform: translateX(-130%); } 60%, 100% { transform: translateX(130%); } }
@keyframes metal { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201,194,180,.6); } 100% { box-shadow: 0 0 0 10px rgba(201,194,180,0); } }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
  .emblem { width: min(230px, 56vw); }
  .emblem-caption { font-size: .6rem; }
  .hero { padding-top: calc(var(--header-h) + 30px); }
  .areas-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .plantao-inner { grid-template-columns: auto 1fr; }
  .plantao-inner .btn { grid-column: 1 / -1; justify-self: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  :root { --header-h: 72px; }
  .container { width: calc(100% - 32px); }
  .brand img { height: 38px; }
  .is-scrolled .brand img { height: 34px; }
  .header-actions .icon-link { display: none; }
  .hero { min-height: auto; padding-bottom: 80px; }
  .emblem-ring.r2 { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hero-badges { gap: 20px; }
  .scroll-cue { display: none; }
  .finder { padding: 10px; border-radius: 18px; }
  .search input { font-size: 16px; padding: 13px 0; }
  .services a { font-size: .93rem; }
  .services .go { opacity: .5; transform: none; }
  .btn { white-space: normal; text-align: center; }
  .plantao-inner { grid-template-columns: 1fr; text-align: left; gap: 22px; }
  .plantao-inner .btn { width: 100%; }
  .pillar { padding: 24px 22px 24px 76px; }
  .pillar-num { left: 22px; }
  .steps-list { grid-template-columns: 1fr; gap: 36px; }
  .steps-list::before { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-btn { width: 58px; height: 58px; }
  .wa-tip { display: none; }
}

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