/* ============================================
   HOPEHEART FOUNDATION — style.css
   Colors: Green #1a5c3a / Gold #d4a853 / Warm #faf8f5
   Fonts: DM Serif Display + Plus Jakarta Sans
   ============================================ */

/* VARIABLES */
:root {
  --c1: #1a5c3a;
  --c1l: #2a7d52;
  --c1d: #0e3d25;
  --c2: #d4a853;
  --c2l: #e8c97a;
  --bg: #faf8f5;
  --bgw: #f4efe8;
  --bgc: #fff;
  --tx: #2c2c2c;
  --txl: #6b6b6b;
  --txm: #999;
  --bd: #e5ddd3;
  --wh: #fff;
  --fd: 'DM Serif Display', Georgia, serif;
  --fb: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --sh: 0 4px 16px rgba(0,0,0,.08);
  --sh2: 0 8px 32px rgba(0,0,0,.12);
  --r: 12px;
  --tr: .3s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--tx); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; opacity: 0; animation: pageIn .4s ease forwards; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.ctn { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* PAGE FADE-IN */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ NAVIGATION ============ */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,248,245,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(229,221,211,.5); transition: var(--tr); }
.hdr.scrolled { background: rgba(250,248,245,.98); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-i { width: 42px; height: 42px; background: var(--c1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c2); font-size: 1.3rem; box-shadow: 0 2px 8px rgba(26,92,58,.3); }
.logo-t { font-family: var(--fd); font-size: 1.35rem; color: var(--c1d); letter-spacing: -.02em; }
.logo-t span { color: var(--c2); }
.nl { display: flex; gap: 32px; align-items: center; }
.nl a { font-size: .9rem; font-weight: 500; color: var(--txl); position: relative; padding: 4px 0; }
.nl a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--c1); border-radius: 2px; transition: width var(--tr); }
.nl a:hover, .nl a.active { color: var(--c1); }
.nl a:hover::after, .nl a.active::after { width: 100%; }
.nd { background: var(--c1) !important; color: var(--wh) !important; padding: 10px 24px !important; border-radius: 50px !important; font-weight: 600 !important; font-size: .88rem !important; }
.nd::after { display: none !important; }
.nd:hover { background: var(--c1l) !important; transform: translateY(-1px); }
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.ham span { width: 24px; height: 2px; background: var(--tx); border-radius: 2px; transition: var(--tr); }
.mm { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 999; flex-direction: column; padding: 32px 24px; gap: 8px; overflow-y: auto; }
.mm.open { display: flex; }
.mm a { font-size: 1.1rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--bd); color: var(--tx); }
.mm .nd { text-align: center; margin-top: 16px; border-bottom: none; }

/* ============ HERO (index) ============ */
.hero { padding: 160px 0 100px; background: linear-gradient(165deg, var(--bg) 0%, var(--bgw) 50%, #e8e0d4 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(26,92,58,.06) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(212,168,83,.08) 0%, transparent 70%); border-radius: 50%; }
.hero h1 { font-family: var(--fd); font-size: clamp(2.2rem,5vw,3.5rem); line-height: 1.15; color: var(--c1d); max-width: 700px; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--txl); max-width: 600px; line-height: 1.8; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ============ PAGE HERO (interior pages) ============ */
.ph { padding: 160px 0 80px; background: linear-gradient(165deg, var(--bg) 0%, var(--bgw) 50%, #e8e0d4 100%); position: relative; overflow: hidden; }
.ph::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(26,92,58,.06) 0%, transparent 70%); border-radius: 50%; }
.ph h1 { font-family: var(--fd); font-size: clamp(2.2rem,5vw,3.5rem); line-height: 1.15; color: var(--c1d); max-width: 700px; margin-bottom: 20px; }
.ph p { font-size: 1.1rem; color: var(--txl); max-width: 600px; line-height: 1.8; }

/* ============ BADGE ============ */
.badge { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--c1); background: rgba(26,92,58,.08); padding: 6px 16px; border-radius: 50px; margin-bottom: 20px; }

/* ============ SECTIONS ============ */
.sec { padding: 80px 0; }
.sec-a { background: var(--bgw); }
.sh { font-family: var(--fd); font-size: clamp(1.6rem,3vw,2.2rem); color: var(--c1d); margin-bottom: 16px; }
.ss { font-size: 1rem; color: var(--txl); max-width: 600px; margin-bottom: 48px; }
.sc { text-align: center; }
.sc .ss { margin-left: auto; margin-right: auto; }

/* ============ CARDS ============ */
.cg { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.cd { background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); padding: 32px; transition: var(--tr); position: relative; overflow: hidden; }
.cd:hover { box-shadow: var(--sh2); transform: translateY(-4px) scale(1.01); border-color: rgba(26,92,58,.25); }
.cd-i { width: 52px; height: 52px; background: rgba(26,92,58,.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; transition: var(--tr); }
.cd:hover .cd-i { background: rgba(26,92,58,.15); transform: scale(1.05); }
.cd h3 { font-family: var(--fd); font-size: 1.2rem; margin-bottom: 12px; color: var(--c1d); }
.cd p { font-size: .95rem; color: var(--txl); line-height: 1.7; }
.cd ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.cd ul li { font-size: .88rem; color: var(--txl); padding-left: 20px; position: relative; list-style: none; }
.cd ul li::before { content: '✓'; position: absolute; left: 0; color: var(--c1); font-weight: 700; font-size: .8rem; }

/* ============ STATS ============ */
.sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; margin: 48px 0; }
.sc-c { text-align: center; padding: 36px 20px; background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); transition: var(--tr); }
.sc-c:hover { border-color: var(--c1); box-shadow: var(--sh); }
.sn { font-family: var(--fd); font-size: 2.6rem; color: var(--c1); line-height: 1; margin-bottom: 8px; }
.sl { font-size: .88rem; color: var(--txl); font-weight: 500; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: .92rem; transition: var(--tr); cursor: pointer; border: none; font-family: var(--fb); }
.btn-p { background: var(--c1); color: var(--wh); }
.btn-p:hover { background: var(--c1l); transform: translateY(-1px); box-shadow: var(--sh); }
.btn-o { background: transparent; border: 2px solid var(--c1); color: var(--c1); }
.btn-o:hover { background: var(--c1); color: var(--wh); }

/* ============ DONATE SECTION ============ */
.dg { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.da { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.dam { padding: 16px; text-align: center; border: 2px solid var(--bd); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 1.1rem; color: var(--c1d); transition: var(--tr); background: var(--wh); }
.dam:hover, .dam.active { border-color: var(--c1); background: rgba(26,92,58,.05); color: var(--c1); }
.donate-custom { grid-column: 1/-1; }
.donate-custom input { width: 100%; padding: 14px 16px; border: 2px solid var(--bd); border-radius: 10px; font-size: 1rem; font-family: var(--fb); color: var(--c1d); background: var(--wh); outline: none; transition: border-color var(--tr), box-shadow var(--tr); }
.donate-custom input:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(26,92,58,.1); }
.fund-box { padding: 40px; background: var(--bgw); border-radius: 20px; border: 1px solid var(--bd); }
.fund-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bd); }
.fund-row:last-child { border-bottom: none; }
.fund-row span:first-child { font-size: .92rem; color: var(--txl); }
.fund-row span:last-child { font-weight: 700; color: var(--c1); font-size: 1rem; }

/* ============ CTA BANNER ============ */
.cta { padding: 72px 0; text-align: center; background: linear-gradient(135deg, var(--c1d) 0%, var(--c1) 60%, var(--c1l) 100%); color: var(--wh); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: -30%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(212,168,83,.15) 0%, transparent 70%); border-radius: 50%; }
.cta h2 { font-family: var(--fd); font-size: 1.8rem; margin-bottom: 12px; }
.cta p { font-size: 1rem; opacity: .85; margin-bottom: 28px; }
.cta .btn-p { background: var(--c2); color: var(--c1d); }
.cta .btn-p:hover { background: var(--c2l); }

/* ============ PARTNER BOX ============ */
.pb { padding: 48px; background: var(--bgw); border-radius: 20px; border: 1px solid var(--bd); text-align: center; margin-top: 48px; }
.pb h3 { font-family: var(--fd); font-size: 1.3rem; margin-bottom: 12px; color: var(--c1d); }
.pb p { font-size: .95rem; color: var(--txl); max-width: 500px; margin: 0 auto 24px; }

/* ============ TESTIMONIALS ============ */
.tms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.tm { padding: 32px; background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); position: relative; }
.tm::before { content: '"'; font-family: var(--fd); font-size: 4rem; color: rgba(26,92,58,.1); position: absolute; top: 10px; left: 20px; line-height: 1; }
.tm p { font-size: .95rem; color: var(--tx); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.tm cite { font-size: .82rem; color: var(--txm); font-style: normal; display: block; }

/* ============ STEPS ============ */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin: 0 auto; }
.stp { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); transition: var(--tr); }
.stp:hover { box-shadow: var(--sh); border-color: rgba(26,92,58,.2); }
.stp-n { flex-shrink: 0; width: 40px; height: 40px; background: var(--c1); color: var(--wh); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.stp h3 { font-family: var(--fd); font-size: 1.1rem; margin-bottom: 6px; color: var(--c1d); }
.stp p { font-size: .92rem; color: var(--txl); }

/* ============ DONATION TERMS BOX ============ */
.dt { padding: 32px; background: var(--bgw); border: 1px solid var(--bd); border-radius: var(--r); max-width: 700px; margin: 48px auto 0; }
.dt h3 { font-family: var(--fd); font-size: 1.1rem; margin-bottom: 10px; color: var(--c1d); }
.dt p { font-size: .88rem; color: var(--txl); line-height: 1.7; }

/* ============ CONTACT FORM ============ */
.fg2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.fg2 label { display: block; font-size: .85rem; font-weight: 600; color: var(--tx); margin-bottom: 6px; }
.fg2 input, .fg2 select, .fg2 textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--bd); border-radius: 8px; font-family: var(--fb); font-size: .95rem; color: var(--tx); background: var(--wh); transition: border-color var(--tr), box-shadow var(--tr); outline: none; }
.fg2 input:focus, .fg2 select:focus, .fg2 textarea:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(26,92,58,.1); }
.fg2 textarea { resize: vertical; min-height: 120px; }
.cg2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.cic { padding: 32px; background: var(--bgw); border-radius: var(--r); border: 1px solid var(--bd); }
.cic h3 { font-family: var(--fd); font-size: 1.15rem; margin-bottom: 20px; color: var(--c1d); }
.cic p { font-size: .92rem; margin-bottom: 8px; color: var(--txl); }
.cic a { color: var(--c1); font-weight: 500; }

/* ============ LEGAL PAGES ============ */
.pc { max-width: 760px; margin: 0 auto; }
.pc-toc { background: var(--bgw); border: 1px solid var(--bd); border-radius: var(--r); padding: 28px 32px; margin-bottom: 40px; }
.pc-toc h3 { font-family: var(--fd); font-size: 1rem; color: var(--c1d); margin-bottom: 16px; }
.pc-toc ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.pc-toc ol li a { font-size: .9rem; color: var(--c1); font-weight: 500; }
.pc-toc ol li a:hover { text-decoration: underline; }
.pc h2 { font-family: var(--fd); font-size: 1.3rem; color: var(--c1d); margin: 40px 0 12px; scroll-margin-top: 100px; }
.pc p { margin-bottom: 16px; font-size: .95rem; color: var(--txl); }
.pc ul { margin: 12px 0 20px 20px; }
.pc ul li { font-size: .92rem; color: var(--txl); margin-bottom: 8px; list-style: disc; }
.pc a { color: var(--c1); font-weight: 500; }
.pc a:hover { text-decoration: underline; }
.pc .upd { font-size: .88rem; color: var(--txm); margin-bottom: 32px; }
.pc .note { font-size: .85rem; color: var(--txm); font-style: italic; padding: 16px; background: var(--bgw); border-radius: 8px; margin-top: 32px; }

/* ============ FOOTER ============ */
.ftr { background: var(--c1d); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.fg { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fb .logo-t { color: var(--wh); font-size: 1.2rem; margin-bottom: 12px; }
.fb p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.ftr h4 { color: var(--wh); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.ftr ul li { margin-bottom: 10px; }
.ftr ul li a { font-size: .88rem; transition: color var(--tr); }
.ftr ul li a:hover { color: var(--c2l); }
.fci p, .fci a { font-size: .88rem; margin-bottom: 6px; display: block; }
.fci a:hover { color: var(--c2l); }
.fbt { padding: 24px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ============ ANIMATIONS ============ */
.fu { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fu.v { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ============ SCROLL-TO-TOP ============ */
#scrollTop { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--c1); color: var(--wh); border: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh); transition: var(--tr); opacity: 0; transform: translateY(10px); pointer-events: none; z-index: 900; }
#scrollTop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scrollTop:hover { background: var(--c1l); transform: translateY(-2px); }

/* ============ COOKIE BANNER ============ */
#cookieBanner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--c1d); color: rgba(255,255,255,.85); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 2000; font-size: .88rem; flex-wrap: wrap; transform: translateY(100%); transition: transform .4s ease; }
#cookieBanner.show { transform: translateY(0); }
#cookieBanner p { flex: 1; min-width: 200px; }
#cookieBanner a { color: var(--c2l); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 8px 20px; border-radius: 50px; font-size: .84rem; font-weight: 600; cursor: pointer; border: none; font-family: var(--fb); transition: var(--tr); }
.cookie-btn-accept { background: var(--c2); color: var(--c1d); }
.cookie-btn-accept:hover { background: var(--c2l); }
.cookie-btn-decline { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
.cookie-btn-decline:hover { border-color: rgba(255,255,255,.6); color: var(--wh); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .dg { gap: 32px; }
  .fg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .fg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nl { display: none; }
  .ham { display: flex; }
  .sec { padding: 56px 0; }
  .hero { padding: 130px 0 60px; }
  .ph { padding: 130px 0 60px; }
  .dg { grid-template-columns: 1fr; }
  .da { grid-template-columns: repeat(2,1fr); }
  .cg2 { grid-template-columns: 1fr; }
  .cta { padding: 56px 0; }
}
@media (max-width: 600px) {
  .fg { grid-template-columns: 1fr; }
  .ctn { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .ph h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .da { grid-template-columns: repeat(2,1fr); }
  .fund-box { padding: 24px; }
  #cookieBanner { flex-direction: column; }
}
@media (max-width: 375px) {
  .nav { padding: 0 16px; }
  .logo-t { font-size: 1.1rem; }
  .ctn { padding: 0 12px; }
}
