:root {
  --ink: #17181c;
  --ink-soft: #22242a;
  --parchment: #f3eee2;
  --paper: #fbf9f4;
  --brass: #a9863e;
  --brass-soft: #c9a96a;
  --wine: #6b2a34;
  --stone: #8c8a82;
  --stone-light: #b9b6ac;
  --line: rgba(169, 134, 62, 0.28);

  --display: "Fraunces", serif;
  --body: "Inter", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(23, 24, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(169, 134, 62, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--brass-soft);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  color: var(--paper);
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand-name span {
  color: var(--brass-soft);
  font-style: italic;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--stone-light);
  text-transform: uppercase;
  margin-top: 2px;
}

nav ul {
  display: flex;
  gap: 34px;
}
nav a {
  font-size: 13px;
  color: var(--stone-light);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  position: relative;
}
nav a:hover,
nav a:focus-visible {
  color: var(--paper);
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}
nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--paper);
  transition: all 0.25s ease;
}
.nav-toggle span:nth-child(1) {
  top: 0;
}
.nav-toggle span:nth-child(2) {
  top: 9px;
}
.nav-toggle span:nth-child(3) {
  top: 18px;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(169, 134, 62, 0.1),
      transparent 55%
    ),
    var(--ink);
  color: var(--paper);
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 720px;
}
.hero .eyebrow {
  margin-bottom: 22px;
  opacity: 0;
  animation: riseIn 0.7s ease forwards;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
  opacity: 0;
  animation: riseIn 0.7s ease 0.12s forwards;
}
.hero h1 em {
  color: var(--brass-soft);
  font-style: italic;
}
.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--brass);
  margin: 28px 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: growLine 0.8s ease 0.5s forwards;
}
.hero p {
  font-size: 17px;
  color: var(--stone-light);
  max-width: 520px;
  opacity: 0;
  animation: riseIn 0.7s ease 0.3s forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 0.7s ease 0.45s forwards;
}
.btn {
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--brass);
  color: var(--paper);
  transition: all 0.25s ease;
  display: inline-block;
}
.btn:hover {
  background: var(--brass);
  color: var(--ink);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--stone-light);
}
.btn-ghost:hover {
  border-color: var(--paper);
  color: var(--paper);
  background: transparent;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes growLine {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Section shared ---------- */
section {
  padding: 110px 0;
}
.section-head {
  max-width: 600px;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
}

/* ---------- Filosofia ---------- */
.filosofia {
  background: var(--parchment);
}
.filosofia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.filosofia-grid p {
  font-size: 16px;
  color: #4a4741;
  max-width: 46ch;
}
.filosofia-marks {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mark-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.mark-row:first-child {
  border-top: 1px solid var(--line);
}
.mark-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
}
.mark-label {
  font-family: var(--display);
  font-size: 20px;
}

/* ---------- Áreas — legal codex style ---------- */
.areas {
  background: var(--paper);
}
.artigo {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  transition: background 0.25s ease;
}
.artigo:last-child {
  border-bottom: 1px solid var(--line);
}
.artigo:hover {
  background: rgba(169, 134, 62, 0.05);
}
.artigo-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brass);
  letter-spacing: 0.03em;
  padding-top: 4px;
}
.artigo h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
}
.artigo p {
  color: var(--stone);
  font-size: 15px;
  max-width: 56ch;
}

/* ---------- Diferenciais ---------- */
.diferenciais {
  background: var(--ink);
  color: var(--paper);
}
.diferenciais .section-head h2 {
  color: var(--paper);
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dif-card {
  background: var(--ink);
  padding: 34px 28px;
}
.dif-card .glyph {
  font-family: var(--display);
  font-style: italic;
  color: var(--brass-soft);
  font-size: 26px;
  margin-bottom: 18px;
}
.dif-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.dif-card p {
  font-size: 14px;
  color: var(--stone-light);
}

/* ---------- Contato ---------- */
.contato {
  background: var(--parchment);
}
.contato-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.contato-info dl {
  margin-top: 32px;
}
.contato-info dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-top: 22px;
}
.contato-info dd {
  font-size: 15px;
  margin-top: 6px;
  color: #4a4741;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.field input,
.field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-btn {
  align-self: flex-start;
  padding: 14px 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
  margin-top: 6px;
}
.submit-btn:hover {
  background: var(--wine);
}
.form-note {
  font-size: 12px;
  color: var(--stone);
  margin-top: 4px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 56px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 19px;
  color: var(--paper);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--stone-light);
}
.footer-links a:hover {
  color: var(--brass-soft);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--stone);
}
.oab-note {
  font-size: 11px;
  color: #68665f;
  max-width: 520px;
  line-height: 1.6;
}

.to-top {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass-soft);
  border: 1px solid rgba(169, 134, 62, 0.3);
  padding: 8px 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(169, 134, 62, 0.18);
  }
  nav.open {
    max-height: 400px;
  }
  nav ul {
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
  }
  .nav-toggle {
    display: block;
  }
  .filosofia-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dif-grid {
    grid-template-columns: 1fr;
  }
  .artigo {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
