/* ==========================================================
   Coletivo Tiuí — folha de estilo
   Identidade provisória: troque as cores em :root
   ========================================================== */

:root {
  --bg: #f6f1e7;
  --surface: #fffaf1;
  --ink: #1c2822;
  --muted: #4f5c55;
  --brand: #1f4d3a;       /* verde principal */
  --brand-ink: #f6f1e7;   /* texto sobre o verde */
  --accent: #b9472f;      /* terracota */
  --line: #e0d6c3;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111915;
    --surface: #18231e;
    --ink: #ebe5d7;
    --muted: #a7b2aa;
    --brand: #8cc7a7;
    --brand-ink: #10201a;
    --accent: #ec8d72;
    --line: #2a3a33;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--brand); color: var(--brand-ink);
  padding: .5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }

.nav { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
nav { margin-left: auto; }

.lang {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .25rem .8rem; font-size: .85rem; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.lang:hover { border-color: var(--accent); }

@media (max-width: 760px) {
  nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.1; letter-spacing: -.015em;
  max-width: 20ch; margin: .5rem 0 1.5rem;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }

.eyebrow {
  margin: 0; color: var(--accent);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  border: 1px solid var(--line); background: var(--surface);
  padding: .35rem .85rem; border-radius: 999px; font-size: .9rem; color: var(--muted);
}

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--brand); color: var(--brand-ink); }
.section-tint .eyebrow { color: inherit; opacity: .75; }

.section-head h2, .contact h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em;
  margin: .4rem 0 2rem; max-width: 24ch; text-wrap: balance;
}

.grid-2 { display: grid; gap: 0 4rem; }
.grid-2 .section-head h2 { margin-bottom: 1.25rem; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1.6fr; }
  .grid-2 .section-head { position: sticky; top: 6rem; align-self: start; }
}

.prose p { margin: 0 0 1.15rem; max-width: 65ch; }
.prose .big { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }

/* ---------- Missão ---------- */
.mission {
  list-style: none; margin: 0; padding: 0; counter-reset: m;
  display: grid; gap: 2rem;
}
@media (min-width: 800px) { .mission { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.mission li {
  counter-increment: m;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45;
  border-top: 2px solid currentColor; padding-top: 1.25rem;
}
.mission li::before {
  content: "0" counter(m);
  display: block; font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; opacity: .7; margin-bottom: .75rem;
}

/* ---------- O que fazemos ---------- */
.areas { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .areas { grid-template-columns: 1fr 1fr; } }

.area {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.area-num { margin: 0; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--accent); }
.area h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 1rem 0 1rem; text-wrap: balance; }
.area p { margin: 0 0 1rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent);
}

.sub { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.sub h4 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.4; }

/* ---------- Contato ---------- */
.contact { border-top: 1px solid var(--line); }
.email {
  display: inline-block; font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 600;
  color: var(--brand); text-decoration-thickness: 2px; overflow-wrap: anywhere;
}

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound h1 { font-family: var(--serif); font-size: clamp(3rem, 10vw, 6rem); margin: 0; color: var(--accent); }
.notfound p { color: var(--muted); }
.nf-logo { margin: 0 auto 1rem; }
