/* Eu Faço Parte — Editorial landing
   Editorial: serif + sans + mono, azul institucional palette.
*/

:root {
  /* palette — clean, editorial */
  --paper:        oklch(0.975 0.008 75);
  --paper-2:      oklch(0.945 0.015 70);
  --paper-3:      oklch(0.905 0.02 65);
  --ink:          oklch(0.21 0.018 45);
  --ink-2:        oklch(0.36 0.02 45);
  --ink-3:        oklch(0.54 0.018 50);
  --rule:         oklch(0.86 0.018 60);
  --rule-strong:  oklch(0.72 0.025 55);

  --bordeaux:     oklch(0.40 0.11 250);
  --bordeaux-2:   oklch(0.32 0.10 250);
  --terracotta:   oklch(0.60 0.12 250);
  --verdegrowth:  rgb(105, 216, 128);
  --moss:         oklch(0.48 0.06 130);

  --accent:       var(--bordeaux);
  --accent-2:     var(--terracotta);

  /* type */
  --serif: 'Crimson Pro', 'Source Serif 4', Georgia, serif;
  --sans:  'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 25% 20%, oklch(0.97 0.012 70 / 0.6), transparent 40%),
    radial-gradient(circle at 80% 80%, oklch(0.93 0.02 60 / 0.4), transparent 50%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .num {
  color: var(--accent);
  font-weight: 600;
}
.eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-section em {
  font-style: italic;
  color: var(--accent);
}

.h-card {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body-text {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}
.body-text p + p { margin-top: 1em; }

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.6em;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--bordeaux-2);
  border-color: var(--bordeaux-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(15, 76, 129, 0.35),
    0 2px 8px rgba(15, 76, 129, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn .arrow.heart {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn:hover .arrow.heart {
  transform: scale(1.12);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}
.nav-logo img { height: 45px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  margin-left: 8px;
}
@media (max-width: 920px) {
  .nav-links { display: none; }
}

/* ---------- generic section ---------- */
.section {
  padding: clamp(60px, 9vw, 140px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.section-rule {
  border-top: 1px solid var(--rule);
}

/* utility */
.muted { color: var(--ink-3); }
.divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin: 0;
  border: 0;
}

/* placeholder image */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.62 0.13 250 / 0.16) 0 8px,
      transparent 8px 16px
    ),
    oklch(0.62 0.13 250 / 0.10);
  border: 1px solid oklch(0.62 0.13 250 / 0.25);
  color: var(--bordeaux-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.ph::before {
  content: attr(data-label);
  display: block;
}

/* image wrapper with caption */
.figure {
  position: relative;
  display: block;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.figure .cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.figure .cap .marker {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* asterisk decorative */
.aster {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
}

/* ---------- Modal de doação ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.12 0.02 250 / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.modal-box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
}
.modal-box--wide { max-width: 560px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 15px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--ink); }

.modal-back {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  display: block;
  transition: color 0.2s ease;
}
.modal-back:hover { color: var(--accent); }

.modal-step { display: flex; flex-direction: column; }

.modal-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 0;
}
.modal-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 10px 0 0;
  line-height: 1.55;
}

/* Regiões */
.modal-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.modal-region-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modal-region-btn:hover { border-color: var(--accent); background: var(--paper-2); }
.region-flag { font-size: 30px; line-height: 1; }
.region-name { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--ink); }

/* Métodos */
.modal-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.modal-method-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modal-method-btn:hover { border-color: var(--accent); background: var(--paper-2); }
.method-name { font-family: var(--serif); font-size: 22px; font-weight: 500; font-style: italic; color: var(--ink); }
.method-desc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* PIX */
.modal-pix-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.pix-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; }
.pix-key { font-family: var(--mono); font-size: 16px; color: var(--ink); flex: 1; letter-spacing: 0.04em; }
.pix-copy {
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.pix-copy:hover { background: var(--accent); color: var(--paper); }
.modal-pix-note { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin: 0; }

/* Donorbox */
.dbox-wrap { margin-top: 8px; min-height: 300px; }
