/* ==========================================================
   m.bezerra advogado — one page
   Marca: Manrope · laranja #ff5b04 · grafite #16232b · névoa #e4eef0 · petróleo #075056
   ========================================================== */

:root {
  --orange: #ff5b04;
  --ink: #16232b;
  --ink-2: #1d2e38;
  --mist: #e4eef0;
  --mist-2: #f2f7f8;
  --teal: #075056;
  --muted-dark: rgba(228, 238, 240, 0.62);
  --muted-light: rgba(22, 35, 43, 0.64);
  --line-dark: rgba(228, 238, 240, 0.14);
  --line-light: rgba(22, 35, 43, 0.14);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografia base ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 28px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h-xl,
.h-lg {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}
.h-xl { font-size: clamp(48px, 9vw, 140px); }
.h-lg { font-size: clamp(36px, 5.6vw, 84px); }
.h-xl b,
.h-lg b { font-weight: 800; }

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  max-width: 38ch;
}

/* ---------- Logo (SVG do Figma "LOGO MB Aprovado") ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo__svg { height: 44px; width: auto; display: block; overflow: visible; }
.logo__adv { fill: var(--orange); }

/* ---------- Botões ---------- */

.btn {
  --bg: var(--orange);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 40px -12px rgba(255, 91, 4, 0.55); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--ghost {
  --bg: transparent;
  --fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost::after { background: var(--orange); }
.btn--ghost:hover { --fg: #fff; box-shadow: none; }
.on-dark .btn::after { background: var(--mist); }
.on-dark .btn:hover { --fg: var(--ink); }
.on-dark .btn--ghost::after { background: var(--orange); }
.on-dark .btn--ghost:hover { --fg: #fff; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--mist);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.header.is-scrolled {
  background: rgba(22, 35, 43, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header.is-light {
  color: var(--ink);
  background: rgba(228, 238, 240, 0.82);
  box-shadow: 0 1px 0 var(--line-light);
}
.header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover,
.nav a.is-active { opacity: 1; }
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Seções ---------- */

.section {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
}
.on-dark {
  background: var(--ink);
  color: var(--mist);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 56px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at var(--gx, 78%) var(--gy, 32%), rgba(255, 91, 4, 0.34), transparent 70%),
    radial-gradient(45% 50% at 12% 88%, rgba(7, 80, 86, 0.75), transparent 72%);
  filter: blur(20px);
  transition: background-position 0.6s;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  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 .wrap { position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.kv {
  position: relative;
  margin: 0;
  height: min(74svh, 760px);
  min-height: 420px;
  overflow: hidden;
  color: var(--ink);
}
.kv__img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  transition: transform 1.6s var(--ease);
}
.is-ready .kv__img { transform: translate3d(0, var(--py, 0px), 0) scale(1); }
.kv--wide {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin-top: 48px;
}
.kv--wide .kv__img { inset: 0; height: 100%; transform: none; object-position: 62% 40%; }
.hero .kv__img { object-position: 57% 50%; }
.kv__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.kv__shape path { transition: transform 1.4s var(--ease) 0.2s; }
.kv__shape path:first-child { transform: translateX(-12%); }
.kv__shape path:last-child { transform: translateX(12%); }
.is-ready .kv__shape path { transform: none; }
/* Hero: o M vira recorte transparente — o fundo, o brilho e o grão do hero aparecem por dentro do logo */
.hero .kv__shape { display: none; }
.hero .kv {
  --m-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='105 40 186 237.94' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M127.39 164.1C134.72 167.8 141.94 170.8 149.04 173.17V245.48C85.8 234.23 58.34 196.52 58.34 196.52V277.94H0V0H58.34C58.34 0 53.61 126.84 127.39 164.1Z'/%3E%3C/svg%3E");
  --m-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='105 40 186 237.94' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M232.77 0C224.2 34.84 206.88 72.57 171.93 90.22C164.6 93.92 157.38 96.92 150.28 99.29V171.6C213.52 160.35 240.98 122.64 240.98 122.64V277.94H291.12V0H232.76H232.77Z'/%3E%3Crect x='290.6' y='-600' width='600' height='1500'/%3E%3C/svg%3E");
  --m-fade: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-image: var(--m-fade), var(--m-l), var(--m-r);
  mask-image: var(--m-fade), var(--m-l), var(--m-r);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, -90px 0, 90px 0;
  mask-position: 0 0, -90px 0, 90px 0;
  -webkit-mask-composite: source-out, source-over;
  mask-composite: subtract, add;
  transition: -webkit-mask-position 1.4s var(--ease) 0.2s, mask-position 1.4s var(--ease) 0.2s;
}
.is-ready .hero .kv { -webkit-mask-position: 0 0, 0 0, 0 0; mask-position: 0 0, 0 0, 0 0; }
@media (prefers-reduced-motion: reduce) {
  .hero .kv { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.hero__title {
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-size: clamp(52px, 8.2vw, 136px);
  margin: 0 0 clamp(32px, 4vw, 56px);
}
.hero__title b { font-weight: 800; }
.hero__title .dot { color: var(--orange); font-weight: 800; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}
.is-ready .line > span { transform: none; }
.is-ready .line:nth-child(2) > span { transition-delay: 0.12s; }
.is-ready .line:nth-child(3) > span { transition-delay: 0.24s; }

.hero__foot {
  display: grid;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.hero__foot .lead { color: var(--muted-dark); margin: 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s;
}
.is-ready .fade-up { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 1px;
  height: 44px;
  background: var(--line-dark);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Faixa de valores (marquee) ---------- */

.marquee {
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  padding: 22px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.marquee__track span b { font-weight: 800; }
.marquee__track span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
}
.about__aside { position: sticky; top: 120px; align-self: start; }
.about__text {
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 48px;
}
.about__text .w {
  opacity: 0.16;
  transition: opacity 0.4s linear;
}
.about__text .w.on { opacity: 1; }
.about__text em { font-style: normal; color: var(--orange); }
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--muted-light);
  max-width: 820px;
}
.about__body p { margin: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line-light);
}
.fact {
  padding: 28px 24px 0 0;
}
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-light); }
.fact__num {
  display: block;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 1;
}
.fact__num small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; color: var(--orange); margin-left: 4px; }
.fact__label { display: block; margin-top: 10px; font-size: 14px; color: var(--muted-light); }

/* ---------- Faixa de imagem ---------- */

.band {
  position: relative;
  height: clamp(380px, 78vh, 820px);
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
}
.band__img {
  position: absolute;
  left: 0;
  width: 100%;
  top: -15%;
  height: 130%;
  object-fit: cover;
  object-position: 50% 35%;
  transform: translate3d(0, var(--py, 0px), 0);
}
.band__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}
.band__shape path { transform: translateX(var(--sx, 0px)); }
.band__shape path:last-child { transform: translateX(calc(var(--sx, 0px) * -1)); }

/* ---------- Atuação ---------- */

.areas { background: var(--mist-2); }
.areas__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.tabs {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line-light);
  position: relative;
}
.tabs__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  border-radius: var(--radius);
  background: var(--ink);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), background-color 0.5s var(--ease);
}
.tabs:has(#tab-voce[aria-selected="true"]) .tabs__pill { background: var(--orange); }
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.4s;
}
.tab[aria-selected="true"] { color: var(--mist); }

.panel[hidden] { display: none; }
.area {
  display: grid;
  grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr) 48px;
  align-items: center;
  gap: 24px;
  padding: 34px clamp(16px, 2.4vw, 32px);
  border-top: 1px solid var(--line-light);
  position: relative;
}
.area:last-child { border-bottom: 1px solid var(--line-light); }
.area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
  z-index: 0;
}
.area > * { position: relative; z-index: 1; transition: color 0.4s, transform 0.6s var(--ease); }
.area__n { font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: 0.1em; }
.area__t {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.area__d { margin: 0; color: var(--muted-light); }
.area__i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.area > .area__i { transition: background-color 0.5s var(--ease), color 0.4s, box-shadow 0.5s var(--ease), transform 0.6s var(--ease); }
.area__i svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .area:hover::before { transform: scaleY(1); }
  .area:hover > * { color: var(--mist); }
  .area:hover .area__n { color: var(--orange); }
  .area:hover .area__t { transform: translateX(12px); }
  .area:hover .area__d { color: var(--muted-dark); }
  .area:hover .area__i { background: var(--orange); box-shadow: none; }
  .area:hover .area__i svg { transform: rotate(-45deg); }
}
/* "Para você": destaque laranja; empresa e terceiro setor seguem em azul-marinho */
#p-voce .area::before { background: var(--orange); }
@media (hover: hover) {
  #p-voce .area:hover > *,
  #p-voce .area:hover .area__n { color: var(--ink); }
  #p-voce .area:hover .area__d { color: rgba(22, 35, 43, 0.78); }
  #p-voce .area:hover .area__i { background: var(--ink); color: var(--mist); }
}
.panel .area { animation: rise 0.7s var(--ease) both; }
.panel .area:nth-child(2) { animation-delay: 0.06s; }
.panel .area:nth-child(3) { animation-delay: 0.12s; }
.panel .area:nth-child(4) { animation-delay: 0.18s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Atendimento ---------- */

.steps-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
}
.steps-intro { position: sticky; top: 120px; align-self: start; }
.steps-intro .lead { color: var(--muted-dark); margin: 28px 0 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  color: var(--mist);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 27.5px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--line-dark);
}
.steps::after {
  background: var(--orange);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.step { z-index: 1; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding-bottom: clamp(56px, 8vw, 110px);
}
.step:last-child { padding-bottom: 0; }
.step__n {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background 0.5s, color 0.5s, box-shadow 0.5s;
}
.step.is-on .step__n { background: var(--orange); color: #fff; box-shadow: none; }
.step h3 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.step p { margin: 0; color: var(--muted-dark); max-width: 46ch; font-size: 18px; }

/* ---------- Quem é ---------- */

.bio__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 70% 20%, rgba(255, 91, 4, 0.55), transparent 70%),
    radial-gradient(80% 70% at 10% 100%, var(--teal), transparent 70%),
    var(--ink);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait:has(img)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(22, 35, 43, 0.72), transparent);
  pointer-events: none;
}
.portrait__cap { z-index: 1; }
.portrait__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.portrait__ph svg { width: 42%; height: auto; color: var(--mist); }
.portrait__cap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.bio__name {
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 12px;
}
.bio__name b { font-weight: 800; }
.bio__oab {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin: 0 0 40px;
}
.bio__quote {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  font-weight: 400;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}
.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.cv li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}
.cv dt, .cv .k {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
  padding-top: 4px;
}
.cv .v { font-size: 17px; }

/* ---------- Compromissos ---------- */

.values__list { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; counter-reset: v; }
.value {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: baseline;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--line-dark);
  cursor: default;
}
.value:last-child { border-bottom: 1px solid var(--line-dark); }
.value__t {
  font-size: clamp(44px, 8vw, 128px);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0;
  transition: color 0.5s var(--ease), transform 0.6s var(--ease), font-weight 0.5s;
}
.value__d {
  margin: 0;
  color: var(--muted-dark);
  font-size: 18px;
  max-width: 34ch;
  transition: color 0.4s;
}
@media (hover: hover) {
  .values__list:hover .value__t { color: rgba(228, 238, 240, 0.25); }
  .values__list .value:hover .value__t { color: var(--orange); transform: translateX(16px); }
  .values__list .value:hover .value__d { color: var(--mist); }
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 112px);
}
.faq__aside { position: sticky; top: 120px; align-self: start; }
.faq__aside p:not(.eyebrow) { color: var(--muted-light); margin: 28px 0 0; max-width: 32ch; }
.qa { border-top: 1px solid var(--line-light); }
.qa:last-child { border-bottom: 1px solid var(--line-light); }
.qa summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__plus {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--line-light);
  transition: background 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.qa__plus::before,
.qa__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.qa__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__plus { background: var(--orange); color: #fff; transform: rotate(45deg); box-shadow: none; }
.qa summary:hover .qa__plus { box-shadow: inset 0 0 0 1px var(--orange); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.qa[open] .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0 0 28px; color: var(--muted-light); max-width: 62ch; }

/* ---------- Contato ---------- */

.contact {
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
}
.contact__shape {
  position: absolute;
  right: -6vw;
  bottom: -4vw;
  width: min(58vw, 760px);
  height: auto;
  color: rgba(22, 35, 43, 0.12);
  pointer-events: none;
}
.contact .eyebrow { color: var(--ink); }
.contact .btn::after { background: var(--ink); }
.contact .wrap { position: relative; }
.contact__title {
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(48px, 8.4vw, 136px);
  margin: 0 0 32px;
}
.contact__title b { font-weight: 800; }
.contact__lead { color: rgba(22, 35, 43, 0.78); margin: 0 0 48px; }
.wa {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
}
.wa__ic {
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.6s var(--ease);
}
.wa__ic svg { width: 42%; height: 42%; color: var(--orange); }
.wa:hover .wa__ic { transform: rotate(-45deg) scale(1.06); }
.wa__txt { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); padding-bottom: 6px; }
.wa:hover .wa__txt { background-size: 100% 1px; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 32px;
  border-top: 1px solid rgba(22, 35, 43, 0.22);
}
.contact__grid h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(22, 35, 43, 0.6);
}
.contact__grid p { margin: 0; }
.contact__grid a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.contact__grid a:hover { background-size: 100% 1px; }

/* ---------- Rodapé ---------- */

.footer {
  background: #0f1a20;
  color: var(--muted-dark);
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--mist);
}
.footer__top .logo__svg { height: 60px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; color: var(--muted-dark); transition: color 0.3s; }
.footer__links a:hover { color: var(--orange); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  line-height: 1.7;
}
.footer__legal p { margin: 0; }

/* ---------- Revelação ao rolar ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- WhatsApp flutuante ---------- */

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px -10px rgba(255, 91, 4, 0.65);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.fab.is-on { transform: scale(1); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1000px) {
  .about__grid,
  .steps-wrap,
  .bio__grid,
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .about__aside,
  .steps-intro,
  .faq__aside { position: static; }
  .portrait { max-width: 460px; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 100px var(--gutter) 40px;
    background: var(--ink);
    color: var(--mist);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav a:not(.btn) { font-size: 40px; font-weight: 300; letter-spacing: -0.03em; opacity: 1; }
  .nav .btn { margin-top: 16px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .header { color: var(--mist); background: transparent; box-shadow: none; backdrop-filter: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .kv { height: 62svh; min-height: 340px; }
  .kv--wide { height: auto; min-height: 0; width: 100%; }
  .scroll-cue { display: none; }
  .area { grid-template-columns: 1fr 48px; gap: 8px 16px; padding: 28px 16px; }
  .area__n { grid-column: 1 / -1; }
  .area__t { grid-column: 1; }
  .area__i { grid-column: 2; grid-row: 2; }
  .area__d { grid-column: 1 / -1; }
  .about__body { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; gap: 8px; }
  .cv li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header__in { height: 72px; }
  .header__in > .logo .logo__svg { height: 36px; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .fact { padding: 24px 0; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 auto; padding: 12px 10px; font-size: 12.5px; white-space: nowrap; }
  .wa { gap: 14px; font-size: 26px; }
  .footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .about__text .w { opacity: 1; }
  .kv__img, .kv__shape path { transform: none !important; }
}

/* Logo: completo no desktop, sem "ADVOGADO" no celular */
.logo__svg--compact { display: none; }
@media (max-width: 860px) {
  .logo__svg--full { display: none; }
  .logo__svg--compact { display: block; }
}
html, body { overflow-x: clip; }
@media (max-width: 360px) {
  .tab { padding: 11px 8px; font-size: 11.5px; }
}

/* Hero no celular: M inteiro e centralizado (sem a fatia de foto na borda direita) */
@media (max-width: 1000px) {
  .hero .kv { --m-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 291.12 277.94' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M127.39 164.1C134.72 167.8 141.94 170.8 149.04 173.17V245.48C85.8 234.23 58.34 196.52 58.34 196.52V277.94H0V0H58.34C58.34 0 53.61 126.84 127.39 164.1Z'/%3E%3Crect x='-600' y='-600' width='601' height='1500'/%3E%3C/svg%3E"); --m-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 291.12 277.94' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M232.77 0C224.2 34.84 206.88 72.57 171.93 90.22C164.6 93.92 157.38 96.92 150.28 99.29V171.6C213.52 160.35 240.98 122.64 240.98 122.64V277.94H291.12V0H232.76H232.77Z'/%3E%3Crect x='290.6' y='-600' width='600' height='1500'/%3E%3C/svg%3E"); }
  .hero .kv__img { object-position: 50% 50%; }
}

/* Esconde o fio de 1px na borda direita do recorte do M (arredondamento em telas de alta densidade) */
.hero .kv { clip-path: inset(0 2px 0 0); }
@media (max-width: 360px) {
  .eyebrow { letter-spacing: 0.18em; gap: 10px; }
}
@media (max-width: 1000px) {
  .about__grid { row-gap: 0; }
}
