/*
Theme Name: YVI's HOPE
Theme URI: https://yvis-hope.org
Author: YVI's HOPE
Author URI: https://yvis-hope.org
Description: Einseitiges Theme für YVI's HOPE — eine gemeinnützige Organisation, die Kindern und Familien in den Neighbourhoods rund um Kapstadt hilft.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yvis-hope
Tags: one-page, charity, nonprofit, german
*/

:root {
  --bg: #FBF7F0;
  --bg-deep: #F2EADB;
  --bg-warm: #FBE5CC;
  --ink: #2B2722;
  --ink-soft: #6b6258;
  --ink-faint: #b8ad9c;
  --orange: #F39222;
  --orange-deep: #D97706;
  --sage: #7A8466;
  --sage-deep: #5C6651;
  --paper-shadow: 0 1px 0 rgba(43,39,34,0.06), 0 20px 50px -28px rgba(43,39,34,0.22);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- TYPE ---------- */
.serif { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.005em; }
.italic { font-style: italic; }
h1, h2, h3, h4 { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: 22px; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.eyebrow.orange { color: var(--orange-deep); }

.hl { background: linear-gradient(to bottom, transparent 58%, var(--bg-warm) 58%); padding: 0 2px; }
.accent { color: var(--orange-deep); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(251,247,240,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav.scrolled { border-bottom-color: rgba(43,39,34,0.08); }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { height: 44px; width: auto; }
.nav .brand .name { font-family: 'Instrument Serif', serif; font-size: 24px; letter-spacing: 0.02em; }
.nav .brand .sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.nav .links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav .links a { color: var(--ink-soft); transition: color 160ms; }
.nav .links a:hover { color: var(--ink); }
.nav .cta {
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 160ms;
}
.nav .cta:hover { background: var(--orange-deep); color: var(--bg); }
@media (max-width: 860px) {
  .nav .links a:not(.cta) { display: none; }
  .nav { padding: 14px 20px; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 32px 80px;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-copy .eyebrow { margin-bottom: 24px; display: inline-flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before {
  content: '';
  width: 32px; height: 1px; background: currentColor;
}
.hero-copy h1 {
  font-size: clamp(52px, 7.5vw, 108px);
  line-height: 0.98;
}
.hero-copy h1 .line2 { display: block; color: var(--ink-soft); }
.hero-copy h1 .line3 { display: block; font-style: italic; }
.hero-copy .lede {
  margin-top: 28px;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 160ms, background 160ms, color 160ms;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-link {
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms, border-color 160ms;
}
.btn-link:hover { color: var(--orange-deep); border-color: var(--orange-deep); }
.btn-link .arrow { transition: transform 160ms; }
.btn-link:hover .arrow { transform: translateX(4px); }

.hero-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 70vh;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--paper-shadow);
  display: block;
}
.hero-heart {
  position: absolute;
  top: -20px; right: -20px;
  width: 88px;
  animation: gentle-float 8s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}
.hero-quote {
  position: absolute;
  bottom: 24px; left: -40px;
  background: var(--bg);
  padding: 14px 18px 16px;
  max-width: 260px;
  border-left: 2px solid var(--orange);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.35;
  box-shadow: var(--paper-shadow);
}
.hero-quote small {
  display: block;
  font-family: 'Libre Franklin', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 40px; }
  .hero-img-wrap { justify-self: center; max-width: 100%; max-height: 500px; }
  .hero-heart { width: 64px; top: -16px; right: 8px; }
  .hero-quote { left: 12px; bottom: 16px; max-width: 220px; }
}

/* ---------- SECTION CHROME ---------- */
section { position: relative; }
.section-pad { padding: 120px 32px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .heading .eyebrow { margin-bottom: 18px; }
.section-head .heading h2 { font-size: clamp(40px, 5.5vw, 72px); }
.section-head .heading h2 em { font-style: italic; color: var(--ink-soft); }
.section-head .intro p { font-size: 18px; color: var(--ink-soft); max-width: 520px; }
@media (max-width: 860px) {
  .section-pad { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* Decorative divider */
.divider-ornament {
  text-align: center;
  color: var(--orange);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  padding: 20px 0;
  letter-spacing: 0.4em;
}

/* ---------- YVONNE / STORY ---------- */
.story {
  background: var(--bg);
  position: relative;
}
.story .pullquote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 880px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
  padding: 40px 20px;
}
.story .pullquote::before,
.story .pullquote::after {
  content: '';
  display: block;
  width: 48px; height: 1px;
  background: var(--orange);
  margin: 28px auto;
}
.story .pullquote cite {
  display: block;
  font-style: normal;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- TIMELINE ---------- */
.timeline-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ink-faint) 8%, var(--ink-faint) 92%, transparent);
  transform: translateX(-0.5px);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-bottom: 64px;
  align-items: center;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-side { padding: 20px 32px; }
.tl-side.right { grid-column: 3; text-align: left; }
.tl-side.left { grid-column: 1; text-align: right; }
.tl-empty { grid-column: 1; }
.tl-empty-r { grid-column: 3; }
.tl-node-col {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  min-height: 40px;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  position: relative;
  z-index: 2;
}
.tl-dot.accent {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(243,146,34,0.12);
  width: 18px; height: 18px;
}
.tl-date {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--orange-deep);
  margin-bottom: 6px;
  display: block;
}
.tl-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 10px;
  display: block;
}
.tl-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
}
.tl-side.right .tl-body { margin-right: 0; }
.tl-side.left .tl-body { margin-left: auto; }
.tl-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-top: 12px;
  box-shadow: var(--paper-shadow);
}
.tl-side.left .tl-photo { margin-left: auto; }

@media (max-width: 760px) {
  .timeline-wrap::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; gap: 0; margin-bottom: 40px; }
  .tl-node-col { grid-column: 1; grid-row: 1; justify-content: flex-start; }
  .tl-side.left, .tl-side.right { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 0 12px; }
  .tl-side.left .tl-body, .tl-side.left .tl-photo { margin-left: 0; }
  .tl-empty, .tl-empty-r { display: none; }
}

/* ---------- WHY SOUTH AFRICA ---------- */
.why {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 32px;
  overflow: hidden;
  position: relative;
}
.why-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why .eyebrow { color: var(--orange); }
.why h2 { color: var(--bg); }
.why h2 em { color: var(--ink-faint); font-style: italic; }
.why p { color: rgba(251,247,240,0.72); font-size: 17px; }
.why-images {
  position: relative;
  aspect-ratio: 1;
}
.why-images img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.why-images .img1 { top: 0; left: 0; width: 58%; aspect-ratio: 3/4; }
.why-images .img2 { bottom: 0; right: 0; width: 58%; aspect-ratio: 4/3; border: 4px solid var(--ink); }
.why-sharing {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 2px solid var(--orange);
  background: rgba(255,255,255,0.03);
}
.why-sharing .motto {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--bg);
  letter-spacing: 0.01em;
}
@media (max-width: 860px) {
  .why { padding: 80px 20px; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}
.project-card {
  position: relative;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--paper-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(43,39,34,0.06), 0 30px 70px -28px rgba(43,39,34,0.32); }
.project-card.feature { grid-row: span 2; }
.project-card .pc-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project-card.feature .pc-img { aspect-ratio: 16/11; }
.project-card .pc-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.project-card .pc-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.project-card h3 { margin-bottom: 6px; }
.project-card .pc-lead { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.project-card .pc-desc { color: var(--ink); font-size: 15px; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.project-card .pc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(43,39,34,0.08); }
.project-card .pc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.chip.sage { background: rgba(122,132,102,0.14); color: var(--sage-deep); }
.chip.orange { background: var(--bg-warm); color: var(--orange-deep); }

.project-card.placeholder {
  background: var(--bg-deep);
  border: 1px dashed var(--ink-faint);
  box-shadow: none;
  padding: 32px 28px;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}
.project-card.placeholder h4 { font-size: 28px; margin-bottom: 10px; }
.project-card.placeholder p { color: var(--ink-soft); font-size: 14px; margin: 0; }

@media (max-width: 860px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.feature { grid-row: auto; }
}

/* ---------- DONATE ---------- */
.donate {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.donate-card {
  background: #fff;
  border-radius: 4px;
  padding: 56px;
  box-shadow: var(--paper-shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.donate-form .toggle-row {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 28px;
  font-size: 13px;
}
.donate-form .toggle-row button {
  background: transparent;
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 160ms;
}
.donate-form .toggle-row button.active {
  background: var(--ink);
  color: var(--bg);
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.amount-btn {
  padding: 20px 12px;
  border: 1.5px solid rgba(43,39,34,0.14);
  background: #fff;
  border-radius: 4px;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  cursor: pointer;
  transition: all 160ms;
  position: relative;
  color: var(--ink);
}
.amount-btn .a-impact {
  display: block;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.02em;
  font-style: normal;
}
.amount-btn:hover { border-color: var(--ink); }
.amount-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.amount-btn.active .a-impact { color: rgba(255,255,255,0.85); }
.amount-custom {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px dashed rgba(43,39,34,0.22);
  border-radius: 4px;
  padding: 14px 18px;
  background: var(--bg);
}
.amount-custom input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.amount-custom span {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--ink-soft);
}
.donate-form .note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 20px;
  line-height: 1.5;
}
.donate-form .btn-donate {
  width: 100%;
  justify-content: center;
  padding: 20px;
  font-size: 15px;
  margin-top: 24px;
}
.donate-side h3 { margin-bottom: 20px; }
.donate-side .trust-list { list-style: none; padding: 0; margin: 0; }
.donate-side .trust-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(43,39,34,0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.donate-side .trust-list li:last-child { border-bottom: 1px solid rgba(43,39,34,0.08); }
.trust-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--bg-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-deep);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
}
.trust-text { flex: 1; }
.trust-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.trust-text span { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .donate-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 40px; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--bg-warm);
  padding: 100px 32px;
  text-align: center;
  position: relative;
}
.newsletter-inner { max-width: 720px; margin: 0 auto; }
.newsletter h2 em { color: var(--orange-deep); }
.newsletter p { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin: 20px auto 32px; }
.newsletter form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--paper-shadow);
}
.newsletter input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.newsletter .btn { padding: 12px 22px; font-size: 13px; }
.newsletter .note { margin-top: 16px; font-size: 12px; color: var(--ink-soft); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(251,247,240,0.7);
  padding: 80px 32px 40px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 48px; width: auto;  }
.footer-brand .name { font-family: 'Instrument Serif', serif; font-size: 24px; color: var(--bg); margin-top: 12px; }
.footer-brand .mission { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 18px; color: var(--orange); margin-top: 8px; }
footer h5 { font-family: 'Libre Franklin', sans-serif; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bg); margin: 0 0 18px; font-weight: 500; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer ul a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(251,247,240,0.4);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- PAGE (Impressum, Datenschutz, etc.) ---------- */
.page-content {
  min-height: 60vh;
  padding-top: 160px; /* clear the fixed nav */
}
.page-title {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 40px;
  max-width: 800px;
}
.page-body {
  max-width: 720px;
  color: var(--ink-soft);
}
.page-body p { font-size: 17px; line-height: 1.7; margin-bottom: 1.4em; }
.page-body a { color: var(--orange-deep); border-bottom: 1px solid rgba(211,119,6,0.3); transition: border-color 160ms; }
.page-body a:hover { border-bottom-color: var(--orange-deep); }
.page-body h2 { font-size: clamp(24px, 3vw, 36px); color: var(--ink); margin: 56px 0 16px; }
.page-body h3 { font-size: 20px; color: var(--ink); margin: 36px 0 12px; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 1.4em; }
.page-body li { font-size: 17px; line-height: 1.6; margin-bottom: 6px; }
@media (max-width: 860px) {
  .page-content { padding-top: 120px; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
