/* Portal Mosqueteiros SAFiel — "Convocação"
   Direção: preto e branco, alto contraste, tipografia condensada pesada,
   espírito da Democracia Corinthiana. */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #101010;
  --panel: #131313;
  --panel-2: #181818;
  --ink: #f4f4f4;
  --ink-dim: #cfcfcf;
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --white: #ffffff;
  --ok: #cfe8cf;
  --ok-bg: rgba(120, 200, 120, 0.12);
  --err: #ff6b6b;
  --err-bg: rgba(255, 80, 80, 0.12);
  --warn: #e6c07a;
  --radius: 4px;
  --maxw: 720px;

  --font-display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-cond: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;

  font-family: var(--font-body);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap, .topbar { position: relative; z-index: 2; }

a { color: var(--white); }

/* ---------- topbar / brand ---------- */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar .mark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: none;
  flex: 0 0 auto;
}
.topbar .brand-logo { height: 30px; width: auto; display: block; flex: 0 0 auto; }
@media (max-width: 560px) { .topbar .brand-logo { height: 24px; } }
.topbar .brand-txt { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 16px; }
.topbar .brand-name { font-family: var(--font-cond); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.topbar .brand-sub { font-family: var(--font-serif); font-style: italic; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.topbar .spacer { margin-left: auto; }
.topbar .whoami { font-family: var(--font-cond); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* legacy single-letter logo, if present */
.topbar .logo { display: none; }
.topbar h1 { display: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 80px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}
@media (max-width: 560px) { .card { padding: 28px 20px; } .wrap { padding: 24px 14px 56px; } }

/* card com foto de fundo escurecida (Sócrates / Paulinho / Marcelinho) */
.card.card-bg { min-height: 560px; background-color: #0a0a0a; }
@media (max-width: 560px) { .card.card-bg { min-height: 480px; } }
/* texto legível sobre a foto de fundo, mesmo com o topo mais claro */
.card-bg .eyebrow, .card-bg h2.section-title, .card-bg .section-desc, .card-bg h3, .card-bg .quote, .card-bg .quote-author {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
}
.card-bg .big-check { box-shadow: 0 0 0 4px rgba(10,10,10,0.5); }

/* torcida / punhos erguidos — arte que sangra até as bordas do card */
.hero-art {
  display: block;
  width: calc(100% + 72px);
  height: 132px;
  margin: -40px -36px 26px;
  object-fit: cover;
  object-position: bottom;
  border-bottom: 1px solid var(--line);
  background: #000;
}
@media (max-width: 560px) { .hero-art { width: calc(100% + 40px); margin: -28px -20px 20px; height: 104px; } }

/* fotos reais em preto e branco — sangram até as bordas do card */
.hero-photo {
  position: relative;
  width: calc(100% + 72px);
  height: 220px;
  margin: -40px -36px 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
/* gradiente para o conteúdo respirar / dar profundidade */
.hero-photo.tall { height: 340px; }

/* figura inteira (sem corte) no topo do card, P&B sobre preto */
.hero-figure {
  width: calc(100% + 72px);
  height: 360px;
  margin: -40px -36px 26px;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-figure img { width: 100%; height: 100%; object-fit: contain; display: block; filter: grayscale(1) contrast(1.05); }
@media (max-width: 560px) { .hero-figure { height: 300px; width: calc(100% + 40px); margin: -28px -20px 20px; } }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0) 35%, rgba(10,10,10,0.75) 100%);
}
.photo-strip { display: block; width: calc(100% + 72px); height: 150px; margin: 26px -36px 8px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.9); display: block; }
@media (max-width: 560px) {
  .hero-photo { width: calc(100% + 40px); margin: -28px -20px 20px; height: 180px; }
  .hero-photo.tall { height: 300px; }
  .photo-strip { width: calc(100% + 40px); margin: 22px -20px 6px; height: 120px; }
}

/* ---------- stepper ---------- */
.stepper { display: flex; gap: 5px; margin: 0 0 30px; }
.stepper .dot { flex: 1 1 0; height: 3px; background: rgba(255, 255, 255, 0.12); transition: background .25s; }
.stepper .dot.active { background: var(--white); }
.stepper .dot.done { background: rgba(255, 255, 255, 0.55); }

/* ---------- headings ---------- */
.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.section-desc { color: var(--ink-dim); margin: 0 0 30px; font-size: 15.5px; max-width: 52ch; }
h3, h4 { font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
h3 { font-size: 15px; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h4 { font-size: 13px; }

/* ---------- fields ---------- */
.field { margin-bottom: 22px; }
.field > label {
  display: block;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 9px;
}
.field .hint { color: var(--muted); font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 400; margin-top: 4px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
}
input::placeholder, textarea::placeholder { color: #5a5a5a; }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--white); background: #000; }
input:disabled { color: var(--muted); background: var(--panel-2); }

/* yes / no */
.yn { display: flex; gap: 10px; }
.yn label {
  flex: 1; text-align: center; padding: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; background: transparent;
  font-family: var(--font-cond); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: all .15s;
}
.yn label:hover { border-color: var(--line-strong); color: var(--ink-dim); }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn label.sel, .yn label:has(input:checked) { border-color: var(--white); background: var(--white); color: #000; }
.checks label:has(input:checked) { border-color: var(--white); background: rgba(255, 255, 255, 0.06); color: var(--white); }

/* checkboxes / radios list */
.checks { display: grid; gap: 8px; }
.checks label {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; font-size: 14.5px; color: var(--ink-dim); transition: all .15s;
}
.checks label:hover { border-color: var(--line-strong); color: var(--ink); }
.checks label.sel { border-color: var(--white); background: rgba(255, 255, 255, 0.06); color: var(--white); }
.checks label input[type=checkbox], .checks label input[type=radio] { width: 16px; height: 16px; accent-color: var(--white); flex: 0 0 auto; }
.checks .det { margin: -2px 0 4px; padding: 4px 0 4px 14px; border-left: 2px solid var(--line-strong); }
.checks .det input { padding: 10px 12px; font-size: 14px; }
.det-cap { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 6px; }
.det-fields .field { margin-bottom: 12px; }
.det-fields .field:last-child { margin-bottom: 2px; }
.det-fields .field > label { text-transform: none; letter-spacing: 0.01em; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }

.conditional {
  margin-top: 12px; margin-bottom: 20px;
  padding: 18px 18px 2px; border-left: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.03);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.btn {
  appearance: none; border: 1px solid transparent; border-radius: var(--radius);
  padding: 14px 28px; cursor: pointer;
  font-family: var(--font-cond); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; transition: all .15s;
}
.btn-primary { background: var(--white); color: #000; }
.btn-primary:hover { background: #d9d9d9; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--white); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- messages ---------- */
.err-text { color: var(--err); font-size: 13px; margin-top: 6px; }
.banner { padding: 13px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 22px; border: 1px solid transparent; }
.banner.err { background: var(--err-bg); color: var(--err); border-color: rgba(255, 80, 80, 0.35); }
.banner.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(120, 200, 120, 0.35); }

/* ---------- misc ---------- */
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }
.big-check {
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid var(--white); color: var(--white);
  display: grid; place-items: center; margin: 8px auto 24px; font-size: 36px;
}
.muted { color: var(--muted); }
.quote { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink-dim); line-height: 1.5; margin: 26px 0 6px; }
.quote-author { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--muted); }
.rule { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.tag {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line-strong);
  font-family: var(--font-cond); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim);
}

iframe.nda { width: 100%; height: 660px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (max-width: 560px) { iframe.nda { height: 78vh; min-height: 460px; } }

/* responsivo: topbar e tag */
@media (max-width: 560px) {
  .topbar { padding: 16px 16px; gap: 12px; }
  .topbar .brand-txt { padding-left: 12px; }
  .topbar .brand-name { font-size: 11px; letter-spacing: 0.16em; }
  .topbar .brand-sub { font-size: 10.5px; }
  h2.section-title { font-size: clamp(30px, 9vw, 42px); }
  .tag { white-space: normal; line-height: 1.5; }
  .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; }
}

.spinner { width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, .3); border-top-color: #000; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: spin .7s linear infinite; }
.btn-ghost .spinner, .section-desc .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1120px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-cond); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
tr:hover td { background: rgba(255, 255, 255, 0.03); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 2px;
  font-family: var(--font-cond); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ink-dim);
}
.badge.pendente { color: var(--muted); }
.badge.formulario_enviado, .badge.nda_pendente { color: var(--warn); border-color: rgba(230, 192, 122, 0.5); }
.badge.concluido { color: #cfe0ff; border-color: rgba(150, 190, 255, 0.5); }
.badge.aprovado { color: var(--ok); border-color: rgba(120, 200, 120, 0.6); background: var(--ok-bg); }
.badge.reprovado, .badge.expirado, .badge.nda_recusado { color: var(--err); border-color: rgba(255, 80, 80, 0.5); }
.toolbar { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 22px; }
.copy-row { display: flex; gap: 8px; margin-top: 12px; }
.copy-row input { font-size: 13px; }
