/* =============================================================
   Makiswmed Foundation — Design System
   Author: hand-crafted premium NGO theme
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Brand palette */
    --c-purple:      #6d4aff;
    --c-purple-dark: #5733e0;
    --c-blue:        #38bdf8;
    --c-blue-soft:   #e8f5ff;
    --c-pink:        #ff5d8f;
    --c-pink-soft:   #ffe9f0;
    --c-green:       #22c08a;
    --c-green-soft:  #e3f8f0;
    --c-amber:       #ffb347;

    /* Neutrals */
    --c-ink:    #1a1633;
    --c-body:   #4a4763;
    --c-muted:  #8b8aa3;
    --c-line:   #ece9f6;
    --c-bg:     #ffffff;
    --c-bg-soft:#f7f6fc;
    --c-bg-lav: #f3f0ff;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #6d4aff 0%, #9d6bff 50%, #ff5d8f 100%);
    --grad-cool:  linear-gradient(135deg, #6d4aff 0%, #38bdf8 100%);
    --grad-warm:  linear-gradient(135deg, #ff5d8f 0%, #ffb347 100%);
    --grad-soft:  linear-gradient(160deg, #f3f0ff 0%, #fdf2f8 100%);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Shape & depth */
    --radius-sm: 12px;
    --radius:    20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-sm: 0 4px 14px rgba(45, 25, 110, .06);
    --shadow:    0 18px 40px -16px rgba(70, 40, 150, .18);
    --shadow-lg: 0 40px 80px -28px rgba(70, 40, 150, .28);

    --container-pad: clamp(1rem, 4vw, 3rem);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Prevent horizontal scroll from any element that escapes the viewport on
   small screens (decorative blobs, wide tables, marquee, etc.). */
html, body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--c-body);
    background: var(--c-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--c-ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--c-purple); transition: color .2s ease; }
a:hover { color: var(--c-purple-dark); }
img { max-width: 100%; height: auto; }

.text-muted { color: var(--c-muted) !important; }

section { position: relative; }

.section-pad { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-pad-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.bg-soft { background: var(--c-bg-soft); }
.bg-lav  { background: var(--c-bg-lav); }
.bg-grad-soft { background: var(--grad-soft); }

.skip-link {
    position: absolute; top: 8px; left: 8px; z-index: 2000;
    background: var(--c-purple); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}

/* ---------- 3. Reusable type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center;
    font-family: var(--font-display); font-weight: 700;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--c-purple);
    background: var(--c-bg-lav);
    padding: .45rem 1rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.eyebrow.on-dark { color: #fff; background: rgba(255,255,255,.15); }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--c-muted); }
.lead-tight { font-size: 1.15rem; color: var(--c-body); }

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
    font-family: var(--font-display); font-weight: 600;
    border-radius: 100px; padding: .75rem 1.6rem;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
    border: none;
}
.btn:active { transform: translateY(1px); }

.btn-donate {
    background: var(--grad-warm); color: #fff;
    box-shadow: 0 12px 26px -10px rgba(255, 93, 143, .7);
}
.btn-donate:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(255, 93, 143, .8); }

.btn-brand {
    background: var(--grad-cool); color: #fff;
    box-shadow: 0 12px 26px -10px rgba(109, 74, 255, .6);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); }

.btn-outline-brand {
    background: transparent; color: var(--c-purple);
    border: 1.5px solid var(--c-purple);
}
.btn-outline-brand:hover { background: var(--c-purple); color: #fff; transform: translateY(-2px); }

.btn-light-glass {
    background: rgba(255,255,255,.18); color: #fff;
    border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(8px);
}
.btn-light-glass:hover { background: #fff; color: var(--c-purple); transform: translateY(-2px); }

.btn-lg { padding: .95rem 2.1rem; font-size: 1.02rem; }

/* ---------- 5. Top bar ---------- */
.topbar {
    background: var(--c-ink); color: rgba(255,255,255,.78);
    font-size: .85rem; padding: .55rem 0;
}
.topbar a, .topbar i { color: rgba(255,255,255,.78); }
.topbar .emergency-pill {
    background: var(--grad-warm); color: #fff; font-weight: 600;
    padding: .25rem .9rem; border-radius: 100px; font-size: .8rem;
}
.topbar-social a { transition: color .2s; }
.topbar-social a:hover { color: var(--c-blue); }

/* ---------- 6. Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.navbar { padding: .85rem 0; }

.navbar-brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--grad-brand); color: #fff;
    display: grid; place-items: center; font-size: 1.4rem;
    box-shadow: 0 10px 22px -8px rgba(109, 74, 255, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--c-ink); }
.brand-sub  { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }

.navbar-nav .nav-link {
    font-family: var(--font-display); font-weight: 600; color: var(--c-ink);
    padding: .5rem .95rem; border-radius: 10px; position: relative;
}
.navbar-nav .nav-link:hover { color: var(--c-purple); }
.navbar-nav .nav-link.active { color: var(--c-purple); }
.navbar-nav .nav-link.active::after {
    content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .15rem;
    height: 3px; border-radius: 3px; background: var(--grad-brand);
}
.navbar-toggler { border: none; font-size: 1.6rem; color: var(--c-purple); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- 7. Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--grad-soft);
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .hero-lead { font-size: 1.18rem; color: var(--c-body); max-width: 33rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-trust { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--c-muted); font-size: .92rem; }
.hero-avatars { display: flex; }
.hero-avatars img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; margin-left: -12px; box-shadow: var(--shadow-sm);
}
.hero-avatars img:first-child { margin-left: 0; }

.hero-visual { position: relative; }
.hero-visual .hero-img {
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.hero-badge {
    position: absolute; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem;
}
.hero-badge .hb-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.hero-badge .hb-num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--c-ink); line-height: 1; }
.hero-badge .hb-label { font-size: .78rem; color: var(--c-muted); }
.hero-badge.top-left { top: 8%; left: -4%; }
.hero-badge.bottom-right { bottom: 9%; right: -5%; }

/* Floating blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; pointer-events: none; }
.blob-1 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(109,74,255,.35), transparent 70%); top: -80px; right: -60px; }
.blob-2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,93,143,.3), transparent 70%); bottom: -60px; left: -40px; }

.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim.delay { animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- 8. Page banner (interior pages) ---------- */
.page-banner {
    position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background: var(--grad-cool); color: #fff; overflow: hidden; text-align: center;
}
.page-banner::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% -20%, rgba(255,255,255,.25), transparent 45%);
}
.page-banner h1 { color: #fff; position: relative; }
.page-banner p { color: rgba(255,255,255,.9); max-width: 600px; margin: .8rem auto 0; position: relative; font-size: 1.1rem; }
.breadcrumbs { position: relative; display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; color: rgba(255,255,255,.8); margin-top: 1.2rem; }
.breadcrumbs a { color: #fff; }

/* ---------- 9. Cards ---------- */
.card-soft {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
/* Use .h-100 (Bootstrap) on cards that should fill an equal-height grid row.
   The base card must NOT force height:100%, or stacked cards in a single
   column collapse and overflow onto the next section. */
.card-soft:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.icon-badge {
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
    font-size: 1.6rem; color: #fff; margin-bottom: 1.2rem;
}
.ib-purple { background: var(--grad-cool); }
.ib-pink   { background: var(--grad-warm); }
.ib-green  { background: linear-gradient(135deg, #22c08a, #38bdf8); }
.ib-soft-purple { background: var(--c-bg-lav); color: var(--c-purple); }
.ib-warning { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }

/* Program card */
.program-card { position: relative; }
.program-card .pc-media { height: 190px; overflow: hidden; }
.program-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program-card:hover .pc-media img { transform: scale(1.08); }
.program-card .pc-body { padding: 1.6rem; }
.program-card .pc-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: #fff; color: var(--c-purple); font-size: 1.4rem; box-shadow: var(--shadow);
    margin-top: -46px; position: relative; z-index: 2; border: 1px solid var(--c-line);
}
.program-card h3 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.arrow-link { font-family: var(--font-display); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.arrow-link i { transition: transform .25s ease; }
.arrow-link:hover i { transform: translateX(4px); }

/* ---------- 10. Stats ---------- */
.stats-band { background: var(--c-ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.2rem, 4vw, 3.2rem); position: relative; overflow: hidden; }
.stats-band::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 0% 0%, rgba(109,74,255,.4), transparent 40%), radial-gradient(circle at 100% 100%, rgba(255,93,143,.35), transparent 40%); }
.stat-item { position: relative; text-align: center; }
.stat-item .stat-icon { font-size: 1.8rem; color: var(--c-blue); margin-bottom: .5rem; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; background: linear-gradient(135deg,#fff, #c9b8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: .4rem; }

/* ---------- 11. Campaign / progress ---------- */
.progress-thin { height: 10px; border-radius: 100px; background: var(--c-line); overflow: hidden; }
.progress-thin .bar { height: 100%; border-radius: 100px; background: var(--grad-cool); width: 0; transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.progress-thin .bar.warm { background: var(--grad-warm); }
.progress-thin .bar.green { background: linear-gradient(135deg,#22c08a,#38bdf8); }
.campaign-meta { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.campaign-meta .raised { color: var(--c-purple); }
.tag {
    display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .72rem;
    letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px;
    background: var(--c-pink-soft); color: var(--c-pink);
}

/* ---------- 12. Story cards ---------- */
.story-card { display: grid; grid-template-columns: 1fr; }
.story-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); }
.story-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.story-feature .sf-body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.story-quote { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--c-ink); font-style: italic; position: relative; }
.story-quote::before { content: '“'; font-size: 3.5rem; color: var(--c-pink); line-height: 0; position: relative; top: .4rem; margin-right: .2rem; }

/* ---------- 13. Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); height: 100%; }
.testimonial-card .stars { color: var(--c-amber); margin-bottom: .8rem; }
.testimonial-card .t-quote { color: var(--c-ink); font-size: 1.02rem; }
.testimonial-card .t-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }

/* ---------- 14. Events ---------- */
.event-card { display: flex; gap: 1.2rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); padding: 1.1rem; transition: transform .3s, box-shadow .3s; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-date { flex: 0 0 76px; height: 84px; border-radius: 16px; background: var(--grad-soft); display: grid; place-items: center; text-align: center; align-content: center; }
.event-date .d { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--c-purple); line-height: 1; }
.event-date .m { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.event-meta { font-size: .86rem; color: var(--c-muted); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- 15. Blog ---------- */
.post-card { background:#fff; border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--c-line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; height:100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .pm { height: 210px; overflow:hidden; position: relative; }
.post-card .pm img { width:100%; height:100%; object-fit:cover; transition: transform .6s; }
.post-card:hover .pm img { transform: scale(1.07); }
.post-card .pm .tag { position:absolute; top:1rem; left:1rem; background:#fff; color:var(--c-purple); }
.post-body { padding: 1.5rem; }
.post-meta { font-size:.82rem; color:var(--c-muted); display:flex; gap:1rem; margin-bottom:.6rem; }

/* ---------- 16. Forms ---------- */
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--c-line); padding: .8rem 1rem; font-size: .98rem; }
.form-control:focus, .form-select:focus { border-color: var(--c-purple); box-shadow: 0 0 0 4px rgba(109,74,255,.12); }
.form-label { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); margin-bottom: .4rem; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.8rem); border: 1px solid var(--c-line); }

/* Donation amount chips */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: .8rem; }
.amount-chip { position: relative; }
.amount-chip input { position: absolute; opacity: 0; }
.amount-chip label { display: block; text-align: center; padding: 1rem .5rem; border-radius: 16px; border: 1.5px solid var(--c-line); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--c-ink); cursor: pointer; transition: all .2s; }
.amount-chip input:checked + label { border-color: var(--c-purple); background: var(--c-bg-lav); color: var(--c-purple); box-shadow: 0 0 0 4px rgba(109,74,255,.1); }
.freq-toggle { display:inline-flex; background: var(--c-bg-soft); border-radius:100px; padding:.3rem; gap:.3rem; }
.freq-toggle label { padding:.5rem 1.4rem; border-radius:100px; cursor:pointer; font-family:var(--font-display); font-weight:600; color:var(--c-muted); }
.freq-toggle input { display:none; }
.freq-toggle input:checked + label { background:#fff; color:var(--c-purple); box-shadow: var(--shadow-sm); }

/* ---------- 17. Accordion (FAQ) ---------- */
.accordion-item { border: 1px solid var(--c-line); border-radius: var(--radius) !important; margin-bottom: 1rem; overflow: hidden; background:#fff; }
.accordion-button { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); padding: 1.2rem 1.4rem; }
.accordion-button:not(.collapsed) { background: var(--c-bg-lav); color: var(--c-purple); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-body { color: var(--c-body); padding-top: 0; }

/* ---------- 18. Timeline (milestones) ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline::before { content:''; position:absolute; left: 50%; top:0; bottom:0; width:3px; background: var(--c-line); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 1rem 2.4rem; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-dot { position:absolute; top: 1.6rem; width: 18px; height: 18px; border-radius:50%; background: var(--grad-brand); border:3px solid #fff; box-shadow: var(--shadow-sm); }
.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }
.tl-year { font-family: var(--font-display); font-weight:800; color: var(--c-purple); font-size:1.3rem; }
.tl-card { background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); padding:1.3rem; box-shadow: var(--shadow-sm); display:inline-block; text-align:left; }

/* ---------- 19. Team ---------- */
.team-card { text-align:center; }
.team-photo { border-radius: var(--radius-lg); overflow:hidden; position:relative; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.team-photo img { width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-social { position:absolute; inset:auto 0 0 0; padding:1rem; display:flex; gap:.5rem; justify-content:center; background:linear-gradient(transparent, rgba(26,22,51,.7)); opacity:0; transition:opacity .3s; }
.team-card:hover .team-social { opacity:1; }
.team-social a { width:36px;height:36px;border-radius:50%;background:#fff;color:var(--c-purple);display:grid;place-items:center; }

/* ---------- 20. Partners marquee ---------- */
.partner-logo { display:flex; align-items:center; justify-content:center; height:90px; background:#fff; border:1px solid var(--c-line); border-radius: var(--radius); transition: all .3s; padding:.8rem 1rem; }
.partner-logo:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: var(--c-purple); }
.partner-logo svg { width:100%; max-width:150px; height:auto; }
.partner-logo img { max-width:100%; max-height:42px; object-fit:contain; }

/* ---------- 21. Emergency banner ---------- */
.support-banner { background: var(--grad-warm); color:#fff; border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.4rem); display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; box-shadow: var(--shadow); }
.support-banner .sb-icon { font-size:2.4rem; }

/* ---------- 22. CTA + newsletter ---------- */
.cta-banner { padding: clamp(2rem,5vw,3rem) 0; }
.cta-inner { background: var(--c-ink); color:#fff; border-radius: var(--radius-xl); padding: clamp(2.2rem,5vw,3.6rem); display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; position:relative; overflow:hidden; }
.cta-inner::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 90% 10%, rgba(255,93,143,.4), transparent 40%), radial-gradient(circle at 0% 100%, rgba(109,74,255,.45), transparent 45%); }
.cta-text { position:relative; max-width: 40rem; }
.cta-text h2 { color:#fff; margin-bottom:.6rem; }
.cta-text p { color: rgba(255,255,255,.82); margin-bottom:0; }
.cta-actions { position:relative; display:flex; gap:1rem; flex-wrap:wrap; }

.newsletter-section { padding: 0 0 clamp(3rem,6vw,5rem); }
.newsletter-card { background: var(--grad-soft); border:1px solid var(--c-line); border-radius: var(--radius-xl); padding: clamp(2rem,5vw,3.4rem); }

/* ---------- 23. Footer ---------- */
.site-footer { background: #14112b; color: rgba(255,255,255,.7); padding: clamp(3rem,6vw,5rem) 0 2rem; }
.footer-brand { display:flex; align-items:center; gap:.7rem; margin-bottom:1.2rem; }
.footer-brand .brand-name { color:#fff; font-size:1.4rem; }
.footer-about { font-size:.95rem; max-width: 22rem; }
.site-footer h5 { color:#fff; font-size:1.05rem; margin-bottom:1.2rem; }
.footer-links, .footer-contact { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.7rem; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color:#fff; padding-left:4px; }
.footer-contact li { display:flex; gap:.7rem; margin-bottom:.9rem; align-items:flex-start; }
.footer-contact i { color: var(--c-blue); margin-top:.2rem; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-social a, .topbar-social a { width:38px;height:38px; }
.footer-social a { display:grid; place-items:center; border-radius:50%; background: rgba(255,255,255,.08); color:#fff; transition: all .25s; }
.footer-social a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:3rem; padding-top:1.6rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-size:.88rem; }
.footer-legal { list-style:none; display:flex; gap:1.4rem; padding:0; margin:0; }
.footer-legal a { color: rgba(255,255,255,.6); }
.footer-legal a:hover { color:#fff; }

/* ---------- 24. Back to top ---------- */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 50px; height:50px; border-radius:50%; border:none; background: var(--grad-brand); color:#fff; font-size:1.2rem; box-shadow: var(--shadow); opacity:0; visibility:hidden; transform: translateY(12px); transition: all .3s; z-index: 1040; }
.back-to-top.show { opacity:1; visibility:visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

.whatsapp-float { position:fixed; bottom:84px; left:24px; width:56px; height:56px; border-radius:50%; background:#25d366; color:#fff; font-size:1.7rem; display:grid; place-items:center; box-shadow: 0 4px 16px rgba(37,211,102,.4); z-index:1040; transition: all .25s; text-decoration:none; animation: wa-pulse 2s ease-in-out infinite; }
.whatsapp-float:hover { transform: scale(1.1); color:#fff; box-shadow: 0 6px 20px rgba(37,211,102,.5); }
.whatsapp-float i { line-height:1; }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 24px rgba(37,211,102,.7); } }

/* ---------- 25. Misc utilities ---------- */
.check-list { list-style:none; padding:0; margin:0; }
.check-list li { display:flex; gap:.7rem; margin-bottom:.85rem; align-items:flex-start; }
.check-list li i { color: var(--c-green); font-size:1.2rem; margin-top:.15rem; flex-shrink:0; }
.divider-wave { display:block; width:100%; height:auto; }
.ratio-cover img { width:100%; height:100%; object-fit:cover; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow) !important; }
.feature-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width:100%; object-fit:cover; }

/* alert / flash */
.flash { border-radius: var(--radius); padding: 1rem 1.2rem; display:flex; gap:.7rem; align-items:center; }
.flash-success { background: var(--c-green-soft); color: #0f7a56; border:1px solid #bfe9d8; }

/* ---------- 25b. Founder's message ---------- */
.founder-video { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #0d0a1f; }
.founder-video video { display: block; width: 100%; height: auto; }
.fv-badge { position: absolute; top: 16px; left: 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: .6rem .9rem; display: flex; align-items: center; gap: .7rem; }
.fv-badge .fv-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: var(--grad-warm); }
.fv-badge .fv-num { font-family: var(--font-display); font-weight: 800; color: var(--c-ink); line-height: 1; }
.fv-badge .fv-label { font-size: .74rem; color: var(--c-muted); }
.founder-message p { color: var(--c-body); }
.founder-message p.lead-tight { color: var(--c-ink); }
.mission-callout { background: #fff; border: 1px solid var(--c-line); border-left: 5px solid var(--c-purple); border-radius: var(--radius); padding: 1.3rem 1.6rem; box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 600; font-style: italic; color: var(--c-ink); font-size: 1.1rem; line-height: 1.5; margin: 1.4rem 0; }
.mission-callout .mc-label { display: block; font-style: normal; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-purple); margin-bottom: .5rem; }
.founder-sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--c-line); }
.founder-sign img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: var(--shadow-sm); }
.founder-sign .fs-name { font-family: var(--font-display); font-weight: 800; color: var(--c-ink); font-size: 1.1rem; line-height: 1.1; }
.founder-sign .fs-role { color: var(--c-muted); font-size: .9rem; }

/* ---------- 25c. Stories of Hope (list cards) ---------- */
.hope-list { max-width: 980px; margin: 0 auto; }
.hope-item { margin-bottom: 1.6rem; }
.hope-card { display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.hope-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hope-card .hc-media { overflow: hidden; min-height: 240px; }
.hope-card .hc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s ease; }
.hope-card:hover .hc-media img { transform: scale(1.06); }
.hc-body { padding: 1.7rem 1.8rem; display: flex; flex-direction: column; justify-content: center; }
.hc-cats { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.hc-cat { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-purple); }
.hc-cat:not(:last-child)::after { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--c-pink); margin-left: .6rem; vertical-align: middle; }
.hc-title { font-size: 1.4rem; line-height: 1.25; margin: 0 0 .5rem; }
.hc-title a { color: var(--c-ink); }
.hc-title a:hover { color: var(--c-purple); }
.hc-date { color: var(--c-muted); font-size: .85rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .4rem; }
.hc-excerpt { color: var(--c-body); margin-bottom: 1rem; }
.hope-full-inner { background: var(--grad-soft); border: 1px solid var(--c-line); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 1.6rem 2rem 1.8rem; }
.hope-full-inner .story-quote { font-size: 1.15rem; margin-bottom: 1rem; }
.hope-card.is-open { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

@media (max-width: 767px) {
    .hope-card { grid-template-columns: 1fr; }
    .hope-card .hc-media { min-height: 200px; max-height: 240px; }
    .hc-body { padding: 1.4rem; }
}

/* ---------- 25d. Donation: manual payment instructions ---------- */
.pay-instructions { background: var(--c-bg-lav); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.pay-details { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin: 0; color: var(--c-ink); background: transparent; border: 0; padding: 0; }
.pay-method-grid label { font-size: .82rem; padding: .8rem .4rem; }
.pay-method-grid .pm-label { display: block; line-height: 1.15; }
.form-error { background: var(--c-pink-soft); color: #b3224f; border: 1px solid #f3c6d5; border-radius: var(--radius); padding: .9rem 1.1rem; }
.form-success { background: var(--c-green-soft); color: #0f7a56; border: 1px solid #bfe9d8; border-radius: var(--radius); padding: .9rem 1.1rem; }

/* Card form (demonstration only) */
.card-demo-warning { display: flex; gap: .7rem; align-items: flex-start; background: #fff4dc; border: 1px solid #f2d68a; color: #8a5d00; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.3rem; font-size: .9rem; line-height: 1.45; }
.card-demo-warning i { font-size: 1.15rem; margin-top: .1rem; flex-shrink: 0; }
.cc-input { position: relative; }
.cc-input .cc-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-size: 1.15rem; pointer-events: none; }
.cc-input .cc-icon + .form-control { padding-left: 2.7rem; }
.cc-info { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; font-size: .68rem; cursor: help; }
.btn.btn-pay { background: linear-gradient(135deg, #22c08a, #1aa877); color: #fff; box-shadow: 0 12px 26px -10px rgba(34, 192, 138, .6); }
.btn.btn-pay:hover { color: #fff; transform: translateY(-2px); }

/* ---------- 26. Responsive ---------- */
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero .hero-lead { margin-left:auto; margin-right:auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual { max-width: 460px; margin: 0 auto; }
    .story-feature { grid-template-columns: 1fr; }
    .story-feature img { min-height: 260px; }
    /* Mobile nav panel: stack action buttons full-width so each becomes a
       comfortable ~48px tap target instead of two cramped side-by-side. */
    .navbar-collapse { background:#fff; border-radius: var(--radius); margin-top:1rem; padding:1rem; box-shadow: var(--shadow); }
    .navbar-nav .nav-link.active::after { display:none; }
    .navbar-nav .nav-item:last-child { flex-direction: column; align-items: stretch !important; gap: .6rem !important; }
    .navbar-nav .nav-item:last-child .btn { width: 100%; text-align: center; }
    .timeline::before { left: 18px; }
    .tl-item { width:100%; left:0 !important; text-align:left !important; padding-left: 3rem; padding-right:0; }
    .tl-item .tl-dot { left: 9px !important; right:auto !important; }
    .tl-card { display:block; }
}

@media (max-width: 575px) {
    /* Reintroduce the floating hero stats on phones instead of hiding them.
       Pin them just inside the image so the proof points stay visible. */
    .hero-badge {
        padding: .7rem .9rem;
        gap: .6rem;
        font-size: .9rem;
    }
    .hero-badge .hb-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .hero-badge .hb-num { font-size: 1.05rem; }
    .hero-badge .hb-label { font-size: .7rem; }
    .hero-badge.top-left { top: 4%; left: 2%; }
    .hero-badge.bottom-right { bottom: 4%; right: 2%; }
    .hero-actions .btn,
    .cta-actions .btn { flex: 1 1 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .cta-inner, .support-banner { text-align:center; justify-content:center; }
    .cta-actions, .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { width: 100%; }
    /* Donation summary + submit row: stack and center once it wraps. */
    #donationForm .d-flex.justify-content-between { justify-content: center; text-align: center; }
    .footer-bottom { flex-direction:column; text-align:center; }
    .footer-legal { justify-content:center; flex-wrap: wrap; }
}

/* Very small phones (≤360px) — stop fluid scales from crowding and keep
   primary actions readable. */
@media (max-width: 360px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section-pad { padding: 3rem 0; }
    .section-pad-sm { padding: 2.25rem 0; }
    .hero { padding: 2.5rem 0 3.5rem; }
    .hero-badge { display: none; } /* truly tiny: drop the floating chips */
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Landscape phones — short viewport, so shrink the hero so CTAs stay
   visible without scrolling. */
@media (max-width: 991px) and (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 2rem 0 2.5rem; }
    .hero h1 { font-size: 2rem; margin-bottom: .75rem; }
    .hero .hero-lead { font-size: 1rem; margin-bottom: 1rem; }
    .hero-grid { gap: 1.5rem; }
}

/* ---------- 26b. Safe areas & anchor offset ---------- */
/* Account for notched / rounded phone edges and the iPhone home indicator
   on pinned UI. Requires viewport-fit=cover (set in head.php). */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-header { /* no left/right inset needed; navbar is centered */ }
    .back-to-top {
        right: calc(24px + env(safe-area-inset-right));
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .navbar-collapse { margin-bottom: env(safe-area-inset-bottom); }
    /* When the mobile nav menu is open it can cover the home indicator;
       let its bottom padding absorb the inset. */
}

/* Sticky-header offset for in-page hash links (e.g. stories.php#slug,
   index.php#founder-message) so targets aren't hidden behind the bar. */
:target { scroll-margin-top: 96px; }
section[id] { scroll-margin-top: 90px; }

/* ---- Auth tabs (register/login on donate page) ---- */
.auth-box { background: var(--c-bg-soft); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--c-line); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 1.2rem; background: #fff; border-radius: 100px; padding: .25rem; border: 1px solid var(--c-line); }
.auth-tab { flex: 1; padding: .5rem 1rem; border: none; background: transparent; border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--c-muted); cursor: pointer; transition: all .2s; }
.auth-tab:hover { color: var(--c-ink); }
.auth-tab.active { background: var(--c-purple); color: #fff; box-shadow: 0 2px 8px rgba(109,74,255,.25); }
.auth-pane input { background: #fff; }

/* ---- Donation processing overlay (shown between "Pledge" and thank-you) ---- */
.donation-loader {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: center; justify-content: center;
    background: rgba(26, 22, 51, .78);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.donation-loader.show { display: flex; }
.donation-loader .dl-inner { text-align: center; color: #fff; padding: 2rem 1.5rem; max-width: 340px; }
.donation-loader .dl-spinner {
    width: 58px; height: 58px; margin: 0 auto 1.4rem;
    border: 4px solid rgba(255, 255, 255, .22);
    border-top-color: #9d6bff;
    border-radius: 50%;
    animation: dl-spin .8s linear infinite;
}
@keyframes dl-spin { to { transform: rotate(360deg); } }
.donation-loader .dl-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 0 0 .35rem; }
.donation-loader .dl-sub { font-size: .95rem; opacity: .82; margin: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
