/* Diego Santos Advocacia · site.css
   Paleta Royal Navy & Gold · Instrument Serif + Manrope */

:root {
  --ink: #0D1B2A;
  --ink-2: #1B263B;
  --slate: #415A77;
  --gold: #D4AF37;
  --gold-ink: #7A5E10;          /* dourado para texto sobre fundo claro (5,5:1) */
  --cream: #F7F3E9;
  --white: #FFFFFF;
  --mist: #9AA9BC;              /* texto secundário sobre escuro (7,3:1) */
  --limit: #E08A82;             /* marcador de limite sobre escuro (6,0:1) */
  --error: #9B2C24;

  --line-dark: rgba(247, 243, 233, .12);
  --line-light: rgba(27, 38, 59, .14);

  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  /* Pesos: 700 marca · 600 títulos de bloco e números · 500 títulos grandes · 400 texto */

  --r-panel: 28px;
  --r-card: 22px;
  --gap-page: 10px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 11vw, 150px);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font: 400 16.5px/1.7 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: 96px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

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

/* ---------- Painéis ---------- */
.panel {
  position: relative;
  margin: var(--gap-page);
  border-radius: var(--r-panel);
  overflow: hidden;
  isolation: isolate;
}
.panel--dark { background: var(--ink); color: var(--cream); }
.panel--ink  { background: var(--ink-2); color: var(--cream); padding-block: var(--sec); }
.section { padding-block: var(--sec); }

/* ---------- Tipografia ---------- */
.h2 {
  font-weight: 500;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.032em;
  margin-bottom: .55em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(2.2rem, 1.4rem + 2.9vw, 3.8rem); }
.h2 em, .slide__title em { font-style: normal; color: var(--gold); }
.section .h2 em { color: var(--gold-ink); }

/* ---------- Pills e tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.pill--line { border: 1px solid var(--line-light); color: var(--gold-ink); }
.pill--glass { background: rgba(247, 243, 233, .06); border: 1px solid var(--line-dark); color: var(--cream); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }

.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor;
}
.tag--gold { color: var(--gold); }

.glass {
  background: linear-gradient(160deg, rgba(247, 243, 233, .09), rgba(247, 243, 233, .03));
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* ---------- Botões ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2; overflow: hidden;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease);
}
.btn:has(.btn__arrow) { padding-right: 8px; }
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(212, 175, 55, .55); }
.btn--gold:hover { box-shadow: 0 16px 40px -14px rgba(212, 175, 55, .75); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--sm { --h: 46px; font-size: 14px; padding-left: 20px; }
.btn--block { width: 100%; }
.btn__arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--gold); flex: none; transition: transform .4s var(--ease);
}
.btn--sm .btn__arrow { width: 34px; height: 34px; }
.btn--dark .btn__arrow { background: var(--gold); color: var(--ink); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn__arrow svg, .arrow-circle svg, .round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

.link-line {
  font-weight: 600; text-decoration: none; padding-block: 12px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.link-line:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); }
.link-line--dark { color: var(--gold-ink); }

.arrow-circle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; flex: none; transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}

.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-light); background: transparent; color: var(--ink-2); transition: all .3s var(--ease);
}
.round-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.round-btn:hover { transform: scale(1.06); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--ink); color: var(--gold);
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
  clip-path: inset(0 0 0 0);
}
.loader__mark { font: 700 44px/1 var(--sans); letter-spacing: -.04em; display: flex; gap: 2px; overflow: hidden; }
.loader__mark span { display: inline-block; transform: translateY(105%); animation: rise .8s var(--ease) forwards; }
.loader__mark span + span { animation-delay: .08s; }
.loader__bar { width: 120px; height: 1px; background: rgba(212, 175, 55, .2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); animation: load 1s var(--ease) .1s forwards; }
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.skip-loader .loader { display: none; }
@keyframes rise { to { transform: none; } }
@keyframes load { to { transform: scaleX(1); } }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1320px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 24px; border-radius: 999px;
  color: var(--cream);
  transition: background-color .4s, box-shadow .4s, top .4s var(--ease), padding .4s;
}
.nav.is-solid {
  top: 12px;
  background: rgba(13, 27, 42, .82);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line-dark);
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin: 0; }
.brand__name { font: 700 18px/1 var(--sans); letter-spacing: -.025em; }
.brand__tag { font-size: 9.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }
.nav__links {
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(247, 243, 233, .06); border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav.is-solid .nav__links { background: transparent; border-color: transparent; }
.nav__links a {
  position: relative; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  text-decoration: none; color: rgba(247, 243, 233, .82); transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--cream); background: rgba(247, 243, 233, .07); }
.nav__links a.is-active { color: var(--ink); background: var(--gold); }
.nav__burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--cream);
  padding: 110px 28px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font: 500 30px/1.2 var(--sans); letter-spacing: -.03em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(16px); animation: rise-in .6s var(--ease) forwards;
}
.menu nav a:nth-child(2) { animation-delay: .05s; } .menu nav a:nth-child(3) { animation-delay: .1s; }
.menu nav a:nth-child(4) { animation-delay: .15s; } .menu nav a:nth-child(5) { animation-delay: .2s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--gap-page) * 2);
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 70% 10%, #1B263B 0%, transparent 60%),
    linear-gradient(180deg, #0D1B2A 0%, #0A1622 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247, 243, 233, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 243, 233, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 70% at 65% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 70% at 65% 40%, #000 20%, transparent 75%);
}
.hero__halo {
  position: absolute; width: 66vmin; height: 66vmin; left: 45%; top: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .5) 0%, rgba(212, 175, 55, .16) 38%, transparent 68%);
  filter: blur(20px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.08; opacity: .8; } }

.hero__inner {
  position: relative; flex: 1;
  width: 100%; max-width: 1320px; margin-inline: auto;
  padding: 140px var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 24px;
}
.hero__copy { position: relative; z-index: 2; max-width: 560px; }
.slides { display: grid; margin-top: 8px; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease) .15s, transform 1s var(--ease) .15s, visibility 0s; }
.slide.is-leaving { transform: translateY(-18px); }
.slide__title {
  font-weight: 500; font-size: clamp(2.3rem, 1.3rem + 2.9vw, 3.7rem); line-height: 1.07; letter-spacing: -.038em;
  color: var(--cream); margin: 0 0 20px; max-width: 13ch; text-wrap: balance;
}
.slide__text { font-size: clamp(16px, .95rem + .2vw, 18px); line-height: 1.6; color: rgba(247, 243, 233, .72); max-width: 46ch; margin: 0; text-wrap: pretty; }

.slides__tabs { display: flex; gap: 22px; margin: 34px 0 0; }
.tab {
  display: flex; flex-direction: column; gap: 10px; min-width: 96px; padding: 6px 0; min-height: 44px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mist);
  transition: color .3s;
}
.tab:hover, .tab.is-active { color: var(--cream); }
.tab i { display: block; height: 2px; border-radius: 2px; background: rgba(247, 243, 233, .14); overflow: hidden; }
.tab b { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tab.is-done b { transform: scaleX(1); }
.tab.is-active b { animation: fill 6.5s linear forwards; }
.hero.is-paused .tab.is-active b, .slides__tabs:not(.is-running) .tab.is-active b { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin: 40px 0 0; }
.hero__note { font-size: 13px; color: var(--mist); display: flex; align-items: center; gap: 10px; margin: 0; }
.hero__note::before { content: ""; width: 18px; height: 1px; background: var(--gold); }

.hero__photo {
  position: absolute; z-index: 1; margin: 0;
  left: 49.5%; bottom: 0;
  height: calc(100% - 100px); aspect-ratio: 900 / 1530;
  display: flex; align-items: flex-end;
}
.hero__photo picture, .hero__photo img { height: 100%; width: auto; }
.hero__photo img {
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

.hero__card {
  position: absolute; z-index: 3; right: var(--pad); bottom: 64px;
  width: 272px; padding: 20px; border-radius: 20px; color: var(--cream);
}
.hero__card p { font-size: 14px; line-height: 1.55; margin: 14px 0 16px; color: rgba(247, 243, 233, .78); }
.hero__card strong { color: var(--cream); font-weight: 600; }
.hero__card-link { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--gold); }
.hero__card-link .arrow-circle { width: 36px; height: 36px; }
.hero__card-link:hover .arrow-circle { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: rotate(45deg); }

/* Faixa de fatos */
.facts-wrap { position: relative; z-index: 3; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad) var(--pad); }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 22px; overflow: hidden;
  background: rgba(10, 22, 34, .72); border: 1px solid var(--line-dark);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.fact { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 26px 28px; }
.fact + .fact { border-left: 1px solid var(--line-dark); }
.fact__num { font: 600 clamp(1.9rem, 1.4rem + 1vw, 2.5rem)/1 var(--sans); letter-spacing: -.035em; color: var(--cream); }
.fact__num b { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.fact__txt { font-size: 14.5px; line-height: 1.5; color: rgba(247, 243, 233, .74); max-width: 24ch; }
.fact__src { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); padding-top: 12px; border-top: 1px solid var(--line-dark); }

/* ---------- Atuação ---------- */
.head-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 60px; align-items: end; margin-bottom: 48px; }
.head-split__side p { color: var(--slate); max-width: 420px; }
.carousel-ctrl { display: flex; gap: 10px; margin-top: 20px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 10px max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))) 30px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .area__link { pointer-events: none; }
.area { scroll-snap-align: start; }
.area__link {
  height: 100%; display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  background: var(--white); border-radius: var(--r-card); padding: 12px 12px 22px;
  box-shadow: 0 1px 0 var(--line-light), 0 20px 50px -30px rgba(13, 27, 42, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.area__link:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line-light), 0 34px 60px -30px rgba(13, 27, 42, .5); }
.area__media { border-radius: 16px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink-2); }
.area__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.area__link:hover .area__media img { transform: scale(1.06); filter: saturate(1); }
.area .tag { align-self: flex-start; margin: 6px 10px 0; color: var(--slate); }
.area__title { font: 600 21px/1.25 var(--sans); letter-spacing: -.02em; padding-inline: 10px; }
.area__txt { font-size: 15px; line-height: 1.55; color: var(--slate); padding-inline: 10px; margin: 0; }
.area__more { margin-top: auto; padding: 10px 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.area__link:hover .arrow-circle { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(45deg); }
.area--dark .area__link { background: var(--ink); color: var(--cream); }
.area--dark .tag, .area--dark .area__txt { color: var(--mist); }
.area--dark .area__more { color: var(--gold); }
.area--muted .area__link { background: transparent; box-shadow: inset 0 0 0 1px var(--line-light); }
.area--muted .area__media img { filter: saturate(.5); }

/* ---------- O que mudou ---------- */
.mudou { padding-block: var(--sec); }
.mudou__img { position: absolute; inset: 0; z-index: -1; }
.mudou__img img { width: 100%; height: 120%; object-fit: cover; opacity: .35; filter: grayscale(.6) contrast(1.1); will-change: transform; }
.mudou__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink) 30%, rgba(13, 27, 42, .78) 60%, rgba(13, 27, 42, .6)),
              linear-gradient(0deg, var(--ink), transparent 40%);
}
.mudou__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px 64px; align-items: end; }
.mudou__text p { color: rgba(247, 243, 233, .82); }
.mudou__punch { font: 500 19px/1.45 var(--sans); letter-spacing: -.01em; color: var(--gold) !important; margin-top: 1.2em; }
.cols3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 44px; }
.col { border-radius: 20px; padding: 26px 26px 22px; }
.col__k { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.col__k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.col p { margin: 0; font-size: 16px; color: rgba(247, 243, 233, .85); }
.col--limit .col__k { color: var(--limit); }
.col--limit { border-color: rgba(224, 138, 130, .3); }
.mudou .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Sobre ---------- */
.sobre__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px 80px; align-items: center; }
.sobre__photo { position: relative; margin: 0; }
.sobre__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--r-panel); z-index: -1;
}
.sobre__photo img { border-radius: var(--r-panel); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre__badge {
  position: absolute; left: 18px; bottom: 18px; padding: 14px 18px; border-radius: 16px;
  background: rgba(13, 27, 42, .72); color: var(--cream); display: flex; flex-direction: column;
}
.sobre__badge strong { font: 600 17px/1.2 var(--sans); letter-spacing: -.02em; }
.sobre__badge span { font-size: 12px; letter-spacing: .1em; color: var(--gold); margin-top: 4px; }
.sobre__copy > p { color: #34405A; }
.quote {
  margin: 28px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold);
  font: 500 clamp(19px, 1rem + .5vw, 23px)/1.45 var(--sans); letter-spacing: -.02em; color: var(--ink);
}
.creds { margin: 28px 0 34px; border-top: 1px solid var(--line-light); }
.creds li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 15.5px; }
.creds li::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--gold-ink); translate: 0 -4px; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, .1));
  transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.4s var(--ease);
}
.js .steps:not(.is-in)::before { --p: 0; }
.step { position: relative; padding-top: 0; }
.step__n {
  position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  font: 500 20px/1 var(--sans); letter-spacing: -.02em; color: var(--gold); background: var(--ink-2); border: 1px solid rgba(212, 175, 55, .45); margin-bottom: 26px;
}
.step h3 { font: 600 21px/1.25 var(--sans); letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: rgba(247, 243, 233, .78); font-size: 16px; max-width: 34ch; }
.docs {
  margin-top: 56px; padding: 26px 30px; border-radius: 20px;
  border: 1px dashed rgba(212, 175, 55, .45); background: rgba(13, 27, 42, .4);
  display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center;
}
.docs__k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); max-width: 200px; }
.docs ul { display: flex; flex-wrap: wrap; gap: 10px; }
.docs li { font-size: 14.5px; padding: 8px 14px; border-radius: 999px; background: rgba(247, 243, 233, .06); border: 1px solid var(--line-dark); }

/* ---------- Dúvidas ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px 80px; align-items: start; }
.faq__side { position: sticky; top: 120px; }
.faq__side > p { color: var(--slate); margin-bottom: 4px; }
.qa { border-bottom: 1px solid var(--line-light); }
.qa:first-child { border-top: 1px solid var(--line-light); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; min-height: 44px; font: 500 clamp(17px, .95rem + .3vw, 19.5px)/1.4 var(--sans); letter-spacing: -.015em; color: var(--ink);
  transition: color .25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-ink); }
.qa summary i {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light);
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.qa summary i::after { rotate: 90deg; }
.qa[open] summary i { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--ink); }
.qa__a { padding: 0 64px 26px 0; color: #34405A; }
.qa[open] .qa__a { animation: fade-down .45s var(--ease); }
.qa__a p { margin: 0; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contato ---------- */
.contato { padding-block: var(--sec); }
.contato__img { position: absolute; inset: 0; z-index: -1; }
.contato__img img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.4); }
.contato__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 20% 50%, rgba(13, 27, 42, .7), var(--ink) 80%); }
.contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: center; }
.contato__copy > p { color: rgba(247, 243, 233, .82); max-width: 470px; margin-bottom: 30px; }
.contact-list { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); align-self: center; }
.contact-list dd { margin: 0; }

.form { background: var(--cream); color: var(--ink-2); border-radius: var(--r-card); padding: clamp(24px, 3vw, 38px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.form__title { font: 600 22px/1.25 var(--sans); letter-spacing: -.025em; margin-bottom: 22px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(27, 38, 59, .22); background: var(--white); color: var(--ink);
  font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B263B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(212, 175, 55, .35); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { margin: 6px 0 0; font-size: 13px; color: var(--error); min-height: 0; }
.field__err:empty { display: none; }
.field__err::before { content: "! "; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: #34405A; margin: 6px 0 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink-2); flex: none; }
.check a { color: var(--ink); }
.form .btn { margin-top: 12px; }
.form__status { margin: 12px 0 0; font-size: 14px; }
.form__status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form.is-sending .btn { opacity: .75; pointer-events: none; }
.form__done { text-align: left; padding: 10px 0; animation: fade-down .5s var(--ease); }
.form__done h3 { font: 600 26px/1.2 var(--sans); letter-spacing: -.03em; color: var(--ink); margin: 16px 0 10px; }
.form__done .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.form__done .tick svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: rgba(247, 243, 233, .78); margin: var(--gap-page); border-radius: var(--r-panel); padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.brand--foot { color: var(--cream); margin-bottom: 18px; }
.footer__k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 24px; font-size: 13px; color: rgba(247, 243, 233, .7); }
.footer__legal p { margin: 0; max-width: 640px; }

/* ---------- Barra de WhatsApp (mobile) ---------- */
.wa-bar { display: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; z-index: 150; left: 0; top: 0; pointer-events: none;
    width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
    background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
    transition: transform .35s var(--ease);
  }
  .cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
}

/* ---------- Revelação ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .area.reveal { transform: translateY(40px) scale(.97); }
.js .area.reveal.is-in { transform: none; }


.js .hero__photo img { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1.2s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
.js .hero.is-in .hero__photo img { opacity: 1; transform: none; }

[data-depth] { will-change: transform; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 9px 12px; font-size: 13.5px; }
  .hero__card { display: none; }
}

@media (max-width: 960px) {
  :root { --gap-page: 8px; --r-panel: 22px; }
  body { font-size: 16.5px; }
  .nav { top: 12px; width: calc(100% - 24px); padding: 8px 8px 8px 20px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(247, 243, 233, .08); box-shadow: inset 0 0 0 1px var(--line-dark);
  }
  .nav__burger span:not(.sr) { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.is-solid { top: 8px; }

  .hero { min-height: 0; }
  .hero__inner { display: flex; flex-direction: column; padding: 96px var(--pad) 28px; gap: 0; }
  .hero__photo {
    position: relative; order: -1; left: auto; bottom: auto;
    height: min(47svh, 430px); width: auto; align-self: center; margin-bottom: -48px;
  }
  .hero__photo img { mask-image: linear-gradient(180deg, #000 62%, transparent 96%); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); }
  .hero__halo { width: 90vw; height: 90vw; left: 5vw; top: 8%; }
  .hero__grid { mask-image: radial-gradient(90% 50% at 50% 25%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(90% 50% at 50% 25%, #000 10%, transparent 75%); }
  .hero__copy { max-width: none; }
  .slide__title { font-size: clamp(2.1rem, 1.2rem + 4.8vw, 2.8rem); max-width: none; }
  .slides__tabs { gap: 16px; margin-top: 26px; }
  .tab { min-width: 0; flex: 1; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { margin-top: 26px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 18px; }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .fact__txt { font-size: 13.5px; }
  .fact__num { font-size: 1.65rem; white-space: nowrap; }
  .hero__copy > .pill { font-size: 10.5px; letter-spacing: .07em; padding: 8px 14px; }

  .head-split, .mudou__inner, .sobre__grid, .faq, .contato__grid { grid-template-columns: 1fr; }
  .head-split { margin-bottom: 28px; }
  .carousel-ctrl { display: none; }
  .rail { grid-auto-columns: 82vw; gap: 14px; }
  .cols3 { grid-template-columns: 1fr; margin: 12px 0 32px; }
  .sobre__photo { max-width: 460px; margin-right: 18px; }
  .steps { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
  .steps::before { left: 36px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .1)); transform-origin: top; transform: scaleY(var(--p, 1)); }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; }
  .step__n { grid-row: span 2; margin: 0; }
  .docs { grid-template-columns: 1fr; padding: 22px; }
  .faq__side { position: static; }
  .qa__a { padding-right: 0; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .wa-bar {
    display: block; position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(13, 27, 42, .9) 35%);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .wa-bar.is-on { transform: none; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .loader { display: none; }
  [data-depth] { transform: none !important; }
  .tab.is-active b { animation: none; transform: scaleX(1); }
}

/* ---- ajustes 23/09: foto do Sobre, artigos, página de artigo */
.sobre__photo img { object-position: 50% 12%; }
.artigos .head-split { margin-bottom: 36px; }
.artigos .head-split__side .link-line { margin-top: 12px; display: inline-block; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { border-radius: var(--r-card); overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-light); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(13, 27, 42, .35), inset 0 0 0 1px var(--line-light); }
.post__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post__media { aspect-ratio: 16 / 10; background: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__mono { font-weight: 700; font-size: 32px; color: var(--gold); letter-spacing: .1em; }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--slate); }
.post__meta .tag { color: var(--gold-ink); }
.post__title { font-size: 21px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.post__txt { color: var(--slate); font-size: 15px; margin: 0; flex: 1; }
.post .area__more { margin-top: 6px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; background: #fff; }
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.artigos__filtro { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.artigos--lista { padding-top: 140px; }
.artigos__pag { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--slate); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-light); color: var(--ink-2); }
.artigo__vazio { text-align: center; padding: 120px 0 40px; max-width: 640px; margin: 0 auto; }
.artigo__vazio .btn { margin-top: 16px; }
.artigo__hero { position: relative; padding: 150px 0 64px; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; }
.artigo__capa { position: absolute; inset: 0; }
.artigo__capa img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.artigo__capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 27, 42, .55), rgba(13, 27, 42, .92) 80%); }
.artigo__hero-inner { position: relative; max-width: 860px; }
.artigo__trilha { font-size: 13px; color: var(--mist); margin-bottom: 16px; }
.artigo__trilha a { color: var(--gold); text-decoration: none; }
.artigo__titulo { color: var(--cream); max-width: 16ch; }
.artigo__resumo { font-size: 19px; color: var(--mist); max-width: 60ch; margin: 20px 0 0; }
.artigo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 28px 0 0; font-size: 14px; color: var(--mist); }
.artigo__autor { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 500; }
.artigo__autor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.artigo__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px 72px; padding: 64px var(--pad); align-items: start; }
.artigo__corpo { max-width: 760px; font-size: 17.5px; line-height: 1.75; }
.artigo__corpo h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; font-weight: 600; margin: 1.6em 0 .6em; color: var(--ink); }
.artigo__corpo h3 { font-size: 22px; font-weight: 600; margin: 1.4em 0 .5em; color: var(--ink); }
.artigo__corpo h4 { font-size: 18px; font-weight: 600; margin: 1.2em 0 .4em; }
.artigo__corpo p { margin: 0 0 1.2em; }
.artigo__corpo ul, .artigo__corpo ol { padding-left: 22px; margin: 0 0 1.2em; list-style: revert; }
.artigo__corpo li { margin: .4em 0; }
.artigo__corpo blockquote { margin: 1.6em 0; padding: 18px 26px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 16px 16px 0; font-size: 19px; color: var(--ink); }
.artigo__corpo img { border-radius: 18px; margin: 1.4em 0; }
.artigo__corpo figure { margin: 1.6em 0; }
.artigo__corpo figure img { margin: 0; }
.artigo__corpo figcaption { font-size: 14px; color: var(--slate); text-align: center; margin-top: 10px; }
.artigo__corpo a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.artigo__corpo table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; }
.artigo__corpo th, .artigo__corpo td { border: 1px solid var(--line-light); padding: 10px 12px; text-align: left; }
.artigo__corpo th { background: #fff; font-weight: 600; }
.artigo__corpo iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; margin: 1.4em 0; }
.artigo__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.artigo__share span { font-size: 13px; color: var(--slate); margin-right: 6px; }
.artigo__aviso { font-size: 13px; color: var(--slate); }
.artigo__lado { position: sticky; top: 96px; display: grid; gap: 20px; }
.artigo__autor-card { padding: 26px; border-radius: var(--r-card); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-light); display: flex; flex-direction: column; gap: 6px; }
.artigo__autor-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; margin-bottom: 8px; }
.artigo__autor-card strong { font-size: 19px; color: var(--ink); }
.artigo__autor-card span { font-size: 13px; color: var(--gold-ink); }
.artigo__autor-card p { color: var(--slate); font-size: 15px; margin: 8px 0 14px; }
.artigo__lista { display: grid; gap: 12px; }
.artigo__mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.35; }
.artigo__mini img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }
.artigo__mini:hover { color: var(--gold-ink); }
.artigo__cta { padding: 80px 0; text-align: center; }
.artigo__cta .wrap { max-width: 720px; }
.artigo__cta p { color: var(--mist); margin: 16px 0 24px; }
.artigo__cta-btns { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .artigo__grid { grid-template-columns: 1fr; gap: 40px; }
  .artigo__lado { position: static; }
  .artigo__titulo { max-width: none; }
  .artigos--lista { padding-top: 110px; }
}
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .artigo__hero { padding: 120px 0 40px; min-height: 0; } }
