/* صفحة عن الجمعية — تبني على styles.css */

/* رأس الصفحة */
.page-hero {
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(205, 227, 211, .55), transparent 60%),
    linear-gradient(180deg, var(--mint-50), var(--surface));
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 88px);
}
.page-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
.crumbs { display: flex; gap: 10px; font-size: var(--small); color: var(--ink-3); }
.crumbs a { color: var(--accent); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.35; margin-top: 18px; max-width: 15em; }
.page-hero-text > p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 31em; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  padding: 8px 16px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--mint-200); font-size: 14px; font-weight: 500; color: var(--accent-strong);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.jump a:hover { background: var(--green); color: var(--white); box-shadow: none; }
.page-hero-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 30%;
  border-radius: 200px 32px 200px 32px; box-shadow: var(--shadow);
}

/* قصتنا */
.story-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
.story-text > p:not(.kicker) { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 31em; }
.story-quote { position: relative; padding: 40px 36px 32px; border-radius: var(--r-lg); background: var(--sand-50); box-shadow: inset 0 0 0 1px var(--sand-100); }
.quote-mark { position: absolute; top: -22px; inset-inline-start: 32px; width: 52px; height: 52px; padding: 10px; border-radius: 16px; background: var(--gold); fill: var(--white); }
.story-quote blockquote { margin: 0; font-family: var(--f-head); font-size: 21px; font-weight: 500; line-height: 1.75; color: var(--ink); }
.story-quote figcaption { margin-top: 16px; font-size: 14px; color: var(--brown); }

/* الرؤية والرسالة */
.vm-band { background: var(--green-800); padding-block: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.vm-band::before { content: ""; position: absolute; inset-block: -30%; inset-inline-end: -4%; width: 34%; background: url("assets/brand/mark-white.svg") no-repeat center / contain; opacity: .05; }
.vm-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { padding: 32px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vm-card-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gold); color: var(--green-900); margin-bottom: 18px; }
.vm-card h2 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.vm-card p { color: #D7E8DC; font-size: 17px; }

/* القيم */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 24px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--mint-200); }
.value:first-child { display: flex; flex-direction: column; justify-content: flex-end; background: var(--green); box-shadow: none; }
.value:first-child h3 { color: var(--white); font-size: 24px; }
.value:first-child p { color: #D7E8DC; font-size: 16px; }
.value:first-child .value-ic { background: rgba(255, 255, 255, .14); color: var(--white); margin-bottom: auto; }
.value-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--mint-100); color: var(--accent); margin-bottom: 16px; }
.value h3 { margin-bottom: 4px; }
.value p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* مستهدفات الخطة */
.targets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.targets li { display: grid; padding: 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--mint-200); }
.targets b { font-family: var(--f-head); font-size: 20px; color: var(--accent); line-height: 1.3; }
.targets span { font-size: 13px; color: var(--ink-2); }

/* شريط منزل منتصف الطريق واقتباس الأمير */
.halfway-strip {
  display: flex; align-items: center; gap: 20px; margin-bottom: 56px; padding: 22px 26px;
  border-radius: var(--r-lg); background: var(--green-900); color: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.halfway-strip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.halfway-strip-tag { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--green-800); font-size: 13.5px; font-weight: 600; }
.halfway-strip-body { flex: 1; display: grid; gap: 2px; }
.halfway-strip-body b { font-family: var(--f-head); font-size: 19px; }
.halfway-strip-body small { font-size: 14.5px; color: #C9DCCF; line-height: 1.7; max-width: 64ch; }
.halfway-strip-go { flex: none; font-size: 22px; color: var(--gold); transition: transform .3s var(--ease); }
.halfway-strip:hover .halfway-strip-go { transform: translateX(-5px); }
.emir-quote { margin: 20px 0 0; padding: 26px 30px; border-radius: var(--r-lg); background: var(--sand-50); box-shadow: inset 0 0 0 1px var(--sand-100); }
.emir-quote blockquote { margin: 0; max-width: 62ch; font-family: var(--f-head); font-weight: 500; font-size: 18px; line-height: 1.8; }
.emir-quote blockquote::before { content: "”"; margin-inline-end: 6px; color: var(--gold); font-size: 1.6em; line-height: 0; vertical-align: -.3em; }
.emir-quote figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* أهداف الجمعية العامة */
.aims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aims li { display: flex; align-items: flex-start; gap: 14px; padding: 22px; border-radius: var(--r-md); background: var(--mint-50); }
.aims .ic { width: 26px; height: 26px; color: var(--accent); margin-top: 3px; }
.aims p { font-size: 16px; line-height: 1.75; color: var(--ink); }

/* الأهداف */
.goals-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.goals-head { position: sticky; top: 120px; }
.goals-head > p:not(.kicker) { margin: 14px 0 26px; color: var(--ink-2); }
.goals-list { display: grid; gap: 12px; }
.goal { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.goal[open] { box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--mint-200); }
.goal summary {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none;
}
.goal summary::-webkit-details-marker { display: none; }
.goal summary::after {
  content: ""; margin-inline-start: auto; flex: none; width: 12px; height: 12px;
  border-inline-end: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.goal[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.goal-n { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--mint-100); color: var(--accent); font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.goal[open] .goal-n { background: var(--green); color: var(--white); }
.goal-t { display: grid; font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.5; }
.goal-t small { font-family: var(--f-body); font-weight: 500; font-size: 13.5px; color: var(--accent); }
.goal ul { display: grid; gap: 4px; padding: 0 22px 22px; padding-inline-start: 82px; }
.goal li { position: relative; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.goal li::before { content: ""; position: absolute; inset-inline-start: -18px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* من نخدم */
.serve-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
.serve-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px 200px 32px 200px; box-shadow: var(--shadow); }
.serve-cards { display: grid; gap: 14px; margin-top: 26px; }
.serve-card { padding: 22px 24px; border-radius: var(--r-md); background: var(--mint-50); }
.serve-card h3 { margin-bottom: 4px; color: var(--accent-strong); }
.serve-card p { font-size: 15.5px; color: var(--ink-2); }
.serve-card b { color: var(--ink); }

/* مجلس الإدارة */

/* بيانات الجمعية */
.card-in { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(40px, 6vw, 80px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 28px; }
.facts div { padding: 16px 18px; border-radius: var(--r-sm); background: var(--mint-50); }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.5; }
.cert { padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transform: rotate(-1.5deg); transition: transform .5s var(--ease); }
.cert:hover { transform: none; }
.cert img { width: 100%; border-radius: 12px; }

/* دعوة */
.cta-band { padding-block: 0 clamp(72px, 9vw, 110px); }
.cta-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(32px, 4vw, 52px); border-radius: 32px; background: var(--green);
  position: relative; overflow: hidden;
}
.cta-in::before { content: ""; position: absolute; inset-block: -40%; inset-inline-start: -2%; width: 26%; background: url("assets/brand/mark-white.svg") no-repeat center / contain; opacity: .08; }
.cta-in h2 { color: var(--white); }
.cta-in p { color: #D7E8DC; margin-top: 6px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1024px) {
  .page-hero-in, .story-in, .serve-in, .card-in { grid-template-columns: 1fr; }
  .page-hero-text { text-align: center; }
  .page-hero h1, .page-hero-text > p { margin-inline: auto; }
  .crumbs, .jump { justify-content: center; }
  .page-hero-media { max-width: 560px; margin-inline: auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .halfway-strip { flex-wrap: wrap; }
  .aims { grid-template-columns: repeat(2, 1fr); }
  .value:first-child { grid-row: auto; grid-column: 1 / -1; }
  .goals-in { grid-template-columns: 1fr; }
  .goals-head { position: static; }
  .cert { max-width: 640px; }
}

@media (max-width: 640px) {
  .page-hero h1 { font-size: 28px; }
  .page-hero-text > p, .story-text > p:not(.kicker) { font-size: 16.5px; }
  .story-quote { padding: 36px 22px 24px; }
  .story-quote blockquote { font-size: 18px; }
  .vm-grid { grid-template-columns: 1fr; }
  .vm-card { padding: 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .halfway-strip { padding: 20px; gap: 14px; }
  .halfway-strip-go { display: none; }
  .aims { grid-template-columns: 1fr; }
  .goal summary { padding: 16px; gap: 12px; }
  .goal-n { width: 38px; height: 38px; font-size: 16px; }
  .goal-t { font-size: 16px; }
  .goal ul { padding: 0 18px 18px; padding-inline-start: 50px; }
  .facts { grid-template-columns: 1fr; }
  .cta-in { text-align: center; justify-content: center; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}

/* مستهدفات 2026 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis li { display: grid; gap: 2px; padding: 22px; border-radius: var(--r-md); background: var(--mint-50); }
.kpis b { font-family: var(--f-head); font-size: 30px; color: var(--accent); line-height: 1.3; }
.kpis span { font-size: 15px; color: var(--ink-2); }

/* العضوية */
.member-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.member-text { display: grid; gap: 16px; justify-items: start; }
.member-text > p:not(.kicker) { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.member-cards { display: grid; gap: 14px; }
.member-card { padding: 24px 26px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.member-card h3 { margin-bottom: 10px; color: var(--accent-strong); }
.member-card ul { display: grid; gap: 8px; }
.member-card li { position: relative; padding-inline-start: 18px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.member-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.member-card b { color: var(--ink); }

@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .member-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis li { padding: 16px; }
  .kpis b { font-size: 24px; }
}

/* ===== الهيكل التنظيمي (شجرة) ===== */
.structure { background: var(--green-900); color: var(--white); position: relative; overflow: hidden; }
.structure::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(233, 168, 58, .14), transparent 70%),
              radial-gradient(40% 40% at 100% 100%, rgba(0, 104, 58, .5), transparent 70%);
}
.structure .container { position: relative; }
.structure h2 { color: var(--white); }
.structure .section-head--row > p { color: #BFD6C8; }
.tree { display: grid; justify-items: center; }
.tier { position: relative; display: grid; justify-items: center; width: 100%; }
.tier:not(:last-child) { padding-bottom: 40px; }
.tier:not(:last-child)::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 2px; height: 40px;
  background: linear-gradient(var(--gold), rgba(233, 168, 58, .35));
}
.tnode {
  display: flex; align-items: center; gap: 16px; min-width: min(380px, 100%); padding: 18px 24px 18px 28px;
  border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.tnode h3 { font-size: 19px; color: var(--white); }
.tnode p { font-size: 14.5px; color: #BFD6C8; }
.tnode-ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: rgba(255, 255, 255, .1); color: var(--white); }
.tnode--ga { background: var(--gold); box-shadow: 0 18px 40px -20px rgba(233, 168, 58, .7); }
.tnode--ga h3 { color: var(--green-900); }
.tnode--ga p { color: rgba(7, 44, 28, .75); }
.tnode--ga .tnode-ic { background: rgba(7, 44, 28, .12); color: var(--green-900); }
.tnode--board { background: var(--green); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.tnode--exec { background: var(--surface); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); }
.tnode--exec h3 { color: var(--accent-strong); }
.tnode--exec p { color: var(--accent); font-weight: 600; }
.tnode--exec .tnode-ic { background: var(--mint-100); color: var(--accent); }

.units { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; padding-top: 40px; }
.units::before { content: ""; position: absolute; top: 0; inset-inline: 12.5%; height: 2px; background: rgba(233, 168, 58, .45); }
.unit {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 22px 20px;
  border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.unit::before { content: ""; position: absolute; top: -40px; left: 50%; width: 2px; height: 40px; background: rgba(233, 168, 58, .45); }
.unit-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; background: rgba(233, 168, 58, .16); color: var(--gold); }
.unit h4 { font-size: 16.5px; color: var(--white); }
.unit-person { font-weight: 600; font-size: 15px; color: var(--gold); }
.unit-role { font-size: 14px; line-height: 1.7; color: #BFD6C8; }

/* ===== فريق العمل ===== */
.team-label { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; font-size: 18px; color: var(--accent-strong); }
.team-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-exec { margin-top: 0; }
.team-board + .team-label { margin-top: 48px; }
.team-board, .team-exec { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: stretch; }
.mono {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--mint-100); color: var(--accent); font: 700 22px/1 var(--f-head);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--mint-200);
}
.mono--lg { width: 76px; height: 76px; font-size: 30px; background: var(--gold); color: var(--green-900); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 0 0 6px rgba(233, 168, 58, .5); }
.lead-card, .exec-card {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; padding: 32px;
  border-radius: var(--r-lg); background: var(--green-900); color: var(--white);
}
.lead-card::after, .exec-card::after {
  content: ""; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 168, 58, .22), transparent 70%); pointer-events: none;
}
.lead-card .mono { margin-bottom: 14px; }
.lead-role { font-size: 14px; font-weight: 600; color: var(--gold); }
.lead-card h4, .exec-card h4 { font-size: 22px; line-height: 1.45; color: var(--white); }
.lead-note { margin-top: 6px; font-size: 15px; line-height: 1.8; color: #BFD6C8; max-width: 26em; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s var(--ease);
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--mint-200); }
.person h4 { font-size: 16px; line-height: 1.5; }
.person p { font-size: 14px; color: var(--ink-3); }
.since { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; background: var(--mint-50); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.exec-card { gap: 22px; align-content: space-between; }
.exec-who { display: flex; align-items: center; gap: 18px; }
.exec-card .since { background: rgba(255, 255, 255, .1); color: #D7E8DC; }
.exec-contact { position: relative; z-index: 1; display: grid; gap: 8px; }
.exec-contact a {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); color: var(--white); font-size: 15px; transition: background-color .2s;
}
.exec-contact a:hover { background: rgba(255, 255, 255, .16); }
.exec-contact .ic { color: var(--gold); }
.people--staff { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
  .units { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
  .units::before, .unit::before { display: none; }
  .team-board, .team-exec { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tier:not(:last-child) { padding-bottom: 28px; }
  .tier:not(:last-child)::after { height: 28px; }
  .tnode { width: 100%; min-width: 0; padding: 16px 18px; }
  .tnode h3 { font-size: 17px; }
  .units { grid-template-columns: 1fr; gap: 10px; }
  .unit { padding: 18px; }
  .people { grid-template-columns: 1fr; gap: 10px; }
  .person { padding: 16px; }
  .lead-card, .exec-card { padding: 24px; }
  .lead-card h4, .exec-card h4 { font-size: 19px; }
  .exec-contact a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .person { transition: none; }
}
