:root {
  --brand: #233163;
  --brand-deep: #172347;
  --brand-soft: #344578;
  --ink: #1f2742;
  --muted: #667085;
  --paper: #fbfaf7;
  --warm: #f3f0ea;
  --line: rgba(35, 49, 99, 0.16);
  --white: #ffffff;
  --max: 1240px;
  --shadow: 0 18px 60px rgba(20, 30, 60, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--brand);
  padding: .7rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-light { background: var(--paper); }
.section-soft { background: #f6f5f1; }
.section-tinted { background: #eef0f6; }
.section-dark { background: var(--brand-deep); color: var(--white); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20,30,60,.05);
}
.nav-wrap {
  min-height: 86px;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand img, .footer-brand img { width: 265px; }
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; font-size: .93rem; }
.main-nav a { position: relative; }
.site-header:not(.scrolled) .main-nav a { color: rgba(255,255,255,.92); }
.site-header:not(.scrolled) .header-cta { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--brand); transition: .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--brand); margin: 5px 0; }
.site-header:not(.scrolled) .menu-toggle span { background: var(--white); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  transition: .25s ease;
}
.button:hover { background: var(--brand-soft); transform: translateY(-1px); }
.button-small { min-height: 42px; padding-inline: 18px; }
.button-light { background: var(--white); color: var(--brand); }
.button-light:hover { background: #eef0f6; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.text-link.light { color: var(--white); opacity: .95; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(11, 20, 43, .82) 0%, rgba(11, 20, 43, .58) 34%, rgba(11, 20, 43, .12) 62%, rgba(11, 20, 43, 0) 100%),
    url("assets/images/imagemprincipal.png") center center / cover no-repeat;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100svh;
}

.hero-copy { max-width: 760px; min-height: 100svh; padding: 112px 72px 80px 0; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 700; color: var(--brand); }
.eyebrow.light, .section-dark .eyebrow { color: #cbd3f1; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(3rem, 6vw, 5.8rem); max-width: 780px; margin-bottom: 28px; }
h2 { font-size: clamp(2.5rem, 4.4vw, 4.4rem); margin-bottom: 26px; }
h3 { font-size: 1.55rem; }
.hero-lead { max-width: 650px; font-size: 1.14rem; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero-meta { margin-top: auto; transform: translateY(10px); display: flex; flex-wrap: wrap; gap: 12px 26px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: rgba(255,255,255,.72); }
.hero-meta span + span::before { content: "•"; margin-right: 26px; color: #9aa9d8; }

.media-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35,49,99,.2), rgba(35,49,99,.02)),
    repeating-linear-gradient(45deg, rgba(35,49,99,.06) 0 1px, transparent 1px 22px),
    #e7e8ed;
  border: 1px solid rgba(255,255,255,.15);
}

.placeholder-label { position: relative; z-index: 2; padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }
.watermark { position: absolute; width: 62%; opacity: .07; filter: grayscale(1) brightness(10); }

.section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.section-heading h2 { max-width: 600px; }
.stat-card { margin-top: 48px; display: inline-grid; gap: 6px; border-left: 1px solid var(--brand); padding-left: 22px; }
.stat-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 3.8rem; line-height: 1; color: var(--brand); font-weight: 400; }
.stat-card span { max-width: 160px; color: var(--muted); font-size: .9rem; }
.prose { font-size: 1.06rem; color: #475467; }
.prose p { margin: 0 0 24px; }
.prose em { color: var(--brand); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }

.section-topline { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-topline.compact { align-items: start; }
.section-intro { max-width: 520px; color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.practice-card { min-height: 300px; padding: 0 22px 24px; display: flex; flex-direction: column; justify-content: flex-start; background: rgba(255,255,255,.72); border: 1px solid rgba(35,49,99,.1); transition: .25s ease; overflow: hidden; }
.practice-image { flex: 0 0 180px; width: calc(100% + 44px); margin: 0 -22px 22px; background: linear-gradient(135deg, rgba(35,49,99,.18), rgba(35,49,99,.04)), repeating-linear-gradient(45deg, rgba(35,49,99,.05) 0 1px, transparent 1px 18px), #e7e8ed; border-bottom: 1px solid rgba(35,49,99,.1); }
.practice-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); }
.practice-card span { color: var(--muted); font-size: .75rem; letter-spacing: .14em; }
.practice-card h3 { margin: 0; max-width: 170px; }

.people-grid { display: grid; gap: 26px; }
.professionals-grid { grid-template-columns: repeat(3, 1fr); }
.partners-grid { grid-template-columns: repeat(2, 1fr); }
.person-card { background: var(--white); border: 1px solid var(--line); }
.person-card.featured { box-shadow: 0 10px 40px rgba(35,49,99,.06); }
.portrait-placeholder { aspect-ratio: 4 / 5; }
.partner-photo { width: 180px; min-height: 220px; flex: 0 0 180px; }
.media-placeholder span { color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; }
.person-copy { padding: 28px; }
.person-copy h3 { color: var(--brand); margin-bottom: 16px; }
.person-copy p { margin: 0; color: var(--muted); font-size: .94rem; }
.person-card.partner { display: flex; align-items: stretch; }

.partner-offices { margin-top: 78px; padding-top: 58px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.office-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 20px; }
.partner-logo { min-height: 120px; }
.office-card h3 { margin-bottom: 8px; color: var(--brand); }
.office-card p { margin: 0; color: var(--muted); }

.contact-section { padding: 90px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.contact-copy h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.contact-list { margin-top: 38px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-list a { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-list span { color: rgba(255,255,255,.6); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list strong { font-weight: 500; }
.location-card { background: var(--paper); color: var(--ink); padding: 34px; }
.location-card h3 { color: var(--brand); max-width: 720px; font-size: clamp(1.4rem, 2.3vw, 2rem); }
.map-frame { margin: 28px 0 18px; aspect-ratio: 16 / 8; background: #e7e8ed; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.site-footer { background: #f2f1ed; padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; font-size: .85rem; }
.footer-copy { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 1050px) {
  .nav-wrap { grid-template-columns: 1fr auto auto; }
  .main-nav { display: none; position: absolute; inset: 86px 0 auto 0; background: rgba(251,250,247,.98); border-bottom: 1px solid var(--line); padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .section-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; min-height: 100svh; }

  .section-grid { gap: 54px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .professionals-grid { grid-template-columns: 1fr 1fr; }
  .partner-offices { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .nav-wrap { min-height: 76px; grid-template-columns: 1fr auto; }
  .brand img { width: 220px; }
  .header-cta { display: none; }
  .main-nav { inset: 76px 0 auto 0; }
  .hero-copy { min-height: 100svh; padding-top: 110px; padding-bottom: 56px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-meta { margin-top: 60px; flex-direction: column; gap: 10px; }
  .hero-meta span + span::before { display: none; }

  .section-topline { grid-template-columns: 1fr; gap: 14px; }
  .practice-grid, .professionals-grid, .partners-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 180px; }
  .person-card.partner { display: grid; grid-template-columns: 120px 1fr; }
  .partner-photo { width: 120px; min-height: 100%; }
  .person-card.partner .person-copy { padding: 20px; }
  .partner-offices { margin-top: 56px; gap: 28px; }
  .office-card { grid-template-columns: 1fr; }
  .contact-list a { grid-template-columns: 1fr; gap: 4px; }
  .location-card { padding: 24px; }
  .map-frame { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand img { width: 190px; }
  .person-card.partner { grid-template-columns: 1fr; }
  .partner-photo { width: 100%; aspect-ratio: 16 / 10; }
}

@media (max-width: 1050px) { .site-header:not(.scrolled) .main-nav.open a { color: var(--ink); } }

/* ===== Efeitos de rolagem ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .75s cubic-bezier(.2,.7,.2,1),
    transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal.reveal-left { transform: translateX(-34px); }
.reveal.reveal-right { transform: translateX(34px); }
.reveal.reveal-scale { transform: scale(.975); }

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }

/* Pequeno efeito editorial nas seções, sem interferir no conteúdo */
.section-heading,
.section-topline,
.partner-offices-heading,
.contact-copy,
.location-card {
  backface-visibility: hidden;
}

.practice-card,
.person-card,
.office-card {
  transition:
    transform .35s cubic-bezier(.2,.7,.2,1),
    box-shadow .35s ease,
    background-color .35s ease,
    border-color .35s ease;
}

.practice-card:hover,
.person-card:hover,
.office-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(20, 30, 60, .10);
}

/* Linha discreta que cresce quando o título entra na tela */
.eyebrow::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 12px;
  background: currentColor;
  opacity: .7;
  transition: width .8s cubic-bezier(.2,.7,.2,1) .15s;
}
.reveal.is-visible .eyebrow::after,
.is-visible > .eyebrow::after {
  width: 44px;
}

/* Navegação: marca visual da seção atual */
.main-nav a.active::after {
  right: 0;
}
.site-header:not(.scrolled) .main-nav a.active::after {
  background: rgba(255,255,255,.9);
}

/* Movimento sutil no símbolo do hero durante o scroll */
.hero .watermark {
  transform: translate3d(0, var(--hero-mark-shift, 0px), 0) scale(1);
  transition: opacity .25s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right,
  .reveal.reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .eyebrow::after { transition: none; width: 44px; }
  .hero .watermark { transform: none !important; }
}

@media (max-width: 760px) {
  .hero {
    background-position: 62% center;
    background-image:
      linear-gradient(90deg, rgba(11,20,43,.88) 0%, rgba(11,20,43,.72) 58%, rgba(11,20,43,.28) 100%),
      url("assets/images/imagemprincipal.png");
  }
}
