/* Escuta além do Lattes — estilo compartilhado pelas páginas do site.
   Segue o Manual de Marca (versão 2 · 2026):
   cores Papel, Azul petróleo, Névoa e Petróleo profundo (proporção 55/25/12/8),
   Fraunces para falar (títulos) e DM Sans para explicar (textos, rótulos, botões).
   Símbolo sempre a partir dos arquivos originais (img/simbolo-*.svg). Tema único (claro). */
:root {
  --petroleo: #0F4C5C;          /* principal */
  --profundo: #0A3440;          /* texto e contraste */
  --nevoa: #D6E5E7;             /* apoio */
  --papel: #F6F4EF;             /* fundo */
  --white: #FFFFFF;
  --ink: #0A3440;
  --muted: #4A6670;
  --line: #DCE6E7;
  --nevoa-soft: #EAF2F3;
  --on-dark: #F6F4EF;
  --on-dark-muted: #B9CFD3;
  --error: #A1352B;
  --error-soft: #E3B9B3;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--papel);
  color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 26px; /* DM Sans 400 · 17/26 */
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; color: var(--profundo); }
p { margin: 0; }
a { color: var(--petroleo); text-underline-offset: 3px; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--petroleo); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.hint { font-size: 0.88rem; color: var(--muted); }

/* Rótulo · sobretítulo — DM Sans 700 · 13 · caixa alta */
.label {
  display: block; font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--petroleo);
}
/* Título — Fraunces 600 · 40/44 */
.title { font-size: clamp(2rem, 4.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
/* Subtítulo de seção — Fraunces 500 · 26/32 */
.subtitle { font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.625rem); line-height: 1.23; }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40em; }
.section-head.flush { margin-bottom: 0; }

/* Assinatura horizontal (preferencial no site). Área de proteção: x = 1/4 da altura do símbolo. */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petroleo); padding: 10px; margin: -10px; }
.lockup img { height: 44px; width: auto; display: block; }
.lockup .words { display: grid; line-height: 1; }
.lockup .name { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.01em; }
.lockup .sub { font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.02em; margin-top: 4px; }
.lockup.on-dark { color: var(--white); }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--profundo); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--petroleo); text-decoration: underline; }
.nav a.cta { background: var(--petroleo); color: var(--white); padding: 9px 20px; border-radius: 999px; text-decoration: none; }
.nav a.cta:hover, .nav a.cta[aria-current="page"] { background: var(--profundo); }
.menu-btn {
  display: none; background: none; border: 1.5px solid var(--petroleo); color: var(--petroleo);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 500; font-size: 0.9rem; cursor: pointer;
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--papel);
    border-bottom: 1px solid var(--line);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 4px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav a.cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}
@media (max-width: 400px) {
  .lockup img { height: 38px; }
  .lockup .name { font-size: 1.5rem; }
  .lockup .sub { font-size: 0.78rem; }
}

/* Botões — DM Sans */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--petroleo); cursor: pointer; text-align: center;
}
.btn-primary { background: var(--petroleo); color: var(--white); }
.btn-primary:hover { background: var(--profundo); border-color: var(--profundo); }
.btn-ghost { background: transparent; color: var(--petroleo); }
.btn-ghost:hover { background: var(--nevoa); }
.btn-light { background: var(--white); color: var(--petroleo); border-color: var(--white); }
.btn-light:hover { background: var(--nevoa); border-color: var(--nevoa); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Capa — fundo azul petróleo pede marca em branco */
.hero { background: var(--petroleo); color: var(--on-dark); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding-block: clamp(56px, 9vw, 104px);
}
.hero .label { color: var(--on-dark-muted); }
.hero-text { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.hero h1 { color: var(--white); display: grid; gap: 6px; }
.hero h1 .name { font-weight: 600; font-size: clamp(3.4rem, 9vw, 6rem); line-height: 0.95; letter-spacing: -0.015em; }
.hero h1 .sub { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.2; color: var(--nevoa); letter-spacing: 0.01em; }
.hero .lead { max-width: 32em; font-size: 1.1rem; line-height: 1.6; color: var(--on-dark); }
.hero-symbol { display: grid; place-items: center; }
.hero-symbol img { width: min(380px, 100%); height: auto; display: block; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-symbol { order: -1; justify-items: start; }
  .hero-symbol img { width: min(200px, 55%); }
}

/* Folhas */
.sections { display: grid; gap: 28px; padding-block: 56px 64px; }
.sheet {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(32px, 5.5vw, 64px) clamp(20px, 5.5vw, 64px);
}

/* O projeto — blocos em uma coluna, um abaixo do outro */
.prose { display: grid; gap: 28px; max-width: 46em; }
.prose-block { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose-block:first-child { padding-top: 0; border-top: 0; }
.prose-block .stack { display: grid; gap: 12px; }
.prose-block p.approach { color: var(--petroleo); font-weight: 500; }

/* Como funciona */
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.two-col > div { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.chev {
  width: 28px; height: 28px; border-radius: 50%; background: var(--nevoa); color: var(--petroleo);
  display: grid; place-items: center;
}
.chev svg { width: 13px; height: 13px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.fact { background: var(--nevoa); border-radius: 14px; padding: 16px 12px; text-align: center; }
.fact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; color: var(--petroleo); line-height: 1.15; }
.fact span { font-size: 0.85rem; color: var(--profundo); }
.join { background: var(--papel); border-radius: 16px; padding: 28px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Sobre nós */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.member { display: grid; gap: 20px; align-content: start; background: var(--papel); border-radius: 16px; padding: 16px 16px 24px; }
.member img { width: 100%; height: auto; aspect-ratio: 812 / 928; object-fit: cover; display: block; border-radius: 12px; background: var(--nevoa); }
.member-body { display: grid; gap: 12px; padding-inline: 8px; min-width: 0; }
.member h3 { font-weight: 500; font-size: 1.625rem; line-height: 1.23; }
.crp { justify-self: start; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; color: var(--petroleo); background: var(--nevoa); padding: 4px 12px; border-radius: 999px; }
.member-body p { color: var(--profundo); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } .member { max-width: 480px; } }

/* Contato */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--papel); border-radius: 16px;
  padding: 28px; display: grid; gap: 18px; align-content: start; min-width: 0;
}
.contact-card header { display: grid; gap: 4px; }
.contact-card h3 { font-weight: 500; font-size: 1.625rem; line-height: 1.23; }
.contact-card .role { font-size: 0.92rem; color: var(--muted); }
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dl > div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.contact-card dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card dd a { color: var(--petroleo); font-weight: 500; }
.project-mail {
  margin-top: 24px; padding: 24px 28px; border-radius: 16px; background: var(--petroleo); color: var(--on-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.project-links { display: flex; flex-wrap: wrap; gap: 16px 48px; min-width: 0; }
.project-mail p { display: grid; gap: 4px; min-width: 0; }
.project-mail .label { color: var(--on-dark-muted); }
.project-mail a.mail { color: var(--white); font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* Página de inscrição */
.page-head { background: var(--petroleo); color: var(--on-dark); }
.page-head .wrap { padding-block: 56px; display: grid; gap: 16px; justify-items: start; }
.page-head .label { color: var(--on-dark-muted); }
.page-head h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; }
.page-head .lead { max-width: 38em; font-size: 1.08rem; line-height: 1.6; }
.back-link { font-size: 0.95rem; color: var(--nevoa); font-weight: 500; }

/* Formulário */
form { display: grid; gap: 40px; max-width: 760px; margin: 0 auto; }
.group { display: grid; gap: 22px; border: 0; margin: 0; padding: 0; min-width: 0; }
.group > legend {
  font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.23; color: var(--profundo);
  padding: 0 0 10px; border-bottom: 1px solid var(--line); width: 100%; margin-bottom: 22px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 0.98rem; padding: 0; }
.field > legend { margin-bottom: 7px; }
.req { color: var(--error); margin-left: 2px; }
input[type="text"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--papel); border: 1px solid #C9D7D9; border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--petroleo); outline-offset: 0; border-color: var(--petroleo); background: var(--white); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options.col { flex-direction: column; align-items: flex-start; }
.opt {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid #C9D7D9; border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; background: var(--white);
}
.opt input { accent-color: var(--petroleo); margin: 0; }
.opt:has(input:checked) { border-color: var(--petroleo); background: var(--nevoa); }
.other-input { margin-top: 4px; max-width: 360px; }
.error-msg { color: var(--error); font-size: 0.88rem; }
.invalid input[type="text"], .invalid input[type="tel"], .invalid input[type="number"], .invalid textarea { border-color: var(--error); }
.invalid .opt { border-color: var(--error-soft); }

.schedule-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.schedule { border-collapse: collapse; width: 100%; min-width: 420px; font-variant-numeric: tabular-nums; }
.schedule th, .schedule td { text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.schedule thead th { font-size: 0.85rem; font-weight: 700; color: var(--muted); padding-block: 10px; }
.schedule tbody th { font-weight: 700; font-size: 0.9rem; color: var(--petroleo); width: 56px; }
.schedule tbody tr:last-child th, .schedule tbody tr:last-child td { border-bottom: 0; }
.schedule input { width: 20px; height: 20px; accent-color: var(--petroleo); cursor: pointer; margin: 0; }
.schedule td:has(input:checked) { background: var(--nevoa); }

details.terms { border-radius: 14px; background: var(--papel); }
details.terms summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--petroleo); }
.terms-body { padding: 0 18px 18px; display: grid; gap: 14px; font-size: 0.95rem; }
.terms-body h4 { margin: 4px 0 0; font-family: var(--font-body); font-size: 1rem; }
.terms-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.form-foot { display: grid; gap: 14px; justify-items: center; text-align: center; }
.status { font-size: 0.98rem; max-width: 36em; }
.status.err { color: var(--error); }
.status:empty { display: none; }
.thanks { text-align: center; display: grid; gap: 16px; justify-items: center; padding-block: 12px; }
.thanks img { width: 96px; height: auto; }
.thanks h2 { font-size: 2.2rem; line-height: 1.1; }
.thanks p { max-width: 34em; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Rodapé — petróleo profundo, marca em branco */
footer { background: var(--profundo); color: var(--on-dark-muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 40px; font-size: 0.9rem; }
footer .credits { display: grid; gap: 4px; }
footer a { color: var(--white); }

/* Ajustes para telas estreitas */
@media (max-width: 480px) {
  .facts { gap: 8px; }
  .fact { padding: 14px 6px; }
  .fact b { font-size: 1.35rem; white-space: nowrap; }
  .fact span { font-size: 0.78rem; }
  .project-mail { padding: 22px 20px; }
  .project-mail a.mail { font-size: 1rem; }
  .contact-card { padding: 24px 20px; }
}
