/* altruism.ro — Peretele Faptelor Bune */

:root {
  --bg:        #fdf6ea;
  --bg-soft:   #f7ecd8;
  --ink:       #3a322a;
  --muted:     #90836f;
  --primary:   #d9641c;
  --primary-d: #b44f12;
  --green:     #4a8c5f;
  --card:      #ffffff;
  --line:      #ece0cd;
  --shadow:    0 8px 28px rgba(94, 60, 22, 0.09);
  --radius:    18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.18; }

a { color: var(--primary-d); }

/* ---- antet ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253, 246, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; }
.logo { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.logo-mark { color: var(--primary); }
.logo-dot { color: var(--muted); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 500; opacity: 0.8; }
.site-nav a:hover { opacity: 1; color: var(--primary-d); }

/* ---- hero ---- */
.hero {
  background:
    radial-gradient(620px 320px at 18% -8%, #fbe2c4 0%, transparent 70%),
    radial-gradient(560px 320px at 92% 6%, #f4ddc2 0%, transparent 72%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 76px 22px 64px; text-align: center; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.74rem;
  font-weight: 600; color: var(--primary-d); margin-bottom: 18px;
}
.hero-title { font-size: clamp(2.3rem, 6vw, 3.7rem); }
.hero-lead {
  max-width: 580px; margin: 20px auto 30px; color: #5d5345; font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- butoane ---- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(217, 100, 28, 0.28); }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-d); }
.btn-block { width: 100%; padding: 15px; font-size: 1rem; }

/* ---- statistici ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 620px; margin: 44px auto 0;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 8px; box-shadow: var(--shadow);
}
.stat-num { display: block; font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 600; color: var(--primary-d); }
.stat-label { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* ---- secțiuni ---- */
main { padding: 56px 0 20px; }
main > section { margin-bottom: 64px; }
.section-title { font-size: 1.75rem; margin-bottom: 8px; }
.section-intro { color: var(--muted); max-width: 560px; margin-bottom: 22px; }

/* ---- fapta zilei ---- */
.featured {
  position: relative;
  background: linear-gradient(160deg, #fff 0%, #fff7ec 100%);
  border: 1.5px solid #f0c98c;
  border-radius: var(--radius);
  padding: 40px 34px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 64px;
}
.featured-badge {
  position: absolute; top: -14px; left: 28px;
  background: var(--primary); color: #fff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 16px; border-radius: 999px;
}
.featured-msg { font-family: 'Fraunces', serif; font-size: 1.4rem; line-height: 1.5; color: #463c30; }
.featured-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.byline { color: var(--muted); font-size: 0.92rem; }

.cat-pill {
  display: inline-block; background: var(--bg-soft); color: var(--primary-d);
  font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}

/* ---- formular ---- */
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 34px; box-shadow: var(--shadow);
}
.deed-form { margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field-label em { color: var(--muted); font-weight: 400; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fdfaf4; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.counter { display: block; text-align: right; font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* honeypot — ascuns vizitatorilor reali */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- mesaje flash ---- */
.flash {
  border-radius: 12px; padding: 13px 16px; margin-bottom: 18px;
  font-size: 0.94rem; font-weight: 500;
}
.flash-succes { background: #e7f4ea; color: #2f6b41; border: 1px solid #bfe0c9; }
.flash-eroare { background: #fcebe6; color: #b1432a; border: 1px solid #f0c9bd; }

/* ---- filtre / chips ---- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 0.84rem; font-weight: 500; text-decoration: none;
  padding: 7px 14px; border-radius: 999px; transition: all 0.12s ease;
}
.chip:hover { border-color: var(--primary); }
.chip-on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- feed de fapte ---- */
.deed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.deed {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 18px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform 0.14s ease;
}
.deed:hover { transform: translateY(-3px); }
.deed-cat { font-size: 0.78rem; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.deed-emoji { font-size: 0.95rem; }
.deed-msg { color: #4c4337; flex: 1; }
.deed-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.deed-author { font-weight: 600; color: #6b6051; }

.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---- paginare ---- */
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.pager-info { font-size: 0.86rem; color: var(--muted); }

/* ---- despre ---- */
.about p { max-width: 640px; color: #5d5345; margin-bottom: 12px; }
.about-api { font-size: 0.92rem; }

/* ---- subsol ---- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 30px 0; text-align: center;
}
.site-footer p { font-size: 0.92rem; }
.site-footer .muted { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ---- responsive ---- */
@media (max-width: 680px) {
  .site-nav { display: none; }
  .hero-inner { padding: 54px 22px 46px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .deed-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .featured { padding: 36px 24px 26px; }
  .featured-msg { font-size: 1.2rem; }
  .form-card { padding: 28px 22px; }
}
