@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Lora-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Lora-italic-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/Inter-variable.woff2') format('woff2');
}

/* Cores e fontes da apresentação em PDF (Lora + Inter, marrom #8b6b52) e do cartão (#806056). */
:root {
  --paper: #ffffff;
  --paper-warm: #f8f5f1;
  --ink: #2a2622;
  --ink-soft: #6c625a;
  --brown: #8b6b52;
  --brown-deep: #6b5140;
  --brown-light: #b39e8e;
  --line: #e7e0d9;
  --dark: #2b2219;
  --cream: #f6f1ea;
  --tan: #cdab7a;

  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  --max: 1180px;
  --band: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 720px) {
  :root {
    --band: 6px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding-left: var(--band);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faixa marrom da margem esquerda, como na apresentação. */
body::before {
  content: '';
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--band);
  background: var(--brown);
  z-index: 60;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.15;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 22px;
  }
}

/* Rótulo em Inter espaçado, como "ADVOGADO TITULAR:" na apresentação. */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brown);
}

/* Logo oficial (vetor extraído do cartão) pintado com a cor do texto. */
.logo {
  display: block;
  aspect-ratio: 156.3 / 40.9;
  background: currentColor;
  -webkit-mask: url('/logo.svg') center / contain no-repeat;
  mask: url('/logo.svg') center / contain no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--brown);
  background: var(--brown);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn--line {
  background: transparent;
  color: var(--brown-deep);
}

.btn--line:hover,
.btn--line:focus-visible {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

/* ===================== Cabeçalho ===================== */
/* Transparente sobre o banner escuro; fica branco ao rolar (classe .is-solid no script). */
.header {
  position: fixed;
  top: 0;
  left: var(--band);
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
}

.header.is-solid {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
}

.header:not(.is-solid) .header__brand,
.header:not(.is-solid) .header__links a {
  color: var(--cream);
}

.header:not(.is-solid) .header__links a {
  opacity: 0.8;
}

.header:not(.is-solid) .header__links a:hover {
  opacity: 1;
}

.header:not(.is-solid) .header__cta {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--dark);
}

.header:not(.is-solid) .header__cta:hover {
  background: var(--tan);
  border-color: var(--tan);
}

.header:not(.is-solid) .header__toggle span,
.header:not(.is-solid) .header__toggle span::before,
.header:not(.is-solid) .header__toggle span::after {
  background: var(--cream);
}

.header:not(.is-solid) .header__toggle[aria-expanded="true"] span {
  background: transparent;
}

.header__brand,
.header__links a {
  transition: color 400ms var(--ease), opacity 250ms ease;
}

section[id] {
  scroll-margin-top: 84px;
}

.header__wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 84px;
}

.header__brand {
  margin-right: auto;
  color: var(--ink);
}

.header__brand .logo {
  width: 186px;
}

.header__links {
  display: flex;
  gap: 30px;
}

.header__links a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 250ms ease;
}

.header__links a:hover {
  color: var(--brown);
}

.header__cta {
  min-height: 44px;
  padding: 0 22px;
  font-size: 12px;
}

.header__toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  cursor: pointer;
}

.header__toggle span,
.header__toggle span::before,
.header__toggle span::after {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease, background 200ms ease;
}

.header__toggle span { top: 16px; }
.header__toggle span::before { top: -7px; }
.header__toggle span::after { top: 7px; }

.header__toggle[aria-expanded="true"] span { background: transparent; }
.header__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.header__mobile {
  display: none;
  flex-direction: column;
  padding: 4px 22px 24px;
  border-top: 1px solid var(--line);
}

.header__mobile a:not(.btn) {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
}

.header__mobile .btn {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .header__wrap { height: 70px; }
  .header__brand .logo { width: 156px; }
  .header__links, .header__cta { display: none; }
  .header__toggle { display: block; }
  .header__mobile.is-open { display: flex; }
}

/* ===================== Abertura ===================== */
/* Banner escuro em tela cheia, com o monograma oficial como marca-d'água. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  background:
    repeating-linear-gradient(180deg, rgba(246, 241, 234, 0.035) 0px, rgba(246, 241, 234, 0.035) 1px, transparent 1px, transparent 46px),
    radial-gradient(120% 90% at 82% 8%, rgba(205, 171, 122, 0.16) 0%, rgba(205, 171, 122, 0) 55%),
    var(--dark);
  overflow: hidden;
}

.hero__mark {
  position: absolute;
  top: 50%;
  right: -4%;
  width: min(58vw, 720px);
  transform: translateY(-50%);
  color: rgba(246, 241, 234, 0.045);
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: 100%;
  padding-top: 150px;
  padding-bottom: 88px;
}

.hero .label {
  color: var(--tan);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.1;
  max-width: 19ch;
}

.hero__sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(246, 241, 234, 0.8);
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero__foot {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 36px;
  border-top: 1px solid rgba(246, 241, 234, 0.14);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.55);
}

.hero__in {
  animation: hero-in 1100ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.btn--light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--dark);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--tan);
  border-color: var(--tan);
  color: var(--dark);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(246, 241, 234, 0.5);
  color: var(--cream);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--dark);
}

@media (max-width: 900px) {
  .hero__mark { width: 92vw; right: -22%; }
  .hero__content { padding-top: 120px; padding-bottom: 56px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__foot { display: none; }
}

/* ===================== Seções ===================== */
.section {
  padding: 96px 0;
}

.section--warm {
  background: var(--paper-warm);
}

.section__title {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 44px);
}

.section__title em {
  color: var(--brown);
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ===================== Trajetória ===================== */
.career {
  border-top: 1px solid var(--brown-light);
}

.career__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px 80px;
  align-items: start;
}

.career__intro {
  position: sticky;
  top: 140px;
}

.career__intro p {
  margin-top: 22px;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* Lista com círculos vazados ligados por um fio, como na apresentação. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 34px 44px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--brown);
  border-radius: 50%;
  background: var(--paper);
  z-index: 1;
  transition: background 400ms var(--ease);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--brown-light);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline li:hover::before {
  background: var(--brown);
}

.timeline__year {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brown);
}

.timeline h3 {
  margin-top: 4px;
  font-size: 21px;
}

.timeline p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .career__grid { grid-template-columns: 1fr; }
  .career__intro { position: static; }
}

/* ===================== Áreas de atuação ===================== */
.areas__head {
  max-width: 760px;
}

.areas__head p {
  margin-top: 18px;
  color: var(--ink-soft);
}

/* Colunas com divisória vertical, como no bloco de áreas da apresentação. */
.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--brown-light);
}

.area {
  padding: 34px 32px 38px;
  border-bottom: 1px solid var(--line);
}

.area:nth-child(3n + 1) {
  padding-left: 0;
}

.area:nth-child(3n + 2),
.area:nth-child(3n) {
  border-left: 1px solid var(--line);
}

.area:nth-child(3n) {
  padding-right: 0;
}

.area h3 {
  font-size: 23px;
  transition: color 300ms ease;
}

.area p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.area:hover h3 {
  color: var(--brown);
}

@media (max-width: 900px) {
  .areas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area, .area:nth-child(n) { padding: 28px 24px 30px; border-left: 0; }
  .area:nth-child(odd) { padding-left: 0; }
  .area:nth-child(even) { border-left: 1px solid var(--line); padding-right: 0; }
}

@media (max-width: 600px) {
  .areas__grid { grid-template-columns: 1fr; }
  .area, .area:nth-child(n) { padding: 26px 0; border-left: 0; }
}

/* ===================== Tribunais ===================== */
.courts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px 80px;
  align-items: end;
}

.courts__grid > div > p {
  margin-top: 18px;
  color: var(--ink-soft);
}

.courts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.courts__list li {
  padding: 4px 22px;
  border-left: 1px solid var(--brown-light);
}

.courts__abbr {
  display: block;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  color: var(--brown);
}

.courts__name {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .courts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .courts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

/* ===================== Contato ===================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 80px;
}

.contact__grid > div > p {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 40ch;
}

.contact__grid .btn {
  margin-top: 32px;
}

.contact__list {
  margin: 0;
}

.contact__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact__item:first-child {
  padding-top: 0;
}

.contact__item dd {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.5;
}

.contact__item a {
  text-decoration: none;
  transition: color 250ms ease;
}

.contact__item a:hover {
  color: var(--brown);
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact__phone svg {
  width: 18px;
  height: 18px;
  fill: var(--brown);
}

.contact__note {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}

.contact__map {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brown);
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ===================== Rodapé (faixa marrom da apresentação) ===================== */
.footer {
  background: #3b2e24;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  padding: 52px 0 28px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer .logo {
  width: 190px;
  color: #fff;
}

.footer__legal {
  text-align: right;
}

.footer__legal strong {
  color: #fff;
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 20px 84px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
}

/* ===================== WhatsApp flutuante ===================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  box-shadow: 0 10px 28px rgba(60, 40, 28, 0.35);
  transition: background 300ms var(--ease), transform 400ms var(--ease);
  animation: wa-in 800ms var(--ease) 1200ms both;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: var(--brown-deep);
  transform: scale(1.06);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@keyframes wa-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media print {
  .wa-float, body::before { display: none; }
}
