/* ==========================================================
   MCBDA · Subsede Caieiras/SP-Bandeirantes
   Folha de estilo única (área pública + área de membros)
   ========================================================== */

:root {
  --red: #d42a2a;
  --red-deep: #a51d1d;
  --gold: #f4cf1b;
  --ink: #121316;
  --ink-2: #1c1e23;
  --ink-3: #2a2d33;
  --paper: #f7f5f1;
  --card: #ffffff;
  --text: #1b1c1f;
  --muted: #6a6e76;
  --line: #e7e2da;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --max: 1160px;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 12px/1 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { padding: .6em 1em; font-size: 13.5px; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(18,19,22,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 15px/1.1 var(--font-head); letter-spacing: .01em; }
.brand-text span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18,19,22,.97);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links .btn { margin-top: 14px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  color: #fff;
  background:
    radial-gradient(1100px 600px at 85% 30%, rgba(212,42,42,.32), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(244,207,27,.10), transparent 60%),
    linear-gradient(180deg, #0e0f12 0%, #17181c 100%);
  overflow: hidden;
  padding: 110px 0 80px;
}
.hero::after { /* linhas de estrada */
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(244,207,27,.55) 46px 86px);
  -webkit-mask: linear-gradient(transparent 0 66px, #000 66px 72px, transparent 72px);
          mask: linear-gradient(transparent 0 66px, #000 66px 72px, transparent 72px);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.72); max-width: 34em; margin-bottom: 34px; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-logo::before {
  content: ""; position: absolute; inset: 8% 6% 4%;
  background: radial-gradient(circle, rgba(212,42,42,.45), transparent 65%);
  filter: blur(30px); z-index: 0;
}
.hero-logo img { position: relative; z-index: 1; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats div strong { display: block; font: 800 28px/1 var(--font-head); color: #fff; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,.55); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .hero-logo { order: -1; width: 170px; justify-self: start; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ---------- Seções ---------- */
section { padding: 104px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.62); }
.section-dark .eyebrow { color: var(--gold); }
.section-white { background: #fff; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid .big { font: 600 clamp(22px, 2.4vw, 28px)/1.35 var(--font-head); letter-spacing: -0.015em; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.value {
  padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.value h4 { font-size: 17px; margin-bottom: 6px; }
.value p { font-size: 14.5px; color: var(--muted); margin: 0; }
.value .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; margin-bottom: 14px; }
.value .ico svg { width: 20px; height: 20px; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Cards de conteúdo */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .num { font: 800 13px/1 var(--font-head); color: var(--red); letter-spacing: .12em; margin-bottom: 20px; display: block; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.section-dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.07); }
.section-dark .card p { color: rgba(255,255,255,.6); }
.section-dark .card:hover { border-color: rgba(244,207,27,.35); box-shadow: none; }
.section-dark .card .num { color: var(--gold); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Checklist */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
  font-size: 15.5px;
}
.checklist li b { display: block; font-weight: 600; }
.checklist li span { color: var(--muted); font-size: 14.5px; }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(212,42,42,.1); color: var(--red); display: grid; place-items: center; margin-top: 1px; }
.checklist .tick svg { width: 14px; height: 14px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Glossário */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.glossary dl { margin: 0; }
.glossary div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font: 700 17px/1.3 var(--font-head); margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* CTA membros */
.cta {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 64px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(244,207,27,.25), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.82); margin: 0; max-width: 36em; }
.cta .btn-light { border-color: transparent; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 40px 28px; } }

/* Contato */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); }
.contact-item h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }
.contact-item p { margin: 0; font-size: 17px; color: #fff; }
.contact-item a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-item a:hover { border-color: #fff; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer { background: #0b0c0e; color: rgba(255,255,255,.5); padding: 36px 0; font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   ÁREA DE MEMBROS
   ========================================================== */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--ink); color: #fff;
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.sidebar .brand { padding: 4px 10px 22px; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: rgba(255,255,255,.66); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.side-nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-nav a.active { background: rgba(212,42,42,.18); color: #fff; }
.side-nav a.active svg { color: var(--gold); }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 8px; font-size: 13px; }
.side-foot a { color: rgba(255,255,255,.6); text-decoration: none; }
.side-foot a:hover { color: #fff; }

.main { padding: 36px 44px 64px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.topbar h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 6px 0 0; }
.badge-private {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: #1d7a46; background: #e6f5ec; padding: 6px 11px; border-radius: 999px;
}
.badge-private svg { width: 13px; height: 13px; }

.mobile-bar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 40;
    background: var(--ink); color: #fff; padding: 12px 18px;
  }
  .mobile-bar button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .mobile-bar svg { width: 24px; height: 24px; }
  .main { padding: 24px 18px 56px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; display: none; }
  .scrim.show { display: block; }
}

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.panel h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel h3 small { font: 500 13px var(--font-body); color: var(--muted); letter-spacing: 0; }

.stat { padding: 22px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .v { font: 800 34px/1.1 var(--font-head); letter-spacing: -0.03em; margin-top: 6px; }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.stat.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.accent .k { color: rgba(255,255,255,.6); }

/* Lista de eventos */
.events { display: grid; gap: 10px; }
.event {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.event.past { opacity: .55; }
.date-chip {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; line-height: 1;
}
.date-chip b { display: block; font: 800 24px/1 var(--font-head); }
.date-chip span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.event h4 { font-size: 16.5px; margin: 0 0 4px; letter-spacing: -0.01em; }
.event .meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-3); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag.red { background: rgba(212,42,42,.09); color: var(--red-deep); border-color: rgba(212,42,42,.18); }
.tag.green { background: #e6f5ec; color: #1d7a46; border-color: #cfead9; }
.tag.gold { background: #fdf6d8; color: #7a6200; border-color: #f2e4a3; }
@media (max-width: 640px) { .event { grid-template-columns: 56px 1fr; } .event > .tag, .event > .right { grid-column: 2; justify-self: start; } .date-chip { width: 56px; height: 56px; } }

/* Membros */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.input {
  flex: 1; min-width: 200px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font: 15px var(--font-body); color: var(--text);
}
.input:focus { outline: 2px solid rgba(212,42,42,.25); border-color: var(--red); }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 14px;
}
.member-head { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 800 18px var(--font-head); color: #fff; background: var(--ink);
}
.member-head h4 { margin: 0; font-size: 17.5px; }
.member-head .road { font-size: 13.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.family { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.family .row { display: flex; justify-content: space-between; gap: 10px; }
.family .row span:last-child { color: var(--muted); white-space: nowrap; }

/* Aniversários */
.bday {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.bday.today { border-color: var(--gold); background: #fffbea; }
.bday .who { font-weight: 600; }
.bday .rel { font-size: 13px; color: var(--muted); }
.bday .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .bday { grid-template-columns: 56px 1fr; } .bday .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: #fbfaf8; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; line-height: 22px; text-align: center; font-size: 12px; font-weight: 700; }
.dot.yes { background: #e6f5ec; color: #1d7a46; }
.dot.no { background: #f4f2ee; color: #b5b1aa; }
.bar { height: 6px; border-radius: 999px; background: #efece7; overflow: hidden; width: 90px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: inherit; }

/* Documentos */
.doc {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.doc:hover { border-color: var(--ink); }
.doc .file { width: 44px; height: 52px; border-radius: 8px; background: rgba(212,42,42,.09); color: var(--red); display: grid; place-items: center; font: 800 11px var(--font-head); letter-spacing: .06em; flex: none; }
.doc h4 { margin: 0 0 2px; font-size: 15.5px; letter-spacing: -0.01em; }
.doc p { margin: 0; font-size: 13.5px; color: var(--muted); }
.doc .go { margin-left: auto; color: var(--muted); }

.notice {
  padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--red);
}
.notice h4 { margin: 0 0 4px; font-size: 16px; }
.notice .when { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: block; }
.notice p { margin: 0; font-size: 14.5px; }

.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }

.view { display: none; animation: fade .3s ease; padding: 0; }
.sidebar .brand-text strong { font-size: 14px; white-space: nowrap; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-banner {
  background: #fdf6d8; color: #6b5600; border: 1px solid #f2e4a3;
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 22px;
}

/* ---------- Ajustes v2: lema, citação, pilares ---------- */
.brand-text span { text-transform: none !important; letter-spacing: .02em !important; font-size: 12.5px !important; }
.hero h1.motto { font-size: clamp(46px, 7.6vw, 96px); text-transform: uppercase; letter-spacing: -0.03em; line-height: .98; }
.quote { margin: 0 0 34px; padding-left: 20px; border-left: 3px solid var(--gold); max-width: 34em; }
.quote p { font: 500 clamp(18px, 1.9vw, 22px)/1.45 var(--font-head); letter-spacing: -0.01em; color: rgba(255,255,255,.9); margin: 0 0 6px; font-style: italic; }
.quote cite { font-style: normal; font-size: 13.5px; color: rgba(255,255,255,.5); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 34px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar .n { font: 800 64px/1 var(--font-head); color: rgba(212,42,42,.12); position: absolute; right: 20px; top: 14px; letter-spacing: -0.04em; }
.pillar h3 { font-size: 22px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .01em; }
.pillar h3::before { content: ""; display: block; width: 30px; height: 3px; background: var(--red); margin-bottom: 18px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.pillar p:last-child { margin: 0; }
.pillar.feature { background: var(--ink); border-color: var(--ink); color: #fff; }
.pillar.feature p { color: rgba(255,255,255,.72); }
.pillar.feature .n { color: rgba(244,207,27,.16); }
.pillar.feature h3::before { background: var(--gold); }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.masonic {
  margin-top: 28px; display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.masonic .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(244,207,27,.14); color: var(--gold); display: grid; place-items: center; }
.masonic .ico svg { width: 22px; height: 22px; }
.masonic b { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.masonic span { color: rgba(255,255,255,.7); font-size: 14.5px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ==========================================================
   v3 · formulários, modais, administração, alertas, crônicas
   ========================================================== */
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; color: var(--muted); font-size: 14px; flex: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.toast.err { background: #b42318; }

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.w2 { grid-column: span 2; }
.field.w3 { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field small { font-size: 12px; color: var(--muted); }
.field .input { min-width: 0; width: 100%; }
textarea.input { resize: vertical; font-family: var(--font-body); line-height: 1.5; }
select.input { appearance: auto; }
.input[readonly], .input:disabled { background: #f4f2ee; color: var(--muted); }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .field.w2 { grid-column: auto; } }
.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; background: #fff; }
.fs legend { font: 700 15px var(--font-head); padding: 0 8px; margin-left: -8px; }
.filhos { display: grid; gap: 10px; margin-bottom: 12px; }
.filho { display: grid; grid-template-columns: 1fr 170px 36px; gap: 10px; align-items: center; }
.filho .lock { text-align: center; opacity: .6; }
@media (max-width: 560px) { .filho { grid-template-columns: 1fr 36px; } .filho input[type=date] { grid-column: 1; } }
.form-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 18px 0 6px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.info { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.info.ok { background: #e6f5ec; border-color: #cfead9; color: #1d5c39; }
.info.warn { background: #fff4e5; border-color: #fbd9a8; color: #7a4a00; }

.modal-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10,11,13,.55); display: grid; place-items: center; padding: 18px; backdrop-filter: blur(2px); }
.modal { background: var(--paper); width: min(560px, 100%); max-height: calc(100vh - 36px); border-radius: 20px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: fade .2s ease; }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-body { padding: 20px 22px; overflow: auto; }
.modal-foot { display: flex; gap: 10px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 20px 20px; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
tr.alerta td { background: #fff5f4; }
tr.alerta td:first-child { box-shadow: inset 4px 0 0 #d42a2a; }
.tag.alert { background: #d42a2a; color: #fff; border-color: #d42a2a; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14.5px; }
.check-list input { width: 18px; height: 18px; accent-color: var(--red); }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font-body); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.side-nav .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 4px; }
.side-nav a.admin-link { color: var(--gold); }
.count-pill { margin-left: auto; font-size: 11.5px; background: #d42a2a; color: #fff; border-radius: 999px; padding: 2px 8px; font-weight: 700; }

/* Crônicas do Asfalto */
.chron-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.chron { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.chron:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chron .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--ink) 0%, #3a1414 100%); background-size: cover; background-position: center; position: relative; }
.chron .cover.empty::after { content: "Crônicas do Asfalto"; position: absolute; inset: auto 18px 16px; color: rgba(255,255,255,.5); font: 800 15px var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.chron .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.chron .meta { font-size: 12.5px; color: var(--muted); }
.chron h3 { font-size: 20px; margin: 0; }
.chron p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .chron-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .chron-grid { grid-template-columns: 1fr; } }
.page-hero { background: var(--ink); color: #fff; padding: 140px 0 70px; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; margin: 14px 0 10px; }
.page-hero p { color: rgba(255,255,255,.66); font-size: 18px; max-width: 38em; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); font-style: italic; color: var(--ink-3); }
.prose a { color: var(--red); }
.prose img { border-radius: 14px; }
.article-cover { max-width: 980px; margin: -40px auto 48px; border-radius: 22px; overflow: hidden; aspect-ratio: 16/8; background-size: cover; background-position: center; box-shadow: var(--shadow); }
.md-help { font-size: 12.5px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.md-help code { background: #f4f2ee; padding: 1px 5px; border-radius: 5px; }
.preview-box { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px 22px; max-height: 420px; overflow: auto; }
.preview-box.prose { font-size: 16px; }
.sidebar .brand-text span { white-space: nowrap; font-size: 11.5px !important; }
.btn { white-space: nowrap; }
