/* Entelek — site institucional. Sem dependências externas: fontes locais, nenhum script de terceiros. */

@font-face { font-family: "Figtree"; src: url("fonts/Figtree_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #F4F4F8;
  --surface: #FFFFFF;
  --ink: #15142B;
  --ink2: #4A4966;
  --line: #E3E3EE;
  --primary: #4B3FE0;
  --primary-soft: #ECEBFC;
  --accent: #FF7A3D;
  --radius: 16px;
  --gutter: 16px;
  --measure: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B14;
    --surface: #12121F;
    --ink: #F3F3F8;
    --ink2: #B4B3C9;
    --line: #26253A;
    --primary: #9A8EFF;
    --primary-soft: #1C1A3A;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Cabeçalho e rodapé ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-family: "Bricolage", "Figtree", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.035em; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }

.site-footer { margin-top: 72px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink2); }

/* ---------- Home ---------- */
.hero { padding: 56px 0 24px; text-align: center; }
.hero img { width: 112px; height: 112px; margin: 0 auto 8px; display: block; }
.hero h1 { font-family: "Bricolage", "Figtree", sans-serif; font-weight: 800; letter-spacing: -0.035em; font-size: clamp(52px, 14vw, 84px); line-height: 1; margin: 12px 0 14px; }
.hero .lead { font-size: clamp(20px, 4.5vw, 24px); color: var(--ink2); max-width: 28em; margin: 0 auto 28px; line-height: 1.45; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 15px; }

.cards { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink2); font-size: 15.5px; line-height: 1.55; }

/* ---------- Páginas de texto ---------- */
.doc { padding: 24px var(--gutter) 0; }
.doc h1 { font-family: "Bricolage", "Figtree", sans-serif; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(34px, 8vw, 46px); line-height: 1.1; margin: 8px 0 8px; }
.doc .meta { color: var(--ink2); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .note { background: var(--primary-soft); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.doc .note p { margin: 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 8px; }
.doc .toc ol { margin: 6px 0; columns: 1; }
@media (min-width: 640px) { .doc .toc ol { columns: 2; column-gap: 32px; } }
.doc .toc li { break-inside: avoid; font-size: 15.5px; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink2); font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details[open] summary { margin-bottom: 4px; }
details p { margin: 0 0 14px; color: var(--ink2); }

.contact { display: inline-block; margin: 6px 0 0; padding: 12px 20px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .contact { color: #0B0B14; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
