/* قاف للتنمية المجتمعية — site styles (design tokens taken from the approved 2026 design) */
:root{
  --ink:#10302D; --ink2:#3D5956; --muted:#4A6663; --line:#E3ECEB;
  --teal:#0E7C72; --teal-d:#0A5C55; --dark:#0B2624; --dark2:#12332F; --dark-line:#23463F;
  --mint:#2FB5A8; --mint-l:#7FDCD1; --mint-xl:#A7E3DB;
  --soft:#EEF6F5; --soft2:#E3F2F0; --sand:#F1ECE1; --bar:#E6EFEE; --chip:#C9D9D7;
  --on-dark:#C9DDDA; --on-dark2:#E4F0EE; --on-teal:#DDF1EE;
  --urgent-bg:#FCEBDD; --urgent:#A2400C; --danger:#B4232C;
  --f-h:"Changa",sans-serif; --f-b:"IBM Plex Sans Arabic",system-ui,sans-serif;
  --wrap:1240px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--f-b);color:var(--ink);background:#fff;font-size:17px;line-height:1.7}
html[lang=en] body{line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal)} a:hover{color:var(--teal-d)}
[hidden]{display:none!important}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
h1,h2,h3{font-family:var(--f-h);margin:0;line-height:1.2;text-wrap:balance}
h1{font-weight:800;font-size:clamp(38px,5.4vw,68px);line-height:1.12}
h2{font-weight:800;font-size:clamp(30px,4vw,46px)}
h3{font-weight:700;font-size:22px}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:24px}
.sec{padding-block:96px}
.sec--soft{background:var(--soft)} .sec--dark{background:var(--dark);color:#fff} .sec--teal{background:var(--teal);color:#fff}
.stack{display:flex;flex-direction:column;gap:32px}
.head{display:flex;flex-direction:column;gap:10px;max-width:700px}
.head p{color:var(--muted)}
.sec--dark .head p{color:var(--on-dark)}
.eyebrow{font-family:var(--f-h);font-weight:600;color:var(--teal);font-size:17px}
.sec--dark .eyebrow,.hero .eyebrow,.page-hero .eyebrow{color:var(--mint-l)}
.lead{font-size:19px;color:var(--ink2)}
.skip{position:absolute;inset-inline-start:12px;top:-60px;background:var(--dark);color:#fff;padding:10px 16px;border-radius:8px;z-index:100}
.skip:focus{top:12px}
.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:var(--f-h);font-weight:700;font-size:18px;text-decoration:none;padding:14px 30px;border-radius:999px;border:2px solid transparent;cursor:pointer;line-height:1.2;text-align:center}
.btn--teal{background:var(--teal);color:#fff} .btn--teal:hover{background:var(--teal-d);color:#fff}
.btn--mint{background:var(--mint);color:var(--dark)} .btn--mint:hover{background:var(--mint-l);color:var(--dark)}
.btn--white{background:#fff;color:var(--teal)} .btn--white:hover{background:var(--soft);color:var(--teal-d)}
.btn--line-w{background:transparent;color:#fff;border-color:#fff} .btn--line-w:hover{background:rgba(255,255,255,.12);color:#fff}
.btn--line{background:#fff;color:var(--teal);border-color:var(--teal)} .btn--line:hover{background:var(--soft2)}
.btn--lg{font-size:19px;padding:16px 34px}
.btn[disabled]{opacity:.6;cursor:progress}
.btns{display:flex;flex-wrap:wrap;gap:14px}
.more{font-family:var(--f-h);font-weight:700;text-decoration:none;font-size:18px}

/* header */
.top{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:50}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:14px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand img{height:52px;width:auto}
.brand span{display:flex;flex-direction:column;line-height:1.25}
.brand b{font-family:var(--f-h);font-size:21px;font-weight:700}
.brand small{font-size:13px;color:var(--muted)}
.nav{display:flex;align-items:center;gap:6px 20px;font-size:16px;font-weight:500}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 20px}
.nav ul a{color:var(--ink);text-decoration:none;white-space:nowrap}
.nav ul a:hover{color:var(--teal)}
.nav ul a[aria-current=page]{color:var(--teal);font-weight:700}
.nav-end{display:flex;align-items:center;gap:10px}
.wa-ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--soft2);flex-shrink:0}
.lang{font-family:var(--f-h);font-weight:600;font-size:15px;text-decoration:none;color:var(--ink);border:1.5px solid var(--chip);border-radius:999px;padding:8px 14px;white-space:nowrap}
.lang .s{display:none}
.lang:hover{border-color:var(--teal);color:var(--teal)}
.donate-btn{background:var(--teal);color:#fff;text-decoration:none;padding:10px 22px;border-radius:999px;font-weight:700;font-family:var(--f-h);white-space:nowrap}
.donate-btn:hover{background:var(--teal-d);color:#fff}
.burger{display:none;width:46px;height:46px;border-radius:12px;border:1.5px solid var(--chip);background:#fff;cursor:pointer;align-items:center;justify-content:center;padding:0}
.burger span,.burger span::before,.burger span::after{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px;position:relative;content:""}
.burger span::before{position:absolute;top:-6px}.burger span::after{position:absolute;top:6px}
@media (max-width:1150px){
  .burger{display:inline-flex}
  .nav ul{display:none;position:absolute;inset-inline:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;gap:0;padding:8px 24px 16px;box-shadow:0 12px 24px rgba(16,48,45,.08)}
  .nav ul.open{display:flex}
  .nav ul a{display:block;padding:12px 4px;border-bottom:1px solid var(--line);font-size:17px}
}
@media (max-width:520px){
  .brand small{display:none} .brand b{font-size:18px} .brand img{height:44px}
  .top .wrap{gap:8px} .nav-end{gap:6px} .donate-btn{padding:9px 16px;font-size:15px} .lang{padding:7px 10px;font-size:14px}
  .wa-ico{display:none}
  .brand b{font-size:15px;line-height:1.2} .brand{gap:8px;min-width:0} .brand span{min-width:0} .brand img{height:40px}
  .lang .l{display:none} .lang .s{display:inline}
}


/* hero */
.hero{position:relative;background:var(--dark);color:#fff;overflow:hidden}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(6,24,22,.88) 0%,rgba(6,24,22,.62) 45%,rgba(6,24,22,.15) 100%)}
html[dir=ltr] .hero::after{background:linear-gradient(90deg,rgba(6,24,22,.88) 0%,rgba(6,24,22,.62) 45%,rgba(6,24,22,.15) 100%)}
.hero .wrap{position:relative;z-index:1;padding-block:130px 120px;display:flex;flex-direction:column;gap:26px;align-items:flex-start}
.hero h1{max-width:760px}
.hero p{font-size:20px;max-width:600px;color:var(--on-dark2)}
.page-hero{background:var(--dark);color:#fff;position:relative;overflow:hidden}
.page-hero .wrap{padding-block:80px 72px;display:flex;flex-direction:column;gap:16px;position:relative;z-index:1}
.page-hero h1{font-size:clamp(34px,4.6vw,56px);max-width:860px}
.page-hero p{font-size:19px;max-width:720px;color:var(--on-dark2)}
.page-hero--img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.page-hero--img::after{content:"";position:absolute;inset:0;background:rgba(6,24,22,.78)}
.crumb{font-size:14px;color:var(--mint-l)} .crumb a{color:var(--on-dark)}

/* impact band */
.band{background:var(--teal);color:#fff}
.band .wrap{padding-block:34px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;text-align:center}
.band div{display:flex;flex-direction:column}
.band b{font-family:var(--f-h);font-size:52px;line-height:1.1}
.band b small{font-size:26px}
.band span{font-weight:600}

/* grids & cards */
.grid{display:grid;gap:22px}
.g-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.g-3{grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))}
.g-4{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.g-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:48px;align-items:center}
.box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;display:flex;flex-direction:column;gap:10px}
.sec--soft .box{border-color:transparent}
.box p{color:var(--ink2);font-size:16px}
.box .kicker{font-size:14px;color:var(--muted)}
.dbox{background:var(--dark2);border-radius:18px;padding:26px;display:flex;flex-direction:column;gap:10px}
.dbox p{color:var(--on-dark);font-size:15.5px}
.dbox .n{font-family:var(--f-h);font-size:40px;color:var(--mint-l);line-height:1;font-weight:700}
.pcard{border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;background:#fff}
.pcard img{width:100%;aspect-ratio:16/10;object-fit:cover}
.pcard .in{padding:26px;display:flex;flex-direction:column;gap:10px;flex:1}
.pcard p{color:var(--ink2)}
.pcard .pfoot{margin-top:auto;font-family:var(--f-h);color:var(--teal);font-size:19px;font-weight:700;text-decoration:none}
.tag{align-self:flex-start;background:var(--soft2);color:var(--teal);font-size:13px;font-weight:700;padding:4px 12px;border-radius:999px}
.photo{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:24px}
.icon{width:52px;height:52px;border-radius:14px;background:var(--soft2);display:grid;place-items:center}
.icon svg{width:26px;height:26px}

/* sponsorship cards */
.kcard{border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;background:#fff}
.kcard .kh{background:var(--soft2);padding:24px 22px;display:flex;align-items:center;gap:16px}
.kcard[data-g=f] .kh{background:var(--sand)}
.kcard .av{width:64px;height:64px;border-radius:50%;background:#fff;display:grid;place-items:center;flex-shrink:0}
.kcard .kh b{font-family:var(--f-h);font-size:20px;font-weight:700;display:block}
.kcard .kh span{font-size:14px;color:var(--ink2)}
.kcard .kb{padding:20px 22px 22px;display:flex;flex-direction:column;gap:14px;flex:1}
.kcard .kb>p{color:var(--ink2);font-size:15.5px}
.urgent{align-self:flex-start;background:var(--urgent-bg);color:var(--urgent);font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.done-tag{align-self:flex-start;background:var(--soft2);color:var(--teal);font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.prog{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.prog .row{display:flex;justify-content:space-between;font-size:14px}
.prog .row span:last-child{color:var(--muted)}
.bar{height:10px;border-radius:999px;background:var(--bar);overflow:hidden}
.bar i{display:block;height:100%;border-radius:999px;background:var(--teal)}
.prog small{font-size:13px;color:var(--muted)}
.kbtns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kbtns a{text-align:center;text-decoration:none;padding:12px 10px;border-radius:12px;font-weight:700;font-family:var(--f-h)}
.kbtns a:first-child{background:var(--teal);color:#fff}
.kbtns a:last-child{background:#fff;color:var(--teal);border:1.5px solid var(--teal);padding:11px 10px}
.flt{font:inherit;font-weight:600;font-size:15px;padding:10px 18px;min-height:44px;border-radius:999px;cursor:pointer;border:1.5px solid var(--chip);background:#fff;color:var(--ink)}
.flt[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.headrow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px}
.note-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.note-row p{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.empty{border:1.5px dashed var(--chip);border-radius:18px;padding:30px;text-align:center;color:var(--muted)}

/* split money bar */
.split{display:flex;height:64px;border-radius:16px;overflow:hidden;font-family:var(--f-h);font-weight:700}
.split div{display:flex;align-items:center;color:var(--dark)}
.split div:first-child{flex:80;background:var(--mint);padding:0 22px;font-size:20px}
.split div:last-child{flex:20;background:var(--mint-xl);justify-content:center;padding:0 10px;font-size:15px}
@media (max-width:560px){.split{height:auto;flex-direction:column}.split div{padding:14px 18px!important;font-size:16px!important;justify-content:flex-start!important}}

/* story */
blockquote{margin:0;font-family:var(--f-h);font-weight:600;font-size:clamp(24px,3vw,32px);line-height:1.45}

/* gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.gallery figure{margin:0;display:flex;flex-direction:column;gap:8px}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
.gallery figcaption{font-size:15px;color:var(--on-dark)}
.sec:not(.sec--dark) .gallery figcaption{color:var(--muted)}

/* values list */
.vals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.vals div{background:#fff;padding:24px;display:flex;flex-direction:column;gap:6px}
.vals b{font-family:var(--f-h);font-size:20px;display:flex;align-items:center;gap:10px}
.vals b::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--mint);flex-shrink:0}
.vals p{color:var(--ink2);font-size:15.5px}

/* news */
.news{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.news img{width:100%;aspect-ratio:16/9;object-fit:cover}
.news .in{padding:22px;display:flex;flex-direction:column;gap:8px}
.news time{font-size:14px;color:var(--muted)}
.news p{color:var(--ink2);font-size:16px;white-space:pre-line}

/* donate */
.pay{background:#fff;color:var(--ink);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:6px}
.pay>b{font-family:var(--f-h);font-size:20px}
.pay .big{font-family:var(--f-h);font-size:24px;font-weight:700;letter-spacing:.5px;direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .pay .big{text-align:right}
.pay small{font-size:14px;color:var(--ink2)}
.copy{align-self:flex-start;font:inherit;font-size:14px;font-weight:600;border:1.5px solid var(--teal);color:var(--teal);background:var(--soft2);border-radius:999px;padding:6px 14px;cursor:pointer;margin-top:4px}
.steps{counter-reset:s;display:grid;gap:14px;padding:0;margin:0;list-style:none}
.steps li{display:flex;gap:14px;align-items:flex-start}
.steps li::before{counter-increment:s;content:counter(s);width:36px;height:36px;border-radius:50%;background:var(--teal);color:#fff;font-family:var(--f-h);font-weight:700;display:grid;place-items:center;flex-shrink:0}

/* forms */
.form{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(22px,4vw,36px);display:flex;flex-direction:column;gap:18px;position:relative}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}
.fgrid .full{grid-column:1/-1}
@media (max-width:640px){.fgrid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0;min-width:0}
.field label,.field legend{font-weight:600;font-size:15px;padding:0}
.req{color:var(--danger)} .opt{color:var(--muted);font-weight:400;font-size:13px}
input[type=text],input[type=tel],input[type=email],select,textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--soft);border:1.5px solid var(--chip);border-radius:12px;padding:11px 14px;min-height:50px;width:100%}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(47,181,168,.25)}
[aria-invalid=true]{border-color:var(--danger)!important}
input[type=tel],input[type=email]{direction:ltr}
html[dir=rtl] input[type=tel],html[dir=rtl] input[type=email]{text-align:right}
.hint{font-size:13px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{display:inline-flex;align-items:center;min-height:42px;padding:6px 16px;border-radius:999px;border:1.5px solid var(--chip);background:#fff;cursor:pointer;font-size:15px}
.chip input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}
.chip input:focus-visible+span{outline:3px solid var(--mint);outline-offset:2px}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.consent input{width:20px;height:20px;margin-top:5px;accent-color:var(--teal);flex-shrink:0}
.hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}
.status{display:none;padding:14px 16px;border-radius:12px;font-weight:500}
.status.ok{display:block;background:var(--soft2);color:var(--teal-d);border:1px solid var(--mint-xl)}
.status.err{display:block;background:#FDECEE;color:#7F1820;border:1px solid #F3C2C7}
.contact-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.contact-list li{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.contact-list .icon{width:44px;height:44px;flex-shrink:0}
.contact-list strong{display:block;font-size:13px;color:var(--muted);font-weight:600}
.contact-list a,.contact-list span.v{font-weight:600;text-decoration:none;color:var(--ink)}

/* prose */
.prose{max-width:780px;display:flex;flex-direction:column;gap:16px}
.prose h2{font-size:26px;margin-top:18px}
.prose p,.prose li{color:var(--ink2)}

/* footer */
.foot{background:var(--dark);color:var(--on-dark)}
.foot .cols{padding-block:64px 36px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px}
.foot .col{display:flex;flex-direction:column;gap:6px;font-size:15px}
.foot .col>b{color:#fff;font-family:var(--f-h);font-size:17px;margin-bottom:4px}
.foot a{color:var(--on-dark);text-decoration:none} .foot a:hover{color:#fff;text-decoration:underline}
.foot .logo{display:flex;align-items:center;gap:12px}
.foot .logo span{background:#fff;border-radius:12px;padding:8px 10px;display:inline-flex}
.foot .logo img{height:40px;width:auto}
.foot .logo b{font-family:var(--f-h);color:#fff;font-size:20px}
.foot .soc{display:inline-flex;align-items:center;gap:8px}
.foot .base{padding-block:18px 30px;border-top:1px solid var(--dark-line);font-size:13px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}

@media (max-width:700px){.sec{padding-block:72px}.hero .wrap{padding-block:96px 88px}.page-hero .wrap{padding-block:60px 52px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media (max-width:700px){.band .wrap{grid-template-columns:repeat(2,1fr);gap:22px 12px}.band b{font-size:42px}}
@media (max-width:700px){.hero::after,html[dir=ltr] .hero::after{background:rgba(6,24,22,.74)}}

/* volunteer portal button (team.qafjo.com) */
.team-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-family:var(--f-h);font-weight:600;font-size:15px;text-decoration:none;color:var(--teal);border:1.5px solid var(--teal);border-radius:999px;padding:8px 14px;min-height:44px;white-space:nowrap;flex-shrink:0}
.team-btn:hover{background:var(--soft2);color:var(--teal-d)}
.team-btn svg{flex-shrink:0}
/* desktop: the menu fills the header, so the login link sits in a slim bar above it */
.util{display:none;background:var(--dark);font-size:14px}
.util .wrap{display:flex;justify-content:flex-end;align-items:center;min-height:36px}
.util a{display:inline-flex;align-items:center;gap:6px;color:#fff;text-decoration:none;font-family:var(--f-h);font-weight:600;padding-block:4px}
.util a:hover{color:var(--mint-l)}
@media (min-width:1151px){.util{display:block}.team-btn{display:none}}
.menu-team{display:none}
@media (max-width:1150px){.nav ul .menu-team{display:block}.nav ul .menu-team a{display:flex;align-items:center;gap:8px;color:var(--teal);font-weight:700;border-bottom:0}}
@media (max-width:520px){.team-btn{display:none}}
.team-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;background:var(--soft);border-radius:18px;padding:22px 26px}
.team-strip>div{display:flex;flex-direction:column;gap:4px;max-width:640px}
.team-strip b{font-family:var(--f-h);font-size:21px;font-weight:700}
.team-strip p{color:var(--ink2);font-size:16px}
