/*
  Healing Hands / Долоні любові — public marketing site stylesheet.
  Hand-written (no framework), shared by marketing_home.html + marketing_events.html.
  Fonts: Google Fonts Inter + Manrope (see <link> in templates), preconnect + fallback
  to system-ui, same pattern already used in app/templates/public_event.html.
*/

:root {
  --bg: #fbfaf8;
  --paper: #ffffff;
  --ink: #22201d;
  --sub: #5c574d;
  --muted: #8a8478;
  --border: #ece7dd;
  --accent: #96be3c;
  --accent-dark: #7a9e2e;
  --accent-soft: #eef6db;
  --accent-ink: #3c4a1a;
  --shadow-sm: 0 1px 2px rgba(34, 32, 29, 0.06), 0 1px 1px rgba(34, 32, 29, 0.04);
  --shadow-md: 0 8px 24px rgba(34, 32, 29, 0.08), 0 2px 8px rgba(34, 32, 29, 0.05);
  --shadow-lg: 0 24px 60px rgba(34, 32, 29, 0.12), 0 8px 24px rgba(34, 32, 29, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-lockup .names {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-lockup .names .primary {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.brand-lockup .names .secondary {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sub);
}

.site-nav a:hover { color: var(--accent-dark); }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-ink);
}

.lang-switch a.active { background: var(--paper); box-shadow: var(--shadow-sm); }

@media (min-width: 860px) {
  .site-nav { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #1c2609;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background:
    radial-gradient(720px 420px at 85% -10%, var(--accent-soft) 0%, rgba(238, 246, 219, 0) 70%),
    radial-gradient(600px 400px at -10% 30%, #f3f6ea 0%, rgba(243, 246, 234, 0) 65%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-eyebrow img { width: 16px; height: 16px; object-fit: contain; }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 14px;
}

.hero-slogan {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 12px;
}

.hero-lead {
  color: var(--sub);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
}

.hero-media .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}

.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .blob {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
  filter: blur(2px);
  z-index: -1;
}

.hero-media .blob.b1 { width: 220px; height: 220px; top: -40px; right: -50px; }
.hero-media .blob.b2 { width: 160px; height: 160px; bottom: -40px; left: -30px; }

.hero-media .badge {
  position: absolute;
  left: -16px;
  bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  max-width: 230px;
  font-size: 13.5px;
  color: var(--sub);
  font-weight: 600;
}

.hero-media .badge strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  color: var(--accent-dark);
  font-weight: 800;
}

@media (min-width: 940px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .hero-media .badge { left: -28px; }
}

/* ── Sections generic ───────────────────────────────────────────────────── */

section { padding: 76px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.14;
  margin-bottom: 14px;
}

.section-head p { color: var(--sub); font-size: 16.5px; max-width: 60ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ── Mission ────────────────────────────────────────────────────────────── */

.mission-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.mission-text p { color: var(--sub); font-size: 16.5px; margin: 0 0 18px; max-width: 62ch; }
.mission-text p:last-child { margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.stat-card .icon svg { width: 20px; height: 20px; stroke: var(--accent-dark); }

.stat-card b { display: block; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.stat-card span { color: var(--sub); font-size: 13.5px; }

/* ── Project (Ukraine center) gallery ──────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 940px) {
  .project-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.gallery .tall {
  grid-row: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
}

.gallery .wide {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

.gallery img { width: 100%; height: 100%; object-fit: cover; }

.feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.feature-list .dot {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}

.feature-list .dot svg { width: 18px; height: 18px; stroke: var(--accent-dark); }

.feature-list b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.feature-list span { color: var(--sub); font-size: 14px; }

/* ── Events ─────────────────────────────────────────────────────────────── */

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.event-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), #f4ecd8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .thumb svg { width: 34px; height: 34px; stroke: var(--accent-dark); opacity: 0.6; }

.event-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.event-card .date-chip {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

.event-card h3 { font-size: 18px; line-height: 1.3; font-weight: 750; }

.event-card .place {
  color: var(--sub);
  font-size: 13.5px;
  display: flex;
  gap: 6px;
}

.event-card .more {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-card .more svg { width: 14px; height: 14px; stroke: currentColor; transition: transform 0.15s ease; }
.event-card:hover .more svg { transform: translateX(3px); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 24px;
}

.empty-state .icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}

.empty-state .icon svg { width: 28px; height: 28px; stroke: var(--accent-dark); }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--sub); max-width: 44ch; margin: 0 auto 20px; }

.events-more {
  text-align: center;
  margin-top: 40px;
}

.events-more a {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 15px;
}

.events-more a:hover { text-decoration: underline; }

/* ── Join / donate ──────────────────────────────────────────────────────── */

.join-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 780px) {
  .join-grid { grid-template-columns: repeat(3, 1fr); }
}

.join-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.join-card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}

.join-card .icon svg { width: 24px; height: 24px; stroke: var(--accent-dark); }

.join-card h3 { font-size: 18px; }
.join-card p { color: var(--sub); font-size: 14.5px; flex: 1; margin: 0; }

/* ── Footer / contact ───────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: #e7e4dc;
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; object-fit: contain; }
.footer-brand .names .primary { color: #c7de92; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-brand .names .secondary { color: #fff; font-size: 18px; font-weight: 700; font-family: 'Manrope', sans-serif; }

.site-footer p.tag { color: #b7b2a6; font-size: 14.5px; max-width: 40ch; }

.footer-col h4 { font-family: 'Manrope', sans-serif; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #cfcabd; margin-bottom: 16px; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #efece4;
  font-weight: 600;
  font-size: 15px;
}

.contact-links a svg { width: 20px; height: 20px; stroke: #c7de92; }
.contact-links a:hover { color: var(--accent); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #cfcabd; font-size: 14.5px; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 13px;
  color: #8a8578;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ── Page header for inner pages (events list) ─────────────────────────── */

.page-hero {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  text-align: center;
}

.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: var(--sub); max-width: 56ch; margin: 0 auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 18px;
}

.back-link:hover { color: var(--accent-dark); }
.back-link svg { width: 15px; height: 15px; stroke: currentColor; }
