/* ============================================
   AdvocaciaPro — Tema visual braia (Lotion)
   Paleta: lavender, sage, sand, off-white
   ============================================ */

:root {
  --primary: #9b8ec4;
  --primary-deep: #6b5ba7;
  --primary-soft: #b5abd3;
  --secondary: #f0eefb;
  --tertiary: #e2ece9;
  --tertiary-deep: #8baa9e;
  --sand: #f5f2ed;
  --bg: #fcfcfa;
  --bg-soft: #f8f8f5;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --text: #333333;
  --muted: #666666;
  --subtle: #999999;
  --line: #e1e1e1;
  --line-strong: #c8c8c8;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Geist', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }
h4 { font-size: 1rem; font-weight: 600; color: var(--primary-deep); }

p { margin: 0 0 1em; }
a { color: var(--primary-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border 120ms; }
a:hover { border-color: var(--primary-deep); }

code, pre, .mono {
  font-family: 'Geist Mono', 'JetBrains Mono', Menlo, monospace;
  font-size: 0.95em;
}
code {
  background: var(--secondary);
  color: var(--primary-deep);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* Layout */
.shell { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand { font-weight: 700; color: var(--ink); display: flex; gap: 0.5rem; align-items: center; }
.brand-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 6px;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg);
  border-radius: 2px;
}
.nav-links { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav-links a { color: var(--muted); border: none; }
.nav-links a:hover { color: var(--primary-deep); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  display: grid;
  gap: 1rem;
}
.hero .eyebrow {
  color: var(--primary-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Section */
section { padding: 3rem 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head .tag { background: var(--tertiary); color: var(--tertiary-deep); padding: 0.2em 0.6em; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms, box-shadow 200ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .icon {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary-deep);
  font-size: 1.1rem;
}

/* Tabela */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:hover td { background: var(--bg-soft); }

/* Chip */
.chip {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary-deep);
  font-size: 0.78rem;
  padding: 0.15em 0.65em;
  border-radius: 999px;
  font-weight: 500;
}
.chip.sage { background: var(--tertiary); color: var(--tertiary-deep); }
.chip.sand { background: var(--sand); color: var(--text); }

/* Callout */
.callout {
  background: var(--secondary);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
.callout strong { color: var(--primary-deep); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}
