/* ==========================================================
   Márcio Leme de Almeida — Advocacia e Consultoria Jurídica
   Paleta do logotipo: azul-marinho + dourado
   ========================================================== */
/* Fontes hospedadas no próprio site (licença SIL OFL, ver assets/fonts). Nada é carregado do Google. */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-italic.woff") format("woff"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  /* cor */
  --navy-900: #081221;
  --navy-800: #0b1628;
  --navy-700: #12213a;
  --gold: #b08d4f;          /* linhas, fundos, botões */
  --gold-ink: #85662f;      /* texto dourado sobre fundo claro */
  --gold-light: #cfb07a;    /* texto dourado sobre fundo escuro */
  --white: #f8f8f6;         /* fundo claro neutro (papel timbrado) */
  --tint: #edeff2;          /* fundo alternado, levemente frio */
  --ink: #16202f;
  --muted: #4f596a;
  --line: #d9dce2;
  --line-dark: rgba(255, 255, 255, .13);

  /* tipo */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  /* movimento: só estas curvas e durações */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .25s;
  --t-ui: .45s;
  --t-reveal: .9s;
  --t-menu: .5s;
  --drawer: min(320px, 84vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { filter: brightness(.9); }
.tab:active, .vtab__btn:active, .textlink:active { opacity: .7; }
::selection { background: var(--gold); color: var(--navy-900); }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-900); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- marcadores de seção (§) ---------- */
.sect {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.2;
  color: var(--gold-ink);
  margin: 0 0 14px;
}
.sect__n { font-style: normal; font-variant-numeric: lining-nums; margin-right: .35em; }
.sect--dark { color: var(--gold-light); }

.title { font-size: clamp(28px, 3.3vw, 40px); color: var(--navy-800); line-height: 1.15; }
.subhead { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 22px; }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-ui) var(--ease-io);
}
@media (hover: hover) { .btn:hover::after { transform: scaleX(1); transform-origin: left; } }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold::after { background: var(--white); }
.btn--outline { border-color: var(--gold); color: var(--navy-800); background: transparent; }
.btn--outline::after { background: var(--gold); }
.btn--sm { padding: 11px 18px; font-size: 12.5px; }

.textlink {
  display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--gold-ink);
  padding-top: 16px; margin-top: -16px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size var(--t-ui) var(--ease-io);
}
@media (hover: hover) { .textlink:hover { background-size: 0 1px; background-position: 100% 100%; } }
.textlink--light { color: var(--gold-light); }

/* ---------- marca ---------- */
.brand { display: flex; align-items: center; gap: 16px; color: var(--navy-800); min-height: 44px; }
.brand__mono { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.brand__mono em { font-style: normal; color: var(--gold); }
.brand__rule { width: 1px; height: 34px; background: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 500; white-space: nowrap; }
.brand__sub { font-size: 11px; letter-spacing: .08em; color: var(--gold-light); font-weight: 500; margin-top: 3px; white-space: nowrap; }
.brand--light { color: #fff; }

/* ---------- cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out);
}
.header .brand { color: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; transition: padding var(--t-ui) var(--ease-out); }
.header.is-scrolled { background: rgba(248, 248, 246, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .header__inner { padding-top: 13px; padding-bottom: 13px; }
.header.is-scrolled .brand, .header.is-scrolled .nav a:not(.btn) { color: var(--navy-800); }
.header.is-scrolled .brand__sub { color: var(--gold-ink); }
.header.is-scrolled .burger span { background: var(--navy-800); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); white-space: nowrap;
  position: relative; padding: 6px 0; transition: color var(--t-fast) var(--ease-out);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-io);
}
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__cta { margin-left: 6px; white-space: nowrap; }
.header.is-scrolled .nav__cta::after { background: var(--navy-800); }
@media (hover: hover) { .header.is-scrolled .nav__cta:hover { color: #fff; } }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: #fff; margin: 6px 0; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- topo ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(1000px 620px at 82% 18%, rgba(176,141,79,.13), transparent 62%),
    var(--navy-800);
  color: #fff;
  padding: 150px 0 56px;
  overflow: hidden;
}

/* monograma que se desenha: o único momento de animação marcante */
.hero__seal {
  position: absolute; right: -2vw; top: 64%;
  width: min(54vw, 780px); height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  will-change: transform;
}
.hero__seal text {
  font-family: var(--serif); font-size: 330px; font-weight: 400; letter-spacing: -6px;
  fill: transparent; stroke-width: 1.1;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
}
.seal__m, .seal__a { stroke: rgba(207,176,122,.32); }
.seal__l { stroke: rgba(207,176,122,.6); }
.is-drawn .hero__seal text { animation: sign 3.4s var(--ease-io) .3s forwards; }

.hero__inner { position: relative; }
.hero__title { font-size: clamp(38px, 5.4vw, 74px); font-weight: 400; margin-bottom: 30px; line-height: 1.06; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: block; transform: translateY(105%); }
.is-drawn .hero__title .line > span { animation: rise 1.1s var(--ease-out) forwards; }
.is-drawn .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.is-drawn .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__lead { font-size: clamp(16px, 1.4vw, 18.5px); color: rgba(255,255,255,.76); max-width: 540px; margin-bottom: 38px; }
.hero__mission { display: block; margin-bottom: .8em; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.hero__lead, .hero__actions, .hero__facts { opacity: 0; }
.is-drawn .hero__lead { animation: fade var(--t-reveal) var(--ease-out) .55s forwards; }
.is-drawn .hero__actions { animation: fade var(--t-reveal) var(--ease-out) .7s forwards; }
.is-drawn .hero__facts { animation: fade var(--t-reveal) var(--ease-out) 1s forwards; }
.hero .btn--gold::after { background: var(--white); }

.hero__facts {
  position: relative;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin: clamp(56px, 9vh, 96px) 0 0;
  padding-top: 24px;
}
.hero__facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark); }
.hero__facts div { padding: 0 40px 0 0; margin-right: 40px; border-right: 1px solid var(--line-dark); }
.hero__facts div:last-child { border-right: 0; margin-right: 0; }
.hero__facts dt { font-size: 12.5px; color: rgba(255,255,255,.58); margin-bottom: 2px; }
.hero__facts dd { margin: 0; font-family: var(--serif); font-size: 23px; color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; }

.scroll-line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 48px; overflow: hidden; }
.scroll-line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; animation: drop 2.4s var(--ease-io) infinite; }

/* ---------- seções ---------- */
.section { padding: clamp(84px, 11vw, 136px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-800); color: rgba(255,255,255,.8); }
.section--dark .title { color: #fff; }
.section--dark::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,141,79,.5), transparent);
}
.section__head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 68px); }
.section__lead { color: var(--muted); margin-top: 16px; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split__head { position: sticky; top: 110px; }
/* ---------- abas (componente único do site) ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0 34px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 44px); }
.tab {
  background: none; border: 0; cursor: pointer;
  padding: 6px 0 14px; min-height: 48px; position: relative; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.2; color: var(--muted);
  transition: color var(--t-fast) var(--ease-out);
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out);
}
.tab[aria-selected="true"] { color: var(--navy-800); }
@media (hover: hover) { .tab:hover { color: var(--navy-800); } }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs--dark .tabs__list { border-color: var(--line-dark); }
.tabs--dark .tab { color: rgba(255,255,255,.6); }
.tabs--dark .tab[aria-selected="true"] { color: #fff; }
@media (hover: hover) { .tabs--dark .tab:hover { color: #fff; } }
.tabs__panel, .vtab__panel { animation: panelIn var(--t-ui) var(--ease-out); }
.tabs--dark .tabs__panel { animation-duration: .9s; }
[hidden] { display: none !important; }

/* ---------- § 1 escritório ---------- */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.prose p { font-size: 18px; color: #2a3445; max-width: 62ch; }
.pillars { border-bottom: 1px solid var(--line); }
.pillar { padding: 22px 0 22px 0; border-top: 1px solid var(--line); position: relative; transition: padding var(--t-ui) var(--ease-out); }
.pillar::before, .diffs li::after {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top; transition: transform var(--t-ui) var(--ease-out);
}
.pillar h3, .diffs li { transition: color var(--t-fast) var(--ease-out), padding var(--t-ui) var(--ease-out); }
.pillar.is-active, .diffs li.is-active { padding-left: 18px; }
.pillar.is-active::before, .diffs li.is-active::after { transform: scaleY(1); }
.pillar.is-active h3, .diffs li.is-active { color: var(--gold-ink); }
.diffs li.is-active { padding-left: 44px; }
.diffs li.is-active::before { left: 20px; background: var(--gold); }
@media (hover: hover) {
  .pillar:hover { padding-left: 18px; }
  .pillar:hover::before, .diffs li:hover::after { transform: scaleY(1); }
  .pillar:hover h3, .diffs li:hover { color: var(--gold-ink); }
  .diffs li:hover { padding-left: 44px; }
  .diffs li:hover::before { left: 20px; background: var(--gold); }
}
.pillar h3 { font-size: clamp(23px, 2vw, 27px); color: var(--navy-800); margin: 0 0 6px; }
.pillar p { color: var(--muted); font-size: 15.5px; margin: 0; }

.diffs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 56px;
}
.diffs li {
  position: relative;
  padding: 22px 0 22px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--navy-800);
}
.diffs li::before {
  content: ""; position: absolute; left: 2px; top: 31px; width: 7px; height: 7px;
  border: 1px solid var(--gold); transform: rotate(45deg);
  transition: left var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out);
}

/* ---------- § 2 áreas: abas verticais (acordeão no celular) ---------- */
.vtabs {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr;
  column-gap: clamp(40px, 6vw, 88px); align-items: start;
}
.vtab { display: contents; }
.vtabs__group { grid-column: 1; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.vtabs__group ~ .vtabs__group { margin-top: 34px; }
.vtab__btn {
  grid-column: 1; width: 100%;
  background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; text-align: left;
  padding: 14px 28px 14px 18px; position: relative;
  font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--navy-800);
  transition: color var(--t-fast) var(--ease-out);
}
.vtab__btn::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top; transition: transform var(--t-ui) var(--ease-out);
}
.vtab__btn[aria-expanded="true"] { color: var(--gold-ink); }
@media (hover: hover) { .vtab__btn:hover { color: var(--gold-ink); } }
.vtab__btn[aria-expanded="true"]::before { transform: scaleY(1); }
.vtab:nth-child(4) .vtab__btn, .vtab:last-child .vtab__btn { border-bottom: 1px solid var(--line); }
.vtab__panel {
  grid-column: 2; grid-row: 1 / span 20; align-self: start;
  background: var(--white); border-top: 2px solid var(--gold);
  padding: clamp(30px, 3.4vw, 44px);
}
.vtab__tag { font-size: 13.5px; font-weight: 600; color: var(--gold-ink); margin: 0 0 8px; }
.vtab__panel h3 { font-size: clamp(28px, 2.6vw, 36px); color: var(--navy-800); margin: 0 0 20px; }
.vtab__panel p { color: var(--muted); font-size: 16.5px; max-width: 62ch; }
.vtab__panel p:last-child { margin-bottom: 0; }

/* ---------- § 3 trajetória ---------- */
.portrait {
  margin: 0 0 40px; width: 100%; max-width: 320px; aspect-ratio: 4 / 5;
  background: var(--navy-700);
  outline: 1px solid rgba(176,141,79,.55); outline-offset: 12px;
  display: grid; place-items: center; overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 2s var(--ease-out);
}
.portrait.is-in { clip-path: inset(0); }
.portrait picture { display: block; width: 100%; height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait.is-in .portrait__ph { animation: fade 1.6s var(--ease-out) 1s both; }
.portrait__ph { font-family: var(--serif); font-size: 92px; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(207,176,122,.45); }
.portrait__ph em { font-style: normal; -webkit-text-stroke-color: var(--gold-light); }
.profile { font-size: 17.5px; color: rgba(255,255,255,.78); max-width: 56ch; }

.timeline { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
/* trilho (2 px) e linha dourada (3 px), que desce em velocidade constante */
.timeline::before, .timeline::after { content: ""; position: absolute; top: 16px; bottom: 8px; }
.timeline::before { left: 0; width: 2px; background: var(--line-dark); }
.timeline::after {
  left: -.5px; width: 3px; background: var(--gold);
  box-shadow: 0 0 10px rgba(207,176,122,.45);
  transform: scaleY(0); transform-origin: top;
}
.timeline.is-drawn::after { transform: scaleY(1); transition: transform var(--tl-dur, 3.2s) linear .3s; }
.tl { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 0 0 40px 34px; }
.tl:last-child { padding-bottom: 0; }
/* ponto do ano: acende quando a linha chega até ele (--at é calculado no script) */
.tl::before {
  content: ""; position: absolute; left: -5px; top: 10px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy-800); border: 2px solid var(--gold); z-index: 1;
}
.tl > * { opacity: .3; transition: opacity .7s var(--ease-out); }
.timeline.is-drawn .tl > * { opacity: 1; transition-delay: var(--at, 0s); }
.timeline.is-drawn .tl::before {
  background: var(--gold-light);
  animation: dotOn .9s var(--ease-out) var(--at, 0s) both;
}
@keyframes dotOn {
  0%   { background: var(--navy-800); transform: scale(1);   box-shadow: 0 0 0 0 rgba(207,176,122,.6); }
  40%  { background: var(--gold-light); transform: scale(1.6); box-shadow: 0 0 0 8px rgba(207,176,122,.25); }
  100% { background: var(--gold-light); transform: scale(1);   box-shadow: 0 0 0 5px rgba(207,176,122,.14); }
}
.tl__year { font-family: var(--serif); font-size: 34px; color: var(--gold-light); line-height: 1; font-variant-numeric: lining-nums; }
.tl__year small { font-size: 20px; color: rgba(207,176,122,.75); }
.tl h3 { font-size: 23px; color: #fff; margin: 2px 0 6px; }
.tl p { font-size: 15px; color: rgba(255,255,255,.66); margin: 0; }

/* ---------- § 4 contato ---------- */
.contact__direct {
  background: var(--navy-800); color: #fff;
  padding: clamp(30px, 3.6vw, 48px);
  display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 28px 64px;
}
.contact__line { display: flex; flex-direction: column; gap: 4px; }
.contact__k { font-size: 13px; color: var(--gold-light); font-weight: 500; }
.contact__v { font-family: var(--serif); font-size: 34px; line-height: 1.15; transition: color var(--t-fast) var(--ease-out); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.contact__v--sm { font-size: 24px; }
@media (hover: hover) { .contact__line:hover .contact__v { color: var(--gold-light); } }
.contact__direct .btn { justify-self: end; }

.office { display: grid; grid-template-columns: 4fr 7fr; background: var(--white); border: 1px solid var(--line); }
.office__info { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.office__addr { font-family: var(--serif); font-size: 25px; line-height: 1.35; color: var(--navy-800); }
.office .textlink { align-self: flex-start; }

.map { position: relative; margin: 0; min-height: 340px; background: var(--navy-800); overflow: hidden; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .map:hover img { transform: scale(1.03); } }
.map__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(8,18,33,.85));
}
.map__note { font-size: 12.5px; color: rgba(255,255,255,.62); }
.map .btn--gold::after { background: var(--white); }

/* ---------- página de privacidade ---------- */
.page-simple .header { position: sticky; top: 0; }
.page-simple .header .textlink { color: var(--gold-ink); white-space: nowrap; }
.legal { padding-top: clamp(56px, 8vw, 96px); }
.legal__wrap { max-width: 760px; }
.legal__date { color: var(--muted); font-size: 14.5px; margin: 10px 0 36px; }
.legal h2 { font-size: clamp(23px, 2.2vw, 28px); color: var(--navy-800); margin: 36px 0 10px; }
.legal p { font-size: 16.5px; color: #2a3445; max-width: 66ch; }
.legal a:not(.textlink) { color: var(--gold-ink); border-bottom: 1px solid currentColor; }
.footer__links { margin: 0; font-size: 13.5px; }
.footer__links a { color: var(--gold-light); border-bottom: 1px solid rgba(207,176,122,.4); display: inline-block; padding: 16px 0 4px; }

/* ---------- rodapé ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 64px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 60px; align-items: center; }
.footer__note { font-size: 13.5px; margin: 0; }
.footer__social {
  justify-self: end;
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px;
  color: #6f8cbb; /* azul mais claro que o fundo (contraste 5:1) */
  transition: color var(--t-fast) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.footer__social svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer__social svg .dot { fill: currentColor; stroke: none; }
.footer__social:active { color: #9db3d6; }
@media (hover: hover) { .footer__social:hover { color: #9db3d6; transform: translateY(-2px); } }
.footer__copy { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid var(--line-dark); padding-top: 28px; margin: 12px 0 0; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--navy-900); display: grid; place-items: center;
  box-shadow: 0 10px 26px -12px rgba(8,18,33,.6);
  opacity: 0; transform: translateY(8px);
  animation: fadeUp .6s var(--ease-out) 1.6s forwards;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
@media (hover: hover) { .wa-float:hover { background: var(--navy-800); color: var(--gold-light); } }
.wa-float svg { width: 25px; height: 25px; fill: currentColor; }

/* ---------- keyframes ---------- */
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes sign { to { stroke-dashoffset: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .header .brand__sub { display: none; }
}
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .diffs { grid-template-columns: repeat(2, 1fr); }
  .contact__direct { grid-template-columns: 1fr 1fr; }
  .contact__direct .btn { justify-self: start; grid-column: 1 / -1; }
  .office { grid-template-columns: 1fr; }
  .map { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 920px) {
  .burger { display: block; position: relative; z-index: 60; }
  body.menu-open .header { z-index: 70; }
  /* backdrop-filter prenderia a gaveta dentro do cabeçalho: no celular, fundo sólido */
  .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 55;
    width: var(--drawer);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px;
    padding: 104px 32px 40px;
    background: var(--navy-800);
    border-left: 1px solid rgba(176,141,79,.35);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--t-menu) var(--ease-io), visibility 0s linear var(--t-menu);
  }
  .nav a { opacity: 0; transform: translateX(16px); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 26px; color: #fff !important; padding: 8px 0; }
  .nav a:not(.btn)::after { bottom: 4px; }
  .nav__cta { margin: 22px 0 0; }
  .header.is-scrolled .nav__cta::after { background: var(--white); }

  body.menu-open { overflow: hidden; }
  body.menu-open .nav { transform: none; visibility: visible; transition: transform var(--t-menu) var(--ease-io), visibility 0s; }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(1) { transition-delay: .18s; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .23s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: .28s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .33s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: .38s; }
  /* o site é empurrado para a esquerda, sem ficar por baixo do menu */
  main, .footer, .wa-float, .header .brand, .scrim { transition: transform var(--t-menu) var(--ease-io); }
  body.menu-open main, body.menu-open .footer, body.menu-open .header .brand, body.menu-open .scrim { transform: translateX(calc(-1 * var(--drawer))); }
  body.menu-open .wa-float { transform: translateX(calc(-1 * var(--drawer))); opacity: 0; pointer-events: none; }
  .scrim { position: fixed; inset: 0; z-index: 45; background: rgba(8,18,33,.45); opacity: 0; visibility: hidden; transition: opacity var(--t-menu) var(--ease-io), visibility 0s linear var(--t-menu), transform var(--t-menu) var(--ease-io); }
  body.menu-open .scrim { opacity: 1; visibility: visible; transition: opacity var(--t-menu) var(--ease-io), visibility 0s, transform var(--t-menu) var(--ease-io); }
  body.menu-open .burger span { background: #fff !important; }
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .about { grid-template-columns: 1fr; }
  .vtabs { display: block; }
  .vtab { display: block; }
  .vtab__btn { padding-right: 34px; }
  .vtab__btn::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 13px; height: 13px; margin-top: -6px;
    background: linear-gradient(var(--gold-ink), var(--gold-ink)) center / 13px 1px no-repeat,
                linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1px 13px no-repeat;
    transition: background-size var(--t-ui) var(--ease-out);
  }
  .vtab__btn[aria-expanded="true"]::after { background-size: 13px 1px, 1px 0; }
  .vtab:nth-child(4) .vtab__btn { border-bottom: 0; }
  .vtab__panel { background: none; border: 0; padding: 4px 0 24px 18px; }
  .vtab__panel h3, .vtab__tag { display: none; }
  .vtab__panel p { font-size: 15.5px; }
  .hero__seal { width: 110vw; right: -30vw; top: 62%; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 112px 0 48px; }
  .brand { gap: 12px; }
  .brand__mono { font-size: 28px; }
  .brand__rule { height: 28px; }
  .brand__name { font-size: 17px; }
  .hero__actions { gap: 22px; }
  .hero__facts { grid-template-columns: 1fr 1fr; row-gap: 20px; margin-top: 52px; }
  .hero__facts div:nth-child(2) { border-right: 0; margin-right: 0; }
  .hero__facts div:nth-child(3) { grid-column: 1 / -1; }
  .hero__facts div { padding-right: 16px; margin-right: 16px; }
  .hero__facts dd { font-size: 18px; white-space: nowrap; }
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 22px; height: 22px; }
  .scroll-line { display: none; }
  .tl { grid-template-columns: 1fr; gap: 4px; padding-bottom: 26px; }
  .tl__year { font-size: 26px; }
  .tl__year small { font-size: 16px; }
  .tl h3 { font-size: 19px; margin-bottom: 2px; }
  .tl p { font-size: 14px; line-height: 1.5; }
  .diffs { grid-template-columns: 1fr; }
  .diffs li { font-size: 20px; padding: 18px 0 18px 24px; }
  .diffs li::before { top: 27px; }
  .tabs__list { gap: 0 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tab { font-size: 20px; flex: 0 0 auto; }
  .tab::after { bottom: 0; }
  .contact__direct { grid-template-columns: 1fr; padding: 30px 24px; }
  .map { aspect-ratio: 4 / 3; }
  .office__addr { font-size: 22px; }
  .contact__v { font-size: 28px; }
  .contact__v--sm { font-size: 19px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__social { justify-self: start; margin: -12px 0 0 -10px; }
  .footer__social svg { width: 30px; height: 30px; }
  .page-simple .header .brand__text, .page-simple .header .brand__rule { display: none; }
  .portrait { max-width: 220px; margin-left: 12px; margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .hero__title .line > span { transform: none !important; }
  .hero__lead, .hero__actions, .hero__facts, .wa-float { opacity: 1 !important; transform: none !important; }
  .hero__seal text { stroke-dashoffset: 0 !important; }
  .portrait { clip-path: none !important; }
  .tl > * { opacity: 1 !important; }
  .timeline::after { transform: none !important; }
  .timeline.is-drawn .tl::before { animation: none !important; background: var(--gold-light); }
  .scroll-line { display: none; }
}
