:root {
  --bg: #F4F1E8;
  --bg-soft: #DCE9DF;
  --text: #1F2E2E;
  --text-muted: #4F605E;
  --accent: #2D6457;
  --accent-deep: #224E44;
  --accent-warm: #7FB3A0;
  --institutional: #1F4D60;
  --line: rgba(31, 46, 46, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* O atributo hidden precisa vencer qualquer display definido por classe —
   sem isto, elementos com display:flex/block continuam visíveis ao serem
   escondidos por JavaScript. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 4rem; }
h2 { font-size: 2.6rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.7rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.75rem; font-family: var(--sans); font-weight: 600; }
p { margin-bottom: 1.25rem; }
em { font-style: italic; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover { border-bottom-color: var(--accent); }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 1rem 2rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  color: var(--text);
}
.logo:hover { border: none; }
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -4px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}
nav a {
  font-size: 0.9rem;
  color: var(--text);
  border: none;
}
nav a:hover { color: var(--accent); border: none; }
nav a.active { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* Layout */
main { padding-top: 4.5rem; }
section {
  padding: 5rem 2rem;
}
section.tight { padding: 3.5rem 2rem; }
.container { max-width: 820px; margin: 0 auto; }
.container-wide { max-width: 1100px; margin: 0 auto; }
.bg-soft { background: var(--bg-soft); }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* Page hero */
.page-hero {
  padding: 6rem 2rem 3.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 3.4rem; margin-bottom: 0.75rem; }
.page-hero p { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--text-muted); margin: 0; }

/* Home hero */
#hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
}
#hero h1 { margin-bottom: 1rem; }
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-essence {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 680px;
  border-left: 2px solid var(--accent-warm);
  padding-left: 1.5rem;
  margin-bottom: 2.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.9rem 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); color: var(--bg); border: none; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: var(--bg); }

/* Quote */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  color: var(--accent);
  margin: 3rem auto;
  max-width: 600px;
  line-height: 1.5;
}
.quote .source {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* Lists */
.criteria-list { list-style: none; margin: 2rem 0; }
.criteria-list li {
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 1.05rem;
}
.criteria-list li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
}

.alert-box {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-warm);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  font-size: 0.98rem;
}
.alert-box p:last-child { margin-bottom: 0; }

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--bg);
  padding: 2rem;
  border-top: 2px solid var(--accent);
}
.bg-soft .card { background: var(--bg); }
.card .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.card .meta { font-style: italic; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

/* Ritmo */
.ritmo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.ritmo-bloco { padding: 1.75rem; background: var(--bg-soft); }
.bg-soft .ritmo-bloco { background: var(--bg); }
.ritmo-bloco h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.ritmo-bloco p { font-size: 0.95rem; margin: 0; }

/* Processo numbered list */
.processo-list { list-style: none; counter-reset: step; margin: 2rem 0; }
.processo-list li {
  counter-increment: step;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.processo-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
}
.processo-list strong { font-weight: 600; color: var(--text); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.5rem;
  color: var(--accent);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 1rem; margin-bottom: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Steps / timeline simple */
.timeline { margin: 2rem 0; }
.timeline-item {
  padding: 1.25rem 0 1.25rem 1.75rem;
  border-left: 2px solid var(--accent-warm);
  margin-left: 0.5rem;
}
.timeline-item h4 { color: var(--accent); font-family: var(--serif); font-size: 1.3rem; }
.timeline-item p { margin: 0.25rem 0 0; font-size: 0.97rem; }

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Members access box */
.access-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 2.5rem;
}
.access-box h3 { margin-bottom: 1rem; }
.access-box .btn { margin-top: 1rem; }

/* Members banner */
.membros-banner {
  background: var(--accent);
  color: var(--bg);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.98rem;
}
.membros-banner a {
  color: var(--bg);
  border-bottom: 1px solid var(--bg);
  font-weight: 500;
  margin-left: 0.75rem;
}
.membros-banner a:hover { border-bottom-color: transparent; color: var(--bg); }

/* Selo institucional — âncora visual da Comunidade Shalom */
.selo {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--institutional);
  color: var(--bg);
  border-top: none;
}
/* Hierarquia de papel timbrado: a comissão nomeia a origem em letra
   miúda, e a Comunidade — a instituição — vem em destaque abaixo. */
.selo-comissao {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.7);
  margin-bottom: 0.85rem;
}
.selo-instituicao {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--bg);
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.selo em { color: rgba(244, 241, 232, 0.85); }

@media (max-width: 700px) {
  .selo-instituicao { font-size: 1.6rem; }
  .selo-comissao { font-size: 0.68rem; letter-spacing: 0.14em; }
}

/* Footer */
footer {
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer a { color: var(--text-muted); }
footer nav ul { justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }

.spacer-sm { height: 1.5rem; }
.spacer { height: 3rem; }
.center { text-align: center; }

@media (max-width: 700px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
  .page-hero h1 { font-size: 2.4rem; }
  section { padding: 3.5rem 1.25rem; }
  .hero-essence { font-size: 1.15rem; padding-left: 1rem; }
  .hero-subtitle { font-size: 1.3rem; }

  /* Header empilhado: logo em cima, menu embaixo em linha única */
  header { padding: 0.7rem 1rem 0.6rem; }
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .logo {
    font-size: 1.3rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1.1;
  }
  .logo small { font-size: 0.55rem; letter-spacing: 0.1em; margin-top: 0; }
  nav ul {
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  nav a { font-size: 0.78rem; }

  /* Compensa o header empilhado, que é mais alto */
  main { padding-top: 6.5rem; }
  #hero { padding: 8rem 1.25rem 3rem; }
  .page-hero { padding: 2.5rem 1.25rem 2.5rem; }
}
