/* ===== جمعية الأنامل البيضاء — theme ===== */
:root {
    --navy: #17456b;
    --navy-d: #0f3050;
    --navy-l: #2e6a99;
    --gold: #c8a24a;
    --gold-d: #a9863a;
    --ink: #1d2430;
    --muted: #5c6673;
    --line: #e3e8ee;
    --bg: #ffffff;
    --bg-soft: #f4f7fa;
    --radius: 14px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.rtl {
    background: var(--bg);
    color: var(--ink);
    font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    direction: rtl;
}
h1, h2, h3, h4 { font-family: "Cairo", "Tajawal", sans-serif; line-height: 1.35; margin: 0 0 .5em; color: var(--navy-d); }
a { color: var(--navy-l); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { color: var(--gold-d); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 18px; color: var(--muted); }

/* buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    background: var(--navy); color: #fff; border: 0; border-radius: 999px;
    padding: 12px 26px; font: inherit; font-weight: 700; cursor: pointer;
    transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-d); color: #fff; transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: #23324a; }
.btn.gold:hover { background: var(--gold-d); color: #23324a; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.lg { padding: 15px 34px; font-size: 17px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* header */
.site-head {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-d); font-family: "Cairo", sans-serif; }
.brand img { height: 46px; width: auto; }
.brand .b-sub { font-size: 12px; color: var(--muted); font-weight: 500; display: block; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a.on { background: var(--bg-soft); color: var(--navy); }
.nav .btn { margin-inline-start: 6px; }
.burger { display: none; margin-inline-start: auto; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%);
    color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; font-size: 42px; margin-bottom: .3em; }
.hero p { font-size: 19px; color: #d7e4ef; max-width: 620px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn.ghost:hover { background: #fff; color: var(--navy); }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* cards + grid */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
}
.card .card-img { aspect-ratio: 16 / 10; background: var(--bg-soft) center/cover no-repeat; }
.card .card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #eef3f8; color: var(--navy); }
.chip.done { background: #e7f5ec; color: #1f7a44; }

/* progress */
.progress { margin-top: 6px; }
.progress .bar { height: 10px; border-radius: 999px; background: #e9eef3; overflow: hidden; }
.progress .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-d)); border-radius: 999px; }
.progress .pmeta { display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 8px; }
.progress .pmeta b { color: var(--navy-d); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats .n { font-family: "Cairo", sans-serif; font-size: 34px; font-weight: 900; color: var(--navy); }
.stats .l { color: var(--muted); font-size: 14px; }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
    font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-l); }
.field .required { color: #c23; }
.amount-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.amount-chips button {
    border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px;
    font: inherit; font-weight: 700; cursor: pointer; color: var(--navy);
}
.amount-chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.form-note { font-size: 13px; color: var(--muted); }
.form-err { color: #c23; font-size: 14px; margin-top: 8px; }

/* donor wall */
.wall { display: grid; gap: 12px; }
.wall .d { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; }
.wall .d .who { font-weight: 700; }
.wall .d .msg { color: var(--muted); font-size: 14px; }
.wall .d .amt { color: var(--gold-d); font-weight: 800; white-space: nowrap; }

/* milestones */
.miles { display: grid; gap: 14px; }
.mile { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.mile .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* footer */
.site-foot { background: var(--navy-d); color: #cdd9e4; padding: 52px 0 28px; margin-top: 40px; }
.site-foot a { color: #cdd9e4; }
.site-foot a:hover { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-foot h4 { color: #fff; font-size: 16px; }
.site-foot .fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 18px; font-size: 13px; color: #9fb2c2; text-align: center; }

/* misc */
.pagehead { background: var(--bg-soft); padding: 46px 0; border-bottom: 1px solid var(--line); }
.pagehead h1 { margin: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin-top: 1.4em; }
.hide { display: none !important; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: sp .8s linear infinite; margin: 30px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
    .grid.c3, .grid.c2, .site-foot .cols { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; position: absolute; top: 74px; inset-inline: 0; background: #fff; flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
    .nav.open { display: flex; }
    .nav a { width: 100%; }
    .burger { display: block; }
    .hero h1 { font-size: 32px; }
}
