:root {
    --brand: #0d5c3f;
    --brand-dark: #093028;
    --accent-gold: #d97706;
    --accent-blue: #2563eb;
    --accent-coral: #e0546f;
    --accent-teal: #0891b2;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --hover-shadow: 0 15px 35px rgba(13,92,63,.2);
    --ease: cubic-bezier(.4,0,.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #333; line-height: 1.6; background: #f4fbf6; padding-bottom: 0; letter-spacing: -.01em; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, .kp-hero__img, .reveal, .trust-item i, .mission__stat i, .impact-text i { transition: none !important; animation: none !important; }
}

/* Hero — pure photo banner, no text, subtle slow zoom */
.kp-hero {
    width: 100%;
    height: 520px;
    overflow: hidden;
    position: relative;
}
.kp-hero__img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 25%;
    animation: heroZoom 18s ease-in-out infinite alternate;
}
.kp-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (max-width: 768px) { .kp-hero { height: 320px; } }

/* Floating card */
.kp-container { width: 92%; max-width: 900px; margin: -90px auto 70px; background: #fff; border-radius: 28px; padding: 40px; box-shadow: 0 25px 70px rgba(9,48,40,.15); position: relative; z-index: 10; animation: cardRise .7s var(--ease) both; }
@keyframes cardRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .kp-container { padding: 25px 16px; margin: -40px auto 40px; } }

.section-header-wrapper { text-align: center; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
.section-title-kp { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: #1c231f; }
.section-title-kp span { color: var(--brand); border-bottom: 3px solid var(--brand); }
.info-pill { font-size: 13px; color: #555; background: #eef7f1; display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 50px; margin-top: 10px; font-weight: 600; border: 1px solid var(--brand); }
.info-pill i { margin-right: 6px; color: var(--brand); }

.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 30px 0; }
.kp-card { border: 2px solid #f0f0f0; border-radius: 16px; padding: 20px 10px; text-align: center; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); position: relative; background: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kp-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--hover-shadow); }
.kp-card.selected { border-color: var(--brand-dark); background: #eef7f1; box-shadow: 0 0 0 3px rgba(13,92,63,.2); padding-top: 30px; }
.kp-card.selected::after { content: '\f00c'; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(9,48,40,.35); animation: popIn .3s var(--ease); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.kp-amount { font-size: 22px; font-weight: 800; color: #222; margin-bottom: 4px; }
.kp-desc { font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .5px; }
.kp-popular { position: absolute; top: 0; left: 0; width: 100%; background: var(--brand-dark); color: #fff; font-size: 10px; padding: 4px 0; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 768px) { .kp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.kp-input-box { background: #fff; border: 2px dashed #ddd; border-radius: 16px; padding: 20px; text-align: center; max-width: 400px; margin: 0 auto 10px; }
.kp-input-box .input-wrapper { display: flex; align-items: center; justify-content: center; gap: 5px; }
.kp-input-box input { border: none; background: transparent; font-size: 32px; font-weight: 800; color: var(--brand-dark); width: 140px; text-align: center; outline: none; }
.impact-text { color: var(--brand-dark); font-weight: 700; font-size: 14px; margin-top: 5px; display: block; }
.impact-text i, .kp-btn i.fa-heart, .hero__badge i.fa-heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; color: var(--accent-coral); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(1); } 60% { transform: scale(1.18); } 80% { transform: scale(1); } }

.user-input-group { max-width: 400px; margin: 20px auto 30px; width: 100%; }
.kp-input-row { display: flex; align-items: center; background: #fff; border: 2px solid #ddd; border-radius: 50px; padding: 12px 20px; margin-bottom: 8px; width: 100%; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.kp-input-row:has(input:focus), .kp-input-row:has(select:focus) { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13,92,63,.12); }
.kp-input-row i { color: var(--brand); font-size: 18px; margin-right: 15px; min-width: 20px; text-align: center; }
.kp-input-row select, .kp-input-clean { border: none !important; outline: none !important; background: transparent !important; width: 100%; font-family: 'Poppins', sans-serif; font-size: 15px; color: #333; }

/* Modern inline alerts — replace native alert() popups, shown right under the related field */
.field-error {
    color: #c0392b; background: #fdecea; border: 1px solid #f5c2c0;
    font-size: 12px; font-weight: 600; text-align: center; max-width: 400px; margin: 0 auto;
    max-height: 0; opacity: 0; overflow: hidden; padding: 0 14px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: max-height .3s var(--ease), opacity .25s var(--ease), padding .3s var(--ease), margin .3s var(--ease);
}
.field-error.show { max-height: 60px; opacity: 1; padding: 9px 14px; margin: 0 auto 8px; }

.key-warning { display: none; background: #fff3cd; border: 1px solid #ffe08a; color: #7a5b00; font-size: 13px; padding: 12px 16px; border-radius: 10px; margin-bottom: 15px; text-align: center; }

.kp-btn { width: 100%; max-width: 400px; margin: 0 auto; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); background-size: 160% 160%; background-position: 0% 50%; color: #fff; font-size: 18px; font-weight: 700; padding: 18px; border: none; border-radius: 50px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease); box-shadow: 0 10px 20px rgba(13,92,63,.3); display: flex; justify-content: center; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; }
.kp-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(13,92,63,.4); background-position: 100% 50%; }
.kp-btn:active { transform: translateY(-1px) scale(.99); }
.kp-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.trust-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; background: #fcfcfc; padding: 25px; border-radius: 20px; margin: 40px 0; border: 1px solid #eee; }
.trust-item { text-align: center; font-size: 11px; color: #666; font-weight: 600; width: 80px; }
.trust-item i { font-size: 22px; color: var(--brand); margin-bottom: 8px; background: #eef7f1; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; animation: iconPulse 3.4s ease-in-out infinite; }
.trust-item:nth-child(1) i { animation-delay: 0s; }
.trust-item:nth-child(2) i { color: var(--accent-gold); background: #fdf3e2; animation-delay: .3s; }
.trust-item:nth-child(3) i { color: var(--accent-blue); background: #e9f0fd; animation-delay: .6s; }
.trust-item:nth-child(4) i { color: var(--accent-coral); background: #fceaee; animation-delay: .9s; }
@keyframes iconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.bank-section-title { text-align: center; font-size: 22px; font-weight: 800; margin: 45px 0 25px; color: #333; }
.bank-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.bank-card { border: 1px solid #eee; border-radius: 20px; padding: 25px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.bank-header { font-weight: 700; font-size: 16px; margin-bottom: 15px; color: var(--brand-dark); border-bottom: 1px solid #eee; padding-bottom: 10px; display: block; }
.bank-field { display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; padding: 10px 15px; border-radius: 10px; margin-bottom: 10px; border: 1px solid #eee; }
.field-value { font-size: 13px; font-weight: 700; color: #333; font-family: monospace; }
.copy-btn { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 5px 8px; cursor: pointer; color: var(--brand); font-size: 12px; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.copy-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.qr-wrapper { text-align: center; background: #fff; padding: 12px; border-radius: 15px; border: 2px solid var(--brand); margin: 0 auto; width: fit-content; }
.qr-wrapper img { width: 220px; height: auto; border-radius: 8px; display: block; }
.qr-wrapper .qr-placeholder { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; font-weight: 600; text-align: center; border-radius: 10px; background: #fafafa; }
@media (max-width: 768px) { .bank-container { grid-template-columns: 1fr; } }

/* Sticky mobile footer bar */
.sticky-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; padding: 12px 15px; box-shadow: 0 -5px 30px rgba(0,0,0,.1); display: none; z-index: 100; text-align: center; }
@media (max-width: 768px) { .sticky-footer { display: block; } body { padding-bottom: 80px; } }

/* Toast (copy feedback) */
.copy-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--brand-dark); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 200; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 768px) { .copy-toast { bottom: 100px; } }

/* Section wrapper below the card */
.section-pad { padding: 70px 5%; }
.sec-inner { max-width: 1100px; margin: 0 auto; }

/* Mission */
.mission-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.mission__tag { display: inline-block; background: #eef7f1; color: var(--brand-dark); border: 1px solid var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 16px; border-radius: 50px; margin-bottom: 14px; }
.mission__text h2 { font-size: 30px; font-weight: 800; color: #1c231f; margin-bottom: 16px; }
.mission__text h2 span { color: var(--brand); }
.mission__text p { color: #55665d; margin-bottom: 14px; font-size: 15px; }
.mission__stats { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.mission__stat { background: #f4fbf6; border-radius: 14px; padding: 16px; text-align: center; flex: 1; min-width: 110px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mission__stat:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); }
.mission__stat i { color: var(--brand); font-size: 20px; margin-bottom: 6px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #eef7f1; }
.mission__stat:nth-child(1) i { color: var(--accent-blue); background: #e9f0fd; }
.mission__stat:nth-child(2) i { color: var(--accent-coral); background: #fceaee; }
.mission__stat:nth-child(3) i { color: var(--accent-gold); background: #fdf3e2; }
.mission__stat strong { display: block; font-size: 14px; color: #1c231f; margin-top: 8px; }
.mission__stat span { font-size: 11px; color: #778a80; text-transform: uppercase; letter-spacing: .4px; }
.mission__img img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .mission-row { grid-template-columns: 1fr; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.gallery-grid .reveal:nth-child(2) { transition-delay: .08s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: .16s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: .24s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: .32s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: .4s; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.gallery-grid figure { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; margin: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.ldg-footer { background: var(--brand-dark); color: rgba(255,255,255,.85); padding: 50px 5% 20px; }
.ldg-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.ldg-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ldg-footer a { color: rgba(255,255,255,.75); }
.ldg-footer .social a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); align-items: center; justify-content: center; margin-right: 8px; }
.ldg-footer .bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; text-align: center; font-size: 12px; max-width: 1100px; margin: 0 auto; }

.whatsapp-float { position: fixed; bottom: 90px; right: 20px; z-index: 50; }
.whatsapp-float img { width: 55px; }
@media (max-width: 768px) { .whatsapp-float { bottom: 100px; } }

/* Donation success / thank-you page */
.thankyou-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 60px 5%; background: linear-gradient(180deg, #eef7f1 0%, #f4fbf6 100%); }
.thankyou-card { background: #fff; border-radius: 28px; padding: 50px 42px; box-shadow: 0 25px 70px rgba(9,48,40,.15); max-width: 560px; width: 100%; text-align: center; animation: cardRise .6s var(--ease) both; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: #eef7f1; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; position: relative; }
.success-icon::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--brand); opacity: .35; animation: successPulse 1.8s ease-out infinite; }
.success-icon i { font-size: 34px; color: var(--brand-dark); animation: popIn .4s var(--ease) .1s both; }
@keyframes successPulse { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.25); opacity: 0; } }
.thankyou-card h1 { font-size: 26px; font-weight: 800; color: #1c231f; margin-bottom: 10px; }
.thankyou-card h1 span { color: var(--brand); }
.thankyou-card p.subtext { color: #55665d; font-size: 15px; margin-bottom: 26px; }
.receipt-card { background: #f8faf9; border: 1px solid #eee; border-radius: 16px; padding: 18px 20px; margin-bottom: 28px; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row span:first-child { color: #778a80; }
.receipt-row span:last-child { font-weight: 700; color: #1c231f; text-align: right; }
.thankyou-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.thankyou-actions .kp-btn { flex: 1; min-width: 180px; }
.btn-outline-brand { background: #fff !important; color: var(--brand-dark) !important; border: 2px solid var(--brand) !important; box-shadow: none !important; }
.btn-outline-brand:hover { background: #eef7f1 !important; }
@media (max-width: 480px) { .thankyou-card { padding: 36px 22px; } .thankyou-actions .kp-btn { min-width: 100%; } }
